Skip to main content
POST
/
api
/
admin
/
v1
/
staking
/
products
Create or update staking product
curl --request POST \
  --url https://api.example.com/api/admin/v1/staking/products \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "NexFi USDC Yield Vault",
  "productType": "vault",
  "chainId": 8453,
  "riskLevel": "medium",
  "status": "active",
  "id": "base_usdc_nexfi_vault"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "success": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Admin staking product save request.

name
string
required

Product name.

Example:

"NexFi USDC Yield Vault"

productType
string
required

Product type.

Example:

"vault"

chainId
integer
required

Chain ID.

Example:

8453

riskLevel
enum<string>
required

Risk level.

Available options:
low,
medium,
high
Example:

"medium"

status
enum<string>
required

Product status.

Available options:
active,
paused,
disabled
Example:

"active"

id
string

Product ID for updates.

Example:

"base_usdc_nexfi_vault"

Response

200 - application/json

Save response

Standard response envelope.

code
integer
required

Business status code. 0 means success.

Example:

0

msg
string
required

Human-readable response message.

Example:

"ok"

data
object

Generic admin success payload.