Skip to main content
POST
Set the primary recording for a work
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /work//recordings//primary Description: Unsets any existing primary link for the work, then marks (workId, assetId) as primary — creating the WorkRecording link (defaults role=original, sharePercentage=100) if it doesn’t already exist. Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

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

Path Parameters

workId
string<uuid>
required
assetId
string<uuid>
required

Response

Primary recording set

A WorkRecording junction row (composition ↔ master).

id
string<uuid>
workId
string<uuid>
assetId
string<uuid>
sharePercentage
number
default:100
role
enum<string>
default:original
Available options:
original,
sample,
cover,
remix,
arrangement
isPrimary
boolean
default:true
notes
string | null