POST api/v2.0/Question/Edit
Edit an existing question
Request Information
URI Parameters
None.
Body Parameters
The question to edit
EditQuestionRequestName | Description | Type | Additional information |
---|---|---|---|
ContributedContentKey |
The unique identifier of the existing question |
globally unique identifier |
Required |
Title |
The new subject/title of the question |
string |
Required |
Content |
The new body/description of the question |
string |
Required |
TopicTagKeys |
If the existing question is being asked in a topic community, then pass one or more valid Topic tags to apply to the question. These will overwrite the existing tags. You can get the set of valid tag keys from the Community Model TopicTagGroups property. |
Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
{ "ContributedContentKey": "a099d91e-5345-4459-9462-3e3fb47e5f4e", "Title": "sample string 2", "Content": "sample string 3", "TopicTagKeys": [ "45bd9da0-e8a1-4c0b-b550-728042f93916", "0999e9b2-4686-47ab-9c98-b5b36de619eb" ] }
application/xml, text/xml
<EditQuestionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request"> <_x003C_Content_x003E_k__BackingField>sample string 3</_x003C_Content_x003E_k__BackingField> <_x003C_ContributedContentKey_x003E_k__BackingField>a099d91e-5345-4459-9462-3e3fb47e5f4e</_x003C_ContributedContentKey_x003E_k__BackingField> <_x003C_Title_x003E_k__BackingField>sample string 2</_x003C_Title_x003E_k__BackingField> <_x003C_TopicTagKeys_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>45bd9da0-e8a1-4c0b-b550-728042f93916</d2p1:guid> <d2p1:guid>0999e9b2-4686-47ab-9c98-b5b36de619eb</d2p1:guid> </_x003C_TopicTagKeys_x003E_k__BackingField> </EditQuestionRequest>
Response Information
Resource Description
The edited question
QuestionName | Description | Type | Additional information |
---|---|---|---|
QuestionKey |
Unique identifier of the question |
globally unique identifier |
None. |
Title |
Plaintext Title of the question |
string |
None. |
HasBestAnswer |
True if a best answer has been designated for this question. False if no best answer has been designated for this question. |
boolean |
None. |
HasReplied |
True if the current user has created an answer to the question. |
boolean |
None. |
BestAnswerOn |
DateTime in UTC when best answer for this question was designated. Omitted when no best answer has been designated. |
date |
None. |
IsThreadClosed |
True if thread is closed and any subsequent answers submitted are rejected. False if thread is available to receive answers. |
boolean |
None. |
ThreadClosedOn |
DateTime in UTC when thread was closed to any further submitted answers. Omitted when thread is open. |
date |
None. |
ThreadClosedBy |
DateTime in UTC when this thread was closed to any further submitted answers. Omitted when thread is open. |
ContactConcise |
None. |
IsFollowing |
Indicates whether the current user is following the question thread. |
boolean |
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
{ "QuestionKey": "b0221699-21f2-4880-9f8b-3f69187efdcf", "Title": "sample string 2", "HasBestAnswer": true, "HasReplied": true, "BestAnswerOn": "2024-11-02T18:33:47.8975003Z", "IsThreadClosed": true, "ThreadClosedOn": "2024-11-02T18:33:47.8975003Z", "ThreadClosedBy": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "a5e68e3e-4288-4a40-9166-72aebc7fad78", "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-11-02T18:33:47.8975003Z", "UpdatedByContactKey": "a01a1452-235a-4f72-aae8-20a1e7232e72", "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-11-02T18:33:47.8975003Z" }, "IsFollowing": true, "Content": "sample string 9", "PublishedOn": "2024-11-02T18:33:47.8975003Z", "Community": null, "Author": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "a5e68e3e-4288-4a40-9166-72aebc7fad78", "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-11-02T18:33:47.8975003Z", "UpdatedByContactKey": "a01a1452-235a-4f72-aae8-20a1e7232e72", "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-11-02T18:33:47.8975003Z" }, "Attachments": [ { "DocumentAttachmentKey": "9bca2708-daa3-4f08-8fd3-5e01b40196b9", "DocumentKey": "dcc3e033-1780-41fd-8515-8c748d0dc24e", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "a5e68e3e-4288-4a40-9166-72aebc7fad78", "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-11-02T18:33:47.8975003Z", "UpdatedByContactKey": "a01a1452-235a-4f72-aae8-20a1e7232e72", "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-11-02T18:33:47.8975003Z" }, "CreatedOn": "2024-11-02T18:33:47.8975003Z", "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": "9bca2708-daa3-4f08-8fd3-5e01b40196b9", "DocumentKey": "dcc3e033-1780-41fd-8515-8c748d0dc24e", "FileName": "sample string 3", "UploadedByContact": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "a5e68e3e-4288-4a40-9166-72aebc7fad78", "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-11-02T18:33:47.8975003Z", "UpdatedByContactKey": "a01a1452-235a-4f72-aae8-20a1e7232e72", "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-11-02T18:33:47.8975003Z" }, "CreatedOn": "2024-11-02T18:33:47.8975003Z", "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": "a5e68e3e-4288-4a40-9166-72aebc7fad78", "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-11-02T18:33:47.8975003Z", "UpdatedByContactKey": "a01a1452-235a-4f72-aae8-20a1e7232e72", "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-11-02T18:33:47.8975003Z" }, "EditedOn": "2024-11-02T18:33:47.8975003Z", "EditedBy": { "LinkToProfile": "sample string 1", "PictureUrl": "sample string 2", "ContactKey": "a5e68e3e-4288-4a40-9166-72aebc7fad78", "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-11-02T18:33:47.8975003Z", "UpdatedByContactKey": "a01a1452-235a-4f72-aae8-20a1e7232e72", "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-11-02T18:33:47.8975003Z" }, "IsModerated": true, "RecommendationCount": 14, "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.