An organizational department used to classify staff and work.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
id | integer | — | No | Unique department identifier. | 7 |
pmsRef | string | — | Yes | Practice-management-system reference. | "DEPT-7" |
name | string | — | No | Department name. | "Tax" |
active | boolean | — | No | Whether the department is active. | true |
isCreatedByAiwyn | boolean | — | Yes | Whether Aiwyn created the department. | true |
isManagedByAiwyn | boolean | — | Yes | Whether Aiwyn manages the department. | true |
createdAt | string | date-time (ISO 8601) | Yes | Record creation timestamp. | "2025-01-02T03:04:05Z" |
updatedAt | string | date-time (ISO 8601) | Yes | Last modification timestamp. | "2025-01-02T03:04:05Z" |
version | integer | — | Yes | Record version. | 1 |
createdByStaffId | integer | — | Yes | Staff id of whoever created the record. | 53 |
lastUpdatedByStaffId | integer | — | Yes | Staff id of whoever last updated the record. | 53 |
customFieldValues | object | map | Yes | Firm-defined custom fields. | {} |