Create multiple assets in a single request. This is more efficient than making multiple individual requests.
Note: The maximum number of assets that can be created in a single request is 100.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/asset/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"type": "Audio",
"isrc": "<string>",
"iswc": "<string>",
"displayArtist": "<string>",
"mainArtist": [
"<string>"
],
"version": "<string>",
"mainGenre": [
"<string>"
],
"subGenre": [
"<string>"
],
"externalId": "<string>",
"contributors": {
"producers": [
"<string>"
],
"mixers": [
"<string>"
]
},
"artists": [
"<string>"
],
"splits": [
{
"user": "<string>",
"share": 123
}
],
"isDraft": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}'
{
"success": true,
"message": "<string>",
"data": {}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Bulk assets created successfully
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/asset/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"type": "Audio",
"isrc": "<string>",
"iswc": "<string>",
"displayArtist": "<string>",
"mainArtist": [
"<string>"
],
"version": "<string>",
"mainGenre": [
"<string>"
],
"subGenre": [
"<string>"
],
"externalId": "<string>",
"contributors": {
"producers": [
"<string>"
],
"mixers": [
"<string>"
]
},
"artists": [
"<string>"
],
"splits": [
{
"user": "<string>",
"share": 123
}
],
"isDraft": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}'
{
"success": true,
"message": "<string>",
"data": {}
}