Skip to main content
PUT
Update Royalty Source (Admin)
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Required Permissions

  • sources:admin:update

Updatable Fields

All fields from the create endpoint can be updated individually. Only provided fields are modified; omitted fields remain unchanged.

Code Examples

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

Source name (normalized to lowercase)

label
string

Display label

type
string

Source type

format
string

File format

public
boolean
isActive
boolean
startDate
string<date> | null
endDate
string<date> | null
dataQuery
object | null

JSONB query configuration. When provided as an object, dedicated query columns are auto-synced.

fileNameFormat
string | null
schema
string | null
delimiter
string | null
tableNameFormat
string | null
headerRows
integer | null
defaultCurrency
string | null
Maximum string length: 3
defaultFeeRate
number | null
feeType
enum<string> | null
Available options:
percentage,
fixed
feeDescription
string | null
exchangeRateStrategy
enum<string> | null
Available options:
cte,
inline,
external_table
feeEmbeddedInQuery
boolean
parentSourceId
string<uuid> | null
sourceCategory
enum<string> | null
Available options:
aggregator,
dsp,
publisher,
label,
other

Response

Royalty source updated successfully

status
string
Example:

"success"

message
string
Example:

"RoyaltySource updated successfully"

data
object