Update Ticket
Update a support ticket.
Endpoint
INFO
PUT /api/v1/dashboard/tickets/{ticket}
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 |
|---|---|---|---|
priority | string | No | Priority level |
category | string | No | Ticket category |
assigned_to | integer | No | Assign to user ID |
Example Request
bash
curl -X PUT https://api.daakey.com/api/v1/dashboard/tickets/1 \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-d '{
"priority": "critical",
"assigned_to": 3
}'Response
Success (200)
json
{
"success": true,
"message": "Ticket updated",
"data": {
"id": 1,
"reference": "TK-2024-00001",
"priority": "critical",
"assigned_to": {
"id": 3,
"name": "Senior Support"
},
"updated_at": "2024-01-15T12:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}