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": {}
}
Upload media files (e.g., audio, artwork) for an asset.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathAsset ID

Request Body

Responses

✅ 200 - Media uploaded successfully

⚠️ 400 - undefined

⚠️ 401 - undefined

⚠️ 404 - undefined

❌ 500 - undefined

Tags

Asset

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
I