Skip to content

Add ingriedient

Request

Add ingriedient to kitchen.

Security
jwtToken
Bodyapplication/json
kitchenIdstringrequired
Example:"altman-family"
namestringrequired

Name of ingredient.

Example:"broccoli"
quantitynumberrequired

Quantity of the ingredient.

Example:10
unitstringrequired

Unit of the ingredient.

Example:"cups"
useBeforestring, (date-time)required

Expiration date of the ingredient.

curl -i -X POST \
  https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/kitchen/openapi/ingredients \
  -H 'Content-Type: application/json' \
  -H 'authorization: YOUR_API_KEY_HERE' \
  -d '{
    "kitchenId": "altman-family",
    "name": "broccoli",
    "quantity": 10,
    "unit": "cups",
    "useBefore": "2019-08-24T14:15:22Z"
  }'

Responses

Ingridient added.

Bodyapplication/json
idstring, (uuid)read-onlyrequired

Identifier of ingredient.

objectstringread-onlyrequired
Value:"ingredient"
kitchenIdstringrequired
Example:"altman-family"
namestringrequired

Name of ingredient.

Example:"broccoli"
quantitynumberrequired

Quantity of the ingredient.

Example:10
unitstringrequired

Unit of the ingredient.

Example:"cups"
useBeforestring, (date-time)required

Expiration date of the ingredient.

createdAtstring, (date-time)read-onlyrequired

Production date of the ingredient.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "ingredient", "kitchenId": "altman-family", "name": "broccoli", "quantity": 10, "unit": "cups", "useBefore": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }