Skip to main content
PUT
/
revenue
/
{id}
Update Revenue
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/revenue/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "amount": 123,
  "currency": "<string>",
  "source": "streaming",
  "transactionDate": "2023-11-07T05:31:56Z",
  "splits": [
    {}
  ],
  "metadata": {},
  "memo": "<string>"
}'
{
  "message": "Revenue updated successfully"
}
Update Revenue Description:
The /revenue/{id} endpoint allows updating details of a specific revenue record.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the revenue record
Request Payload:
ParameterTypeDescription
titlestringUpdated title/description
amountnumberUpdated revenue amount
currencystringUpdated currency
sourcestringUpdated revenue source
transactionDatestringUpdated transaction date
splitsarrayUpdated split information
metadataobjectUpdated metadata
memostringUpdated notes

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathRevenue ID

Request Body

Request Schema

FieldTypeRequiredDescription
titlestring
amountnumber
currencystring
sourcestring
transactionDatestring
splitsarray
metadataobject
memostring

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Revenue

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Revenue ID

Body

application/json
title
string
amount
number
currency
string
source
enum<string>
Available options:
streaming,
sales,
licensing,
sync,
merchandise,
live_performance,
other
transactionDate
string<date-time>
splits
object[]
metadata
object
memo
string

Response

Success

message
string
revenue
object
I