curl --request GET \
--url https://api.hyra.io/staff/timeoff/{workspaceId}/{staffId} \
--header 'Authorization: Bearer <token>'
{
"currently_out": true,
"requests": [
{
"_id": "<string>",
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"type": "<string>",
"notes": "<string>",
"user": "<string>",
"state_changed_by": "<string>",
"other": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "pending",
"requested_by": "<string>"
}
]
}
Retrieve timeoff information for a staff member
curl --request GET \
--url https://api.hyra.io/staff/timeoff/{workspaceId}/{staffId} \
--header 'Authorization: Bearer <token>'
{
"currently_out": true,
"requests": [
{
"_id": "<string>",
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"type": "<string>",
"notes": "<string>",
"user": "<string>",
"state_changed_by": "<string>",
"other": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "pending",
"requested_by": "<string>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.