Skip to content

Update department

Request

This endpoint updates department by ID.

Security
Bearer
Path
companyIdstring, (uuid)required

Identifier for company.

Example:4974a66b-7493-4f41-908c-58ba81093947
departmentIdstring, (uuid)required

Identifier for department.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
idstring, (uuid)required
namestringrequired

Name of the department

Example:"IT Department"
externalIdstring

External id of the department

Example:"department-ext-id"
curl -i -X PUT \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/departments/4974a66b-7493-4f41-908c-58ba81093947 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "IT Department",
    "externalId": "department-ext-id"
  }'

Responses

Updated Successfully

Response
No content