GET api/v2.0/Question/GetAnswers?afterAnswerKey={afterAnswerKey}&beforeAnswerKey={beforeAnswerKey}&limit={limit}

Returns a specified number of answers using the afterAnswerKey or beforeAnswerKey as a starting point. If both keys are put in the request, the afterAnswerKey will take precedence.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
afterAnswerKey

The answerKey to use as a starting point, returning the next set of answers after this answer. This answer will not be included in the response.

globally unique identifier

None.

beforeAnswerKey

The answerKey to use as a starting point, returning answers before this answer. This answer will not be included in the response.

globally unique identifier

None.

limit

The number of answers 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, returning the best answer first if one exists, then least recent to most recent. The afterAnswerKey will provide answers created after the answer specified. The beforeAnswerKey will provide answers created before the answer specified. The only time the order will not be based on date is when there is a best answer in the thread.

PaginatedAnswers
NameDescriptionTypeAdditional information
Answers

The set of answers specified in this particular paginated set

Collection of Answer

None.

HasMoreAnswers

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

boolean

None.

Next

Specifies a relative path to select the next set of paginated items based on the current set.

string

None.

Previous

Specifies a relative path to select the previous set of paginated items based on the current set.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Answers": [
    {
      "AnswerKey": "f4c0d19b-0a11-449a-8bda-ada9585ad30b",
      "ParentKey": "7e7a6fe6-b008-4ae8-8df7-2651f1786b67",
      "IsBestAnswer": true,
      "BestAnswerOn": "2021-05-14T00:28:05.3991174Z",
      "Content": "sample string 5",
      "PublishedOn": "2021-05-14T00:28:05.3991174Z",
      "Community": null,
      "Author": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
        "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-05-14T00:28:05.3991174Z",
        "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
        "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-05-14T00:28:05.3991174Z"
      },
      "Attachments": [
        {
          "DocumentAttachmentKey": "58b2d594-fe32-4c32-9fed-862f1987a052",
          "DocumentKey": "e66507d2-e0c8-4c40-8a11-34ae3e9637f7",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
            "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-05-14T00:28:05.3991174Z",
            "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
            "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-05-14T00:28:05.3991174Z"
          },
          "CreatedOn": "2021-05-14T00:28:05.3991174Z",
          "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": "58b2d594-fe32-4c32-9fed-862f1987a052",
          "DocumentKey": "e66507d2-e0c8-4c40-8a11-34ae3e9637f7",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
            "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-05-14T00:28:05.3991174Z",
            "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
            "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-05-14T00:28:05.3991174Z"
          },
          "CreatedOn": "2021-05-14T00:28:05.3991174Z",
          "FileExtension": "sample string 5",
          "FileSizeInBytes": 1,
          "Width": 1,
          "Height": 1,
          "DurationSeconds": 1,
          "DownloadUrl": "sample string 6",
          "IconUrl": "sample string 7",
          "Status": "sample string 8"
        }
      ],
      "IsAnonymous": true,
      "Creator": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
        "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-05-14T00:28:05.3991174Z",
        "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
        "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-05-14T00:28:05.3991174Z"
      },
      "EditedOn": "2021-05-14T00:28:05.3991174Z",
      "EditedBy": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
        "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-05-14T00:28:05.3991174Z",
        "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
        "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-05-14T00:28:05.3991174Z"
      },
      "IsModerated": true,
      "RecommendationCount": 10,
      "HasRecommended": true,
      "Tags": [
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        },
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        }
      ],
      "UserPermissions": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "AnswerKey": "f4c0d19b-0a11-449a-8bda-ada9585ad30b",
      "ParentKey": "7e7a6fe6-b008-4ae8-8df7-2651f1786b67",
      "IsBestAnswer": true,
      "BestAnswerOn": "2021-05-14T00:28:05.3991174Z",
      "Content": "sample string 5",
      "PublishedOn": "2021-05-14T00:28:05.3991174Z",
      "Community": null,
      "Author": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
        "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-05-14T00:28:05.3991174Z",
        "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
        "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-05-14T00:28:05.3991174Z"
      },
      "Attachments": [
        {
          "DocumentAttachmentKey": "58b2d594-fe32-4c32-9fed-862f1987a052",
          "DocumentKey": "e66507d2-e0c8-4c40-8a11-34ae3e9637f7",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
            "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-05-14T00:28:05.3991174Z",
            "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
            "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-05-14T00:28:05.3991174Z"
          },
          "CreatedOn": "2021-05-14T00:28:05.3991174Z",
          "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": "58b2d594-fe32-4c32-9fed-862f1987a052",
          "DocumentKey": "e66507d2-e0c8-4c40-8a11-34ae3e9637f7",
          "FileName": "sample string 3",
          "UploadedByContact": {
            "LinkToProfile": "sample string 1",
            "PictureUrl": "sample string 2",
            "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
            "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-05-14T00:28:05.3991174Z",
            "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
            "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-05-14T00:28:05.3991174Z"
          },
          "CreatedOn": "2021-05-14T00:28:05.3991174Z",
          "FileExtension": "sample string 5",
          "FileSizeInBytes": 1,
          "Width": 1,
          "Height": 1,
          "DurationSeconds": 1,
          "DownloadUrl": "sample string 6",
          "IconUrl": "sample string 7",
          "Status": "sample string 8"
        }
      ],
      "IsAnonymous": true,
      "Creator": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
        "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-05-14T00:28:05.3991174Z",
        "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
        "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-05-14T00:28:05.3991174Z"
      },
      "EditedOn": "2021-05-14T00:28:05.3991174Z",
      "EditedBy": {
        "LinkToProfile": "sample string 1",
        "PictureUrl": "sample string 2",
        "ContactKey": "b4576c95-5b97-4977-b96e-ddc33d255a60",
        "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-05-14T00:28:05.3991174Z",
        "UpdatedByContactKey": "87d60b8c-98e7-4e86-875f-7fa5b0217b93",
        "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-05-14T00:28:05.3991174Z"
      },
      "IsModerated": true,
      "RecommendationCount": 10,
      "HasRecommended": true,
      "Tags": [
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        },
        {
          "Tag": "sample string 1",
          "TagType": "sample string 2"
        }
      ],
      "UserPermissions": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "HasMoreAnswers": true,
  "Next": "sample string 2",
  "Previous": "sample string 3"
}

application/xml, text/xml

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