Close Ticket
Close a support ticket.
Endpoint
INFO
PATCH /api/v1/dashboard/tickets/{ticket}/close
Headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
ticket | integer | Ticket ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
reason | string | No | Closure reason |
Example Request
bash
curl -X PATCH https://api.daakey.com/api/v1/dashboard/tickets/1/close \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-d '{
"reason": "Issue resolved, customer confirmed"
}'Response
Success (200)
json
{
"success": true,
"message": "Ticket closed",
"data": {
"id": 1,
"reference": "TK-2024-00001",
"status": "closed",
"closed_at": "2024-01-15T15:00:00Z",
"closed_by": {
"id": 2,
"name": "Support Agent"
},
"closure_reason": "Issue resolved, customer confirmed"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}Notes
- Closed tickets cannot receive new messages
- Closing sends a notification to the client