Skip to content
HALOWERK

Calculators and Rule Checks

seat apportion capacity reallocation

Capacity-limited apportionment redistributes seats after groups reach hard ceilings. Use it when an agent needs allocating within a limited number of eligible positions.

POST https://rechen.halowerk.com/v1/seat-apportion-capacity-reallocation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
weightsarrayYes
seatsintegerYes
capacitiesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "weights": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000000
      },
      "maxItems": 40,
      "minItems": 2
    },
    "seats": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "capacities": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000
      },
      "maxItems": 40,
      "minItems": 2
    }
  },
  "required": [
    "weights",
    "seats",
    "capacities"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "weights": [
    643503,
    1363582,
    1379089,
    1098163
  ],
  "seats": 11,
  "capacities": [
    1,
    11,
    11,
    11
  ]
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "seats": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "at_capacity": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "seats",
        "at_capacity"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →