curl --request PUT \
--url https://api.royalti.io/defaultsettings/{entityType}/{entityId}/{settingId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settings": {
"content": {
"explicit": "explicit",
"mainGenre": [
"Hip-Hop",
"Rap"
]
}
},
"isActive": true
}
'{
"success": true,
"message": "Default setting updated successfully",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"entityType": "tenant",
"category": "content",
"settings": {
"content": {
"type": "Audio",
"format": "Single",
"version": "<string>",
"explicit": "explicit",
"language": "<string>",
"mainGenre": [
"<string>"
],
"subGenre": [
"<string>"
],
"contributors": {}
},
"business": {
"label": "<string>",
"copyright": "<string>",
"publisher": "<string>",
"copyrightOwner": "<string>",
"distribution": "<string>",
"status": "Live"
},
"ddex": {
"enableDDEX": true,
"labelName": "<string>",
"resourceReference": "<string>",
"grid": "<string>",
"icpn": "<string>"
},
"validation": {
"requireGenre": true,
"requireLyrics": true,
"requireDescription": true,
"minimumTrackCount": 1,
"maximumTrackCount": 2
}
},
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"priority": 0,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}PUT /defaultsettings///
curl --request PUT \
--url https://api.royalti.io/defaultsettings/{entityType}/{entityId}/{settingId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settings": {
"content": {
"explicit": "explicit",
"mainGenre": [
"Hip-Hop",
"Rap"
]
}
},
"isActive": true
}
'{
"success": true,
"message": "Default setting updated successfully",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"entityType": "tenant",
"category": "content",
"settings": {
"content": {
"type": "Audio",
"format": "Single",
"version": "<string>",
"explicit": "explicit",
"language": "<string>",
"mainGenre": [
"<string>"
],
"subGenre": [
"<string>"
],
"contributors": {}
},
"business": {
"label": "<string>",
"copyright": "<string>",
"publisher": "<string>",
"copyrightOwner": "<string>",
"distribution": "<string>",
"status": "Live"
},
"ddex": {
"enableDDEX": true,
"labelName": "<string>",
"resourceReference": "<string>",
"grid": "<string>",
"icpn": "<string>"
},
"validation": {
"requireGenre": true,
"requireLyrics": true,
"requireDescription": true,
"minimumTrackCount": 1,
"maximumTrackCount": 2
}
},
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isActive": true,
"priority": 0,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}label - Label-specific defaults (entityId required)artist - Artist-specific defaults (entityId required)user - User-specific defaults (entityId required)PUT /defaultsettings/{entityType}/{settingId} endpoint instead (without entityId).
Method:
PUT
Path Parameters:
| Parameter | Type | Description | Required |
|---|---|---|---|
| entityType | string | Type of entity (label, artist, or user) | Yes |
| entityId | uuid | Entity ID | Yes |
| settingId | uuid | ID of the setting to update | Yes |
| Parameter | Type | Description | Required |
|---|---|---|---|
| settings | object | Partial settings to merge | No |
| isActive | boolean | Active status | No |
| priority | integer | Priority level | No |
const response = await fetch('https://api.royalti.io/defaultsettings/example-id/example-id/example-id', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"isActive": true,
"priority": 1
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Type of entity (label, artist, or user only)
label, artist, user Entity ID
ID of the setting to update