MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=coderevisionupdate
(main | coderevisionupdate)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: CodeReview
- License: GPL-2.0-or-later
Submit comments, new status and tags to a revision.
Parameters:
- repo
Name of repository.
- This parameter is required.
- rev
Revision ID number.
- This parameter is required.
- Type: integer
- The value must be no less than 1.
- comment
Comment to add to the revision.
- status
Status to set the revision to.
- One of the following values: deferred, fixme, new, ok, old, resolved, reverted
- addtags
Tags to be added to the revision.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- removetags
Tags to be removed from the revision.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- addflags
Code Signoff flags to assign to the revision by the current user.
- Values (separate with | or alternative): inspected, tested
- removeflags
Code Signoff flags to strike from the revision by the current user.
- Values (separate with | or alternative): inspected, tested
- addreferences
Add references to this revision.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- removereferences
Remove references from this revision.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- addreferenced
Add referenced revisions from this revision.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- removereferenced
Remove referenced revisions from this revision.
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Example:
- Set status "fixme" on MediaWiki revision 1
- api.php?action=coderevisionupdate&repo=MediaWiki&rev=1&status=fixme [open in sandbox]