Skip to main content
POST
/
labels
/
{labelId}
/
products
Add Product to Label
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/{labelId}/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "productId": "2fca1b81-2f97-4b02-92a2-899d17c756b8",
  "releaseType": "full"
}'
{
  "status": "<string>",
  "data": {
    "LabelId": "<string>",
    "ProductId": "<string>",
    "releaseType": "<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/products', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "ref": "#/components/schemas/LabelProductAssociation"
  })
});

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
productId
string<uuid>
required
releaseType
enum<string>
default:full

Relationship/release type for this label-product association

Available options:
full,
licensing,
distribution

Response

Created

status
string
data
object