POST api/v1.0/Discussions/SubmitDiscussionPost
Submit a new DiscussionPost to a Discussion.
Request Information
URI Parameters
None.
Body Parameters
Set of properties describing the Discussion to Post to, the Subject, and the Body of the DiscussionPost.
PostDiscussionMessageRequestName | Description | Type | Additional information |
---|---|---|---|
DiscussionKey |
Unique Key of the Discussion to Post to. A discussion and community have a one to one relationship, so either this or the CommunityKey must be provided when posting a discussion message. Both are not needed. |
globally unique identifier |
None. |
CommunityKey |
Unique Key of the Community to Post to. A discussion and community have a one to one relationship, so either this or the DiscussionKey must be provided when posting a discussion message. Both are not needed. |
globally unique identifier |
None. |
DocumentKey |
Unique Key of Document to attach to the Discussion Post. This field is optional. |
globally unique identifier |
None. |
TopicTagKeys |
List of unique keys of Topic tags to apply to Post. Topic tag keys only apply when posting to a topic community and are omitted when posting to a non-topic community. If required, the keys must be valid topic tag keys of the community that you are posting to, and can be found in the Community model for the community that you are posting to. |
Collection of globally unique identifier |
None. |
Subject |
Subject of the Discussion Post. |
string |
Required Max length: 255 |
Body |
Body of the Discussion Post. |
string |
Required |
Request Formats
application/json, text/json
{ "DiscussionKey": "721984f2-e290-4051-ac05-21e1511f9da9", "CommunityKey": "c20daccd-7217-4fec-8147-71def3864a68", "DocumentKey": "207046dc-9253-4bc5-965b-1f279be2cf90", "TopicTagKeys": [ "fac61478-4349-4236-a6ae-9faf75d35d3e", "4a0b17f1-f554-4442-8c11-1e4dff86bdb7" ], "Subject": "sample string 1", "Body": "sample string 2" }
application/xml, text/xml
<PostDiscussionMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request"> <Body>sample string 2</Body> <CommunityKey>c20daccd-7217-4fec-8147-71def3864a68</CommunityKey> <DiscussionKey>721984f2-e290-4051-ac05-21e1511f9da9</DiscussionKey> <DocumentKey>207046dc-9253-4bc5-965b-1f279be2cf90</DocumentKey> <Subject>sample string 1</Subject> <TopicTagKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>fac61478-4349-4236-a6ae-9faf75d35d3e</d2p1:guid> <d2p1:guid>4a0b17f1-f554-4442-8c11-1e4dff86bdb7</d2p1:guid> </TopicTagKeys> </PostDiscussionMessageRequest>
Response Information
Resource Description
Collection of booleanResponse Formats
application/json, text/json
[ true, true ]
application/xml, text/xml
<ArrayOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <boolean>true</boolean> <boolean>true</boolean> </ArrayOfboolean>