Create booking open hours
POSThttps://api.staging.powerapi.com/api/v1/businesses/:id/booking_open_hours
Create booking open hours
Request
Path Parameters
- application/vnd.api+json
Bodyrequired
data object
Possible values: [booking_open_hours
]
attributes object
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.
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.
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.
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.
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.
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.
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
- 201
- application/vnd.api+json
- Schema
- Example (auto)
- Example
Schema
data objectrequired
attributes object
{
"data": {
"id": "string",
"type": "string",
"attributes": {
"monday": [
"string"
],
"tuesday": [
"string"
],
"wednesday": [
"string"
],
"thursday": [
"string"
],
"friday": [
"string"
],
"saturday": [
"string"
],
"sunday": [
"string"
]
}
}
}
{
"data": {
"id": "5c47258f-86ad-4bdb-aad3-3a3c348701e6",
"type": "booking-open-hours",
"attributes": {
"id": "8daeda79-51e0-4a1c-8631-58bea68a5231",
"sunday": [],
"monday": [
"10:00-19:00"
],
"tuesday": [
"20:00-00:00"
],
"wednesday": [
"00:00-05:00",
"10:00-18:00"
],
"thursday": [],
"friday": [],
"saturday": []
}
}
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
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
]
}
}
}'