Skip to main content
PUT
/
defaultsettings
/
{entityType}
/
{entityId}
/
{settingId}
Update Default Setting
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",
    "entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "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
      }
    },
    "isActive": true,
    "priority": 0,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Description

PUT /defaultsettings/// Description: Update an existing default setting. Settings are deep-merged within their category, allowing partial updates without losing existing configuration. Method: PUT Path Parameters:
ParameterTypeDescriptionRequired
entityTypestringType of entityYes
entityIduuidEntity ID (optional for tenant/catalog)Conditional
settingIduuidID of the setting to updateYes
Request Body:
ParameterTypeDescriptionRequired
settingsobjectPartial settings to mergeNo
isActivebooleanActive statusNo
priorityintegerPriority levelNo

Code Examples

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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

entityType
enum<string>
required
Available options:
tenant,
label,
artist,
user,
catalog
entityId
string<uuid>
required
settingId
string<uuid>
required

ID of the setting to update

Body

application/json
settings
object

The actual settings data organized by category

isActive
boolean
priority
integer

Response

Default setting updated successfully

success
boolean
Example:

true

message
string
Example:

"Default setting updated successfully"

data
object

A default setting entry