disconnect Device

@DeleteMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + "/" + DEVICES_KEY", headers = [] )
open fun disconnectDevice(@PathVariable(value = "id") userId: String, @RequestHeader(value = "token") token: String, @RequestHeader(value = "device_id") deviceId: String, @RequestBody payload: Map<String, String>): String

Endpoint used to disconnect a device from the current session

Return

the result of the request as String

Parameters

userId

The identifier of the user

token

The token of the user

deviceId

The identifier of the device of the user