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"
}

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

Response

200
application/json

Success

The response is of type object.