Skip to content
HALOWERK

Bürowerk

roster cyclic pattern expansion

Expand a declared duty cycle and return work-run lengths after supplied off-day overrides.

POST https://buero.halowerk.com/v1/roster-cyclic-pattern-expansion

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
patternarrayYes
daysintegerYes
offsetintegerYes
off_daysarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "array",
      "items": {
        "enum": [
          "day",
          "night",
          "off"
        ]
      },
      "maxItems": 60,
      "minItems": 1
    },
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 366
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 59
    },
    "off_days": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 365
      },
      "maxItems": 366,
      "minItems": 0
    }
  },
  "required": [
    "pattern",
    "days",
    "offset",
    "off_days"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "pattern": [
    "day",
    "night",
    "off"
  ],
  "days": 6,
  "offset": 0,
  "off_days": [
    1
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub →