You can use this API request to update a previously posted question.
/services/v2/question/[questionId].json
You can use the following parameters in your update a question request:
Body: you can use any field of the body parameter.
Other options: wrap.
Permissions & Notes:
If the question is not your own, you must have the Edit any question permission under Other Standard Roles in the Advanced Editor.
- If the question is your own, you must have the Edit own question permission under Standard Roles in the Advanced Editor.
You can specify the data describing the question you are posting in the body of the request.
- When you send data in the body of the request, the format should match the URL extension or the value of the site's HTTP request header content-type.
There must be at least one field of the question filled out - an empty request will be unsuccessful.
- If you submit a partial request, only the fields you added will update, and the others will stay the same.
We added this request in version 1.6.3.
Sample Request
A PUT update a question request to update a question (questionId:4) to https://apidocs.cloud.answerhub.com using a human-readable username and password (answerhub/test123) and adding the topics "silly," "help me," and "confused", would look like this:
curl
-u "answerhub:test123"
-H "Accept: application/json"
-H "Content-type: application/json"
-X PUT
-d '{"topics":"silly,help me,confused"}' "https://apidocs.cloud.answerhub.com/services/v2/question/4.json" -v