deletePrivateKeys method
Delete private keys for an organization.
Sign the provided TDeletePrivateKeysBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_private_keys).
See also: stampDeletePrivateKeys.
Implementation
Future<TDeletePrivateKeysResponse> deletePrivateKeys({
required TDeletePrivateKeysBody 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_PRIVATE_KEYS',
);
return await request<Map<String, dynamic>, TDeletePrivateKeysResponse>(
"/public/v1/submit/delete_private_keys",
body,
(json) => TDeletePrivateKeysResponse.fromJson(
transformActivityResponse(json, 'DeletePrivateKeys')));
}