DocsAPI ReferenceBranch/bff/branch/auto-parse-opening-hours
postBranchAdmin BFF

/bff/branch/auto-parse-opening-hours

Sends the user prompt to the LLM, validates the structured output and applies it as a full replace of the regular hours plus an idempotent upsert of the exceptions. Returns the counts that were actually persisted (the model may drop or skip rows that fail server-side validation).

BranchpostBffBranchAuto-parse-opening-hours

Parameters

2 body

2 total
Body · 2
slugstringRequired

Branch slug.

promptstringRequired

Free-text description of the opening hours in any language and format. The AI will parse it into a structured weekly schedule plus optional date-specific exceptions.

Length: 14000

Request

POST /bff/branch/auto-parse-opening-hours

post
curl -X POST "https://api.bizkithub.com/bff/branch/auto-parse-opening-hours" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "slug": "example_slug",
  "prompt": "Po–Pá 8:00–17:00, So 9–12, Ne zavřeno. Na vánoce (24.-26.12.) zavřeno."
}'

Response

JSON payload

{
  "success": false,
  "appliedRegularRows": 0,
  "appliedExceptions": 0
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key