Create a department

This endpoint lets you create new departments for a given organization_reference
This endpoint requires departments_rw scope.
post
https://www.welcomekit.co/api/v1/external/
departments
new department
NB: the slug is automatically generated from the department’s name
Request example
curl -X POST "https://www.welcomekit.co/api/v1/external/departments" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer WK_API_KEY" \
-d @- <<EOF
{
"organization_reference": "Pg4eV6k",
"name": "Tech",
"is_active": true,
"description": "Foo bar"
}
EOF