Update Drafted Topic
PUT {{baseUrl}}/api/v1/communityTopics/([0-9]+)/updateDraft
This API helps update the draft of a forum topic.
OAuth Scope
Desk.community.UPDATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
subject (required) | <String> | Title of the topic |
permalink | <String> | permalink of the topic to be created |
content (required) | <String> | Body content of the topic |
type (required) | <String> | Type of topic. Values allowed are: ANNOUNCEMENT , DISCUSSION , IDEA , PROBLEM , and QUESTION . |
categoryId (required) | <long> | ID of the community category in which the topic must be posted |
isSticky | <boolean> | Key that defines whether the topic must be pinned to the topics list page or not |
notifyMe | <boolean> | Key that defines whether the creator of the topic must be notified about further user actions on the topic or not |
attachmentIds | <JSONArray> | IDs of files to attach to the topic |
tags | <JSONArray> | Tag phrases |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"attachments":[{"size":"1166","name":"download.png","id":"4000000019027","href":"https://desk.zoho.com/api/v1/communityTopics/4000000019003/attachments/4000000019027/content?orgId=123456"}],"subject":"Topic 1","createdTime":"2018-10-16T09:41:33.202Z","tag":[{"name":"tag1","permalink":"tag1"},{"name":"tag2","permalink":"tag2"}],"id":"4000000019003","type":"QUESTION","isSticky":false,"categoryId":"4000000000017","content":"\u003cdiv style=\"font-size: 13px; font-family: Arial, Helvetica, Verdana, sans-serif\"\u003e\u003cdiv\u003eTopic 1 dscription\u003cbr /\u003e\u003c/div\u003e\u003c/div\u003e","notifyMe":true}