POST
/
sources
/
admin
Create Royalty Source (Admin)
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
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

Royalty source created successfully

The response is of type object.