Required Permissions
sources:admin:create
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
name | string | ā | |
label | string | ā | |
startDate | string | ā | |
endDate | string | ā | |
dataQuery | string | ā | |
fileNameFormat | string | ā | |
schema | object | ā | |
delimiter | string | ā | |
type | string | ā | |
tableNameFormat | string | ā | |
format | string | ā | |
headerRows | integer | ā | |
public | boolean | ā |
Responses
ā 201 - Royalty source created successfully
ā ļø 400 - undefined
ā ļø 401 - undefined
ā 500 - undefined
Tags
Sources
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
Example:
"Spotify"
Example:
"Spotify"
Example:
"DSP"
Example:
"csv"
Example:
"2020-01-01"
Example:
"2025-01-01"
Example:
"SELECT * FROM ..."
Example:
"royalty_{date}.csv"
Example:
{}
Example:
","
Example:
"royalty_{tenant}"
Example:
1
Example:
true
Response
Royalty source created successfully
Example:
"src-1"
Example:
"Spotify"
Example:
"Spotify"
Example:
"DSP"
Example:
"csv"
Example:
true
Example:
"2020-01-01"
Example:
"2025-01-01"
Example:
"SELECT * FROM ..."
Example:
"royalty_{date}.csv"
Example:
{}
Example:
","
Example:
"royalty_{tenant}"
Example:
1