Skip to main content
POST
/
product
/
bulk
/
delete
Delete Bulk Products
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/bulk/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "productIds": [
    "<string>"
  ]
}'
{
  "message": "Products deleted successfully",
  "deletedCount": 5
}
/product/bulk/delete Description:
The /product/bulk/delete endpoint allows deletion of multiple products simultaneously.
Method:
POST
Request Payload:
ParameterTypeDescription
productIdsarrayAn array of product IDs to delete.

Authentication

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

Request Body

Request Schema

FieldTypeRequiredDescription
productIdsarrayAn array of product IDs to delete

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

An array of product IDs to delete

Response

Success

message
string
deletedCount
integer
I