deleteApiKeys method
Remove api keys from a user.
Sign the provided TDeleteApiKeysBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_api_keys).
See also: stampDeleteApiKeys.
Implementation
Future<TDeleteApiKeysResponse> deleteApiKeys({
required TDeleteApiKeysBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_DELETE_API_KEYS',
);
return await request<Map<String, dynamic>, TDeleteApiKeysResponse>(
"/public/v1/submit/delete_api_keys",
body,
(json) => TDeleteApiKeysResponse.fromJson(
transformActivityResponse(json, 'DeleteApiKeys')));
}