⧼api-help-title⧽
action=edit
(main | edit)
- ⧼api-help-flag-readrights⧽
- ⧼api-help-flag-writerights⧽
- ⧼api-help-flag-mustbeposted⧽
- ⧼api-help-source⧽
- ⧼api-help-license⧽
- title
- ⧼apihelp-edit-param-title⧽
- pageid
- ⧼apihelp-edit-param-pageid⧽
- Type: integer
- section
- ⧼apihelp-edit-param-section⧽
- sectiontitle
- ⧼apihelp-edit-param-sectiontitle⧽
- text
- ⧼apihelp-edit-param-text⧽
- summary
- ⧼apihelp-edit-param-summary⧽
- tags
- ⧼apihelp-edit-param-tags⧽
- Values (separate with U+007C (pipe), or prefix the list with U+001F and separate with U+001F):
- minor
- ⧼apihelp-edit-param-minor⧽
- Type: boolean
- notminor
- ⧼apihelp-edit-param-notminor⧽
- Type: boolean
- bot
- ⧼apihelp-edit-param-bot⧽
- Type: boolean
- baserevid
- ⧼apihelp-edit-param-baserevid⧽
- Type: integer
- basetimestamp
- ⧼apihelp-edit-param-basetimestamp⧽
- Type: timestamp
- starttimestamp
- ⧼apihelp-edit-param-starttimestamp⧽
- Type: timestamp
- recreate
- ⧼apihelp-edit-param-recreate⧽
- Type: boolean
- createonly
- ⧼apihelp-edit-param-createonly⧽
- Type: boolean
- nocreate
- ⧼apihelp-edit-param-nocreate⧽
- Type: boolean
- watch
- ⧼api-help-param-deprecated⧽
- ⧼apihelp-edit-param-watch⧽
- Type: boolean
- unwatch
- ⧼api-help-param-deprecated⧽
- ⧼apihelp-edit-param-unwatch⧽
- Type: boolean
- watchlist
- ⧼apihelp-edit-param-watchlist⧽
- One of the following values: nochange, preferences, unwatch, watch
- Default: preferences
- md5
- ⧼apihelp-edit-param-md5⧽
- prependtext
- ⧼apihelp-edit-param-prependtext⧽
- appendtext
- ⧼apihelp-edit-param-appendtext⧽
- undo
- ⧼apihelp-edit-param-undo⧽
- Type: integer
- The value must be no less than 0.
- undoafter
- ⧼apihelp-edit-param-undoafter⧽
- Type: integer
- The value must be no less than 0.
- redirect
- ⧼apihelp-edit-param-redirect⧽
- Type: boolean
- contentformat
- ⧼apihelp-edit-param-contentformat⧽
- One of the following values: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
- contentmodel
- ⧼apihelp-edit-param-contentmodel⧽
- One of the following values: css, javascript, json, text, unknown, wikitext
- token
- ⧼api-help-param-token⧽⧼apihelp-edit-param-token⧽
- This parameter is required.
- captchaword
Answer to the CAPTCHA
- captchaid
CAPTCHA ID from previous request
- ⧼apihelp-edit-example-edit⧽
- api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&baserevid=1234567&token=123ABC ⧼api-help-open-in-apisandbox⧽
- ⧼apihelp-edit-example-prepend⧽
- api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=2007-08-24T12:34:54Z&token=123ABC ⧼api-help-open-in-apisandbox⧽
- ⧼apihelp-edit-example-undo⧽
- api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC ⧼api-help-open-in-apisandbox⧽