MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=updateprimarydomain

(main | updateprimarydomain)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: unknown
  • License: unknown

Update the primary domain of a wiki

Specific parameters:
Other general parameters are available.
wiki_id

Id of the wiki to update the primary domain

This parameter is required.
Type: integer
domain

The new domain. Can contain a language path

This parameter is required.
reason

The reason for the change (used in logs)

token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.