MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API [archive]

action=newslettermanage

(main | newslettermanage)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: Newsletter
  • License: GPL-2.0

Manage a newsletter.

Parameters:
id

ID of the newsletter to manage.

This parameter is required.
Type: integer
do

Action to do. Should be either addpublisher or removepublisher.

This parameter is required.
One of the following values: addpublisher, removepublisher
publisher

User ID of the publisher to manage.

This parameter is required.
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Examples:
Add a publisher with a user ID of 3 to newsletter with ID 1.
api.php?action=newslettermanage&id=1&do=addpublisher&publisher=3 [open in sandbox]
Remove publisher with a user ID of 5 from newsletter with ID 2.
api.php?action=newslettermanage&id=2&do=removepublisher&publisher=5 [open in sandbox]