Skip to main content
POST
Create a department

Authorizations

X-API-KEY
string
header
required

Body

application/json
name
string
required
custom_id
string | null
required
default_allowance
number
required
maximum_absent
number
required
approval_process
enum<string>
required
Available options:
Linear_all_have_to_agree,
Linear_one_has_to_agree,
Parallel_all_have_to_agree,
Parallel_one_has_to_agree
manager_member
object[]
required
default_department_allowances
object[]
required

Response

Successful response

The response is of type string<uuid>.

Pattern: ^([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)$