Departments

Read a department by id

Changed on

Read a department by id

get/departments/{id}

Request

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

Path parameters

idstring uuid required

Response

Successful response

idstring required
custom_idstring nullable required
namestring required
createdAtstring required
updatedAtstring required
approval_process'Linear_all_have_to_agree' | 'Linear_one_has_to_agree' | 'Parallel_all_have_to_agree' | 'Parallel_one_has_to_agree' | 'Parallel_first_response_decides' required
maximum_absentinteger nullable required

Changes

    • warning

      added the new Parallel_first_response_decides enum value to the / response property for the response status

    • 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})$