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,
) -> 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.
-
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.
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
25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 25277 25278 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 | |