curl --request GET \
--url https://api.royalti.io/defaultsettings/settings/{settingId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Default setting retrieved successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"TenantId": 1,
"entityType": "artist",
"entityId": "660e8400-e29b-41d4-a716-446655440001",
"category": "content",
"settings": {
"content": {
"type": "Audio",
"format": "Album",
"mainGenre": [
"Hip-Hop",
"Rap"
]
}
},
"isActive": true,
"priority": 0,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
}GET /defaultsettings/settings/
curl --request GET \
--url https://api.royalti.io/defaultsettings/settings/{settingId} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Default setting retrieved successfully",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"TenantId": 1,
"entityType": "artist",
"entityId": "660e8400-e29b-41d4-a716-446655440001",
"category": "content",
"settings": {
"content": {
"type": "Audio",
"format": "Album",
"mainGenre": [
"Hip-Hop",
"Rap"
]
}
},
"isActive": true,
"priority": 0,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
}GET
Path Parameters:
| Parameter | Type | Description | Required |
|---|---|---|---|
| settingId | uuid | ID of the setting to retrieve | Yes |
const response = await fetch('https://api.royalti.io/defaultsettings/settings/example-id', {
method: 'GET',
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Unique identifier of the default setting