deleteProfileKey method
Removes a searchable key from a customer profile.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter domainName :
The unique name of the domain.
Parameter keyName :
A searchable identifier of a customer profile.
Parameter profileId :
The unique identifier of a customer profile.
Parameter values :
A list of key values.
Implementation
Future<DeleteProfileKeyResponse> deleteProfileKey({
required String domainName,
required String keyName,
required String profileId,
required List<String> values,
}) async {
final $payload = <String, dynamic>{
'KeyName': keyName,
'ProfileId': profileId,
'Values': values,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/domains/${Uri.encodeComponent(domainName)}/profiles/keys/delete',
exceptionFnMap: _exceptionFns,
);
return DeleteProfileKeyResponse.fromJson(response);
}