ProcurementExpress department management. Use when listing, viewing, creating, or updating departments (organizational units). Routes to MCP tools: list_departments, get_department, create_department, update_department. Triggers on: department, division, organizational unit, department users, department budgets.
Authenticate (pex-auth) and set active company (pex-companies) first.
List departments. By default returns only departments the current user has access to.
archived (optional, boolean, default: false)company_specific (optional, boolean) — true to list ALL company departments regardless of user accessDepartment[]Get a specific department by ID.
id (required, integer)DepartmentCreate a new department.
name (required, string)contact_person (optional, string)phone_number (optional, string)email (optional, string)address (optional, string)tax_number (optional, string)budget_ids (optional, integer array) — budgets to associateuser_ids (optional, integer array) — users to assignDepartmentUpdate an existing department.
id (required) + any create_department params + archived (optional, boolean)Departmentid, name, company_id, archivedcontact_person, tax_number, phone_number, address, emailsupplier_ids[] — associated supplier IDsbudget_ids[] — associated budget IDscreated_at, updated_atlist_approvers)