SDK
SDK Dart v2.x
2

deleteApiKey #

Available since 7.1.0
Available since Kuzzle 2.1.0

Deletes a user's API key.


Future<Null> deleteApiKey(
      String userId, String id, {bool waitForRefresh})

PropertyTypeDescription
userId
String
User kuid
id
String
API key unique ID
refresh
bool

(false)
If set to wait_for, Kuzzle will not respond until the API key is indexed

Usage #

await kuzzle.security.deleteApiKey(
  'john.doe',
  'fQRa28BsidO6V_wmOcL');
print('API key successfully deleted');