Skip to main content
POST
/
asset
/
{id}
/
media
Upload media 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": {}
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Asset ID

Body

multipart/form-data
file
file

Response

Media uploaded successfully

success
boolean
Example:

true

message
string
data
object