curl --request POST \
--url https://api.royalti.io/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>"
}
}Add Product to Label
curl --request POST \
--url https://api.royalti.io/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>"
}
}const response = await fetch('https://api.royalti.io/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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"