MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=edit
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- Licenza: GPL-2.0+
Crea e modifica pagine.
- title
Titolo della pagina da modificare. Non può essere usato insieme con pageid.
- pageid
ID di pagina della pagina da modificare. Non può essere usato insieme con title.
- Type: integer
- section
Section number. 0 for the top section, new for a new section.
- sectiontitle
Il titolo per una nuova sezione.
- text
Contenuto della pagina.
- summary
Oggetto della modifica. Anche titolo della sezione se sezione=new e sectiontitle non è impostato.
- tags
Cambia i tag da applicare alla revisione.
- Values (separate with |):
- minor
Modifica minore.
- Type: boolean (details)
- notminor
Modifica non minore.
- Type: boolean (details)
- bot
Segna questa modifica come bot.
- Type: boolean (details)
- basetimestamp
Timestamp of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions&rvprop=timestamp.
- Type: timestamp (allowed formats)
- starttimestamp
Timestamp when the editing process began, used to detect edit conflicts. An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. when loading the page content to edit).
- Type: timestamp (allowed formats)
- recreate
Override any errors about the page having been deleted in the meantime.
- Type: boolean (details)
- createonly
Non modificare la pagina se già esiste.
- Type: boolean (details)
- nocreate
Genera un errore se la pagina non esiste.
- Type: boolean (details)
- watch
- Deprecato.
Aggiungi la pagina agli Osservati Speciali dell'utente corrente.
- Type: boolean (details)
- unwatch
- Deprecato.
Rimuovi la pagina dagli Osservati Speciali dell'utente corrente.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- One of the following values: watch, unwatch, preferences, nochange
- Predefinito: preferences
- md5
The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.
- prependtext
Add this text to the beginning of the page. Overrides text.
- appendtext
Add this text to the end of the page. Overrides text.
Use section=new to append a new section, rather than this parameter.
- undo
Undo this revision. Overrides text, prependtext and appendtext.
- Type: integer
- undoafter
Undo all revisions from undo to this one. If not set, just undo one revision.
- Type: integer
- redirect
Automatically resolve redirects.
- Type: boolean (details)
- contentformat
Content serialization format used for the input text.
- One of the following values: text/x-wiki, text/javascript, application/json, text/css, text/plain
- contentmodel
Content model of the new content.
- One of the following values: wikitext, javascript, json, css, text
- token
A "csrf" token retrieved from action=query&meta=tokens
The token should always be sent as the last parameter, or at least after the text parameter.
- Questo parametro è obbligatorio.
- captchaword
Answer to the CAPTCHA
- captchaid
CAPTCHA ID from previous request
- Modifica una pagina.
- api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=2007-08-24T12:34:54Z&token=123ABC
- Prepend __NOTOC__ to a page.
- api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=2007-08-24T12:34:54Z&token=123ABC
- Undo revisions 13579 through 13585 with autosummary.
- api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC