Skip to main content
PUT
/
product
/
{id}
/
setdefaultsplit
Set Default Split for Product from Artist
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/{id}/setdefaultsplit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "defaultSplit": [
    {
      "user": "<string>",
      "share": 123
    }
  ]
}'
{
  "message": "Default split set successfully"
}
/product//setdefaultsplit Description:
The /product/{id}/setdefaultsplit endpoint sets the default split configuration for a product based on the first associated artist’s default splits. If no artist is associated with the product, it will return an error.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the product.
Note: This endpoint does not require a request body. It uses the default splits from the first artist associated with the product.

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathβœ…Product ID

Request Body

Request Schema

FieldTypeRequiredDescription
defaultSplitarrayβœ…

Responses

βœ… 200 - Success

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Product

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Product ID

Body

application/json
defaultSplit
object[]
required

Response

Success

message
string
⌘I