MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

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 primary domain of a wiki

Parameters:
wiki_id

Id of the wiki to update primary domain

This parameter is required.
Type: integer
domain

The new domain. Can contain language path

This parameter is required.
reason

The reason for change (used in logs)

This parameter is required.
token

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

This parameter is required.