Skip to main content
POST
/
tenant
/
{tenantId}
/
token_configuration
Creates one or more token configurations for a tenant.
curl --request POST \
  --url https://api.example.com/tenant/{tenantId}/token_configuration \
  --header 'Content-Type: application/json' \
  --data '
{
  "actorUserId": "9f060a6b-1571-4a2f-8cfb-3fc6bf5a4e51",
  "principalOid": "d3b07384-d9a1-4655-a08e-df5f4f6d7d19",
  "tenantId": "1024",
  "description": "A stable token backed by USD and EUR",
  "name": "Stable Asset Token",
  "ticker": "SAT",
  "assets": [
    {
      "key": 1,
      "value": 0.6
    },
    {
      "key": 2,
      "value": 0.4
    }
  ]
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant.

Body

application/json

Request containing token configuration details.

Request to create a new token configuration with asset backing.

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 }
]

Response

200 - application/json

Token configurations created 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[] | null

The result value returned when the operation is successful.