Skip to Content
Reliefs Docs
Management APIProducts

Update a published product directly

Partially updates a published product in-place, no draft required. If a pending draft exists for this product it is discarded first so the two states stay consistent. Only specified fields are modified. Requires a management API key (`mk_`).

PATCH
/api/v1/management/restaurants/{restaurantId}/products/{productId}

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

Request Body

application/json
  1. body
name?

Translation map for the product name. Only specified languages are updated.

description?|

Translation map for the product description. Omit to leave unchanged.

price?integer

Price in cents

Range0 <= value
available?boolean

Response Body

Product updated and published

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X PATCH 'https://api.reliefsapp.com/api/v1/management/restaurants/497f6eca-6276-4993-bfeb-53cbbbba6f08/products/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "data": {    "product": {      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",      "restaurantId": "4607f331-b75a-4fe3-8172-582c6c390256",      "parentProductId": "1ffe8af3-a0f6-480d-b0be-350ab24a5fb9",      "nameKey": "string",      "descriptionKey": "string",      "price": 0,      "scanId": "83d71394-faa2-4b6c-b13b-6d3118de459e",      "imageUrl": "http://example.com",      "available": true,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "isDraft": false  }}