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

NameData TypeRequired / OptionalDescription
panelstringRequiredmust be agent
form_category_idintegerRequiredId of the form in which ticket has to be created
scenariostringRequiredmust be edit
requesterintegerRequireduser Id of the requester on whose behalf ticket is getting created. The requester passed in the parameter must be registered in the system.
status_idIntegerConfigurableId of the status in which ticket has to be created
subjectStringConfigurableThe subject of the Ticket
priority_idIntegerConfigurableid of the priority of the ticket
location_idIntegerConfigurableid of the location of the ticket
source_idIntegerConfigurableid of the source of the ticket
department_idIntegerConfigurableid of the department of the ticket
help_topic_idIntegerConfigurableid of the help topic of the ticket
custom_idString/ArrayOptional“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'

Tagged: