Skip to main content
DELETE
/
asset
/
{id}
/
media
/
{mediaName}
Delete media for an asset
curl --request DELETE \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{id}/media/{mediaName} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Media deleted successfully"
}
Deletes a specific media file (e.g., audio, artwork) associated with an asset. Required Permissions:
  • User must be authenticated
  • User must have appropriate permissions to modify the asset
Note: This operation permanently removes the media file from both storage and the asset’s media array.

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathThe unique identifier of the asset
mediaNamestringpathThe name of the media file to delete

Responses

✅ 200 - Media deleted successfully

⚠️ 400 - undefined

⚠️ 401 - undefined

⚠️ 404 - Not Found

❌ 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

The unique identifier of the asset

mediaName
string
required

The name of the media file to delete

Response

Media deleted successfully

message
string
Example:

"Media deleted successfully"

I