Remove a department
DELETE
Its positions stay, without a department.
sessioncookie
better-auth.session_token<token>Set by POST /api/auth/sign-in/email.
ws*stringThe workspace id (from GET /api/me).
id*stringThe id of what the path names: a hire, a connection, a skill, a shared file, a department, a position, a goal or an approval.
Done; no body.
curl -X DELETE 'https://app.useroster.work/api/workspaces/string/departments/string'Example Response
Empty
Change a department PATCH
Only the fields given change; `null` clears `parentId`, `channel`, `monthlyHours` or `maxAgentTurns`.
Add a position POST
A holder is a hire (`hireId`), a person (`userId` and/or `chat`), or nobody. 400 for a circle of managers, a second lead in a department, a hire already in a position, or a holder that is both a hire and a person.