Publish topic draft

POST {{baseUrl}}/api/v1/communityTopics/([0-9]+)/publishDraft

This API publishes the draft of a forum topic.

OAuth Scope

  • Desk.community.UPDATE

Attributes

Attribute NameData TypeDescription
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
mailTo<JSONArray>
Email IDs to which the topic must be sent after publishing

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;attachments&quot;:[{&quot;size&quot;:&quot;1166&quot;,&quot;name&quot;:&quot;download.png&quot;,&quot;id&quot;:&quot;4000000019027&quot;,&quot;href&quot;:&quot;https://desk.zoho.com/api/v1/communityTopics/4000000019003/attachments/4000000019027/content?orgId=123456&quot;}],&quot;subject&quot;:&quot;Topic 1&quot;,&quot;isModerated&quot;:false,&quot;likeCount&quot;:&quot;1&quot;,&quot;type&quot;:&quot;QUESTION&quot;,&quot;isSticky&quot;:false,&quot;content&quot;:&quot;\u003cdiv style=\&quot;font-size: 13px; font-family: Arial, Helvetica, Verdana, sans-serif\&quot;\u003e\u003cdiv\u003eTopic 1 dscription\u003cbr /\u003e\u003c/div\u003e\u003c/div\u003e&quot;,&quot;bestCommentId&quot;:null,&quot;isLocked&quot;:false,&quot;createdTime&quot;:&quot;2018-10-16T09:41:33.202Z&quot;,&quot;tag&quot;:[{&quot;name&quot;:&quot;tag1&quot;,&quot;permalink&quot;:&quot;tag1&quot;},{&quot;name&quot;:&quot;tag2&quot;,&quot;permalink&quot;:&quot;tag2&quot;}],&quot;id&quot;:&quot;4000000019003&quot;,&quot;viewCount&quot;:&quot;1&quot;,&quot;isTicketCreated&quot;:false,&quot;creator&quot;:{&quot;photoUrl&quot;:&quot;https://desk.zoho.com/api/v1/agents/7000000015971/photo?orgId=123456&quot;,&quot;name&quot;:&quot;user 1&quot;,&quot;id&quot;:&quot;7000000015971&quot;,&quot;type&quot;:&quot;AGENT&quot;},&quot;isFollowing&quot;:false,&quot;label&quot;:&quot;NOSTATUS&quot;,&quot;isVoted&quot;:true,&quot;commentCount&quot;:&quot;2&quot;,&quot;portalUrl&quot;:&quot;https://desk.zoho.com/portal/portalname/community/topictopic-1&quot;,&quot;followersCount&quot;:&quot;0&quot;,&quot;permalink&quot;:&quot;topic-1&quot;,&quot;categoryId&quot;:&quot;4000000000017&quot;,&quot;status&quot;:&quot;PUBLISHED&quot;,&quot;notifyMe&quot;:false}