Edit ticket as an Agent
Description: API to edit a ticket
HTTP Method : POST
URL : v3/ticket/update/api/{ticketId}
Content-Type: multipart/form-data
Name | Data Type | Required / Optional | Description |
panel | string | Required | must be agent |
form_category_id | integer | Required | Id of the form in which ticket has to be created |
scenario | string | Required | must be edit |
requester | integer | Required | user Id of the requester on whose behalf ticket is getting created. The requester passed in the parameter must be registered in the system. |
status_id | Integer | Configurable | Id of the status in which ticket has to be created |
subject | String | Configurable | The subject of the Ticket |
priority_id | Integer | Configurable | id of the priority of the ticket |
location_id | Integer | Configurable | id of the location of the ticket |
source_id | Integer | Configurable | id of the source of the ticket |
department_id | Integer | Configurable | id of the department of the ticket |
help_topic_id | Integer | Configurable | id of the help topic of the ticket |
custom_id | String/Array | Optional | “custom_(id of the custom field)” |
Response
{
“success” : true,
“message” : “Updated Successfully”
}
Examples
Endpoint : ticket/update/api/7
CURL Request
curl -X POST https://your-api-url/v3/ticket/update/api/{ticketId} \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer {token}' \
-F 'panel=agent' \
-F 'form_category_id=1' \
-F 'scenario=edit'
\
-F 'requester=12345' \
-F 'status_id=1' \
-F 'subject=Example Ticket Subject'
\
-F 'priority_id=2' \
-F 'location_id=3' \
-F 'source_id=4' \
-F 'department_id=5'
\
-F 'help_topic_id=6' \
-F 'custom_id=custom_value'