LeaveTypes

Create a new leave type

Creates a new leave type for your organisation. Only admins can create leave types.

post/api/leavetypes

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
  • Auth: none declared

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 created. Returns the ID of the new leave type.

integer required

Changes

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