This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Asset ID
Body
multipart/form-data
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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://server26-dot-royalti-project.uc.r.appspot.com/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://server26-dot-royalti-project.uc.r.appspot.com/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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Asset ID