PATCH
/
contracts
/
{contractId}
/
token-types
/
{uriNumber}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <API_KEY>.

Path Parameters

contractId
string
required

The ID of the contract to which the token type belongs.

uriNumber
number
required

The sequential identifier of the token type within the contract.

Body

application/json
name
string

The name of the token type.

description
string

The description of the token type.

maxSupply
number

The max supply of the token type.

traits
object

The traits of the token type. The key is the name of the trait and the value is the value of the trait.

imageUrl
string

The image URL of the token type. Supported formats are PNG, JPEG, GIF or MP4.

Response

200 - application/json
id
string

The id of the token type.

uriNumber
number

The URI number associated with the token type.

contractId
string

The id of the contract to which the token type belongs.

name
string

The name of the token type.

description
string | null

A brief description of the token type.

maxSupply
number

The maximum supply of the token type.

currentSupply
number

The current supply of the token type.

traits
object

A dictionary of traits for the token type, where the key is the trait name and the value is the trait value.

imageUrl
string | null

The URL of the image representing the token type. Supported formats are PNG, JPEG, GIF, or MP4.

metadataUrl
string

The URL where the metadata JSON of the token type is located.

createdAt
string

The timestamp from when the token type was created.

updatedAt
string

The timestamp from when the token type was last updated.