Add reply to a ticket
POST/api/tickets/reply/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Ticket unique ID. |
| message | String | Mandatory Reply message. |
| admin | Number | optional Optional Staff ID (if provided, reply is from staff member). |
| status | Number | optional Optional Ticket status after reply (default: 1 for customer, 3 for staff). |
| cc | String | optional Optional CC email addresses. |
| file | File | optional Optional File attachments. |
curl -X POST "https://yoursite.com/api/tickets/reply/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "message": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Ticket Reply Added Successful.",
"reply_id": 123
} Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Ticket Reply Fail."
}