Update Draft

PATCH {{baseUrl}}/api/v1/tickets/:ticket_id/draftReply/{thread_id}

This API updates a draft thread created via the EMAIL, FACEBOOK, or FORUM channel.

OAuth Scope

  • Desk.tickets.UPDATE

Attributes

Attribute NameData TypeDescription
channel<string>
max chars : 100
Channel through which the thread originated. Values supported are FACEBOOK, TWITTER, EMAIL and FORUMS .
content<string>
max chars : 16000000
Content of the thread
contentType<string>
max chars : 100
Formatting type of the content. Applicable only for the EMAIL channel. Values supported are html and plainText (default).
isForward<boolean>
Key that returns if the thread was sent as a forward. Applicable only for the EMAIL channel.
isPrivate<boolean>
Specifies whether the thread is Private or Public. Forwarded threads are always private.
inReplyToThreadId<long>
ID of the thread to which current thread is a reply, applicable only for EMAIL channel
attachmentIds<list>
List of attachment IDs, applicable only for EMAIL channel. For information on how to retrieve attachment IDs, refer to the Uploads section.
direction<string>
max chars : 100
Key that returns whether the thread is incoming or outgoing
fromEmailAddress<string>
max chars : 300
Mandatory parameter for creating an email thread. Applicable for EMAIL, ONLINE_CHAT, OFFLINE_CHAT, CUSTOMERPORTAL, and FORUMS channels.
to<string>
max chars : 13000
To email ID in the thread, applicable only for EMAIL channel
cc<string>
max chars : 13000
Email ID to be CC-ed. Applicable only for EMAIL channel
bcc<string>
max chars : 13000
Email ID to be BCC-ed., if any exist. Applicable only for EMAIL channel
hasAttach<boolean>
States whether the thread has attachments
ticketStatus<string>
max chars : 120
Status of the ticket. Includes the custom statuses configured in your help desk portal.

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;summary&quot;:&quot;We are analysing the issue currently , will update you with a solution as early as possible&quot;,&quot;cc&quot;:&quot;&quot;,&quot;isDescriptionThread&quot;:false,&quot;bcc&quot;:&quot;&quot;,&quot;canReply&quot;:true,&quot;visibility&quot;:&quot;public&quot;,&quot;author&quot;:{&quot;firstName&quot;:&quot;Jade&quot;,&quot;lastName&quot;:&quot;Tywin&quot;,&quot;photoURL&quot;:&quot;https://desk.zoho.com/api/v1/agents/1892000000042001/photo?orgId=3983939&quot;,&quot;name&quot;:&quot;Jade Tywin&quot;,&quot;type&quot;:&quot;AGENT&quot;,&quot;email&quot;:&quot;jade12tywin@zylker.com&quot;},&quot;channel&quot;:&quot;EMAIL&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;content&quot;:&quot;We are analysing the issue currently , will update you with a solution as early as possible&quot;,&quot;isForward&quot;:false,&quot;hasAttach&quot;:false,&quot;responderId&quot;:&quot;1892000000042001&quot;,&quot;channelRelatedInfo&quot;:null,&quot;createdTime&quot;:&quot;2016-05-25T10:06:09.686Z&quot;,&quot;id&quot;:&quot;1892000001004072&quot;,&quot;to&quot;:&quot;carol@zylker.com&quot;,&quot;fromEmailAddress&quot;:&quot;techsupport@zylker.com&quot;,&quot;actions&quot;:[{&quot;method&quot;:&quot;POST&quot;,&quot;rel&quot;:&quot;send&quot;,&quot;href&quot;:&quot;https://desk.zoho.com/api/v1/tickets/1892000000094004/sendDraft?draftThreadId=1892000001004072&quot;},{&quot;method&quot;:&quot;DELETE&quot;,&quot;rel&quot;:&quot;delete&quot;,&quot;href&quot;:&quot;https://desk.zoho.com/api/v1/tickets/1892000000094004/draftReply/1892000001004072&quot;}],&quot;contentType&quot;:&quot;text/html&quot;,&quot;status&quot;:&quot;DRAFT&quot;,&quot;direction&quot;:&quot;out&quot;}