This operation retrieves all the departments. (For now, departments can only be created from the UI.)
The Department list has been retrived successfully.
Invalid request.
The request could not be authorized.
The requested resource was not found.
The request could not be completed due to an internal error.
{- "pageInfo": {
- "totalCount": 1,
- "startCount": 1,
- "limit": 20
}, - "departments": [
- {
- "departmentId": "dept123",
- "name": "Sales",
- "subId": "sub123",
- "locationId": "loc123",
- "archived": false,
- "status": "ACTIVE",
- "insertTimestamp": "2024-12-19T09:03:05.072Z",
- "updateTimestamp": "2024-12-20T10:15:30.123Z",
- "createdBy": "0oa27r9p8nfpRUqvv0h8",
- "updatedBy": "0oa27r9p8nfpRUqvv0h8",
- "onBehalfUpdatedBy": "0oa27r9p8nfpRUqvv0h8"
}
]
}