POST api/v2.0/Question/Answer
Submit a new answer
Request Information
URI Parameters
None.
Body Parameters
New answer to submit
NewAnswerRequestName | Description | Type | Additional information |
---|---|---|---|
Content |
The body/description of the answer |
string |
Required |
ParentKey |
The unique identifier of the question the user is answering |
globally unique identifier |
None. |
ContainerKey |
The communityKey that the answer should be contained in |
globally unique identifier |
None. |
DocumentKey |
The document key of the resource library entry containing files to attach to this answer. This field is optional. |
globally unique identifier |
None. |
IsAnonymous |
Whether or not you want to post the answer as an anonymous user |
boolean |
None. |
Request Formats
application/json, text/json
{ "Content": "sample string 1", "ParentKey": "f4f4be78-6dac-48c6-9238-c3276dbaefe6", "ContainerKey": "963a9faf-3ee4-4ade-b1e3-2866f9f55e8e", "DocumentKey": "accebd67-0b8d-4317-bf1b-e8721b98ef38", "IsAnonymous": true }
application/xml, text/xml
<NewAnswerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request"> <_x003C_ContainerKey_x003E_k__BackingField>963a9faf-3ee4-4ade-b1e3-2866f9f55e8e</_x003C_ContainerKey_x003E_k__BackingField> <_x003C_Content_x003E_k__BackingField>sample string 1</_x003C_Content_x003E_k__BackingField> <_x003C_DocumentKey_x003E_k__BackingField>accebd67-0b8d-4317-bf1b-e8721b98ef38</_x003C_DocumentKey_x003E_k__BackingField> <_x003C_IsAnonymous_x003E_k__BackingField>true</_x003C_IsAnonymous_x003E_k__BackingField> <_x003C_ParentKey_x003E_k__BackingField>f4f4be78-6dac-48c6-9238-c3276dbaefe6</_x003C_ParentKey_x003E_k__BackingField> </NewAnswerRequest>
Response Information
Resource Description
Submitted answer
AnswerName | Description | Type | Additional information |
---|---|---|---|
AnswerKey |
Unique identifier of the answer. |
globally unique identifier |
None. |
ParentKey |
Unique identifier of the answer's parent question. |
globally unique identifier |
None. |
IsBestAnswer |
True if this answer has been designated as best answer for the root question. False if this answer has not been designated as best answer for the root question. |
boolean |
None. |
BestAnswerOn |
DateTime in UTC when this answer had been designated as best answer for the root question. Omitted when this answer has not been designated as best answer. |
date |
None. |
Content |
HTML Body of the item |
string |
None. |
PublishedOn |
DateTime in UTC when the item was published |
date |
None. |
Community |
Community to which the item was published |
None. |
Response Formats
application/json, text/json
{ "AnswerKey": "90bb473f-9751-48d8-8dbc-083c4fa478c8", "ParentKey": "a00b18b4-00b1-4676-8624-280f78b5df49", "IsBestAnswer": true, "BestAnswerOn": "2022-08-12T05:56:21.0227123Z", "Content": "sample string 5", "PublishedOn": "2022-08-12T05:56:21.0227123Z", "Community": null, "Author": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "20d75621-39d0-400a-99f0-bc13b94adb1d", "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": "2022-08-12T05:56:21.0227123Z", "UpdatedByContactKey": "1c55d861-39bb-4668-a8d2-8ca47c559c1b", "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": "2022-08-12T05:56:21.0227123Z" }, "Attachments": [ { "DocumentAttachmentKey": "55796c3b-8016-4be7-8b33-cb26b5ab6dc3", "DocumentKey": "c591e2ad-f665-4dbc-81c6-6290ebb7001b", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "20d75621-39d0-400a-99f0-bc13b94adb1d", "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": "2022-08-12T05:56:21.0227123Z", "UpdatedByContactKey": "1c55d861-39bb-4668-a8d2-8ca47c559c1b", "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": "2022-08-12T05:56:21.0227123Z" }, "CreatedOn": "2022-08-12T05:56:21.0227123Z", "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": "55796c3b-8016-4be7-8b33-cb26b5ab6dc3", "DocumentKey": "c591e2ad-f665-4dbc-81c6-6290ebb7001b", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "20d75621-39d0-400a-99f0-bc13b94adb1d", "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": "2022-08-12T05:56:21.0227123Z", "UpdatedByContactKey": "1c55d861-39bb-4668-a8d2-8ca47c559c1b", "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": "2022-08-12T05:56:21.0227123Z" }, "CreatedOn": "2022-08-12T05:56:21.0227123Z", "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": "20d75621-39d0-400a-99f0-bc13b94adb1d", "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": "2022-08-12T05:56:21.0227123Z", "UpdatedByContactKey": "1c55d861-39bb-4668-a8d2-8ca47c559c1b", "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": "2022-08-12T05:56:21.0227123Z" }, "EditedOn": "2022-08-12T05:56:21.0227123Z", "EditedBy": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "20d75621-39d0-400a-99f0-bc13b94adb1d", "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": "2022-08-12T05:56:21.0227123Z", "UpdatedByContactKey": "1c55d861-39bb-4668-a8d2-8ca47c559c1b", "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": "2022-08-12T05:56:21.0227123Z" }, "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" ] }
application/xml
Sample not available.
text/xml
Sample not available.