User:Awah Nadege/Return values for action=edit API

Overview
This page documents the response values and structures of API:Edit.

Response
The response can fall under three groups
 * 1) Redirect
 * 2) Edit
 * 3) Extension

Redirect
If the page to be edited is a redirect page, the title of the page is resolved to its target. A redirect page can therefore return the following results:
 * : Source page title.
 * : Target page title.

Edit
This gives information about the edit done on the page. The following can be returned:
 * See for details on how boleans function.
 * It is set to true when.
 * It is set to true when.
 * It is set to true when.
 * It is set to true when.
 * It is set to true when.
 * It is set to true when.
 * It is set to true when.

Extension
When action=edit API is used with Extension:ConfirmEdit, a captcha may be triggered for new edits. As a result, the return data could contain a  node. The values below depend on the captcha module used.
 * The last value could be a question, a math problem, or a url to an image.
 * The last value could be a question, a math problem, or a url to an image.
 * The last value could be a question, a math problem, or a url to an image.
 * The last value could be a question, a math problem, or a url to an image.