POST api/v2.0/Question/Answer
Submit a new answer
Request Information
URI Parameters
None.
Body Parameters
New answer to submit
NewAnswerRequest| Name | 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": "ff250974-8938-4c7f-8899-db4c252a0a51",
"ContainerKey": "129fe0ef-ef7b-4770-b8bf-ee6f5b246cf0",
"DocumentKey": "e88acb68-e8ab-4b62-a4e6-a6b5be2f8e53",
"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>129fe0ef-ef7b-4770-b8bf-ee6f5b246cf0</_x003C_ContainerKey_x003E_k__BackingField> <_x003C_Content_x003E_k__BackingField>sample string 1</_x003C_Content_x003E_k__BackingField> <_x003C_DocumentKey_x003E_k__BackingField>e88acb68-e8ab-4b62-a4e6-a6b5be2f8e53</_x003C_DocumentKey_x003E_k__BackingField> <_x003C_IsAnonymous_x003E_k__BackingField>true</_x003C_IsAnonymous_x003E_k__BackingField> <_x003C_ParentKey_x003E_k__BackingField>ff250974-8938-4c7f-8899-db4c252a0a51</_x003C_ParentKey_x003E_k__BackingField> </NewAnswerRequest>
Response Information
Resource Description
Submitted answer
Answer| Name | 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 |
Community |
None. |
| Author |
Author to which the item should be attributed |
ContactConcise |
None. |
| Attachments |
Attachments included with this item. |
Collection of DocumentAttachment |
None. |
| IsAnonymous |
True if author attribution is to indicate item was submitted anonymously, False if the author attribution indicates who authored the item. Omitted when item is attributed to its author. |
boolean |
None. |
| Creator |
When item is posted anonymously, indicates the actual author of the item. Omitted when item is attributed to its author. |
ContactConcise |
None. |
| EditedOn |
DateTime in UTC when the item was last edited. Omitted if item has not been edited. |
date |
None. |
| EditedBy |
Indicates contact that last edited this item. Omitted if item has not been edited. |
ContactConcise |
None. |
| IsModerated |
Indicates whether the item is currently moderated. Omitted when the item is not in moderation. |
boolean |
None. |
| RecommendationCount |
Number of contacts who have recommended this item. |
integer |
None. |
| HasRecommended |
If the current contact has recommended this item |
boolean |
None. |
| Tags |
All of the tags indexed for the item. This includes user tags and admin based tags. |
Collection of ItemTagResponse |
None. |
| UserPermissions |
Permissions for actions the current user can take on the item. |
Collection of string |
None. |
Response Formats
application/json, text/json
{
"AnswerKey": "acd58c6b-d34b-4b19-827a-eb420f2a8eea",
"ParentKey": "5840e229-04e7-4314-a70a-28762f53c4e2",
"IsBestAnswer": true,
"BestAnswerOn": "2025-11-14T19:32:35.2283319Z",
"Content": "sample string 5",
"PublishedOn": "2025-11-14T19:32:35.2283319Z",
"Community": null,
"Author": {
"LinkToProfile": "sample string 1",
"PictureUrl": "sample string 2",
"ContactKey": "1c1e291c-ebf9-4d69-9f41-e1ce2703c5d9",
"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": "2025-11-14T19:32:35.2283319Z",
"UpdatedByContactKey": "c451f139-46e5-4d1c-89b7-e89d2f655080",
"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": "2025-11-14T19:32:35.2283319Z"
},
"Attachments": [
{
"DocumentAttachmentKey": "5350048f-faf6-4638-aa32-09135e6ed769",
"DocumentKey": "866723e9-b5b1-4ddb-92fa-6deac25c52f3",
"FileName": "sample string 3",
"UploadedByContact": {
"LinkToProfile": "sample string 1",
"PictureUrl": "sample string 2",
"ContactKey": "1c1e291c-ebf9-4d69-9f41-e1ce2703c5d9",
"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": "2025-11-14T19:32:35.2283319Z",
"UpdatedByContactKey": "c451f139-46e5-4d1c-89b7-e89d2f655080",
"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": "2025-11-14T19:32:35.2283319Z"
},
"CreatedOn": "2025-11-14T19:32:35.2283319Z",
"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": "5350048f-faf6-4638-aa32-09135e6ed769",
"DocumentKey": "866723e9-b5b1-4ddb-92fa-6deac25c52f3",
"FileName": "sample string 3",
"UploadedByContact": {
"LinkToProfile": "sample string 1",
"PictureUrl": "sample string 2",
"ContactKey": "1c1e291c-ebf9-4d69-9f41-e1ce2703c5d9",
"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": "2025-11-14T19:32:35.2283319Z",
"UpdatedByContactKey": "c451f139-46e5-4d1c-89b7-e89d2f655080",
"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": "2025-11-14T19:32:35.2283319Z"
},
"CreatedOn": "2025-11-14T19:32:35.2283319Z",
"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": "1c1e291c-ebf9-4d69-9f41-e1ce2703c5d9",
"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": "2025-11-14T19:32:35.2283319Z",
"UpdatedByContactKey": "c451f139-46e5-4d1c-89b7-e89d2f655080",
"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": "2025-11-14T19:32:35.2283319Z"
},
"EditedOn": "2025-11-14T19:32:35.2283319Z",
"EditedBy": {
"LinkToProfile": "sample string 1",
"PictureUrl": "sample string 2",
"ContactKey": "1c1e291c-ebf9-4d69-9f41-e1ce2703c5d9",
"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": "2025-11-14T19:32:35.2283319Z",
"UpdatedByContactKey": "c451f139-46e5-4d1c-89b7-e89d2f655080",
"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": "2025-11-14T19:32:35.2283319Z"
},
"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.