Create booking open hours
POST/api/v1/businesses/:id/booking_open_hours
Create booking open hours
Request
Path Parameters
- application/vnd.api+json
Body
required
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 (from schema)
- Example
Schema
data
object
required
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": []
}
}
}