MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=savedrafts
(main | savedrafts)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: Drafts
- License: GPL-2.0-or-later
Save a draft.
Specific parameters:
Other general parameters are available.
- id
- The ID of the draft. 
- Type: integer
- drafttoken
- Draft token. 
- This parameter is required.
- title
- Draft title. 
- This parameter is required.
- section
- Index of the section of the page being edited. 
- starttime
- The start time of the draft. 
- This parameter is required.
- edittime
- The edit time of the draft. 
- This parameter is required.
- scrolltop
- The scrollTop of the text box. 
- This parameter is required.
- Type: integer
- text
- Draft text. 
- This parameter is required.
- summary
- Draft summary. 
- minoredit
- Boolean representing whether the draft is a minor edit. 
- This parameter is required.
- Type: boolean (details)
- token
- A "csrf" token retrieved from action=query&meta=tokens 
- This parameter is required.