Skip to main content
PUT
/
2022-06-09
/
collections
/
{collectionId}
Create Collection with ID
curl --request PUT \
  --url https://staging.crossmint.com/api/2022-06-09/collections/{collectionId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "chain": "polygon",
  "metadata": {
    "name": "Sample NFT Collection",
    "imageUrl": "https://www.crossmint.com/assets/crossmint/logo.png",
    "description": "This is a sample NFT collection",
    "symbol": "TOKEN"
  },
  "fungibility": "non-fungible",
  "transferable": true,
  "supplyLimit": 123,
  "payments": {
    "price": "<string>",
    "recipientAddress": "<string>",
    "currency": "<string>"
  },
  "subscription": {
    "enabled": false
  },
  "reuploadLinkedFiles": true
}'
{
  "id": "5263650e-6d43-4ed3-9e31-0cf593d076a4",
  "metadata": {
    "name": "Sample NFT Collection",
    "description": "This is a sample NFT collection",
    "imageUrl": "https://www.crossmint.com/assets/crossmint/logo.png",
    "symbol": "TOKEN"
  },
  "fungibility": "non-fungible",
  "onChain": {
    "chain": "polygon",
    "type": "erc-721"
  },
  "actionId": "5263650e-6d43-4ed3-9e31-0cf593d076a4",
  "subscription": {
    "enabled": true
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

collectionId
string
required

Body

application/json
chain
enum<string>
required
Available options:
aptos,
arbitrum,
arbitrum-sepolia,
avalanche,
avalanche-fuji,
base,
base-sepolia,
bsc,
chiliz,
chiliz-spicy-testnet,
ethereum,
ethereum-sepolia,
optimism,
optimism-sepolia,
polygon,
polygon-amoy,
shape,
shape-sepolia,
skale-nebula,
skale-nebula-testnet,
solana,
soneium-minato-testnet,
xai,
xai-sepolia-testnet,
zora,
zora-sepolia
Example:
metadata
object
required
fungibility
enum<string>
default:non-fungible
Available options:
non-fungible,
semi-fungible
transferable
boolean
default:true
supplyLimit
number
payments
object
subscription
object
reuploadLinkedFiles
boolean

Response

id
string
Example:
metadata
object
fungibility
string
Example:
onChain
object
actionId
string
Example:
subscription
object