Housekeeping requests
const url = 'https://api.aerandil.com/v1/functions/hospitality.function.housekeeping_requests/invoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"params":{"business_date":"2026-04-15","horizon":"shift"},"target":{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","object_type":"hospitality.property"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aerandil.com/v1/functions/hospitality.function.housekeeping_requests/invoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "params": { "business_date": "2026-04-15", "horizon": "shift" }, "target": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "hospitality.property" } }'The house’s open housekeeping tasks that carry a due time — hubOS’s service requests with a delivery time — each with its urgency at the kernel’s now: overdue once due_at has passed, soon within the next soon_minutes (30), scheduled beyond. Open is pending, in progress or blocked. The queue is every open request due by the end of the day after business_date (the house’s hotel date when not named), however long ago its time passed — an open request stays in front of the shift until it is closed — so last night’s late request, one still open from the day before, and tomorrow morning’s early one are all on today’s read; a request due later than tomorrow joins it the day before. That is the floor’s read, horizon shift; the desk’s planning read, horizon all, lists every open request with a due time whatever its day, so a request re-timed to next week stays in the room until then. Soonest first; each row carries the task’s status, type, priority, requested_by, why a blocked one waits (block_reason), when the work began (started_at), its business date, its room or area and the person or group that holds it — a whole line for a request on another day’s sheet. as_of is the instant the urgencies were judged at — a client counting down between reads applies soon_minutes to it. The urgency is never stored: it changes with the clock, not with a write. Read-only.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
Responses
Section titled “Responses”Function invoked. The body carries the typed return_value shaped by the function’s declared return_type.
Envelope returned by the Aerandil function engine. correlation_id is the per-invocation id for trace stitching; return_value is the typed value the function computed (shape declared by the function’s return_type).
object
Per-invocation correlation id; appears on log/trace records this function emitted.
object
object
Example
{ "return_value": { "requests": [ { "block_reason": "do_not_disturb", "priority": "low", "requested_by": "guest", "status": "pending", "task_type": "stayover", "urgency": "overdue" } ] }}Headers
Section titled “Headers”Always no-store — function results are time-sensitive and never cacheable.
Function or target object not found.
Parameter validation or domain-rule violation.