This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Body
application/json
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>"
    ]
  }
}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>"
    ]
  }
}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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"