Skip to main content
POST
/
sources
Add Tenant Source
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
  }
}
Adds a new source association for the current tenant.

Required Permissions

  • sources:create

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
royaltySourceIdstring
settingsobject
replacementsobject

Responses

✅ 201 - Tenant source association created

⚠️ 400 - undefined

⚠️ 401 - undefined

❌ 500 - undefined

Tags

Sources

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
royaltySourceId
string
required
Example:

"src-1"

settings
object
Example:
{}
replacements
object
Example:
{}

Response

Tenant source association created

id
string
Example:

"ts-1"

settings
object
Example:
{}
replacements
object
Example:
{}
royaltySource
object
I