MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
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.
- The value must be no less than 1.
- Type: integer
- comment
Comment to add to the revision.
- status
Status to set the revision to.
- One of the following values: new, fixme, reverted, resolved, ok, deferred, old
- addtags
Tags to be added to the revision.
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- removetags
Tags to be removed from the revision.
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- 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 bots).
- removereferences
Remove references from this revision.
- Type: list of integers
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- addreferenced
Add referenced revisions from this revision.
- Type: list of integers
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- removereferenced
Remove referenced revisions from this revision.
- Type: list of integers
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- 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]