Create department

View as Markdown

Create department (Enterprise/Contact only). Requires name; budget 0-999999.99, name 1-100 chars, description 0-500.

Headers

AuthorizationstringRequired

Bearer {access_token}

X-Workspace-IdstringRequired
Workspace UUID

Request

name (required), description, managerId, budget, budgetAction

namestringRequired
budgetdoubleOptional
budgetActionstringOptional
descriptionstringOptional
managerIdstringOptional

Response

data: created department

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error