POST api/v2.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.

PostDiscussionMessageRequest
NameDescriptionTypeAdditional 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.

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

None.

Body

Body of the Discussion Post.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DiscussionKey": "6b42aaba-0d2e-4176-86a4-9836f39d0496",
  "CommunityKey": "3c7d2b7d-50fb-413f-8dd2-8191e59b9973",
  "TopicTagKeys": [
    "35688ebc-97d7-439c-a105-9b59fe563fd2",
    "cea582e0-3a62-42f1-809f-17040c98de02"
  ],
  "Subject": "sample string 3",
  "Body": "sample string 4"
}

application/xml, text/xml

Sample:
<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 4</Body>
  <CommunityKey>3c7d2b7d-50fb-413f-8dd2-8191e59b9973</CommunityKey>
  <DiscussionKey>6b42aaba-0d2e-4176-86a4-9836f39d0496</DiscussionKey>
  <Subject>sample string 3</Subject>
  <TopicTagKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>35688ebc-97d7-439c-a105-9b59fe563fd2</d2p1:guid>
    <d2p1:guid>cea582e0-3a62-42f1-809f-17040c98de02</d2p1:guid>
  </TopicTagKeys>
</PostDiscussionMessageRequest>

Response Information

Resource Description

True if successful, False if not.

Collection of boolean

Response Formats

application/json, text/json

Sample:
[
  true,
  true
]

application/xml, text/xml

Sample:
<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>