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=wbcreateredirect
(main | wbcreateredirect)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: WikibaseClient
- License: GPL-2.0-or-later
Creates Entity redirects.
Parameters:
- from
Entity ID to make a redirect
- This parameter is required.
- to
Entity ID to point the redirect to
- This parameter is required.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
- bot
Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "Bots".
- Type: boolean (details)
Example:
- Turn Q11 into a redirect to Q12
- api.php?action=wbcreateredirect&from=Q11&to=Q12 [open in sandbox]