curl --request PUT \
--url https://api.royalti.io/sources/admin/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Spotify UK",
"label": "Spotify UK",
"type": "DSP",
"format": "csv",
"public": true,
"isActive": true,
"startDate": "2021-01-01",
"endDate": "2025-12-31",
"dataQuery": {},
"fileNameFormat": "<string>",
"schema": "<string>",
"delimiter": "<string>",
"tableNameFormat": "<string>",
"headerRows": 123
}
'{
"message": "RoyaltySource updated successfully"
}Updates a royalty source by its ID.
curl --request PUT \
--url https://api.royalti.io/sources/admin/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Spotify UK",
"label": "Spotify UK",
"type": "DSP",
"format": "csv",
"public": true,
"isActive": true,
"startDate": "2021-01-01",
"endDate": "2025-12-31",
"dataQuery": {},
"fileNameFormat": "<string>",
"schema": "<string>",
"delimiter": "<string>",
"tableNameFormat": "<string>",
"headerRows": 123
}
'{
"message": "RoyaltySource updated successfully"
}sources:admin:updateconst response = await fetch('https://api.royalti.io/sources/admin/example-id', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "Spotify UK",
"label": "Spotify UK",
"type": "DSP",
"format": "csv",
"public": true,
"isActive": true,
"startDate": "2021-01-01",
"endDate": "2025-12-31",
"dataQuery": {},
"fileNameFormat": "sample-fileNameFormat",
"schema": "sample-schema",
"delimiter": "sample-delimiter",
"tableNameFormat": "sample-tableNameFormat",
"headerRows": 1
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Royalty source ID
"src-1"
"Spotify UK"
"Spotify UK"
"DSP"
"csv"
Make source publicly available
true
Mark source as active/inactive
true
"2021-01-01"
"2025-12-31"
JSONB query configuration
Text representation of schema
Royalty source updated successfully
"RoyaltySource updated successfully"