BizKitHub
DocsAPI ReferenceBranch/bff/branch/save-opening-hours
postBranchAdmin BFF

/bff/branch/save-opening-hours

Replaces ALL existing regular opening hours for the branch in a single batch. Previous rows are soft-deleted (deleted_date set) and fresh rows are inserted. Exceptions are not affected.

BranchpostBffBranchSave-opening-hours

Parameters

JSON body

Request body

application/json
slugstringRequired

Branch slug.

hoursobject[]Required
Each array item:
dayOfWeeknumberRequired

0 = Monday … 6 = Sunday.

Range: 06
definitionstringRequired

Time range definition (e.g. "08:00-17:00", or OSM-compatible string).

Length: 1
descriptionstringOptional
validFromstring | nullOptional
One of 2:
Variant 1
string

ISO datetime the hours are valid from.

Variant 2
null
validTostring | nullOptional
One of 2:
Variant 1
string

ISO datetime the hours are valid to.

Variant 2
null
activebooleanOptional

Whether the hour record is active. Defaults to true.

Response schema

1 status code documented

200Success
successbooleanRequired

Response example

application/json
{
  "success": false
}

Request example

POST /bff/branch/save-opening-hours

post
curl -X POST "https://api.bizkithub.com/bff/branch/save-opening-hours" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "slug": "example_slug",
  "hours": [
    {
      "dayOfWeek": 0,
      "definition": "example_definition",
      "description": "example_description",
      "active": false
    }
  ]
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key