Skip to main content

Create a dish of a business

POST 

https://api.staging.powerapi.com/api/v1/dishes

Create a dish of a business

Request

Body

required

    data

    object

    type stringrequired

    Possible values: [dishes]

    attributes

    object

    name stringrequired
    price_per_item_cents int32required

    Price in cents (currency taken from the business)

    sku_ref string
    description string
    unavailable
    on_uber_eats

    relationships

    object

    business

    object

    data

    object

    type stringrequired

    Possible values: [business]

    id stringrequired

    Related Business ID

    category

    object

    data

    object

    type stringrequired

    Possible values: [category]

    id stringrequired

    Related Category ID

Responses

Create a dish of a business

Schema

    any

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"
}
}
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Body required
{
  "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

Click the Send API Request button above and see the response here!