Skip to main content

force_logout

Brief Description

  • Force a user to log out from a specific terminal. The client SDK will receive the onKickedOffline callback event.

Request Method

  • POST

Request URL

  • {API_ADDRESS}/auth/force_logout
Header NameExample ValueRequiredTypeDescription
operationID1646445464564RequiredstringUsed for global traceability. It is recommended to use a timestamp, with a unique value for each request.
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameter Example

{
"platformID": 2,
"userID": "4950983283"
}
Field NameRequiredTypeDescription
platformIDRequiredintUser login terminal type, with values ranging from 1-9.
userIDRequiredstringUser ID

Success Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

Success Response Parameter Description

Parameter NameTypeDescription
errCodeintError code, 0 indicates success
errMsgstringBrief error message, empty if successful
errDltstringDetailed error message, empty if successful

Failure Response Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Failure Response Parameter Description

Parameter NameTypeDescription
errCodeintError code, see the global error code document for details
errMsgstringBrief error message
errDltstringDetailed error message