Update Currency Token by ID
Updates an existing currency token with the specified ID.
Request
PUT /v2/admin/currency-tokens/{currencyTokenID}
Parameters
| Name | Type | In | Description |
|---|---|---|---|
currencyTokenID | string | path | Required. The ID of the currency token to update |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Content-Type | Required. Must be multipart/form-data |
Body (multipart/form-data)
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Currency token display name |
description | string | No | Description of the currency token |
fiat_currency | string | No | ISO 4217 fiat currency code (e.g., USD, EUR, TRY). Must be a valid ISO 4217 currency code |
Example
curl --location --request PUT '{{baseUrl}}/v2/admin/currency-tokens/68fb4de0d622a0564999aeb7' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--form 'name="DigitalOceanCoin2"' \
--form 'description="DigitalOceanCoin2 Desc"' \
--form 'fiat_currency="USD"'
Response
A successful request returns an HTTP 200 status code with no content.
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Currency token updated successfully |
| 400 | Bad Request - Invalid input or fiat currency code |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - Currency token does not exist |
| 415 | Unsupported Media Type - Invalid file upload |
| 500 | Internal Server Error |