PUT
/
sources
/
admin
/
{id}
Update Royalty Source (Admin)
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/sources/admin/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Spotify UK",
  "label": "Spotify UK",
  "startDate": "2021-01-01",
  "endDate": "2025-12-31",
  "dataQuery": "<string>",
  "fileNameFormat": "<string>",
  "schema": {},
  "delimiter": "<string>",
  "type": "<string>",
  "tableNameFormat": "<string>",
  "format": "<string>",
  "headerRows": 123,
  "public": true
}'
{
  "message": "RoyaltySource updated successfully"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Royalty source ID

Example:

"src-1"

Body

application/json

Response

200
application/json

Royalty source updated successfully

The response is of type object.