User:Itskoda/Sandbox/API:Assert
This page is in progress Please check back later for additional changes. |
This page is part of the MediaWiki Action API documentation. |
MediaWiki version: | ≥ 1.23 |
GET Request to check if the user is logged in or not, and if the account has the "bot" user right or not.
Examples
editGET Request
editResponse
edit{
"batchcomplete": ""
}
GET Request
editResponse
edit{
"batchcomplete": ""
}
Possible errors
editCode | Info |
---|---|
assertuserfailed | "assert=user" has been used, but user is not logged in |
assertbotfailed | "assert=bot" has been used, but logged in user is not a bot |
Additional notes
editSee also
edit- Add link to documentation of related modules