ConnectCases / Client / update_related_item
update_related_item¶
- ConnectCases.Client.update_related_item(**kwargs)¶
Updates the content of a related item associated with a case. The following related item types are supported:
Comment - Update the text content of an existing comment
Custom - Update the fields of a custom related item. You can add, modify, and remove fields from a custom related item. There’s a quota for the number of fields allowed in a Custom type related item. See Amazon Connect Cases quotas.
Important things to know
When updating a Custom related item, all existing and new fields, and their associated values should be included in the request. Fields not included as part of this request will be removed.
If you provide a value for
performedBy.userArnyou must also have DescribeUser permission on the ARN of the user that you provide.System case fields cannot be used in a custom related item.
Endpoints: See Amazon Connect endpoints and quotas.
See also: AWS API Documentation
Request Syntax
response = client.update_related_item( domainId='string', caseId='string', relatedItemId='string', content={ 'comment': { 'body': 'string', 'contentType': 'Text/Plain' }, 'custom': { 'fields': [ { 'id': 'string', 'value': { 'stringValue': 'string', 'doubleValue': 123.0, 'booleanValue': True|False, 'emptyValue': {} , 'userArnValue': 'string' } }, ] } }, performedBy={ 'userArn': 'string', 'customEntity': 'string' } )
- Parameters:
domainId (string) –
[REQUIRED]
The unique identifier of the Cases domain.
caseId (string) –
[REQUIRED]
A unique identifier of the case.
relatedItemId (string) –
[REQUIRED]
Unique identifier of a related item.
content (dict) –
[REQUIRED]
The content of a related item to be updated.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
comment,custom.comment (dict) –
Represents the updated content of a
Commentrelated item.body (string) – [REQUIRED]
Updated text in the body of a
Commenton a case.contentType (string) – [REQUIRED]
Type of the text in the box of a
Commenton a case.
custom (dict) –
Represents the updated content of a
Customrelated item.fields (list) – [REQUIRED]
List of updated field values for the
Customrelated item. All existing and new fields, and their associated values should be included. Fields not included as part of this request will be removed.(dict) –
Object for case field values.
id (string) – [REQUIRED]
Unique identifier of a field.
value (dict) – [REQUIRED]
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
stringValue,doubleValue,booleanValue,emptyValue,userArnValue.stringValue (string) –
String value type.
doubleValue (float) –
Can be either null, or have a Double number value type. Only one value can be provided.
booleanValue (boolean) –
Can be either null, or have a Boolean value type. Only one value can be provided.
emptyValue (dict) –
An empty value.
userArnValue (string) –
Represents the user that performed the audit.
performedBy (dict) –
Represents the user who performed the update of the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
userArn,customEntity.userArn (string) –
Represents the Amazon Connect ARN of the user.
customEntity (string) –
Any provided entity.
- Return type:
dict
- Returns:
Response Syntax
{ 'relatedItemId': 'string', 'relatedItemArn': 'string', 'type': 'Contact'|'Comment'|'File'|'Sla'|'ConnectCase'|'Custom', 'content': { 'contact': { 'contactArn': 'string', 'channel': 'string', 'connectedToSystemTime': datetime(2015, 1, 1) }, 'comment': { 'body': 'string', 'contentType': 'Text/Plain' }, 'file': { 'fileArn': 'string' }, 'sla': { 'slaConfiguration': { 'name': 'string', 'type': 'CaseField', 'status': 'Active'|'Overdue'|'Met'|'NotMet', 'fieldId': 'string', 'targetFieldValues': [ { 'stringValue': 'string', 'doubleValue': 123.0, 'booleanValue': True|False, 'emptyValue': {}, 'userArnValue': 'string' }, ], 'targetTime': datetime(2015, 1, 1), 'completionTime': datetime(2015, 1, 1) } }, 'connectCase': { 'caseId': 'string' }, 'custom': { 'fields': [ { 'id': 'string', 'value': { 'stringValue': 'string', 'doubleValue': 123.0, 'booleanValue': True|False, 'emptyValue': {}, 'userArnValue': 'string' } }, ] } }, 'associationTime': datetime(2015, 1, 1), 'tags': { 'string': 'string' }, 'lastUpdatedUser': { 'userArn': 'string', 'customEntity': 'string' }, 'createdBy': { 'userArn': 'string', 'customEntity': 'string' } }
Response Structure
(dict) –
relatedItemId (string) –
The unique identifier of the updated related item.
relatedItemArn (string) –
The Amazon Resource Name (ARN) of the updated related item.
type (string) –
Type of the updated related item.
content (dict) –
Represents the content of the updated related item.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
contact,comment,file,sla,connectCase,custom. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
contact (dict) –
Represents the content of a contact to be returned to agents.
contactArn (string) –
A unique identifier of a contact in Amazon Connect.
channel (string) –
A list of channels to filter on for related items of type
Contact.connectedToSystemTime (datetime) –
The difference between the
InitiationTimestampand theDisconnectTimestampof the contact.
comment (dict) –
Represents the content of a comment to be returned to agents.
body (string) –
Text in the body of a
Commenton a case.contentType (string) –
Type of the text in the box of a
Commenton a case.
file (dict) –
Represents the content of a File to be returned to agents.
fileArn (string) –
The Amazon Resource Name (ARN) of a File in Amazon Connect.
sla (dict) –
Represents the content of an SLA to be returned to agents.
slaConfiguration (dict) –
Represents an SLA configuration.
name (string) –
Name of an SLA.
type (string) –
Type of SLA.
status (string) –
Status of an SLA.
fieldId (string) –
Unique identifier of a field.
targetFieldValues (list) –
Represents a list of target field values for the fieldId specified in SlaConfiguration.
(dict) –
Object to store union of Field values.
Note
The
Summarysystem field accepts up to 3000 characters, while all other fields accept up to 4100 characters. If you use multi-byte characters, the effective character limit may be lower.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
stringValue,doubleValue,booleanValue,emptyValue,userArnValue. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
stringValue (string) –
String value type.
doubleValue (float) –
Can be either null, or have a Double number value type. Only one value can be provided.
booleanValue (boolean) –
Can be either null, or have a Boolean value type. Only one value can be provided.
emptyValue (dict) –
An empty value.
userArnValue (string) –
Represents the user that performed the audit.
targetTime (datetime) –
Target time by which an SLA should be completed.
completionTime (datetime) –
Time at which an SLA was completed.
connectCase (dict) –
Represents the Amazon Connect case to be created as a related item.
caseId (string) –
A unique identifier of the case.
custom (dict) –
Represents the content of a
Customtype related item.fields (list) –
List of field values for the
Customrelated item.(dict) –
Object for case field values.
id (string) –
Unique identifier of a field.
value (dict) –
Union of potential field value types.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
stringValue,doubleValue,booleanValue,emptyValue,userArnValue. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
stringValue (string) –
String value type.
doubleValue (float) –
Can be either null, or have a Double number value type. Only one value can be provided.
booleanValue (boolean) –
Can be either null, or have a Boolean value type. Only one value can be provided.
emptyValue (dict) –
An empty value.
userArnValue (string) –
Represents the user that performed the audit.
associationTime (datetime) –
Time at which the related item was associated with the case.
tags (dict) –
A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
(string) –
(string) –
lastUpdatedUser (dict) –
Represents the last user that updated the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
userArn,customEntity. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
userArn (string) –
Represents the Amazon Connect ARN of the user.
customEntity (string) –
Any provided entity.
createdBy (dict) –
Represents the creator of the related item.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
userArn,customEntity. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
userArn (string) –
Represents the Amazon Connect ARN of the user.
customEntity (string) –
Any provided entity.
Exceptions