Skip to main content
PUT
/
tenant
/
{tenantId}
/
token_configuration
/
{id}
/
assets
Updates the assets associated with a token configuration.
curl --request PUT \
  --url https://api.example.com/tenant/{tenantId}/token_configuration/{id}/assets \
  --header 'Content-Type: application/json' \
  --data '
{
  "actorUserId": "9f060a6b-1571-4a2f-8cfb-3fc6bf5a4e51",
  "principalOid": "d3b07384-d9a1-4655-a08e-df5f4f6d7d19",
  "tenantId": "1024",
  "description": "Stablecoin backed by US Dollar reserves",
  "name": "USD Coin",
  "ticker": "USDC",
  "assets": [
    {
      "key": 1,
      "value": 0.6
    },
    {
      "key": 2,
      "value": 0.4
    }
  ],
  "id": 512,
  "tokenAssets": [
    {
      "assetId": 1,
      "weight": 1
    }
  ],
  "blockchainIds": [
    1,
    137
  ]
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant.

id
integer<int64>
required

Identifier of the token configuration.

Body

application/json

Request containing the updated asset identifiers.

Request to update the backing asset composition of a token configuration.

actorUserId
string

Identifier of the user performing the creation.

Example:

"9f060a6b-1571-4a2f-8cfb-3fc6bf5a4e51"

principalOid
string

Azure AD principal object identifier of the actor.

Example:

"d3b07384-d9a1-4655-a08e-df5f4f6d7d19"

tenantId
string

Identifier of the tenant creating the token.

Example:

1024

description
string

Detailed explanation of the token's purpose and features.

Example:

"A stable token backed by USD and EUR"

name
string

Display name of the token.

Example:

"Stable Asset Token"

ticker
string

Short symbol representing the token.

Example:

"SAT"

assets
object[]

Asset composition defining the token's backing.

Example:
[
{ "key": 1, "value": 0.6 },
{ "key": 2, "value": 0.4 }
]
id
integer<int64>

Identifier of the token configuration to update.

Example:

512

Response

200 - application/json

Token configuration assets updated successfully.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.

Example:
{ "success": true }