At Zoho Desk, we believe that convenience and consistency are key factors in delivering a good user experience, be it for the end-users of Zoho Desk or the developers who build upon Desk's features and functionalities. As an extension of this belief, we have now updated a payload parameter pertaining to the APIs for ticket threads and a query parameter pertaining to a ticket attachments API.
Here is more information on these two updates:
1. Replacing uploads with attachmentIds in Threads APIs
Currently, the APIs related to threads use the uploads key to refer to thread attachments. When this key is used, all attachments are always appended to the thread; there is no provision to remove existing attachments from the thread.
Therefore, to overcome this issue, we are deprecating the uploads key and introducing the attachmentIds key, which will retain only the attachments included in the payload. Like uploads, attachmentIds also accepts a JSON array of IDs.
Listed below are the different ways in which you can use the attachmentIds key:
POST https://desk.zoho.com/api/v1/tickets/{ticketId}/draftReply
{
"channel" : "EMAIL",
"content" : "Thread content",
"fromEmailAddress":"example@example.com",
"to":"example@example.com",
"attachmentIds":["1000000001","10000000002"]
}
Note: If the attachmentIds key is not present in the payload, all existing attachments in the thread will be retained.
2. Replacing range with limit
The List all attachments API under the Ticket Attachments module currently uses the range query parameter to specify the number of attachments to retrieve. All other Zoho Desk APIs use the limit parameter to perform the same action. Therefore, the range parameter is also deprecated and replaced with the limit parameter in this API.
We request you to implement these changes wherever you have used thread APIs and the List all attachments API in your tools. However, to ensure a smooth transition, we will be supporting the old keys too, until the 18th of February, 2018.
Writer is a powerful online word processor, designed for collaborative work.