Update special open hours
PATCH/api/v1/businesses/:id/special_open_hours/:special_open_hour_id
Update special open hours
Request
Path Parameters
id stringrequired
special_open_hour_id stringrequired
- application/vnd.api+json
Body
required
data
object
type string
Possible values: [special_open_hours
]
attributes
object
start_date date
end_date date
schedule array
Hours in 24h format, earliest opening hour and latest closing hour is 00:00, e.g. ["00:00-08:00", "14:00-00:00"].
Responses
- 201
Create special open hours
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
object
required
id string
type string
attributes
object
start_date string
end_date string
schedule string[]
{
"data": {
"id": "string",
"type": "string",
"attributes": {
"start_date": "string",
"end_date": "string",
"schedule": [
"string"
]
}
}
}
{
"data": {
"id": "585ff8ef-4473-4e06-9d7b-cf272c446e37",
"attributes": {
"start-date": "2023-12-14T00:00:00.000Z",
"end-date": "2023-12-14T00:00:00.000Z",
"schedule": [
"08:00-16:00",
"17:00-20:00"
]
}
}
}
Loading...