[POST] .../v1/workattendance/status
Returns current employee availability. Use this method to read the calculated availability of the current employee or, with manager permissions, another employee. The response returns a WorkUserAvailability snapshot with the status, active session or break identifiers, shift flags and next planned shift timestamps; user_id is optional and defaults to the authenticated user. The caller must have status select permission 695 and reading another user also requires manage-all permission 699. Missing body, denied permission, unavailable user context, persistent lookup errors and database errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| user_id | Int64 | Optional | User ID. Defaults to the current user. |
Request Example
{
"user_id": 10
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | WorkUserAvailability | Result object. |
Response Example
{
"ok": true,
"result": {
"user_id": 10,
"status": "Available",
"is_in_shift": true,
"is_checked_in": true,
"is_on_break": false,
"active_session_id": 88,
"active_break_id": null,
"next_shift_start_date": 1772530800,
"next_shift_end_date": 1772563200,
"last_update": 1772527200
}
}