Create special open hours
POSThttps://api.staging.powerapi.com/api/v1/businesses/:id/special_open_hours
Create special open hours
Request
Path Parameters
id stringrequired
- application/vnd.api+json
Body
required
data
object
Responses
- 201
Create special open hours
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
object
required
{
"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"
]
}
}
}
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
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
]
}
}
}'
ResponseClear