Update a ticket
PUT/api/tickets/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| subject | String | Mandatory Ticket name . |
| department | String | Mandatory Ticket Department. |
| contactid | String | Mandatory Ticket Contact. |
| userid | String | Mandatory Ticket user. |
| priority | String | Mandatory Priority. |
| project_id | String | optional Optional Ticket Project. |
| message | String | optional Optional Ticket message. |
| service | String | optional Optional Ticket Service. |
| assigned | String | optional Optional Assign ticket. |
| tags | String | optional Optional ticket tags. |
curl -X PUT "https://yoursite.com/api/tickets/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "subject": "...", "department": "...", "contactid": "...", "userid": "...", "priority": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Ticket Update Successful."
} Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Ticket Update Fail."
}