MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=wbcheckconstraints
(main | wbcheckconstraints)
- This module requires read rights.
- Source: WikibaseQualityConstraints
- License: GPL-2.0+
Performs constraint checks on any entity you want and returns the result.
Parameters:
- id
ID list of the entities to get the data from. Separate values with '|' or alternative.
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- claimid
GUID list identifying a claim to check a constraint report. Separate values with '|'.
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- constraintid
Optional filter to return only the constraints that have the specified constraint ID
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
Examples:
- Check all constraints on the items Q5 and Q42.
- api.php?action=wbcheckconstraints&id=Q5|Q42 [open in sandbox]
- Check all constraints on a single statement.
- api.php?action=wbcheckconstraints&claimid=q42%248419C20C-8EF8-4EC0-80D6-AF1CA55E7557 [open in sandbox]
- Check one particular constraint on the item Q2.
- api.php?action=wbcheckconstraints&format=json&id=Q2&constraintid=P1082%24DA39C2DA-47DA-48FB-8A9A-DA80200FB2DB [open in sandbox]