Skip to main content
POST
/
v1
/
chains
/
{chain_name}
/
collections
/
{contract_address}
/
metadata
/
refresh-metadata
Refresh stacked metadata
curl --request POST \
  --url https://api.sandbox.immutable.com/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata \
  --header 'Content-Type: application/json' \
  --header 'x-immutable-api-key: <api-key>' \
  --data '
{
  "metadata": [
    {
      "name": "Sword",
      "description": "2022-08-16T17:43:26.991388Z",
      "image": "https://some-url",
      "external_url": "https://some-url",
      "animation_url": "https://some-url",
      "youtube_url": "https://some-url",
      "attributes": [
        {
          "trait_type": "Aqua Power",
          "value": "Happy",
          "display_type": "number"
        }
      ],
      "metadata_id": "4e28df8d-f65c-4c11-ba04-6a9dd47b179b"
    }
  ]
}
'
{
  "imx_refreshes_limit": "<string>",
  "imx_refresh_limit_reset": "<string>",
  "imx_remaining_refreshes": "<string>",
  "retry_after": "<string>"
}

Authorizations

x-immutable-api-key
string
header
required

Path Parameters

chain_name
string
required

The name of chain

Example:

"imtbl-zkevm-testnet"

contract_address
string
required

Contract address An Ethereum address

Example:

"0xe9b00a87700f660e46b6f5deaa1232836bcc07d3"

Body

application/json

NFT Metadata Refresh Request

Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB

metadata
object[]
required
Required array length: 1 - 10 elements

Response

Accepted

imx_refreshes_limit
string
required
imx_refresh_limit_reset
string
required
imx_remaining_refreshes
string
required
retry_after
string
required