/product/bulk/delete
Description:
The /product/bulk/delete
endpoint allows deletion of multiple products simultaneously.
Method:
POST
Request Payload:
Parameter | Type | Description |
---|---|---|
productIds | array | An array of product IDs to delete. |
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
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success
The response is of type object
.
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
}