MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=createaccount

(main | createaccount)
  • Este módulo requiere permisos de escritura.
  • Este módulo solo acepta solicitudes POST.

Crear una nueva cuenta de usuario.

Parámetros:
name

Nombre de usuario.

Este parámetro es obligatorio.
password

Password (ignored if mailpassword is set).

domain

Domain for external authentication (optional).

token

Account creation token obtained in first request.

email

Dirección de correo electrónico del usuario (opcional).

realname

Nombre verdadero del usuario (opcional).

mailpassword

If set to any value, a random password will be emailed to the user.

reason

Optional reason for creating the account to be put in the logs.

language

Language code to set as default for the user (optional, defaults to content language).

Ejemplos:
Crear usuario testuser con la contraseña test123.
api.php?action=createaccount&name=testuser&password=test123
Create user testmailuser and email a randomly-generated password.
api.php?action=createaccount&name=testmailuser&mailpassword=true&reason=MyReason