string/object user.logout(array)
This method allows to log out of the API and invalidates the current authentication token.
(array)
The method accepts an empty array.
(boolean)
Returns true
if the user has been logged out successfully.
Log out from the API.
Request:
{
"jsonrpc": "2.0",
"method": "user.logout",
"params": [],
"id": 1,
"auth": "16a46baf181ef9602e1687f3110abf8a"
}
Response:
CUser::login() in ui/include/classes/api/services/CUser.php.