Adds a new source association for the current tenant.
sources:create
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"royaltySourceId": "src-1",
"settings": {},
"replacements": {}
}'
{
"id": "ts-1",
"settings": {},
"replacements": {},
"royaltySource": {
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Tenant source association created
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/sources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"royaltySourceId": "src-1",
"settings": {},
"replacements": {}
}'
{
"id": "ts-1",
"settings": {},
"replacements": {},
"royaltySource": {
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
}