Change a department
PATCH
Only the fields given change; null clears parentId, channel, monthlyHours or maxAgentTurns.
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.
application/json- body
name?stringLength
1 <= length <= 80mission?stringLength
length <= 2000Default
""parentId?|Default
nullchannel?|Default
nullmonthlyHours?|Default
nullmaxAgentTurns?|Default
nullThe department.
curl -X PATCH 'https://app.useroster.work/api/workspaces/string/departments/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty