update_contact
¶
update_contact(
instance_id: InstanceId,
contact_id: ContactId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
name: Optional[Name] = None,
description: Optional[Description] = None,
references: Optional[ContactReferences] = None,
segment_attributes: Optional[SegmentAttributes] = None,
queue_info: Optional[QueueInfoInput] = None,
user_info: Optional[UserInfo] = None,
customer_endpoint: Optional[Endpoint] = None,
system_endpoint: Optional[Endpoint] = None,
additional_recipients: Optional[NullableAdditionalRecipients] = None,
) -> UpdateContactResponse
This API is in preview release for Connect Customer and is subject to change.
Adds or updates user-defined contact information associated with the specified contact. At least one field to be updated must be present in the request.
You can add or update user-defined contact information for both ongoing and completed contacts.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
contact_id(ContactId) –The identifier of the contact. This is the identifier of the contact associated with the first interaction with your contact center.
-
name(Optional[Name], default:None) –The name of the contact.
-
description(Optional[Description], default:None) –The description of the contact.
-
references(Optional[ContactReferences], default:None) –Well-formed data on contact, shown to agents on Contact Control Panel (CCP).
-
segment_attributes(Optional[SegmentAttributes], default:None) –A set of system defined key-value pairs stored on individual contact segments (unique contact ID) using an attribute map. The attributes are standard Connect Customer attributes. They can be accessed in flows.
Attribute keys can include only alphanumeric, -, and _.
This field can be used to show channel subtype, such as
connect:Guide.Contact Expiry, and user-defined attributes (String - String) that are defined in predefined attributes, can be updated by using the UpdateContact API.
-
queue_info(Optional[QueueInfoInput], default:None) –Information about the queue associated with a contact. This parameter can only be updated for external audio contacts. It is used when you integrate third-party systems with Contact Lens for analytics. For more information, see Connect Customer Contact Lens integration in the Connect Customer Administrator Guide.
-
user_info(Optional[UserInfo], default:None) –Information about the agent associated with a contact. This parameter can only be updated for external audio contacts. It is used when you integrate third-party systems with Contact Lens for analytics. For more information, see Connect Customer Contact Lens integration in the Connect Customer Administrator Guide.
-
customer_endpoint(Optional[Endpoint], default:None) –The endpoint of the customer for which the contact was initiated. For external audio contacts, this is usually the end customer's phone number. This value can only be updated for external audio contacts. For more information, see Connect Customer Contact Lens integration in the Connect Customer Administrator Guide. For email contacts with an
OUTBOUNDorAGENT_REPLYinitiation method, this value can be updated while the outbound email is still a draft, before you send it. -
system_endpoint(Optional[Endpoint], default:None) –External system endpoint for the contact was initiated. For external audio contacts, this is the phone number of the external system such as the contact center. This value can only be updated for external audio contacts. For more information, see Connect Customer Contact Lens integration in the Connect Customer Administrator Guide. For email contacts with an
OUTBOUNDorAGENT_REPLYinitiation method, this value can be updated while the outbound email is still a draft, before you send it. -
additional_recipients(Optional[NullableAdditionalRecipients], default:None) –The additional recipients of an outbound email. Use this field to update the CC email address recipients of a contact. An empty list clears the existing CC recipients.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–Operation cannot be performed at this time as there is a conflict with another operation or contact state.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidActiveRegionException–This exception occurs when an API request is made to a non-active region in an Amazon Connect instance configured with Amazon Connect Global Resiliency. For example, if the active region is US West (Oregon) and a request is made to US East (N. Virginia), the exception will be returned.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 | |