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
command=create
(main | readinglists | create)
- This module is internal or unstable. Its operation may change without notice.
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: ReadingLists
- License: GPL-2.0-or-later
Create a new list for the current user.
The user must have fewer than 100 (non-deleted) lists.
Specific parameters:
Other general parameters are available.
- name
List name. Required unless using batch creation.
- Cannot be longer than 255 bytes.
- description
List description.
- Cannot be longer than 767 bytes.
- batch
Batch data for creating multiple lists in a single request, in the form of a JSON array with one or more objects with name and (optionally) description fields.
Examples:
- Create a new reading list.
- api.php?action=readinglists&command=create&name=dogs&description=Woof!&token=123ABC [open in sandbox]
- Create multiple new lists.
- api.php?action=readinglists&command=create&batch=%5B%7B%22name%22%3A%22dogs%22%2C%22description%22%3A%22Woof%21%22%7D%2C%7B%22name%22%3A%22cats%22%2C%22description%22%3A%22Meow%22%7D%5D&token=123ABC [open in sandbox]