Skip to main content
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"
}
Updates a royalty source by its ID.

Required Permissions

  • sources:admin:update

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathRoyalty source ID

Request Body

Request Schema

FieldTypeRequiredDescription
namestring
labelstring
startDatestring
endDatestring
dataQuerystring
fileNameFormatstring
schemaobject
delimiterstring
typestring
tableNameFormatstring
formatstring
headerRowsinteger
publicboolean

Responses

✅ 200 - Royalty source updated successfully

⚠️ 400 - undefined

⚠️ 401 - undefined

⚠️ 404 - undefined

❌ 500 - undefined

Tags

Sources

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
name
string
Example:

"Spotify UK"

label
string
Example:

"Spotify UK"

startDate
string<date>
Example:

"2021-01-01"

endDate
string<date>
Example:

"2025-12-31"

dataQuery
string | null
fileNameFormat
string | null
schema
object | null
delimiter
string | null
type
string
tableNameFormat
string | null
format
string
headerRows
integer | null
public
boolean

Response

Royalty source updated successfully

message
string
Example:

"RoyaltySource updated successfully"

I