Create business open hours
POSThttps://api.staging.powerapi.com/api/v1/businesses/:id/business_open_hours
Create business open hours
Request
Path Parameters
id stringrequired
- application/vnd.api+json
Body
required
data
object
Responses
- 201
Create business open hours
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
object
required
{
"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": []
}
}
}
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/businesses/:id/business_open_hours' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "business_open_hours",
"attributes": {
"monday": [
null
],
"tuesday": [
null
],
"wednesday": [
null
],
"thursday": [
null
],
"friday": [
null
],
"saturday": [
null
],
"sunday": [
null
]
}
}
}'
ResponseClear