curl --request POST \
--url https://api.royalti.io/asset/{id}/media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"success": true,
"message": "<string>",
"data": {}
}Upload media files (e.g., audio, artwork) for an asset.
curl --request POST \
--url https://api.royalti.io/asset/{id}/media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"success": true,
"message": "<string>",
"data": {}
}const response = await fetch('https://api.royalti.io/asset/example-id/media', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);