Departments
Update a department
Update mutable fields of a department. Renaming to a name already in use within the organization returns 409. Manager/user lists are replaced atomically.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/departments/string" \ -H "Content-Type: application/json" \ -d '{ "description": "All sales reps, NA + EMEA", "userIds": [ "65b1f0a2c3d4e5f6a7b8c9d0", "65b1f0a2c3d4e5f6a7b8c9d1", "65b1f0a2c3d4e5f6a7b8c9d2" ] }'{ "department": { "_id": "65c1a0b0c0d0e0f0a0b0c0d1", "name": "Sales", "description": "Inbound + outbound sales reps", "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0", "createdAt": "2026-01-12T09:00:00.000Z", "updatedAt": "2026-04-04T12:30:00.000Z" }}