create_related_item
¶
create_related_item(
domain_id: DomainId,
case_id: CaseId,
type: RelatedItemType,
content: RelatedItemInputContent,
*,
config_overrides: Optional[ConnectCasesClientConfig] = None,
performed_by: Optional[UserUnion] = None,
) -> CreateRelatedItemResponse
Creates a related item (comments, tasks, and contacts) and associates it with a case.
There's a quota for the number of fields allowed in a Custom type related item. See Connect Customer Cases quotas.
There's a quota for the number of SLAs that can be attached to a case. See Connect Customer Cases quotas.
Use cases
Following are examples of related items that you may want to associate with a case:
-
Related contacts, such as calls, chats, emails tasks
-
Comments, for agent notes
-
SLAs, to capture target resolution goals
-
Cases, to capture related Connect Customer Cases
-
Files, such as policy documentation or customer-provided attachments
-
Custom related items, which provide flexibility for you to define related items that such as bookings, orders, products, notices, and more
Important things to know
-
If you are associating a contact to a case by passing in
Contactfor atype, you must have DescribeContact permission on the ARN of the contact that you provide incontent.contact.contactArn. -
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, therelatedItemArn. Examples of related items includecommentsandcontacts. -
If you provide a value for
performedBy.userArn, you must also have DescribeUser permission on the ARN of the user that you provide. -
If the case is the secondary case of a merge that is running, the request fails with a
ConflictException. For more information, see StartMergeCases.
Endpoints: See Connect Customer endpoints and quotas.
Parameters:
-
domain_id(DomainId) –The unique identifier of the Cases domain.
-
case_id(CaseId) –A unique identifier of the case.
-
type(RelatedItemType) –The type of a related item.
-
content(RelatedItemInputContent) –The content of a related item to be created.
-
performed_by(Optional[UserUnion], default:None) –Represents the creator of the related item.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
InternalServerException–We couldn't process your request because of an issue with the server. Try again later.
-
ResourceNotFoundException–We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.
-
ServiceQuotaExceededException–The service quota has been exceeded. For a list of service quotas, see Connect Customer Service Quotas in the Connect Customer Administrator Guide.
-
ThrottlingException–The rate has been exceeded for this API. Please try again after a few minutes.
-
ValidationException–The request isn't valid. Check the syntax and try again.
-
UnknownServiceError–The service returned an error code this client does not model.