アナリティクス
- 概要
- エンドポイント
- 例
メタデータ
- 概要
- エンドポイント
- パブリック
- シークレット
- POSTCreateAsset
- POSTCreateCollection
- POSTCreateContractCollection
- POSTCreateToken
- POSTDeleteAsset
- POSTDeleteCollection
- POSTDeleteContractCollection
- POSTDeleteToken
- POSTGetAsset
- POSTGetCollection
- POSTGetContractCollection
- POSTGetToken
- POSTListCollections
- POSTListContractCollections
- POSTListTokens
- POSTPublishCollection
- POSTUnpublishCollection
- POSTUpdateAsset
- POSTUpdateCollection
- POSTUpdateContractCollection
- POSTUpdateToken
- POST
- 例
インフラストラクチャ
- 概要
- エンドポイント
ビルダー
- 概要
- エンドポイント
マーケットプレイス
- 概要
- エンドポイント
- 例
ブロックチェーンRPC
シークレット
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
The response is of type object
.
このページは役に立ちましたか?
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"
}
}