Skip to Content
Reliefs Docs
Management APIProducts

Delete a product draft

Deletes the draft of a product and cleans up associated resources (images, scans that differ from the published version). Uses the product ID to find the associated draft. The published product is not affected. Requires a management API key (`mk_`).

DELETE
/api/v1/management/restaurants/{restaurantId}/products/{productId}/draft

Authorization

ManagementApiKey
headerX-Api-Key<token>

Management API key, starts with mk_. Generate one from your dashboard.

Path Parameters

restaurantId*string

Restaurant ID

Formatuuid
productId*string

Product ID

Formatuuid

Response Body

Draft deleted

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X DELETE 'https://api.reliefsapp.com/api/v1/management/restaurants/497f6eca-6276-4993-bfeb-53cbbbba6f08/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft'
Example Response
{  "success": true,  "data": {    "deleted": true,    "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113"  }}