Ajuda API da MediaWiki

This is an auto-generated MediaWiki API documentation page.

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

action=createaccount

(main | createaccount)
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • Licença: GPL-2.0+

Criar uma nova conta de usuário.

Parâmetros:
name

Nome de usuário.

Este parâmetro é obrigatório.
Type: user name
password

Senha (ignorada se mailpassword está definida).

domain

Domínio para autenticação externa (opcional).

token

Account creation token obtained in first request.

email

Endereço de email para o usuário (opcional).

realname

Nome real do usuário (opcional).

mailpassword

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

Type: boolean (details)
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).

Exemplos:
Create user testuser with password 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