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
Name | Description | Type | Additional 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.
PaginatedAnswersName | Description | Type | Additional 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
{ "Answers": [ { "AnswerKey": "fcbe59a1-d150-4fbf-b228-b0267da3779f", "ParentKey": "c191a7e0-21c2-4dac-a370-f40834b54430", "IsBestAnswer": true, "BestAnswerOn": "2024-12-26T13:31:55.7035586Z", "Content": "sample string 5", "PublishedOn": "2024-12-26T13:31:55.7035586Z", "Community": null, "Author": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "Attachments": [ { "DocumentAttachmentKey": "90a5ab17-dadb-498a-9440-de64f64c4734", "DocumentKey": "224d0fc1-27a3-4d9b-a4f2-2948d93d0bc3", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "CreatedOn": "2024-12-26T13:31:55.7035586Z", "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": "90a5ab17-dadb-498a-9440-de64f64c4734", "DocumentKey": "224d0fc1-27a3-4d9b-a4f2-2948d93d0bc3", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "CreatedOn": "2024-12-26T13:31:55.7035586Z", "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": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "EditedOn": "2024-12-26T13:31:55.7035586Z", "EditedBy": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "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": "fcbe59a1-d150-4fbf-b228-b0267da3779f", "ParentKey": "c191a7e0-21c2-4dac-a370-f40834b54430", "IsBestAnswer": true, "BestAnswerOn": "2024-12-26T13:31:55.7035586Z", "Content": "sample string 5", "PublishedOn": "2024-12-26T13:31:55.7035586Z", "Community": null, "Author": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "Attachments": [ { "DocumentAttachmentKey": "90a5ab17-dadb-498a-9440-de64f64c4734", "DocumentKey": "224d0fc1-27a3-4d9b-a4f2-2948d93d0bc3", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "CreatedOn": "2024-12-26T13:31:55.7035586Z", "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": "90a5ab17-dadb-498a-9440-de64f64c4734", "DocumentKey": "224d0fc1-27a3-4d9b-a4f2-2948d93d0bc3", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "CreatedOn": "2024-12-26T13:31:55.7035586Z", "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": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "EditedOn": "2024-12-26T13:31:55.7035586Z", "EditedBy": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "d0af6a27-6ceb-45bd-bc2c-cce639ece4f5", "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": "2024-12-26T13:31:55.7035586Z", "UpdatedByContactKey": "557b4a76-cf20-482f-a644-d33e52f03416", "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": "2024-12-26T13:31:55.7035586Z" }, "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
<PaginatedAnswers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.ContributedContent.QuestionAndAnswer" />