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=imagerating
(main | imagerating)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: ImageRating
- License: GPL-2.0-or-later
ImageRating API module -- allows adding categories to a page when given a page ID
Specific parameters:
Other general parameters are available.
- pageId
Internal identifier of the page to edit
- This parameter is required.
- Type: integer
- categories
URL-encoded, comma-separated list (string) of categories to add to the page
- This parameter is required.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Example:
- Adds the categories "Cute cats", "Lolcats" and "Internet memes" to the page that has the internal ID 66.
- api.php?action=imagerating&pageId=66&categories=Cute%20cats,Lolcats,Internet%20memes [open in sandbox]