deleteApiKey #
Available since 7.1.0
Available since Kuzzle 2.1.0
Deletes a user's API key.
Future<void> deleteApiKey(
String userId, String id, {bool? waitForRefresh})
Property | Type | Description |
---|---|---|
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');
Edit this page on Github(opens new window)