Leave types

Delete a leave type

Changed on

Archive 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.

delete/leave_types/{id}

Request

  • Base URL
    https://api.absentify.com/api/v1
  • URL
    https://api.absentify.com/api/v1/leave_types/{id}
  • Auth
    API key in header X-API-KEY

Path parameters

idstring uuid required

Query parameters

deletedboolean required
deleted_by_member_idstring uuid required

Response

Successful response

unknown required

Changes

    • warning

      changed the pattern of the path request parameter id from ^([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 query request parameter deleted_by_member_id from ^([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})$