Skip to main content
POST
/
product
/
bulk
/
deletesplit
Delete Splits from Bulk Products
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/bulk/deletesplit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "productIds": [
    "<string>"
  ],
  "userId": "<string>"
}'
{
  "message": "Splits deleted successfully",
  "updatedCount": 8
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/product/bulk/deletesplit', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "productIds": [
      {}
    ],
    "userId": "sample-userId"
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

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

Body

application/json
productIds
string[]
required
userId
string
required

Response

Success

message
string
updatedCount
integer