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
}
/product/bulk/deletesplit Description:
The /product/bulk/deletesplit endpoint allows deletion of splits from multiple products simultaneously.
Method:
POST
Request Payload:
ParameterTypeDescription
productIdsarrayAn array of product IDs.
userIdstringUser ID whose splits should be deleted.

Authentication

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

Request Body

Request Schema

FieldTypeRequiredDescription
productIdsarray
userIdstring

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Product

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
I