Creates a new royalty source record available globally.
sources:admin:create
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/sources/admin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Spotify",
"label": "Spotify",
"startDate": "2020-01-01",
"endDate": "2025-01-01",
"dataQuery": "SELECT * FROM ...",
"fileNameFormat": "royalty_{date}.csv",
"schema": {},
"delimiter": ",",
"type": "DSP",
"tableNameFormat": "royalty_{tenant}",
"format": "csv",
"headerRows": 1,
"public": true
}'
{
"id": "src-3",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Royalty source created successfully
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/sources/admin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Spotify",
"label": "Spotify",
"startDate": "2020-01-01",
"endDate": "2025-01-01",
"dataQuery": "SELECT * FROM ...",
"fileNameFormat": "royalty_{date}.csv",
"schema": {},
"delimiter": ",",
"type": "DSP",
"tableNameFormat": "royalty_{tenant}",
"format": "csv",
"headerRows": 1,
"public": true
}'
{
"id": "src-3",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}