Get the time off settings
GET
/leave-policy
const url = 'https://example.com/leave-policy';const options = { method: 'GET', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/leave-policy \ --cookie bottle.session_token=<bottle.session_token>How much holiday a year, when the holiday and sickness years turn over, and whether requests are booked straight away or wait for a yes. A driver can agree different terms; those are on the driver.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Settings
Media typeapplication/json
object
holidayAllowance
required
number
holidayUnit
required
string
holidayYearStart
required
string
sicknessYearStart
required
string
holidayApproval
required
string
sicknessApproval
required
string
carryOverMax
required
number
sicknessAllowance
required
number | null
updatedAt
required
string format: date-time
Example
{ "holidayUnit": "days", "holidayYearStart": "04-01", "sicknessYearStart": "04-01", "holidayApproval": "auto", "sicknessApproval": "auto"}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}