GET api/v2.0/Discussions/GetDiscussionPostReplies?afterReplyDiscussionPostKey={afterReplyDiscussionPostKey}&beforeReplyDiscussionPostKey={beforeReplyDiscussionPostKey}&limit={limit}

Returns a specified number of messages using the afterReplyDiscussionPostKey or beforeReplyDiscussionPostKey as a starting point. If both keys are put in the request, the afterReplyDiscussionPostKey will take precedence.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
afterReplyDiscussionPostKey

The replyKey to use as a starting point, returning the next set of messages after this message. This message will not be included in the response.

globally unique identifier

None.

beforeReplyDiscussionPostKey

The replyKey to use as a starting point, returning messages before this message. This message will not be included in the response.

globally unique identifier

None.

limit

The number of messages to return. Default is 10, max is 50.

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

This endpoint will always return in the same order-least recent to most recent. The afterReplyDiscussionPostKey will provide messages created after the message specified. The beforeReplyDiscussionPostKey will provide messages created before the message specified.

PaginatedReplies
NameDescriptionTypeAdditional information
Replies

The set of replies specified in this particular paginated set

Collection of DiscussionPostExtended

None.

HasMore

Whether or not there are more replies that continue on after this paginated set. Depending on the order of items requested, this could mean the next reply was published more or less recently than the last reply in the set

boolean

None.

Next

Specifies a relative path to retrieve the next page of replies based on the current page.

string

None.

Previous

Specifies a relative path to retrieve the previous page of replies based on the current page.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Replies": [
    {
      "BodyWithoutOriginalMessage": "sample string 1",
      "HasReplied": true,
      "ReplyCount": 3,
      "Author": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
        "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": "2021-09-25T12:29:35.1988464Z",
        "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
        "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": "2021-09-25T12:29:35.1988464Z"
      },
      "Body": "sample string 4",
      "BodyWithoutMarkup": "sample string 5",
      "ContactKey": "a6419ffe-5ad5-401d-a13f-631d89d99420",
      "DatePosted": "2021-09-25T12:29:35.1988464Z",
      "LinkToDiscussion": "sample string 8",
      "LinkToMessageInContext": "sample string 9",
      "DiscussionName": "sample string 10",
      "EmailAddress": "sample string 11",
      "LinkToMessage": "sample string 12",
      "DiscussionPostKey": "92512743-d02d-4ca8-97c2-bb130ea08a44",
      "ParentDiscussionPostKey": "fc5b7373-97d6-4e0b-958f-a05dc26a4e23",
      "DiscussionThreadKey": "16c57453-0757-43aa-bdf5-5b7e39047fae",
      "CommunityName": "sample string 16",
      "CommunityKey": "c61b1826-e612-42a3-b19e-9fcfe3ed31dc",
      "DiscussionKey": "f5fb30d0-b0b8-442e-8edf-78de6c6f3df6",
      "MessageStatus": "sample string 19",
      "ModerationType": "sample string 20",
      "DiscussionPostId": 21,
      "Pinned": true,
      "Status": 0,
      "Subject": "sample string 23",
      "Tags": [
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        },
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        }
      ],
      "HasRecommended": true,
      "RecommendationCount": 25,
      "Attachments": [
        {
          "DocumentAttachmentKey": "42adcd2c-8fd5-499d-b9d2-93db36c83718",
          "DocumentKey": "c149c6ab-5912-4d17-9b3d-d2badba179be",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
            "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": "2021-09-25T12:29:35.1988464Z",
            "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
            "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": "2021-09-25T12:29:35.1988464Z"
          },
          "CreatedOn": "2021-09-25T12:29:35.1988464Z",
          "FileExtension": "sample string 5",
          "FileSizeInBytes": 1,
          "Width": 1,
          "Height": 1,
          "DurationSeconds": 1,
          "DownloadUrl": "sample string 6",
          "IconUrl": "sample string 7",
          "Status": "sample string 8"
        },
        {
          "DocumentAttachmentKey": "42adcd2c-8fd5-499d-b9d2-93db36c83718",
          "DocumentKey": "c149c6ab-5912-4d17-9b3d-d2badba179be",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
            "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": "2021-09-25T12:29:35.1988464Z",
            "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
            "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": "2021-09-25T12:29:35.1988464Z"
          },
          "CreatedOn": "2021-09-25T12:29:35.1988464Z",
          "FileExtension": "sample string 5",
          "FileSizeInBytes": 1,
          "Width": 1,
          "Height": 1,
          "DurationSeconds": 1,
          "DownloadUrl": "sample string 6",
          "IconUrl": "sample string 7",
          "Status": "sample string 8"
        }
      ],
      "ContactsWhoRecommend": [
        {
          "LinkToProfile": "sample string 1",
          "PictureUrl": "sample string 2",
          "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
          "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": "2021-09-25T12:29:35.1988464Z",
          "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
          "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": "2021-09-25T12:29:35.1988464Z"
        },
        {
          "LinkToProfile": "sample string 1",
          "PictureUrl": "sample string 2",
          "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
          "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": "2021-09-25T12:29:35.1988464Z",
          "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
          "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": "2021-09-25T12:29:35.1988464Z"
        }
      ],
      "IsAnswer": true,
      "UserPermissions": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "BodyWithoutOriginalMessage": "sample string 1",
      "HasReplied": true,
      "ReplyCount": 3,
      "Author": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
        "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": "2021-09-25T12:29:35.1988464Z",
        "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
        "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": "2021-09-25T12:29:35.1988464Z"
      },
      "Body": "sample string 4",
      "BodyWithoutMarkup": "sample string 5",
      "ContactKey": "a6419ffe-5ad5-401d-a13f-631d89d99420",
      "DatePosted": "2021-09-25T12:29:35.1988464Z",
      "LinkToDiscussion": "sample string 8",
      "LinkToMessageInContext": "sample string 9",
      "DiscussionName": "sample string 10",
      "EmailAddress": "sample string 11",
      "LinkToMessage": "sample string 12",
      "DiscussionPostKey": "92512743-d02d-4ca8-97c2-bb130ea08a44",
      "ParentDiscussionPostKey": "fc5b7373-97d6-4e0b-958f-a05dc26a4e23",
      "DiscussionThreadKey": "16c57453-0757-43aa-bdf5-5b7e39047fae",
      "CommunityName": "sample string 16",
      "CommunityKey": "c61b1826-e612-42a3-b19e-9fcfe3ed31dc",
      "DiscussionKey": "f5fb30d0-b0b8-442e-8edf-78de6c6f3df6",
      "MessageStatus": "sample string 19",
      "ModerationType": "sample string 20",
      "DiscussionPostId": 21,
      "Pinned": true,
      "Status": 0,
      "Subject": "sample string 23",
      "Tags": [
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        },
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        }
      ],
      "HasRecommended": true,
      "RecommendationCount": 25,
      "Attachments": [
        {
          "DocumentAttachmentKey": "42adcd2c-8fd5-499d-b9d2-93db36c83718",
          "DocumentKey": "c149c6ab-5912-4d17-9b3d-d2badba179be",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
            "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": "2021-09-25T12:29:35.1988464Z",
            "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
            "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": "2021-09-25T12:29:35.1988464Z"
          },
          "CreatedOn": "2021-09-25T12:29:35.1988464Z",
          "FileExtension": "sample string 5",
          "FileSizeInBytes": 1,
          "Width": 1,
          "Height": 1,
          "DurationSeconds": 1,
          "DownloadUrl": "sample string 6",
          "IconUrl": "sample string 7",
          "Status": "sample string 8"
        },
        {
          "DocumentAttachmentKey": "42adcd2c-8fd5-499d-b9d2-93db36c83718",
          "DocumentKey": "c149c6ab-5912-4d17-9b3d-d2badba179be",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
            "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": "2021-09-25T12:29:35.1988464Z",
            "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
            "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": "2021-09-25T12:29:35.1988464Z"
          },
          "CreatedOn": "2021-09-25T12:29:35.1988464Z",
          "FileExtension": "sample string 5",
          "FileSizeInBytes": 1,
          "Width": 1,
          "Height": 1,
          "DurationSeconds": 1,
          "DownloadUrl": "sample string 6",
          "IconUrl": "sample string 7",
          "Status": "sample string 8"
        }
      ],
      "ContactsWhoRecommend": [
        {
          "LinkToProfile": "sample string 1",
          "PictureUrl": "sample string 2",
          "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
          "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": "2021-09-25T12:29:35.1988464Z",
          "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
          "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": "2021-09-25T12:29:35.1988464Z"
        },
        {
          "LinkToProfile": "sample string 1",
          "PictureUrl": "sample string 2",
          "ContactKey": "7447e74a-de09-47f2-8c4d-a7bd722e0fcc",
          "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": "2021-09-25T12:29:35.1988464Z",
          "UpdatedByContactKey": "ec1701e0-770b-4de1-9f09-a667394d27f0",
          "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": "2021-09-25T12:29:35.1988464Z"
        }
      ],
      "IsAnswer": true,
      "UserPermissions": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "HasMore": true,
  "Next": "sample string 2",
  "Previous": "sample string 3"
}

application/xml, text/xml

Sample:
<PaginatedReplies xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Discussions" />