Create a ticket

POST {{baseUrl}}/api/v1/tickets

This API creates a ticket in your helpdesk.

OAuth Scope

  • Desk.tickets.CREATE

Attributes

Attribute NameData TypeDescription
subject (required)<string>
max chars : 255
Subject of the ticket
departmentId (required)<long>
ID of the department to which the ticket belongs
contactId<referred object>
ID of the contact who raised the ticket. If a value is not available for this key, make sure to include the contact JSON object. If neither attribute is available, an error message regarding the unavailability of the contactId message is returned.
contact<Contact>
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 lastName or the email attribute must be present in the object.
productId<referred object>
ID of the product to which the ticket is mapped
uploads<list>
File attachments in the ticket. For more information, refer to the Uploads section
email<string>
max chars : 150
Email ID in the ticket
phone<string>
max chars : 120
Phone number in the ticket
description<string>
max chars : 65535
Description in the ticket
status<string>
max chars : 120
Status of the ticket. Includes the custom statuses configured in your help desk portal.
assigneeId<long>
ID of agent to whom the ticket is assigned
category<string>
max chars : 300
Category of the ticket
subCategory<string>
max chars : 300
Subcategory of the ticket
resolution<string>
max chars : 65535
Resolution notes recorded in the ticket
dueDate<timestamp>
Due date for resolving the ticket
priority<string>
max chars : 120
Priority of the ticket
language<string>
max chars : 255
Language preference to set for the ticket
responseDueDate<string>
max chars : 100
Date on or before which a response must be sent for the ticket
channel<string>
max chars : 120
Channel through which the ticket originated.
classification<string>
max chars : 100
Type of ticket. Values supported are Problem, Request, Question, and Others.
customFields<JSONObject>
Custom fields in the ticket
cf<JSONObject>
Custom fields in the ticket
webUrl<string>
max chars : -1
URL to access the resource
teamId<long>
ID of the team assigned to resolve the ticket
secondaryContacts<list>
Secondary contacts, such as CC'ed users, associated with the ticket
entitySkills<list>
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

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;entitySkills&quot;:[&quot;18921000000379001&quot;,&quot;18921000000364001&quot;,&quot;18921000000379055&quot;,&quot;18921000000379031&quot;],&quot;modifiedTime&quot;:&quot;2016-06-21T12:50:04.000Z&quot;,&quot;ticketNumber&quot;:&quot;773&quot;,&quot;subCategory&quot;:&quot;Sub General&quot;,&quot;statusType&quot;:&quot;Open&quot;,&quot;subject&quot;:&quot;Real Time analysis Requirement&quot;,&quot;dueDate&quot;:&quot;2016-06-21T18:50:04.573Z&quot;,&quot;departmentId&quot;:&quot;1892000000006907&quot;,&quot;channel&quot;:&quot;Email&quot;,&quot;onholdTime&quot;:null,&quot;description&quot;:&quot;Hai This is description&quot;,&quot;language&quot;:&quot;English&quot;,&quot;source&quot;:{&quot;appName&quot;:null,&quot;extId&quot;:null,&quot;type&quot;:&quot;SYSTEM&quot;,&quot;permalink&quot;:null,&quot;appPhotoURL&quot;:null},&quot;resolution&quot;:null,&quot;sharedDepartments&quot;:[],&quot;closedTime&quot;:null,&quot;sharedCount&quot;:&quot;0&quot;,&quot;approvalCount&quot;:&quot;0&quot;,&quot;timeEntryCount&quot;:&quot;0&quot;,&quot;isOverDue&quot;:false,&quot;channelRelatedInfo&quot;:null,&quot;isDeleted&quot;:&quot;false&quot;,&quot;isTrashed&quot;:false,&quot;createdTime&quot;:&quot;2016-06-21T12:50:04.000Z&quot;,&quot;id&quot;:&quot;1892000001054003&quot;,&quot;email&quot;:&quot;carol@zylker.com&quot;,&quot;channelCode&quot;:null,&quot;customerResponseTime&quot;:&quot;2013-11-04T11:21:07.912Z&quot;,&quot;cf&quot;:{&quot;cf_permanentaddress&quot;:null,&quot;cf_dateofpurchase&quot;:null,&quot;cf_phone&quot;:null,&quot;cf_numberofitems&quot;:null,&quot;cf_url&quot;:null,&quot;cf_secondaryemail&quot;:null,&quot;cf_severitypercentage&quot;:&quot;0.0&quot;,&quot;cf_modelname&quot;:&quot;F3 2017&quot;},&quot;productId&quot;:null,&quot;contactId&quot;:&quot;1892000000042032&quot;,&quot;threadCount&quot;:&quot;1&quot;,&quot;priority&quot;:&quot;High&quot;,&quot;classification&quot;:null,&quot;assigneeId&quot;:&quot;1892000000056007&quot;,&quot;commentCount&quot;:&quot;0&quot;,&quot;taskCount&quot;:&quot;0&quot;,&quot;phone&quot;:&quot;1 888 900 9646&quot;,&quot;webUrl&quot;:&quot;https://desk.zoho.com/support/zylker/ShowHomePage.do#Cases/dv/d126330fb061247d9ebddaeb9d93ba74750b0284bc703b38&quot;,&quot;attachmentCount&quot;:&quot;0&quot;,&quot;isEscalated&quot;:false,&quot;isSpam&quot;:false,&quot;category&quot;:&quot;general&quot;,&quot;status&quot;:&quot;Open&quot;}