MediaWiki API yardımı

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
  • License: GPL-2.0+

Create a new user account.

Parametre:
name

Kullanıcı adı.

This parameter is required.
Type: user name
password

Parola (ignored if mailpassword is set).

domain

Domain for external authentication (optional).

token

Account creation token obtained in first request.

email

Kullanıcının e-posta adresi (isteğe bağlı).

realname

Kullanıcının gerçek adı (isteğe bağlı).

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).

captchaword

Answer to the CAPTCHA

captchaid

CAPTCHA ID from previous request

Examples:
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