Skip to main content

Update Token Metric

Updates the metrics of a specific token.

Request

PUT /v2/admin/token/{token_id}/metric

Parameters

NameTypeInDescription
token_idstringpathRequired. The ID of the token to update

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be application/json

Request Body

NameTypeDescription
total_supplynumberTotal supply of the token
term_duration_in_monthsnumberDuration of the term in months
min_purchase_quantitynumberMinimum quantity that can be purchased
max_purchase_quantitynumberMaximum quantity that can be purchased
min_tokens_required_for_rental_incomenumberMinimum tokens required to receive rental income
rental_incomenumberAmount of rental income
rental_income_symbolstringSymbol of the rental income currency
rental_payment_period_in_daysnumberPeriod between rental payments in days

Example

curl --request PUT \
--url '\{\{baseUrl\}\}/v2/admin/token/67d8774e903bfcbe7eb5d93e/metric' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data '{
"total_supply": 100,
"term_duration_in_months": 12,
"min_purchase_quantity": 1,
"max_purchase_quantity": 100,
"min_tokens_required_for_rental_income": 5,
"rental_income": 250.50,
"rental_income_symbol": "USDT",
"rental_payment_period_in_days": 30
}'

Response

A successful request returns an empty response with status code 200.

Status Codes

Status CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Token ID does not exist
500Internal Server Error