session.close_session
Note
This document has been machine translated.
Terminates the session.
Parameters
- token:
string-- session token.
Return Values
True is returned. The return value is always true, even if the specified session token does not exist or the session has already been terminated.
Execution example
Request Data
{
"id": 1,
"jsonrpc": "2.0",
"method": "session.close_session",
"params": {
"token": "00890640-ec03-4663-82ce-456ea993807d"
}
}
Request Execution
curl -H "Content-type: application/json" \
-H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
-H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
-X POST -d "@request.json" \
https://localhost/api/v2/session/jsonrpc
Response
{
"result": true,
"id": 1,
"jsonrpc": "2.0"
}