- Versions Concepts Resources Extensions Statistics Resources Reference
Solution validation
Solution validation is a feature which, when enabled, automatically marks solutions as expired after a certain validity period has passed. The solution author can specify this validity period, if any.
Any user can request a validation for a question. This will trigger a notification to the author of each expired solution, asking them to update their solution or to confirm that it is still up to date.
The validation request also triggers a new expert search. If there are any new experts who were not notified before, they will receive a notification as well. This can happen for example to users who were not active yet when the question was published or because the user's know-how profile has changed in the meantime.
Any update on the solution validates it. This resets validity period of the updated solution and triggers a notification for all users who follow the question.
Get validation request status
GET /questions/:id/request-validation
Response
{
"last_requested": "2016-06-09T15:34:13.000+02:00"
}
Request validation
PUT /questions/:id/request-validation
Response
{
"last_requested": "2016-06-09T15:34:13.000+02:00"
}
Validate solution
POST /solutions/:id/validate
Validates a solution and makes it valid for the period specified in the request body.
Request
{
"validity": "months_six"
}
Response
The endpoint will fail with the following status codes:
* 404 NOT FOUND
if the solution does not exist.
* 403 FORBIDDEN
if the user is not the solution poser or an administrator.
In case of success, a 200 OK
will be returned with a JSON body with the updated solution (some fields are omitted for clarity):
{
"validity_period": "months_six",
"expires": "2013-12-13T16:42:22.000Z",
[...]
}