curl --request GET \
--url https://api.meetcampfire.com/coa/api/department \
--header 'Authorization: <api-key>'
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": 123,
"parent_name": "<string>",
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"parent": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"group": 123
}
],
"code": "<string>",
"name": "<string>",
"active": true,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"parent": 123
}
]
}
Retrieve a list of departments with optional filtering and sorting
curl --request GET \
--url https://api.meetcampfire.com/coa/api/department \
--header 'Authorization: <api-key>'
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": 123,
"parent_name": "<string>",
"tags": [
{
"id": 123,
"group_name": "<string>",
"parent_name": "<string>",
"parent": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"group": 123
}
],
"code": "<string>",
"name": "<string>",
"active": true,
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"parent": 123
}
]
}
Token-based authentication with required prefix "Token"
Include inactive departments in results
Number of results to return per page.
The initial index from which to return the results.
Search query - searches by department name or code
Sort order. Use field name for ascending, -field for descending. Supports multiple fields separated by comma. Default: name
The response is of type object
.