Skip to main content

Create special open hours

POST 

https://api.staging.powerapi.com/api/v1/businesses/:id/special_open_hours

Create special open hours

Request

Path Parameters

    id stringrequired

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

Create special open hours

Schema

    data

    object

    required

    id string
    type string

    attributes

    object

    start_date string
    end_date string
    schedule string[]
curl -L 'https://api.staging.powerapi.com/api/v1/businesses/:id/special_open_hours' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "special_open_hours",
"attributes": {
"start_date": "2024-07-29",
"end_date": "2024-07-29",
"schedule": [
null
]
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "type": "special_open_hours",
    "attributes": {
      "start_date": "2024-07-29",
      "end_date": "2024-07-29",
      "schedule": [
        null
      ]
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!