This mutation allows the addition of a new token to a collection.
Sample Mutation
Add a token to a collection:
mutation{
addTokensToCollection(marketplaceId:"d15b1b02-3c87-434d-a7fb-004b27415fbc" tokenIds:"5c14fa84-a461-448e-b63d-95d38118e81b")
}
Sample Response
{
"data": {
"addTokensToCollection": "1 token added to collection"
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
tokenIds | [UUID] | The token ID. | Yes |
marketplaceId | UUID | The marketplace ID. | Yes |
Returns
Name | Type | Description |
---|---|---|
N/A | String | Value of the added token collection. |
Example
Create a token addition to a collection in a marketplace: