POST api/v1.0/Discussions/PostToDiscussion

Post a Message to the specified Discussion.

Request Information

URI Parameters

None.

Body Parameters

NewDiscussionPostRequest
NameDescriptionTypeAdditional information
Subject

Subject of the Discussion Post.

string

Required

Max length: 255

Body

Body of the Discussion Post.

string

Required

DiscussionKey

Unique Key of the Discussion to Post to.

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "Subject": "sample string 1",
  "Body": "sample string 2",
  "DiscussionKey": "0f8d006c-cd0c-4276-ae55-612d676f8f7d"
}

application/xml, text/xml

Sample:
<NewDiscussionPostRequest 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>
  <DiscussionKey>0f8d006c-cd0c-4276-ae55-612d676f8f7d</DiscussionKey>
  <Subject>sample string 1</Subject>
</NewDiscussionPostRequest>

Response Information

Resource Description

True or False to indicate success.

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>