Skip to content
HALOWERK

Bürowerk

roster break coverage gaps

Return coverage deficits after subtracting declared break intervals from resource-pool shifts.

POST https://buero.halowerk.com/v1/roster-break-coverage-gaps

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
shiftsarrayYes
requiredintegerYes
windowReferenceYes
Show full input schema
{
  "type": "object",
  "properties": {
    "shifts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1
          },
          "team": {
            "type": "string",
            "pattern": "^pool_[A-Z0-9_]{1,24}$"
          },
          "start": {
            "$ref": "#/$defs/s0"
          },
          "end": {
            "$ref": "#/$defs/s0"
          },
          "breaks": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/s1"
            },
            "maxItems": 20,
            "minItems": 0
          }
        },
        "required": [
          "id",
          "team",
          "start",
          "end",
          "breaks"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 0
    },
    "required": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "window": {
      "$ref": "#/$defs/s1"
    }
  },
  "required": [
    "shifts",
    "required",
    "window"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w4:I5:input",
  "$defs": {
    "s0": {
      "type": "number",
      "minimum": 0,
      "maximum": 744
    },
    "s1": {
      "type": "object",
      "properties": {
        "start": {
          "$ref": "#/$defs/s0"
        },
        "end": {
          "$ref": "#/$defs/s0"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "additionalProperties": false
    }
  }
}

Open original schema

Published input example

{
  "shifts": [
    {
      "id": "S1",
      "team": "pool_A",
      "start": 0,
      "end": 8,
      "breaks": [
        {
          "start": 3,
          "end": 4
        }
      ]
    }
  ],
  "required": 1,
  "window": {
    "start": 0,
    "end": 8
  }
}

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 →