Skip to main content
PUT
/
v1
/
metadata
/
repos
/
{metadataRepoId}
/
tokens
/
{tokenId}
Set metadata for a specific token
curl --request PUT \
  --url https://api.lootexplus.com/v1/metadata/repos/{metadataRepoId}/tokens/{tokenId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Cool NFT #1",
  "description": "This is a really cool NFT",
  "image": "https://example.com/image.png",
  "animationUrl": "https://example.com/animation.mp4",
  "externalUrl": "https://example.com",
  "attributes": [
    {
      "trait_type": "Background",
      "value": "Blue",
      "display_type": "string"
    }
  ],
  "properties": {
    "category": "art"
  }
}
'

Authorizations

Authorization
string
header
required

Secret key for authentication

Path Parameters

metadataRepoId
string
required

The metadata repository ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

tokenId
string
required

The token ID

Example:

"1"

Body

application/json
name
string
required

Token name

Example:

"Cool NFT #1"

description
string

Token description

Example:

"This is a really cool NFT"

image
string

Token image URL

Example:

"https://example.com/image.png"

animationUrl
string

Animation URL for the token

Example:

"https://example.com/animation.mp4"

externalUrl
string

External URL for the token

Example:

"https://example.com"

attributes
object[]

Token attributes

properties
object

Additional properties

Example:
{ "category": "art" }

Response

Token metadata set successfully