Skip to main content
POST
/
labels
/
{labelId}
/
artists
Add Artist to Label
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/{labelId}/artists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "artistId": "b369dabe-b4e0-4787-91a5-b561c98601e5",
  "contractType": "recording",
  "contractStartDate": "2024-01-01",
  "territories": [
    "US",
    "GB"
  ],
  "exclusivity": "non-exclusive"
}'
{
  "status": "<string>",
  "data": {
    "LabelId": "<string>",
    "ArtistId": "<string>",
    "contractType": "<string>",
    "territories": [
      "<string>"
    ]
  }
}
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/labels/example-id/artists', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ref": "#/components/schemas/LabelArtistAssociation"
  })
});

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

labelId
string<uuid>
required

Body

application/json
artistId
string<uuid>
required
contractType
enum<string>
Available options:
recording,
publishing,
distribution,
admin
contractStartDate
string<date>
contractEndDate
string<date> | null
territories
string[]
exclusivity
enum<string>
default:non-exclusive
Available options:
exclusive,
non-exclusive

Response

Created

status
string
data
object