Create a dish of a business
POSThttps://api.staging.powerapi.com/api/v1/dishes
Create a dish of a business
Request
- application/vnd.api+json
Body
required
data
object
Responses
- 201
Create a dish of a business
- application/vnd.api+json
- Schema
Schema
any
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/dishes' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "dishes",
"attributes": {
"name": "string",
"price_per_item_cents": 0,
"sku_ref": "string",
"description": "string",
"unavailable": {},
"on_uber_eats": {}
},
"relationships": {
"business": {
"data": {
"type": "business",
"id": "string"
}
},
"category": {
"data": {
"type": "category",
"id": "string"
}
}
}
}
}'
ResponseClear