Update Revenue
Description:
The /revenue/{id}
endpoint allows updating details of a specific revenue record.
Method:
PUT
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the revenue record |
Request Payload:
Parameter | Type | Description |
---|---|---|
title | string | Updated title/description |
amount | number | Updated revenue amount |
currency | string | Updated currency |
source | string | Updated revenue source |
transactionDate | string | Updated transaction date |
splits | array | Updated split information |
metadata | object | Updated metadata |
memo | string | Updated notes |
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"
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Revenue ID
Success
The response is of type object
.
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"
}