updateConfig method
Updates the Config used when scheduling contacts.
Updating a Config will not update the execution parameters
for existing future contacts scheduled with this Config.
May throw DependencyException.
May throw InvalidParameterException.
May throw ResourceNotFoundException.
Parameter configData :
Parameters of a Config.
Parameter configId :
UUID of a Config.
Parameter configType :
Type of a Config.
Parameter name :
Name of a Config.
Implementation
Future<ConfigIdResponse> updateConfig({
required ConfigTypeData configData,
required String configId,
required ConfigCapabilityType configType,
required String name,
}) async {
final $payload = <String, dynamic>{
'configData': configData,
'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/config/${Uri.encodeComponent(configType.value)}/${Uri.encodeComponent(configId)}',
exceptionFnMap: _exceptionFns,
);
return ConfigIdResponse.fromJson(response);
}