batchResetDevicesForUser

Resets multiple devices for a specific user in a Wickr network. This operation forces the selected devices to log out and requires users to re-authenticate, which is useful for security purposes or when devices need to be revoked.

Samples


fun main() { 
   //sampleStart 
   // Successful device reset
val resp = wickrClient.batchResetDevicesForUser {
    networkId = "12345678"
    userId = "12345"
    appIds = listOf<String>(
        "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6",
        "e4246b53edc7548891c27d4da0692fe75f7933884de7c076e36gca030d90bdb7"
    )
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Partial failure device reset
val resp = wickrClient.batchResetDevicesForUser {
    networkId = "12345678"
    userId = "12345"
    appIds = listOf<String>(
        "d3135a42dcb6437780b16c3ca9581fe64e6822773cd6b965d25fc9929c89aca6",
        "invalid-app-id"
    )
} 
   //sampleEnd
}