Update department in Alegra
Accounting API · write, waits for approval · 100% field coverage
Your agent can update department in Alegra through Apideck's Accounting API, the same call it makes for every Accounting app. It changes data in the customer's Alegra account, so it stops with the exact request until a person approves it. Apideck adds the customer's Alegra credentials, so no token ever reaches the agent.
The call
PATCH https://unify.apideck.com/accounting/departments/{id}
Headers: x-apideck-service-id: alegra, plus your app id and the customer's consumer id. Apideck MCP tool: accounting-departments-update. Agent operation id: unified.accounting.departmentsUpdate.
| Parameter | In | Description |
|---|---|---|
| id · required | path | ID of the record you are acting upon. |
Body fields
| Field | Type | Description |
|---|---|---|
| parent_id | string | A unique identifier for an object. |
| display_id | string | Id to be displayed. |
| name | string | The name of the department. |
| status | string | Based on the status some functionality is enabled or disabled. |
| subsidiaries | array | |
| code | string | The code of the department. |
| row_version | string | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is m |
More for departments in Alegra
list_departmentscreate_departmentget_departmentdelete_department
Update department in other Accounting apps
The same call works for each of these; only the service id changes.
CampfireIntuit Enterprise SuiteQuickBooksSage Intacct RESTWafeq