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
1
curl -X POST "https://www.welcomekit.co/api/v1/external/departments" \
2
-H "Content-Type: application/json" \
3
-H "Authorization: Bearer WK_API_KEY" \
4
-d @- <<EOF
5
{
6
"organization_reference": "Pg4eV6k",
7
"name": "Tech",
8
"is_active": true,
9
"description": "Foo bar"
10
}
11
EOF
Copied!
Last modified 1mo ago
Copy link