Update topic
PATCH {{baseUrl}}/api/v1/communityTopics/:id
This API helps update a published forum topic.
OAuth Scope
Desk.community.UPDATE
Attributes
| Attribute Name | Data Type | Description |
|---|---|---|
| subject | <String> | Title of the topic |
| content | <String> | Body content of the topic |
| isSticky | <boolean> | Key that defines whether the topic must be pinned to the topics list page or not |
| type | <String> | Type of topic. Values allowed are: ANNOUNCEMENT, DISCUSSION, IDEA, PROBLEM, and QUESTION. |
| attachmentIds | <JSONArray> | IDs of files to attach to the topic |
| label | <String> | Status label of the topic. The value of this key varies according to the topic type. Values allowed are: NOSTATUS, NEEDMOREINFO, WORKINGONIT, ANSWERED, UNANSWERED, MAYBELATER, UNDERREVIEW, IMPLEMENTED, WILLNOTIMPLEMENT, NOTAPROBLEM, TEMPORARYFIX, ANALYZING, SOLVED, UNSOLVED, and MOSTVOTED. |
| notifyMentions | <boolean> default : false | whether to notify mentioned user while updateing content. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"creator":{"photoUrl":"https://desk.zoho.com/api/v1/agents/7000000015971/photo?orgId=123456","name":"user 1","id":"7000000015971","label":null,"type":"AGENT"},"attachments":[{"size":"1166","name":"download.png","id":"4000000019027","href":"https://desk.zoho.com/api/v1/communityTopics/4000000019003/attachments/4000000019027/content?orgId=123456"}],"isFollowing":false,"subject":"Topic 1","isModerated":false,"likeCount":"1","label":"NOSTATUS","isVoted":true,"type":"QUESTION","isSticky":false,"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","bestCommentId":null,"commentCount":"2","portalUrl":"https://desk.zoho.com/portal/portalname/community/topictopic-1","isLocked":false,"createdTime":"2018-10-16T09:41:33.202Z","followersCount":"0","tag":[{"name":"tag1","permalink":"tag1"},{"name":"tag2","permalink":"tag2"}],"id":"4000000019003","permalink":"topic-1","categoryId":"4000000000017","status":"PUBLISHED","isTicketCreated":false}