LeaveTypes

Update a leave type

Updates an existing leave type. Only admins can update leave types.

put/api/leavetypes/{id}

Request

  • Base URL: https://app.timetastic.co.uk (the document declares no server; this is the origin it was published from)
  • URL: https://app.timetastic.co.uk/api/leavetypes/{id}
  • Auth: none declared

Path parameters

idinteger required

The ID of the leave type to update

Request body

namestring required
deductedboolean
requiresApprovalboolean
includeMaxOffboolean
isPrivateboolean
colorstring nullable
iconstring nullable
calendarVisibility1 | 2 | 3
  • 1 — Busy
  • 2 — Available
  • 3 — OutOfOffice
limitHoursnumber double nullable
limitDaysnumber double nullable

Response

The leave type was successfully updated

Changes

No recorded changes to this operation across all 1 revision of this API.