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)
- Questo modulo è interno o instabile. Il suo funzionamento potrebbe variare senza preavviso.
- Questo modulo richiede i diritti di lettura.
- Questo modulo richiede i diritti di scrittura.
- Questo modulo accetta solo richieste POST.
- Fonte: ReadingLists
- Licenza: GPL-2.0-or-later
Create a new list for the current user.
L'utente deve avere meno di 100 elenchi (non cancellati).
Parametri specifici:
Sono disponibili altri parametri generali.
- 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.
Esempi:
- Create a new reading list.
- api.php?action=readinglists&command=create&name=dogs&description=Woof!&token=123ABC [apri in una 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 [apri in una sandbox]