update_related_item
¶
update_related_item(
domain_id: DomainId,
case_id: CaseId,
related_item_id: RelatedItemId,
content: RelatedItemUpdateContent,
*,
config_overrides: Optional[ConnectCasesClientConfig] = None,
performed_by: Optional[UserUnion] = None,
) -> UpdateRelatedItemResponse
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 Connect Customer Cases quotas.
-
Sla - Update the target duration (
targetSlaMinutes) of an SLA. The new deadline is counted from when the SLA was created. The SLA status is recalculated against the new deadline: an open SLA becomes Active or Overdue, and a completed SLA becomes Met or NotMet.
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.userArn, you 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.
-
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.
-
related_item_id(RelatedItemId) –Unique identifier of a related item.
-
content(RelatedItemUpdateContent) –The content of a related item to be updated.
-
performed_by(Optional[UserUnion], default:None) –Represents the user who performed the update 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.