Transactions
- Overview
- Installation
- Endpoints
- Examples
Indexer
- Overview
- Installation
- Endpoints
- Examples
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- public
- secret
- POSTCreateAsset
- POSTCreateCollection
- POSTCreateContractCollection
- POSTCreateToken
- POSTDeleteAsset
- POSTDeleteCollection
- POSTDeleteContractCollection
- POSTDeleteToken
- POSTGetAsset
- POSTGetCollection
- POSTGetContractCollection
- POSTGetToken
- POSTListCollections
- POSTListContractCollections
- POSTListTokens
- POSTPublishCollection
- POSTUnpublishCollection
- POSTUpdateAsset
- POSTUpdateCollection
- POSTUpdateContractCollection
- POSTUpdateToken
- POST
- Examples
Infrastructure
- Overview
- Endpoints
Builder
- Overview
- Endpoints
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
secret
CreateAsset
POST
/
rpc
/
Collections
/
CreateAsset
curl --request POST \
--url https://metadata.sequence.app/rpc/Collections/CreateAsset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"projectId": 30957,
"asset": {
"collectionId": 894,
"tokenId": "6",
"metadataField": "image",
"url": "https://metadata.sequence.app/projects/30957/collections/895/tokens/2/image.png",
"filename": "image.png",
"filesize": 670912,
"mimeType": "image/png",
"width": 1024,
"height": 1024
}
}'
{
"asset": {
"id": 4418,
"collectionId": 894,
"tokenId": "6",
"url": "",
"metadataField": "image",
"updatedAt": "2024-10-25T01:29:44.686464786Z"
}
}
Authorizations
Secret JWT token for authenticating requests obtained from Sequence Builder - should not be exposed publicly.
Body
application/json
Response
200
application/json
OK
Was this page helpful?
curl --request POST \
--url https://metadata.sequence.app/rpc/Collections/CreateAsset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"projectId": 30957,
"asset": {
"collectionId": 894,
"tokenId": "6",
"metadataField": "image",
"url": "https://metadata.sequence.app/projects/30957/collections/895/tokens/2/image.png",
"filename": "image.png",
"filesize": 670912,
"mimeType": "image/png",
"width": 1024,
"height": 1024
}
}'
{
"asset": {
"id": 4418,
"collectionId": 894,
"tokenId": "6",
"url": "",
"metadataField": "image",
"updatedAt": "2024-10-25T01:29:44.686464786Z"
}
}