GET api/v2.0/Discussions/GetRecentThreads?discussionKey={discussionKey}&maxToRetrieve={maxToRetrieve}

Retrieves Discussion Thread details. The Threads are returned in descending order of the Last Approval Date for Posts within each Thread. So, Threads with more recent activity will be returned first in the list.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
discussionKey

Optional. Unique Identifier of a Discussion. If provided, the Thread results will be filtered to only include those that pertain to the specified Discussion.

globally unique identifier

None.

maxToRetrieve

Maximum Discussion Threads to return. Defaults to 5, if not specified.

integer

Default value is 5

Body Parameters

None.

Response Information

Resource Description

Collection of DiscussionThread
NameDescriptionTypeAdditional information
MessageCount

Number of messages in the thread.

integer

None.

DiscussionThreadKey

Unique identifier for the Discussion Thread.

globally unique identifier

None.

Subject

Subject text for the Discussion Thread.

string

None.

LastPostDate

UTC DateTime of the Last Post to this Discussion Thread.

date

None.

LinkToViewThread

URL to the Thread in the Community Site.

string

None.

LastPostAuthor

Contact Detail for the Author of the Last Discussion Post to this Discussion Thread.

ContactConcise

None.

DiscussionKey

UniqueIdentifier of the Discussion to which this Thread belongs.

globally unique identifier

None.

CommunityName

Name of the Community this Discussion Thread belongs to.

string

None.

CommunityKey

Unique Identifier for the Community this Discussion Thread belongs to.

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "MessageCount": 1,
    "DiscussionThreadKey": "4df81abf-9794-405d-a1cd-04a2aedcef45",
    "Subject": "sample string 3",
    "LastPostDate": "2019-05-25T18:52:17.9615079Z",
    "LinkToViewThread": "sample string 5",
    "LastPostAuthor": {
      "LinkToProfile": "sample string 1",
      "PictureUrl": "sample string 2",
      "ContactKey": "5fa0c5af-d743-489f-8eee-79eb8da32dbb",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "DisplayName": "sample string 6",
      "EmailAddress": "sample string 7",
      "ContactStatusCode": "sample string 8",
      "PrefixCode": "sample string 9",
      "UpdatedOn": "2019-05-25T18:52:17.9625091Z",
      "UpdatedByContactKey": "21bc1b9e-543f-41a0-bf54-38f164eb10a2",
      "CompanyName": "sample string 12",
      "CompanyTitle": "sample string 13",
      "SuffixCode": "sample string 14",
      "Designation": "sample string 15",
      "LegacyContactKey": "sample string 16",
      "InformalName": "sample string 17",
      "MiddleName": "sample string 18",
      "IsCompany": true,
      "CompanyLegacyContactKey": "sample string 20",
      "AMSDirectoryOptOut": true,
      "HLDirectoryOptOut": true,
      "HLContactMeOptOut": true,
      "LargePictureUrl": "sample string 24",
      "AgreedToTermsDateTime": "2019-05-25T18:52:17.9625091Z"
    },
    "DiscussionKey": "4303b9fa-f631-49ca-b233-ce8cc863b502",
    "CommunityName": "sample string 7",
    "CommunityKey": "05a8a81e-b88e-4248-9fc3-558e5f0805eb"
  },
  {
    "MessageCount": 1,
    "DiscussionThreadKey": "4df81abf-9794-405d-a1cd-04a2aedcef45",
    "Subject": "sample string 3",
    "LastPostDate": "2019-05-25T18:52:17.9615079Z",
    "LinkToViewThread": "sample string 5",
    "LastPostAuthor": {
      "LinkToProfile": "sample string 1",
      "PictureUrl": "sample string 2",
      "ContactKey": "5fa0c5af-d743-489f-8eee-79eb8da32dbb",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "DisplayName": "sample string 6",
      "EmailAddress": "sample string 7",
      "ContactStatusCode": "sample string 8",
      "PrefixCode": "sample string 9",
      "UpdatedOn": "2019-05-25T18:52:17.9625091Z",
      "UpdatedByContactKey": "21bc1b9e-543f-41a0-bf54-38f164eb10a2",
      "CompanyName": "sample string 12",
      "CompanyTitle": "sample string 13",
      "SuffixCode": "sample string 14",
      "Designation": "sample string 15",
      "LegacyContactKey": "sample string 16",
      "InformalName": "sample string 17",
      "MiddleName": "sample string 18",
      "IsCompany": true,
      "CompanyLegacyContactKey": "sample string 20",
      "AMSDirectoryOptOut": true,
      "HLDirectoryOptOut": true,
      "HLContactMeOptOut": true,
      "LargePictureUrl": "sample string 24",
      "AgreedToTermsDateTime": "2019-05-25T18:52:17.9625091Z"
    },
    "DiscussionKey": "4303b9fa-f631-49ca-b233-ce8cc863b502",
    "CommunityName": "sample string 7",
    "CommunityKey": "05a8a81e-b88e-4248-9fc3-558e5f0805eb"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDiscussionThread xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Discussions">
  <DiscussionThread>
    <CommunityKey>05a8a81e-b88e-4248-9fc3-558e5f0805eb</CommunityKey>
    <DiscussionThreadKey>4df81abf-9794-405d-a1cd-04a2aedcef45</DiscussionThreadKey>
    <LastPostAuthor xmlns:d3p1="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
      <d3p1:AMSDirectoryOptOut>true</d3p1:AMSDirectoryOptOut>
      <d3p1:AgreedToTermsDateTime>2019-05-25T14:52:17.9625091-04:00</d3p1:AgreedToTermsDateTime>
      <d3p1:CompanyLegacyContactKey>sample string 20</d3p1:CompanyLegacyContactKey>
      <d3p1:CompanyName>sample string 12</d3p1:CompanyName>
      <d3p1:CompanyTitle>sample string 13</d3p1:CompanyTitle>
      <d3p1:ContactKey>5fa0c5af-d743-489f-8eee-79eb8da32dbb</d3p1:ContactKey>
      <d3p1:ContactStatusCode>sample string 8</d3p1:ContactStatusCode>
      <d3p1:Designation>sample string 15</d3p1:Designation>
      <d3p1:DisplayName>sample string 6</d3p1:DisplayName>
      <d3p1:EmailAddress>sample string 7</d3p1:EmailAddress>
      <d3p1:FirstName>sample string 4</d3p1:FirstName>
      <d3p1:HLContactMeOptOut>true</d3p1:HLContactMeOptOut>
      <d3p1:HLDirectoryOptOut>true</d3p1:HLDirectoryOptOut>
      <d3p1:InformalName>sample string 17</d3p1:InformalName>
      <d3p1:IsCompany>true</d3p1:IsCompany>
      <d3p1:LargePictureUrl>sample string 24</d3p1:LargePictureUrl>
      <d3p1:LastName>sample string 5</d3p1:LastName>
      <d3p1:LegacyContactKey>sample string 16</d3p1:LegacyContactKey>
      <d3p1:LinkToProfile>sample string 1</d3p1:LinkToProfile>
      <d3p1:MiddleName>sample string 18</d3p1:MiddleName>
      <d3p1:PictureUrl>sample string 2</d3p1:PictureUrl>
      <d3p1:PrefixCode>sample string 9</d3p1:PrefixCode>
      <d3p1:SuffixCode>sample string 14</d3p1:SuffixCode>
      <d3p1:UpdatedByContactKey>21bc1b9e-543f-41a0-bf54-38f164eb10a2</d3p1:UpdatedByContactKey>
      <d3p1:UpdatedOn>2019-05-25T14:52:17.9625091-04:00</d3p1:UpdatedOn>
    </LastPostAuthor>
    <LastPostDate>2019-05-25T14:52:17.9615079-04:00</LastPostDate>
    <LinkToViewThread>sample string 5</LinkToViewThread>
    <MessageCount>1</MessageCount>
    <Subject>sample string 3</Subject>
  </DiscussionThread>
  <DiscussionThread>
    <CommunityKey>05a8a81e-b88e-4248-9fc3-558e5f0805eb</CommunityKey>
    <DiscussionThreadKey>4df81abf-9794-405d-a1cd-04a2aedcef45</DiscussionThreadKey>
    <LastPostAuthor xmlns:d3p1="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
      <d3p1:AMSDirectoryOptOut>true</d3p1:AMSDirectoryOptOut>
      <d3p1:AgreedToTermsDateTime>2019-05-25T14:52:17.9625091-04:00</d3p1:AgreedToTermsDateTime>
      <d3p1:CompanyLegacyContactKey>sample string 20</d3p1:CompanyLegacyContactKey>
      <d3p1:CompanyName>sample string 12</d3p1:CompanyName>
      <d3p1:CompanyTitle>sample string 13</d3p1:CompanyTitle>
      <d3p1:ContactKey>5fa0c5af-d743-489f-8eee-79eb8da32dbb</d3p1:ContactKey>
      <d3p1:ContactStatusCode>sample string 8</d3p1:ContactStatusCode>
      <d3p1:Designation>sample string 15</d3p1:Designation>
      <d3p1:DisplayName>sample string 6</d3p1:DisplayName>
      <d3p1:EmailAddress>sample string 7</d3p1:EmailAddress>
      <d3p1:FirstName>sample string 4</d3p1:FirstName>
      <d3p1:HLContactMeOptOut>true</d3p1:HLContactMeOptOut>
      <d3p1:HLDirectoryOptOut>true</d3p1:HLDirectoryOptOut>
      <d3p1:InformalName>sample string 17</d3p1:InformalName>
      <d3p1:IsCompany>true</d3p1:IsCompany>
      <d3p1:LargePictureUrl>sample string 24</d3p1:LargePictureUrl>
      <d3p1:LastName>sample string 5</d3p1:LastName>
      <d3p1:LegacyContactKey>sample string 16</d3p1:LegacyContactKey>
      <d3p1:LinkToProfile>sample string 1</d3p1:LinkToProfile>
      <d3p1:MiddleName>sample string 18</d3p1:MiddleName>
      <d3p1:PictureUrl>sample string 2</d3p1:PictureUrl>
      <d3p1:PrefixCode>sample string 9</d3p1:PrefixCode>
      <d3p1:SuffixCode>sample string 14</d3p1:SuffixCode>
      <d3p1:UpdatedByContactKey>21bc1b9e-543f-41a0-bf54-38f164eb10a2</d3p1:UpdatedByContactKey>
      <d3p1:UpdatedOn>2019-05-25T14:52:17.9625091-04:00</d3p1:UpdatedOn>
    </LastPostAuthor>
    <LastPostDate>2019-05-25T14:52:17.9615079-04:00</LastPostDate>
    <LinkToViewThread>sample string 5</LinkToViewThread>
    <MessageCount>1</MessageCount>
    <Subject>sample string 3</Subject>
  </DiscussionThread>
</ArrayOfDiscussionThread>