curl --request PUT \
--url https://api.royalti.io/defaultsettings/templates/{templateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Hip-Hop Album Standard",
"description": "Updated settings for hip-hop album releases",
"tags": [
"hip-hop",
"album",
"updated"
]
}
'{
"success": true,
"message": "Template updated successfully",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"category": "content",
"entityType": "catalog",
"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
}
},
"description": "<string>",
"isPublic": true,
"isSystem": false,
"usageCount": 0,
"tags": [
"<string>"
],
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}PUT /defaultsettings/templates/
curl --request PUT \
--url https://api.royalti.io/defaultsettings/templates/{templateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Hip-Hop Album Standard",
"description": "Updated settings for hip-hop album releases",
"tags": [
"hip-hop",
"album",
"updated"
]
}
'{
"success": true,
"message": "Template updated successfully",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"category": "content",
"entityType": "catalog",
"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
}
},
"description": "<string>",
"isPublic": true,
"isSystem": false,
"usageCount": 0,
"tags": [
"<string>"
],
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}PUT
Path Parameters:
| Parameter | Type | Description | Required |
|---|---|---|---|
| templateId | uuid | ID of template to update | Yes |
| Parameter | Type | Description | Required |
|---|---|---|---|
| name | string | Template name | No |
| description | string | Template description | No |
| settings | object | Template settings | No |
| isPublic | boolean | Public visibility | No |
| tags | array | Tags for categorization | No |
const response = await fetch('https://api.royalti.io/defaultsettings/templates/example-id', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "sample-name",
"description": "sample-description",
"isPublic": true,
"tags": [
{}
]
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
ID of the template to update