updateUserPhoneConfig method
Updates the phone configuration settings for the specified user.
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 phoneConfig :
Information about phone configuration settings for the user.
Parameter userId :
The identifier of the user account.
Implementation
Future<void> updateUserPhoneConfig({
required String instanceId,
required UserPhoneConfig phoneConfig,
required String userId,
}) async {
final $payload = <String, dynamic>{
'PhoneConfig': phoneConfig,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}/phone-config',
exceptionFnMap: _exceptionFns,
);
}