Updates details about a specific task template in the specified Connect Customer instance¶
Description¶
Updates details about a specific task template in the specified Connect Customer instance. This operation does not support partial updates. Instead it does a full update of template content.
Usage¶
connect_update_task_template(TaskTemplateId, InstanceId, Name,
Description, ContactFlowId, SelfAssignFlowId, Constraints, Defaults,
Status, Fields)
Arguments¶
-
TaskTemplateId[required] A unique identifier for the task template.
-
InstanceId[required] The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
NameThe name of the task template.
-
DescriptionThe description of the task template.
-
ContactFlowIdThe identifier of the flow that runs by default when a task is created by referencing this template.
Although this parameter is marked as optional, the request must contain either a
ContactFlowIdor a field of typeQUICK_CONNECT. -
SelfAssignFlowIdThe ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.
-
ConstraintsConstraints that are applicable to the fields listed. Although this parameter is marked as optional in the API model, the service requires it when calling
create_task_templateorupdate_task_template. TheRequiredFieldsarray must contain at least one element, and the field of typeNAMEmust be included inRequiredFields. -
DefaultsThe default values for fields when a task is created by referencing this template.
-
StatusMarks a template as
ACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. If a template is marked asINACTIVE, then a task that refers to this template cannot be created.Although this parameter is marked as optional, the service requires it when calling
update_task_template. -
FieldsFields that are part of the template.
The request must contain exactly one field of type
NAME. This field must also be listed in theRequiredFieldsarray within theConstraintsparameter.
Value¶
A list with the following syntax:
list(
InstanceId = "string",
Id = "string",
Arn = "string",
Name = "string",
Description = "string",
ContactFlowId = "string",
SelfAssignFlowId = "string",
Constraints = list(
RequiredFields = list(
list(
Id = list(
Name = "string"
)
)
),
ReadOnlyFields = list(
list(
Id = list(
Name = "string"
)
)
),
InvisibleFields = list(
list(
Id = list(
Name = "string"
)
)
)
),
Defaults = list(
DefaultFieldValues = list(
list(
Id = list(
Name = "string"
),
DefaultValue = "string"
)
)
),
Fields = list(
list(
Id = list(
Name = "string"
),
Description = "string",
Type = "NAME"|"DESCRIPTION"|"SCHEDULED_TIME"|"QUICK_CONNECT"|"URL"|"NUMBER"|"TEXT"|"TEXT_AREA"|"DATE_TIME"|"BOOLEAN"|"SINGLE_SELECT"|"EMAIL"|"SELF_ASSIGN"|"EXPIRY_DURATION",
SingleSelectOptions = list(
"string"
)
)
),
Status = "ACTIVE"|"INACTIVE",
LastModifiedTime = as.POSIXct(
"2015-01-01"
),
CreatedTime = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$update_task_template(
TaskTemplateId = "string",
InstanceId = "string",
Name = "string",
Description = "string",
ContactFlowId = "string",
SelfAssignFlowId = "string",
Constraints = list(
RequiredFields = list(
list(
Id = list(
Name = "string"
)
)
),
ReadOnlyFields = list(
list(
Id = list(
Name = "string"
)
)
),
InvisibleFields = list(
list(
Id = list(
Name = "string"
)
)
)
),
Defaults = list(
DefaultFieldValues = list(
list(
Id = list(
Name = "string"
),
DefaultValue = "string"
)
)
),
Status = "ACTIVE"|"INACTIVE",
Fields = list(
list(
Id = list(
Name = "string"
),
Description = "string",
Type = "NAME"|"DESCRIPTION"|"SCHEDULED_TIME"|"QUICK_CONNECT"|"URL"|"NUMBER"|"TEXT"|"TEXT_AREA"|"DATE_TIME"|"BOOLEAN"|"SINGLE_SELECT"|"EMAIL"|"SELF_ASSIGN"|"EXPIRY_DURATION",
SingleSelectOptions = list(
"string"
)
)
)
)