Skip to content
HALOWERK

Bürowerk

roster rest gap audit

Return short rest gaps and overlaps in supplied anonymous resource-pool shifts.

POST https://buero.halowerk.com/v1/roster-rest-gap-audit

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
shiftsarrayYes
minimum_rest_hnumberYes
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": {
            "type": "number",
            "minimum": 0,
            "maximum": 744
          },
          "end": {
            "type": "number",
            "minimum": 0,
            "maximum": 744
          }
        },
        "required": [
          "id",
          "team",
          "start",
          "end"
        ],
        "additionalProperties": false
      },
      "maxItems": 200,
      "minItems": 1
    },
    "minimum_rest_h": {
      "type": "number",
      "minimum": 0,
      "maximum": 168
    }
  },
  "required": [
    "shifts",
    "minimum_rest_h"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "shifts": [
    {
      "id": "S1",
      "team": "pool_A",
      "start": 0,
      "end": 8
    },
    {
      "id": "S2",
      "team": "pool_A",
      "start": 12,
      "end": 20
    }
  ],
  "minimum_rest_h": 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 →