Update a department
This endpoint lets you update departments for a given id.
department update
PUT
https://www.welcomekit.co/api/v1/external/departments/:id
Path Parameters
Name
Type
Description
id*
string
Department ID
Query Parameters
Name
Type
Description
name
string
Name
slug
string
Slug
is_active
boolean
Department is active?
description
string
Description
{
"id": 42,
"name": "Whatever",
"is_active": true,
"slug": "tech",
"description": "Foo bar"
}
Request example
curl -X PUT "https://www.welcomekit.co/api/v1/external/departments/:id" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer WK_API_KEY" \
-d @- <<EOF
{
"name": "Whatever",
}
EOF
Last updated
Was this helpful?