Support Departments
Manage active system support channels and departments.
GET
/departments
Retrieves a list of all active support departments defined in the system.
cURL Example
curl -X GET "https://api.hotsol.net/api/v1/departments" \
-H "Authorization: Bearer hk_sec_your_secret_key_here" \
-H "Accept: application/json"
Response Example
{
"success": true,
"message": "Active departments retrieved successfully.",
"data": [
{
"id": 1,
"uuid": "dept_abc123xyz789",
"department_name": "Technical Support",
"email": "[email protected]",
"is_active": true
},
{
"id": 2,
"uuid": "dept_def456uvw012",
"department_name": "Billing & Invoices",
"email": "[email protected]",
"is_active": true
}
]
}
DELETE
/departments/{uuid}
Deletes a support department using its unique UUID identifier.
URL Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| uuid | String | Required | The unique UUID string identifying the department to delete. |
Response Example
{
"success": true,
"message": "Department deleted successfully.",
"data": null
}