MediaWiki API súgó
Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.
Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
command=update
(main | readinglists | update)
- Ez a modul belső használatú vagy nem stabil. A működése értesítés nélkül változhat.
- Ez a modul olvasási jogot igényel.
- Ez a modul írási jogot igényel.
- Ez a modul csak POST kéréseket fogad el.
- Forrás: ReadingLists
- Licenc: GPL-2.0-or-later
Update a list belonging to the current user.
Jellemző paraméterek:
Other general parameters are available.
- list
List ID. Required unless using batch update.
- Típus: egész szám
- name
New list name. Either this or description is required unless doing batch update.
- Nem lehet hosszabb 255 bájtnál.
- description
New list description.
- Nem lehet hosszabb 767 bájtnál.
- batch
Batch data for updating multiple lists in a single request, in the form of a JSON array with one or more objects with list, name and description fields. Name and description are optional but at least one of them must be present.
Példák:
- Change the name of the reading list with ID 42.
- api.php?action=readinglists&command=update&list=42&name=New+name&token=123ABC [megnyitás a homokozóban]
- Update multiple lists.
- api.php?action=readinglists&command=update&batch=%5B%7B%22list%22%3A42%2C%22name%22%3A%22New+name%22%7D%2C%7B%22list%22%3A43%2C%22description%22%3A%22New+description%22%7D%5D&token=123ABC [megnyitás a homokozóban]