Skip to main content
PUT
/
split
/
{id}
Update Split
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/split/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "share": 123,
  "userId": "<string>"
}'
{
  "message": "Split updated successfully"
}
/split/ Description:
The /split/{splitId} endpoint allows updating the details of a specific split identified by their unique splitId.
Method:
PUT

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…Split ID

Request Body

Request Schema

FieldTypeRequiredDescription
sharenumberāŒThe percentage share
userIdstringāŒThe user ID associated with the split

Responses

āœ… 200 - Success

āš ļø 401 - Unauthorized

āš ļø 404 - Not Found

āŒ 500 - Internal Server Error

Tags

Splits

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Split ID

Body

application/json
share
number

The percentage share

userId
string

The user ID associated with the split

Response

Success

message
string
⌘I