updateContactFlowName method
The name of the flow.
You can also create and update flows using the Connect Customer Flow language.
May throw DuplicateResourceException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter contactFlowId :
The identifier of the flow.
Parameter instanceId :
The identifier of the Connect Customer instance.
Parameter description :
The description of the flow.
Parameter name :
The name of the flow.
Implementation
Future<void> updateContactFlowName({
required String contactFlowId,
required String instanceId,
String? description,
String? name,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/contact-flows/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowId)}/name',
exceptionFnMap: _exceptionFns,
);
}