Ingredients

POST

Update Ingredients

Update an existing ingredient.

Required Permission: Edit Ingredient
POST /ingredients/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
name String Required string, required The name
position Integer Optional integer, optional The position of the ingredient
image File Optional image, mimes:jpeg,png,jpg,webp, max:2048 The ingredient image (max 2MB). Use multipart/form-data.
purchase_rate Decimal Optional decimal, optional The purchase rate
base_unit_id Integer Required integer, required The base unit id
purchase_unit_id Integer Required integer, required The purchase unit id
conversion_factor Decimal Required decimal, required The conversion factor
description String Optional string, optional The description

Response

200 OK
Status Code
HTTP status code (200)
Message
Human-readable description
Data
Updated ingredient details