This method allows to log out of the API and invalidates the current authentication token.

    Parameters

    Returns if the user has been logged out successfully.

    Examples

    Logging out

    Request:

    1. "jsonrpc": "2.0",
    2. "result": true,
    3. "id": 1

    Source

    CUser::login() in frontends/php/include/classes/api/services/CUser.php.