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

Authorizations

Authorization
string
headerrequired

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
start
string
required
end
string
required
notes
string
required
type
enum<string>
required
Available options:
medical,
mental_health,
personal,
holiday,
moving_house,
education,
religious,
bereavement,
military,
other
status
enum<string>
required
Available options:
pending,
approved,
denied,
cancelled
other
string
user
string
required
workspace
string
required
createdAt
string
required
updatedAt
string
required
status_changed_by
string
_id
string
required