Skip to main content

Update Token

Updates an existing token in the system.

Request

PUT /v2/admin/token/{token_id}

Parameters

NameTypeInDescription
token_idstringpathRequired. The ID of the token to update
namestringformOptional. The name of the token
descriptionstringformOptional. Description of the token
valuenumberformOptional. The token value
value_symbolstringformOptional. Symbol for the value (e.g., USDT)
ratenumberformOptional. Token rate
imagesfileformOptional. New image file(s) for the token
documentsfileformOptional. New supporting document(s) for the token
remove_image_idsstringformOptional. Comma-separated list of image IDs to remove
remove_document_idsstringformOptional. Comma-separated list of document IDs to remove

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. Must be multipart/form-data

Example

curl --request PUT \
--url '\{\{baseUrl\}\}/v2/admin/token/67d8774e903bfcbe7eb5d93e' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: multipart/form-data' \
--form 'name=TKN Token Name Updated' \
--form 'description=Token Description' \
--form value=12000 \
--form value_symbol=USDT \
--form rate=30 \
--form images=@/path/to/image.png \
--form documents=@/path/to/document.pdf \
--form remove_image_ids= \
--form remove_document_ids=

Response

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

Status Codes

Status CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Token ID does not exist
413Payload Too Large - File size exceeds limit
415Unsupported Media Type - File format not supported
500Internal Server Error