Skip to main content

Create business open hours

POST 

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

Create business open hours

Request

Path Parameters

    id stringrequired

Body

required

    data

    object

    type stringrequired

    Possible values: [business_open_hours]

    attributes

    object

    monday 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"], open hours past midnight should be added to the next day.

    tuesday 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"], open hours past midnight should be added to the next day.

    wednesday 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"], open hours past midnight should be added to the next day.

    thursday 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"], open hours past midnight should be added to the next day.

    friday 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"], open hours past midnight should be added to the next day.

    saturday 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"], open hours past midnight should be added to the next day.

    sunday 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"], open hours past midnight should be added to the next day.

Responses

Create business open hours

Schema

    data

    object

    required

    id string
    type string

    attributes

    object

    monday string[]
    tuesday string[]
    wednesday string[]
    thursday string[]
    friday string[]
    saturday string[]
    sunday string[]
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
]
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "type": "business_open_hours",
    "attributes": {
      "monday": [
        null
      ],
      "tuesday": [
        null
      ],
      "wednesday": [
        null
      ],
      "thursday": [
        null
      ],
      "friday": [
        null
      ],
      "saturday": [
        null
      ],
      "sunday": [
        null
      ]
    }
  }
}
ResponseClear

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