Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=editmassmessagelist
(main | editmassmessagelist)
- Mô đun này cần quyền đọc.
- Mô đun này cần quyền ghi.
- Mô đun này chỉ có nhận các yêu cầu POST.
- Source: MassMessage
- License: GPL-2.0-or-later
Edit a mass message delivery list.
Các tham số:
Other general parameters are available.
- spamlist
Title of the delivery list to update.
- This parameter is required.
- description
New description for the delivery list.
- add
Tiêu đề để thêm vào danh sách.
- Phân tách các giá trị bằng |.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- remove
Tên trang cần xóa khỏi danh sách.
- Phân tách các giá trị bằng |.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- minor
Whether the edit should be marked as minor in the history of the list.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.
- Một trong các giá trị: nochange, preferences, unwatch, watch
- Default: preferences
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Các ví dụ:
- Add User talk:Foo and Talk:Bar to the delivery list Example and remove Talk:Baz from it
- api.php?action=editmassmessagelist&spamlist=Example&add=User%20talk%3AFoo%7CTalk%3ABar&remove=Talk%3ABaz&token=TOKEN [open in sandbox]
- Set the description of the delivery list Example to be "FooBar delivery services"
- api.php?action=editmassmessagelist&spamlist=Example&description=FooBor%20delivery%20services&token=TOKEN [open in sandbox]