Delete a leave type
Changed onArchive a leave type. Rejected with 403 when it is the workspace's last active one, and with 400 when deleted_by_member_id is not a member of the calling workspace. Send deleted: false to make an archived type selectable again.
Request
- Base URLhttps://api.absentify.com/api/v1
- URLhttps://api.absentify.com/api/v1/leave_types/{id}
- AuthAPI key in header X-API-KEY
Path parameters
Query parameters
Response
Successful response
Changes
- warning
changed the pattern of the
pathrequest parameteridfrom^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$to^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$ - warning
changed the pattern of the
queryrequest parameterdeleted_by_member_idfrom^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$to^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
- warning