Create business open hours
POST/api/v1/businesses/:id/business_open_hours
Create business open hours
Request
Path Parameters
- application/vnd.api+json
Body
required
data
object
Possible values: [business_open_hours
]
attributes
object
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"], open hours past midnight should be added to the next day.
Responses
- 201
Create business open hours
- 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": "business-open-hours",
"attributes": {
"id": "eec4cf9a-f105-45ff-a368-706fc6e988e3",
"sunday": [],
"monday": [
"10:00-19:00"
],
"tuesday": [
"20:00-00:00"
],
"wednesday": [
"00:00-05:00",
"10:00-18:00"
],
"thursday": [],
"friday": [],
"saturday": []
}
}
}