We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.
Essential cookies are necessary to provide our site and services and cannot be deactivated. They are usually set in response to your actions on the site, such as setting your privacy preferences, signing in, or filling in forms.
Performance cookies provide anonymous statistics about how customers navigate our site so we can improve site experience and performance. Approved third parties may perform analytics on our behalf, but they cannot use the data for their own purposes.
Functional cookies help us provide useful site features, remember your preferences, and display relevant content. Approved third parties may set these cookies to provide certain site features. If you do not allow these cookies, then some or all of these services may not function properly.
Advertising cookies may be set through our site by us or our advertising partners and help us deliver relevant marketing content. If you do not allow these cookies, you will experience less relevant advertising.
Blocking some types of cookies may impact your experience of our sites. You may review and change your choices at any time by clicking Cookie preferences in the footer of this site. We and selected third-parties use cookies or similar technologies as specified in the AWS Cookie Notice.
create_related_item
(**kwargs)¶Creates a related item (comments, tasks, and contacts) and associates it with a case.
Note
A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn
). All Related Items have their own internal identifier, the relatedItemArn
. Examples of related items include comments
and contacts
.
See also: AWS API Documentation
Request Syntax
response = client.create_related_item(
caseId='string',
content={
'comment': {
'body': 'string',
'contentType': 'Text/Plain'
},
'contact': {
'contactArn': 'string'
}
},
domainId='string',
type='Contact'|'Comment'
)
[REQUIRED]
A unique identifier of the case.
[REQUIRED]
The content of a related item to be created.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: comment
, contact
.
Represents the content of a comment to be returned to agents.
Text in the body of a Comment
on a case.
Type of the text in the box of a Comment
on a case.
Object representing a contact in Amazon Connect as an API request field.
A unique identifier of a contact in Amazon Connect.
[REQUIRED]
The unique identifier of the Cases domain.
[REQUIRED]
The type of a related item.
dict
Response Syntax
{
'relatedItemArn': 'string',
'relatedItemId': 'string'
}
Response Structure
(dict) --
relatedItemArn (string) --
The Amazon Resource Name (ARN) of the related item.
relatedItemId (string) --
The unique identifier of the related item.
Exceptions
ConnectCases.Client.exceptions.InternalServerException
ConnectCases.Client.exceptions.ResourceNotFoundException
ConnectCases.Client.exceptions.ValidationException
ConnectCases.Client.exceptions.ThrottlingException
ConnectCases.Client.exceptions.AccessDeniedException
ConnectCases.Client.exceptions.ServiceQuotaExceededException