Create a element of a order
POST/api/v1/elements
Create a element of a order
Request
- application/vnd.api+json
Body
required
data
object
type stringrequired
Possible values: [elements
]
attributes
object
units int32required
Amount of given dish
notes string
Additional notes for given dish
relationships
object
order
object
data
object
type stringrequired
Possible values: [order
]
id stringrequired
Related Order ID
dish
object
data
object
type stringrequired
Possible values: [dish
]
id stringrequired
Related Dish ID
dish_options
object
data
object
type string
Possible values: [dish_options
]
id string
List of dish options for this element
Responses
- 201
Create a element of a order
- application/vnd.api+json
- Schema
Schema
any
Loading...