Update a ticket
PATCH {{baseUrl}}/api/v1/tickets/:ticket_id
This API updates an existing ticket.
OAuth Scope
Desk.tickets.UPDATE
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
disableClosureNotification | string | Key that enables or disables sending notifications to the corresponding contact when a ticket is closed | |
subject | string | Subject of the ticket | |
departmentId | string | ID of the department to which the ticket belongs | |
contactId | string | ID of the contact who raised the ticket. If a value is not available for this key, make sure to include the <b>contact</b> JSON object. If neither attribute is available, an error message regarding the unavailability of the contactId message is returned. | |
contact | string | Details of the contact who raised the ticket. This object is used for automatically creating a contact when a ticket is received. If the email ID of the contact already exists in your portal, the corresponding contactId is used for creating the ticket. Else, a contact is first created and the contactId of the new contact is mapped to the ticket. The user’s profile and field permissions are considered in the contact creation process. Either the <b>lastName</b> or the <b>email</b> attribute must be present in the object. | |
productId | string | ID of the product to which the ticket is mapped | |
uploads | string | File attachments in the ticket. For more information, refer to the Uploads section | |
email | string | Email ID in the ticket | |
phone | string | Phone number in the ticket | |
description | string | Description in the ticket | |
status | string | Status of the ticket. Includes the custom statuses configured in your help desk portal. | |
assigneeId | string | ID of agent to whom the ticket is assigned | |
category | string | Category of the ticket | |
subCategory | string | Subcategory of the ticket | |
resolution | string | Resolution notes recorded in the ticket | |
dueDate | string | Due date for resolving the ticket | |
priority | string | Priority of the ticket | |
language | string | Language preference to set for the ticket | |
responseDueDate | string | Date on or before which a response must be sent for the ticket | |
channel | string | Channel through which the ticket originated. | |
classification | string | Type of ticket. Values supported are Problem , Request , Question , and Others . | |
customFields | string | Custom fields in the ticket | |
cf | string | Custom fields in the ticket | |
webUrl | string | URL to access the resource | |
teamId | string | ID of the team assigned to resolve the ticket | |
secondaryContacts | string | Secondary contacts, such as CC'ed users, associated with the ticket | |
entitySkills | string | Comma-separated array of skill IDs to be mapped with a ticket. The order of IDs (with the first ID given the highest priority) will determine how assignments are calculated. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"entitySkills":["18921000000379001","18921000000364001","18921000000379055","18921000000379031"],"modifiedTime":"2016-06-21T12:58:09.122Z","ticketNumber":"773","subCategory":"Sub General","statusType":"Open","subject":"Real Time analysis Requirement","dueDate":"2016-06-23T12:58:09.211Z","departmentId":"1892000000006907","channel":"FORUMS","onholdTime":null,"description":"Sample Ticket","language":"English","source":{"appName":null,"extId":null,"type":"SYSTEM","permalink":null,"appPhotoURL":null},"resolution":null,"sharedDepartments":[],"closedTime":null,"sharedCount":"0","approvalCount":"0","timeEntryCount":"0","isOverDue":false,"channelRelatedInfo":{"isTopicDeleted":false,"forumStatus":"ANALYSING","sourceLink":"https://desk.zoho.com/support/zylker/ShowHomePage.do#Community/singlepost/problem-topic-forum-ticket-18-5-2018","topicType":"PROBLEM"},"isDeleted":"false","isTrashed":false,"createdTime":"2016-06-21T12:50:04.000Z","id":"1892000001054003","email":"carol@zylker.com","channelCode":null,"customerResponseTime":"2013-11-04T11:21:07.912Z","cf":{"cf_permanentaddress":null,"cf_dateofpurchase":null,"cf_phone":null,"cf_numberofitems":null,"cf_url":null,"cf_secondaryemail":null,"cf_severitypercentage":"0.0","cf_modelname":"F3 2017"},"productId":null,"contactId":"1892000000042032","threadCount":"1","priority":"Low","classification":null,"assigneeId":"1892000000056007","commentCount":"0","taskCount":"0","phone":"1 888 900 9646","webUrl":"https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/d126330fb061247d9ebddaeb9d93ba74750b0284bc703b38","attachmentCount":"0","isEscalated":false,"isSpam":false,"category":"general","status":"Open"}