PATCH
/
staff
/
timeoff
/
{workspaceId}
/
{staffId}
/
{timeoffId}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
staffId
string
required
timeoffId
string
required

Body

application/json
status
enum<string>
required
Available options:
approved,
denied

Response

200 - application/json
_id
string
required
createdAt
string
required
end
string
required
notes
string
required
start
string
required
status
enum<string>
required
Available options:
pending,
approved,
denied,
cancelled
type
enum<string>
required
Available options:
medical,
mental_health,
personal,
holiday,
moving_house,
education,
religious,
bereavement,
military,
other
updatedAt
string
required
user
string
required
workspace
string
required
other
string
status_changed_by
string