POST api/v2.0/Discussions/PostToDiscussionAnonymously

Request Information

URI Parameters

None.

Body Parameters

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.

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

None.

Body

Body of the Discussion Post.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DiscussionKey": "f4fd689d-bc44-42a4-9d85-de6dd6094ab9",
  "CommunityKey": "8d3992a6-4706-45d0-94a6-3f1a1228f7b8",
  "DocumentKey": "1da81c39-dc3d-4f0d-a94b-33cdee3c7bf9",
  "TopicTagKeys": [
    "0db889dd-c286-4238-b5f1-e5430cf94447",
    "05737982-f2e8-4f56-9ff5-1910b8946617"
  ],
  "Subject": "sample string 4",
  "Body": "sample string 5"
}

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 5</Body>
  <CommunityKey>8d3992a6-4706-45d0-94a6-3f1a1228f7b8</CommunityKey>
  <DiscussionKey>f4fd689d-bc44-42a4-9d85-de6dd6094ab9</DiscussionKey>
  <DocumentKey>1da81c39-dc3d-4f0d-a94b-33cdee3c7bf9</DocumentKey>
  <Subject>sample string 4</Subject>
  <TopicTagKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>0db889dd-c286-4238-b5f1-e5430cf94447</d2p1:guid>
    <d2p1:guid>05737982-f2e8-4f56-9ff5-1910b8946617</d2p1:guid>
  </TopicTagKeys>
</PostDiscussionMessageRequest>

Response Information

Resource Description

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>