PATCH
/
2022-06-09
/
collections
/
{collectionId}
/
nfts
/
{id}
curl --request PATCH \
  --url https://staging.crossmint.com/api/2022-06-09/collections/{collectionId}/nfts/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "reuploadLinkedFiles": true,
  "metadata": {
    "name": "My edited Mint API NFT",
    "image": "https://www.crossmint.com/assets/crossmint/logo.png",
    "description": "My NFT edited via the mint API!",
    "animation_url": "<string>",
    "attributes": [
      {
        "display_type": "",
        "trait_type": "<string>",
        "value": "<string>"
      }
    ]
  }
}'

Authorizations

X-API-KEY
string
header
required

Path Parameters

collectionId
string
default:
default-solana
required

Every project can mint to their pre-built collections (with IDs 'default-solana' or 'default-polygon'), or use the create-collection endpoint

id
string
required

Unique ID of the mint as returned as part of the NFT creation response

Body

application/json
metadata
object
required
reuploadLinkedFiles
boolean

(Optional) Any URLs in the metadata object will be resolved and reuploaded to IPFS [Default: true]