API:ClearHasMsg
From MediaWiki.org
| This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Create and edit pages
- Move pages
- Merge pages
- Rollback
- Delete pages
- Restore deleted revisions
- (Un)protect pages
- (Un)block users
- (Un)watch pages
- Mark revisions of watched pages as visited
- Send email
- Patrol changes
- Import pages
- Change user group membership
- Upload files
- User options
- Tokens
- Page language
- More...
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
| clearhasmsg | ||
|---|---|---|
| Clears the hasmsg flag for the current user. This module cannot be used as a Generator. |
||
| Prefix | ||
| Required rights | none | |
| Post only? | Yes | |
| Generated help | Current | |
| Version added |
|
|
ClearHasMsg[edit]
This action will remove the HasMsg flag, which causes the "You have new messages" banner to appear and returns true in HasMsg query. It can be used by applications that retrieve the talk page using the API, which unlike opening your talk page in a browser, doesn't automatically remove this flag.
When you trigger this action, the banner "You have new messages" will not appear until you receive any more messages from other users.
This module must be POSTed since 1.29.0-wmf.5.[1]
| The following documentation is the output of Special:ApiHelp/clearhasmsg, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org). |
action=clearhasmsg
(main | clearhasmsg)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0+
Clears the hasmsg flag for the current user.
Example:
- Clear the
hasmsgflag for the current user. - api.php?action=clearhasmsg [open in sandbox]
- ↑ CHANGE: action=clearhasmsg will require POST on the mediawiki-api-announce Mailing list