POST
/
staff
/
timeoff
/
{workspaceId}
/
{staffId}

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

Body

application/json
end
string
required
notes
string
required
start
string
required
type
enum<string>
required
Available options:
medical,
mental_health,
personal,
holiday,
moving_house,
education,
religious,
bereavement,
military,
other
other
string

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
requested_by
string
state_changed_by
string