Skip to Content
Reliefs Docs
Management APIProducts

Publish a product draft

Publishes the draft of a product, making it publicly visible. Uses the product ID to find the associated draft. If the product was already published, the published version is updated. If it was a new (unpublished) product, a new published product is created. The draft is deleted upon successful publication. Requires a management API key (`mk_`).

POST
/api/v1/management/restaurants/{restaurantId}/products/{productId}/draft/publish

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 published

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