{"slug":"prop-halowerk-com-v1-occupancy-optimize-ae88d1","title":"Sorts groups by size, then assigns each to the available room that has all requi","host":"prop.halowerk.com","method":"POST","resource":"https://prop.halowerk.com/v1/occupancy-optimize","category":"code","description":"Sorts groups by size, then assigns each to the available room that has all required features and minimizes unused capacity, hourly cost and room identifier in that order. This fast heuristic is not guaranteed globally optimal and does not handle time overlap, accessibility beyond supplied features, ","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":951,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"groups":[{"group_id":"design","people":12,"required_features":["video"]},{"group_id":"review","people":7,"required_features":["screen"]}],"rooms":[{"capacity":8,"features":["screen"],"hourly_cost":40,"room_id":"r-101"},{"capacity":14,"features":["screen","video"],"hourly_cost":65,"room_id":"r-202"},{"capacity":20,"features":["screen","video","accessible"],"hourly_cost":72,"room_id":"r-303"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"groups":{"items":{"additionalProperties":false,"properties":{"group_id":{"maxLength":128,"minLength":1,"type":"string"},"people":{"maximum":1000000,"minimum":1,"type":"integer"},"required_features":{"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":1000,"type":"array","uniqueItems":true}},"required":["group_id","people","required_features"],"type":"object"},"maxItems":10000,"minItems":1,"type":"array"},"rooms":{"items":{"additionalProperties":false,"properties":{"capacity":{"maximum":1000000,"minimum":1,"type":"integer"},"features":{"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":1000,"type":"array","uniqueItems":true},"hourly_cost":{"maximum":1000000000000,"minimum":0,"type":"number"},"room_id":{"maxLength":128,"minLength":1,"type":"string"}},"required":["room_id","capacity","hourly_cost","features"],"type":"object"},"maxItems":10000,"minItems":1,"type":"array"}},"required":["rooms","groups"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":951,"error":null}],"description_full":"Sorts groups by size, then assigns each to the available room that has all required features and minimizes unused capacity, hourly cost and room identifier in that order. This fast heuristic is not guaranteed globally optimal and does not handle time overlap, accessibility beyond supplied features, movement, privacy or building-code constraints.","last_updated":"2026-09-01T07:57:40.914Z","schemes":["exact"]}