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