updateRoutingProfileName method
Updates the name and description of a routing profile. The request accepts
the following data in JSON format. At least Name or
Description must be provided.
May throw DuplicateResourceException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter instanceId :
The identifier of the Connect Customer instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter routingProfileId :
The identifier of the routing profile.
Parameter description :
The description of the routing profile. Must not be more than 250
characters.
Parameter name :
The name of the routing profile. Must not be more than 127 characters.
Implementation
Future<void> updateRoutingProfileName({
required String instanceId,
required String routingProfileId,
String? description,
String? name,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/routing-profiles/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(routingProfileId)}/name',
exceptionFnMap: _exceptionFns,
);
}