curl --request PUT \
--url https://api.royalti.io/labels/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"country": "<string>",
"foundedDate": "2023-12-25",
"labelCode": "<string>",
"dpid": "<string>",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"distribution": "<string>",
"genres": [
"<string>"
],
"isActive": true,
"metadata": {}
}
'{
"status": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"country": "US",
"foundedDate": "2023-12-25",
"labelCode": "<string>",
"dpid": "<string>",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"ddexSettings": {},
"parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"distribution": "<string>",
"genres": [
"<string>"
],
"isActive": true,
"metadata": {},
"tradingName": "<string>",
"pLinePrefix": "<string>",
"cLinePrefix": "<string>",
"isrcPrefix": "<string>",
"upcPrefix": "<string>",
"defaultReleaseType": "full",
"parentLabel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
},
"childLabels": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Update Label
curl --request PUT \
--url https://api.royalti.io/labels/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"country": "<string>",
"foundedDate": "2023-12-25",
"labelCode": "<string>",
"dpid": "<string>",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"distribution": "<string>",
"genres": [
"<string>"
],
"isActive": true,
"metadata": {}
}
'{
"status": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"country": "US",
"foundedDate": "2023-12-25",
"labelCode": "<string>",
"dpid": "<string>",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"ddexSettings": {},
"parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"distribution": "<string>",
"genres": [
"<string>"
],
"isActive": true,
"metadata": {},
"tradingName": "<string>",
"pLinePrefix": "<string>",
"cLinePrefix": "<string>",
"isrcPrefix": "<string>",
"upcPrefix": "<string>",
"defaultReleaseType": "full",
"parentLabel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
},
"childLabels": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}const response = await fetch('https://api.royalti.io/labels/example-id', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "sample-name",
"logo": "sample-logo",
"website": "sample-website",
"country": "sample-country",
"foundedDate": "2024-01-21",
"labelCode": "sample-labelCode",
"dpid": "sample-dpid",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"parentLabelId": "sample-parentLabelId",
"distribution": "sample-distribution",
"genres": [
{}
],
"isActive": true,
"metadata": {}
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"