Create special open hours
POST/api/v1/businesses/:id/special_open_hours
Create special open hours
Request
Path Parameters
id stringrequired
- application/vnd.api+json
 
Body
required
data
object
type string
Possible values: [special_open_hours]
attributes
object
start_date daterequired
end_date daterequired
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": [
        "10:00-12:00",
        "13:00-15:00"
      ]
    }
  }
}
Loading...