Create an ingredient
Ccreate an ingredient with a name, price, and in_stock_qty. Ingredients will be associated with specific dishes.
The id in the response is used retrieve the ingredient resource, which is most commonly used to check the in_stock_qty value for tracking ingredient inventory and determining if a dish is available to order in the client app.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The request body to create an ingredient to be included with dishes requires the following properties: name, price, and in_stock_qty.
The ingredient name to display in the client app.
"Carrot"
The quantity of the ingredient currently in stock. This field is used to track the ingredient inventory. If the ingredient is essential and has a value of 0, the associated dish cannot be ordered via the client app.
3
The price used by the client app to calculate order cost.
999
Response
Ingredient created successfully
A unique alpha-numeric string generated by the system when creating a resource (e.g., dishes, ingredients, etc). Ids are required for retrieving the properties of a specific resource.
"674d0bf5c28b69001f8e03a1"
The date and time the resource was created. Timestamp uses ISO 8601 format, Ex: 2025-04-05T14:55:03.824Z
"2024-04-22T10:00:00Z"
The date and time the resource was last updated.
Timestamp uses ISO 8601 format, Ex: 2025-04-05T14:55:03.824Z
"2024-04-22T10:00:00Z"
The name of the ingredient that will appear in the client app.
"Carrot"
The quantity of the ingredient currently in stock. This field is used to track the ingredient inventory. If the ingredient is essential and has a value of 0, the associated dish cannot be ordered via the client app.
3
The price used by the client app to calculate order cost.
999