Skip to main content

Create booking open hours

POST 

https://api.staging.powerapi.com/api/v1/businesses/:id/booking_open_hours

Create booking open hours

Request

Path Parameters

    id stringrequired

Bodyrequired

    data object
    type stringrequired

    Possible values: [booking_open_hours]

    attributes object
    monday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

    tuesday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

    wednesday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

    thursday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

    friday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

    saturday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

    sunday array

    Hours in 24h format, earliest booking hour and latest booking hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], booking hours past midnight should be added to the next day.

Responses

Schema
    data objectrequired
    id string
    type string
    attributes object
    monday string[]
    tuesday string[]
    wednesday string[]
    thursday string[]
    friday string[]
    saturday string[]
    sunday string[]

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L 'https://api.staging.powerapi.com/api/v1/businesses/:id/booking_open_hours' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "booking_open_hours",
"attributes": {
"monday": [
null
],
"tuesday": [
null
],
"wednesday": [
null
],
"thursday": [
null
],
"friday": [
null
],
"saturday": [
null
],
"sunday": [
null
]
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "type": "booking_open_hours",
    "attributes": {
      "monday": [
        null
      ],
      "tuesday": [
        null
      ],
      "wednesday": [
        null
      ],
      "thursday": [
        null
      ],
      "friday": [
        null
      ],
      "saturday": [
        null
      ],
      "sunday": [
        null
      ]
    }
  }
}
ResponseClear

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