curl --request PATCH \
--url https://api.hyra.io/staff/timeoff/{workspaceId}/{staffId}/{timeoffId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "approved"
}'
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"type": "medical",
"status": "pending",
"other": "<string>",
"user": "<string>",
"workspace": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status_changed_by": "<string>",
"_id": "<string>"
}
Update the status of a timeoff request
curl --request PATCH \
--url https://api.hyra.io/staff/timeoff/{workspaceId}/{staffId}/{timeoffId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "approved"
}'
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"type": "medical",
"status": "pending",
"other": "<string>",
"user": "<string>",
"workspace": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status_changed_by": "<string>",
"_id": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.