API:Changing wiki content/scn

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page API:Changing wiki content and the translation is 6% complete.

Other languages:
български • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎română • ‎русский • ‎sicilianu • ‎سنڌي • ‎中文
Tools clipart.png This page is part of the MediaWiki action API documentation.

MediaWiki action API

v · d · e

Changing wiki content through the API is enabled by default as of MediaWiki 1.14; it can be disabled by setting $wgEnableWriteAPI = false;Manual:$wgEnableWriteAPI in LocalSettings.php. In MediaWiki 1.13 and earlier, you have to explicitly enable the write API with $wgEnableWriteAPI = true;

Please see the appropriate subsection for detailed information for each module. Write modules generally require a POST method, where read modules usually use GET methods. Exceptions are noted on individual pages.

Read Modules Write Modules
Changeauthenticationdata Modificare i dati di autenticazione per l'utente corrente.
ChecktokenAPI:Checktoken Verifica la validità di un token da action=query&meta=tokens.
ClientloginAPI:Login Accedi al wiki utilizzando il flusso interattivo.
CompareAPI:Compare Get the difference between 2 pages.
ExpandtemplatesAPI:Expandtemplates Espande tutti i template all'interno del wikitesto.
FeedcontributionsAPI:Feedcontributions ⧼apihelp-feedcontributions-description⧽
FeedrecentchangesAPI:Feedrecentchanges ⧼apihelp-feedrecentchanges-description⧽
FeedwatchlistAPI:Feedwatchlist ⧼apihelp-feedwatchlist-description⧽
HelpAPI:Help Mostra la guida per i moduli specificati.
Linkaccount Collegamento di un'utenza di un provider di terze parti all'utente corrente.
LoginAPI:Login Log in and get authentication cookies.
LogoutAPI:Logout Esci e cancella i dati della sessione.
OpensearchAPI:Opensearch ⧼apihelp-opensearch-description⧽
ParaminfoAPI:Paraminfo Ottieni informazioni sui moduli API.
ParseAPI:Parse Parses content and returns parser output.
QueryAPI:Query Fetch data from and about MediaWiki.
Removeauthenticationdata Rimuove i dati di autenticazione per l'utente corrente.
RsdAPI:Rsd ⧼apihelp-rsd-description⧽
StasheditAPI:Stashedit Prepare an edit in shared cache.
TokensAPI:Tokens Get tokens for data-modifying actions.
Unlinkaccount Rimuove un'utenza di terze parti collegata all'utente corrente.
BlockAPI:Block Block a user.
ClearhasmsgAPI:Clearhasmsg Clears the hasmsg flag for the current user.
CreateaccountAPI:Createaccount Create a new user account.
DeleteAPI:Delete Delete a page.
EditAPI:Edit Create and edit pages.
EmailuserAPI:Email Email a user.
FilerevertAPI:Filerevert Revert a file to an old version.
ImagerotateAPI:Imagerotate Rotate one or more images.
ImportAPI:Import Import a page from another wiki, or from an XML file.
ManagetagsAPI:Managetags Perform management tasks relating to change tags.
MergehistoryAPI:Mergehistory Merge page histories.
MoveAPI:Move Move a page.
OptionsAPI:Options Change preferences of the current user.
PatrolAPI:Patrol Patrol a page or revision.
ProtectAPI:Protect Modifica il livello di protezione di una pagina.
PurgeAPI:Purge Purge the cache for the given titles.
ResetpasswordAPI:Resetpassword Invia una mail per reimpostare la password di un utente.
RevisiondeleteAPI:Revisiondelete Cancella e ripristina le versioni.
RollbackAPI:Rollback Undo the last series of edits to a page by the last user.
SetnotificationtimestampAPI:Setnotificationtimestamp Update the notification timestamp for watched pages.
TagAPI:Tag ⧼apihelp-tag-description⧽
UnblockAPI:Unblock Sblocca un utente
UndeleteAPI:Undelete Restore revisions of a deleted page.
UploadAPI:Upload Upload a file, or get the status of pending uploads.
UserrightsAPI:User group membership ⧼apihelp-userrights-description⧽
WatchAPI:Watch Aggiunge o rimuove pagine dagli osservati speciali dell'utente attuale.

Erruri pussìbbili

Some wikis restrict the use of these modules to certain groups of users, or disallow it altogether. All aforementioned modules can return the following errors:

Còdici Info
noapiwrite Editing of this wiki through the API is disabled. Make sure the $wgEnableWriteAPI=true; statement is included in the wiki's LocalSettings.php file.
writeapidenied You're not allowed to edit this wiki through the API.