Add a new ProductRecipe

Add a new ProductRecipe

Body Params

ProductRecipe object that needs to be added

int64
required

Numerical value that represents the sorting order for the resources displayed in the UI. Lower values appear higher on the list.

date-time
required

ISO8601 timestamp of the last time the resource was updated

uri

URI of the Product API object that is to be consumed as part of this recipe. Should be set to null if ingredient is provided instead.

uri
required

URI of the User API object that last made changes to this resource.

uri

URI of the Ingredient API object that is to be consumed as part of this recipe. Should be set to null if product is provided instead.

integer
enum

ID of dining option, e.g. delivery, take out, eat-in, etc (defined in Establishment/Stations)

Dining option:

  • 0 - TOGO
  • 1 - EATIN
  • 2 - DELIVERY
  • 3 - CATERING
  • 4 - DRIVETHROUGH
  • 5 - ONLINE
  • 6 - OTHER
  • 7 - SHIPPING
  • 8 - PICKUP
uri
required

URI of the User API object that created this resource.

uri
required

URI of the Product API object that the recipe is tied to. Multiple ProductRecipe API objects can be tied to a single product to form a full recipe.

date-time
required

ISO8601 timestamp of the time the resource was created

float
required

Quantity of the ingredients/products to be consumed for each use of this recipe. Values are expected to be greater than zero.

Responses
201

Resource successfully created.

400

Invalid input - please run the request body through a JSON validator.

445

Message: Integrity Error - one of the fields provided did not pass validation. Make sure the "quantity" field is contains a positive value.

Language
Credentials
Response
Click Try It! to start a request and see the response here!