Connect / Client / update_contact_task_template
update_contact_task_template¶
- Connect.Client.update_contact_task_template(**kwargs)¶
Updates the task template association on an existing task contact. You can update the task template on a contact before assignment to support tasks that are created without a template (for example Rules or disconnect flows) or change the agent interaction form to represent the latest task data (for example an initial request that was submitted as a refund gets updated to an account cancellation and requires a new template).
This operation can only be used with task contacts that are in progress and not connected to an agent. A task template can be updated a maximum of 5 times per contact.
The task’s references must be compatible with the fields of the target task template. If the target template has a required field, the task must have a corresponding reference with a matching name and compatible type. The following task template field types map to reference types:
TEXT,TEXT_AREA,BOOLEAN, andSINGLE_SELECTmap to references of typeSTRING.NUMBERmaps to references of typeNUMBER.DATE_TIMEmaps to references of typeDATE.URLmaps to references of typeURL.EMAILmaps to references of typeEMAIL.
References corresponding to
TEXTfields must be fewer than 512 characters.TEXT_AREAfields must be fewer than 4,096 characters.BOOLEANfields must have a value oftrueorfalse.An
InvalidRequestExceptionoccurs whenUpdateContactTaskTemplateis called on a connected or terminated task, when it is called on non-task contacts, and when the task contact already uses the provided task template. APropertyValidationExceptionoccurs when the task’s references conflict with the task template’s fields, for example if the task is missing a reference that matches a required field, or if the task has a reference that matches a required field’s name but not its datatype.See also: AWS API Documentation
Request Syntax
response = client.update_contact_task_template( InstanceId='string', TaskTemplateId='string', ContactId='string' )
- Parameters:
InstanceId (string) –
[REQUIRED]
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
TaskTemplateId (string) –
[REQUIRED]
A unique identifier for the task template. For more information about task templates, see Task templates in the Connect Customer Administrator Guide.
ContactId (string) –
[REQUIRED]
The identifier of the contact in this instance of Connect Customer.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
Connect.Client.exceptions.AccessDeniedExceptionConnect.Client.exceptions.InvalidRequestExceptionConnect.Client.exceptions.ServiceQuotaExceededExceptionConnect.Client.exceptions.PropertyValidationExceptionConnect.Client.exceptions.ResourceNotFoundExceptionConnect.Client.exceptions.InternalServiceExceptionConnect.Client.exceptions.LimitExceededException