User:Itskoda/Sandbox/API:Assert
Appearance
![]() | 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
[edit]GET Request
[edit]Response
[edit]{
"batchcomplete": ""
}
GET Request
[edit]Response
[edit]{
"batchcomplete": ""
}
Possible errors
[edit]Code | 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
[edit]See also
[edit]- Add link to documentation of related modules