MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=savedrafts

(main | savedrafts)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: Drafts
  • License: unknown

Save a draft.

Parameters:
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.

Type: integer
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.