NOTE: The deprecated "batch" value from the response is still being used by callers and should be included in the new implementation
Create a REST handler and any other necessary associated code (extension.json entry, helper classes, etc.) for the POST lists/batch endpoint.
- endpoint implemented
- tests created
- tests pass
Endpoint summary:
Create multiple new lists for the current user
Endpoint description:
See POST /lists/.
Stability: unstable
Associated RESTBase code
lists.yaml (spec+forwarding)
lists.js (tests)
Associated Action API code
ApiReadingListsCreate
ApiReadingListsCreateTest
Parameters:
name | source | required | type | example | default | possible values | description |
csrf_token | query | yes | string | f63c343876da566045e6b59c4532450559c828d3+\\ | N/A | N/A | The CRSF edit token provided by the MediaWiki API |
Request Body:
list_write, array of max 500
Error Response
#/components/schemas/problem per API.md and draft-nottingham-http-problem
Success Response
value | type | description |
batch | array | Deprecated, will be removed. Use the full list objects instead. |
lists | array: list_read | |
Response Headers
This endpoints has additional response headers specified in the RESTBase code:
headers: content-type: application/json; charset=utf-8