Availability
List the unavailabilities of a resource
Returns the windows in which a person, a vehicle or a space is NOT available.
availability:readavailability:read- 120/min
- Server annotation: Read-only
- Server annotation: Idempotent
Result
generated from the schema
absenceType is emitted for vehicles and spaces, where it is operational, and NOT for people, where it would be health data. The reason for the unavailability is never emitted. Only declarations with state: unavailable that have not ended yet (current or future) are returned: an unavailability disappears from the list once its end date has passed, and available or unknown windows are never listed.
Arguments
Which resources to query.
Available options: staff, vehicle, space
Limit to a specific resource.
Limits: min length 1
Start of the window, in ISO 8601 with offset.
End of the window, in ISO 8601 with offset.
Page size (1-500). Defaults to 50.
Limits: min 1, max 500
Opaque cursor of the page to return. Pass the value of pagination. from the previous response; treat it as opaque.
Limits: max length 200
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Unique identifier of the unavailability.
Which resource: staff, vehicle or space.
Identifier of that resource.
Resource name; null if not recorded.
Start of the unavailability in ISO 8601 UTC.
End of the unavailability in ISO 8601 UTC.
Declared state. This list only returns unavailable windows that have not ended yet, so it is always unavailable here; available and unknown exist as declarations but are not listed.
Absence type. Only emitted for vehicles and spaces, where it is operational; for staff it is health data and is returned as null.
Last modification in ISO 8601 UTC; null if not recorded.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs GET /api/v1/availability/unavailabilities.
Related pages
Link to this section: Related pagesAvailability
List the unavailabilities of a resource
Returns the windows in which a person, a vehicle or a space is NOT available.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?