DELETE https://app.alaaqat.com/api/products/delete-selected
Deletes one or more products in a single request. Each product's notes are deleted with it. Your API key needs the product-delete ability, and the team member who created the key needs Delete Products.
{warning} Deleting is permanent. A deleted product and its notes cannot be restored.
{
"Accept": "application/json",
"Content-Type": "application/json"
}
{
selected_ids: string[]
}
| Field | Required | Validation | Description |
|---|---|---|---|
| selected_ids | Required | An array of product IDs | The _id of every product to delete. |
{
"selected_ids": [
"6656b1c2d3e4f5a6b7c8d901",
"6656b1c2d3e4f5a6b7c8d902"
]
}
An ID that does not match a product in your account is skipped, and the rest are still deleted.
200 OK
{
"message": "Entity was deleted successfully.",
"data": []
}
The response is the same whether every ID matched a product or some were skipped. To check the result, list your products again.