curl --request POST \
--url https://api.royalti.io/defaultsettings/preview/product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artistId": "660e8400-e29b-41d4-a716-446655440001",
"productData": {
"productName": "New Album",
"releaseDate": "2024-12-01"
}
}
'{
"success": true,
"message": "Product preview generated successfully",
"data": {
"original": {},
"withDefaults": {},
"appliedDefaults": [
{
"field": "<string>",
"value": "<unknown>",
"source": {
"entityType": "<string>",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "<string>"
}
}
]
}
}POST /defaultsettings/preview/product
curl --request POST \
--url https://api.royalti.io/defaultsettings/preview/product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artistId": "660e8400-e29b-41d4-a716-446655440001",
"productData": {
"productName": "New Album",
"releaseDate": "2024-12-01"
}
}
'{
"success": true,
"message": "Product preview generated successfully",
"data": {
"original": {},
"withDefaults": {},
"appliedDefaults": [
{
"field": "<string>",
"value": "<unknown>",
"source": {
"entityType": "<string>",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "<string>"
}
}
]
}
}POST
Request Body:
| Parameter | Type | Description | Required |
|---|---|---|---|
| labelId | uuid | Label context | No |
| artistId | uuid | Artist context | No |
| userId | uuid | User context | No |
| productData | object | Partial product data to test | No |
const response = await fetch('https://api.royalti.io/defaultsettings/preview/product', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"labelId": "sample-labelId",
"artistId": "sample-artistId",
"userId": "sample-userId",
"productData": {}
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"