Update a department

This endpoint lets you update departments for a given id.

This endpoint requires departments_rw scope.

department update

PUT https://www.welcomekit.co/api/v1/external/departments/:id

Path Parameters

NameTypeDescription

id*

string

Department ID

Query Parameters

NameTypeDescription

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