Skip to content

Commit 2080e08

Browse files
author
AWS
committed
Amazon Connect Cases Update: You can now use the UpdateRelatedItem API to update the content of comments and custom related items associated with a case.
1 parent 578b4df commit 2080e08

2 files changed

Lines changed: 166 additions & 8 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Connect Cases",
4+
"contributor": "",
5+
"description": "You can now use the UpdateRelatedItem API to update the content of comments and custom related items associated with a case."
6+
}

services/connectcases/src/main/resources/codegen-resources/service-2.json

Lines changed: 160 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,25 @@
810810
"documentation":"<p>Updates the attributes of an existing layout.</p> <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p> <p>A <code>ValidationException</code> is returned when you add non-existent <code>fieldIds</code> to a layout.</p> <note> <p>Title and Status fields cannot be part of layouts because they are not configurable.</p> </note>",
811811
"idempotent":true
812812
},
813+
"UpdateRelatedItem":{
814+
"name":"UpdateRelatedItem",
815+
"http":{
816+
"method":"PUT",
817+
"requestUri":"/domains/{domainId}/cases/{caseId}/related-items/{relatedItemId}",
818+
"responseCode":200
819+
},
820+
"input":{"shape":"UpdateRelatedItemRequest"},
821+
"output":{"shape":"UpdateRelatedItemResponse"},
822+
"errors":[
823+
{"shape":"InternalServerException"},
824+
{"shape":"ResourceNotFoundException"},
825+
{"shape":"ValidationException"},
826+
{"shape":"ThrottlingException"},
827+
{"shape":"AccessDeniedException"}
828+
],
829+
"documentation":"<p>Updates the content of a related item associated with a case. The following related item types are supported:</p> <ul> <li> <p> <b>Comment</b> - Update the text content of an existing comment</p> </li> <li> <p> <b>Custom</b> - 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 <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#cases-quotas\">Amazon Connect Cases quotas</a>.</p> </li> </ul> <p> <b>Important things to know</b> </p> <ul> <li> <p>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.</p> </li> <li> <p>If you provide a value for <code>performedBy.userArn</code> you must also have <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html\">DescribeUser</a> permission on the ARN of the user that you provide.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html#system-case-fields\">System case fields</a> cannot be used in a custom related item.</p> </li> </ul> <p> <b>Endpoints</b>: See <a href=\"https://docs.aws.amazon.com/general/latest/gr/connect_region.html\">Amazon Connect endpoints and quotas</a>.</p>",
830+
"idempotent":true
831+
},
813832
"UpdateTemplate":{
814833
"name":"UpdateTemplate",
815834
"http":{
@@ -870,7 +889,7 @@
870889
},
871890
"type":{
872891
"shape":"AuditEventType",
873-
"documentation":"<p>The Type of an audit history event.</p>"
892+
"documentation":"<p>The type of audit history event.</p> <p>Valid Values: <code>Case.Created</code> | <code>Case.Updated</code> | <code>RelatedItem.Created</code> | <code>RelatedItem.Updated</code> | <code>RelatedItem.Deleted</code> </p>"
874893
},
875894
"relatedItemType":{
876895
"shape":"RelatedItemType",
@@ -924,7 +943,8 @@
924943
},
925944
"AuditEventFieldList":{
926945
"type":"list",
927-
"member":{"shape":"AuditEventField"}
946+
"member":{"shape":"AuditEventField"},
947+
"sparse":true
928948
},
929949
"AuditEventFieldValueUnion":{
930950
"type":"structure",
@@ -977,7 +997,9 @@
977997
"enum":[
978998
"Case.Created",
979999
"Case.Updated",
980-
"RelatedItem.Created"
1000+
"RelatedItem.Created",
1001+
"RelatedItem.Deleted",
1002+
"RelatedItem.Updated"
9811003
]
9821004
},
9831005
"BasicLayout":{
@@ -1438,6 +1460,24 @@
14381460
"members":{},
14391461
"documentation":"<p>A filter for related items of type <code>Comment</code>.</p>"
14401462
},
1463+
"CommentUpdateContent":{
1464+
"type":"structure",
1465+
"required":[
1466+
"body",
1467+
"contentType"
1468+
],
1469+
"members":{
1470+
"body":{
1471+
"shape":"CommentBody",
1472+
"documentation":"<p>Updated text in the body of a <code>Comment</code> on a case.</p>"
1473+
},
1474+
"contentType":{
1475+
"shape":"CommentBodyTextType",
1476+
"documentation":"<p>Type of the text in the box of a <code>Comment</code> on a case.</p>"
1477+
}
1478+
},
1479+
"documentation":"<p>Represents the updated content of a <code>Comment</code> related item.</p>"
1480+
},
14411481
"CompoundCondition":{
14421482
"type":"structure",
14431483
"required":["conditions"],
@@ -1979,6 +2019,23 @@
19792019
"max":50,
19802020
"min":1
19812021
},
2022+
"CustomUpdateContent":{
2023+
"type":"structure",
2024+
"required":["fields"],
2025+
"members":{
2026+
"fields":{
2027+
"shape":"CustomUpdateContentFieldsList",
2028+
"documentation":"<p>List of updated field values for the <code>Custom</code> related item. All existing and new fields, and their associated values should be included. Fields not included as part of this request will be removed.</p>"
2029+
}
2030+
},
2031+
"documentation":"<p>Represents the updated content of a <code>Custom</code> related item.</p>"
2032+
},
2033+
"CustomUpdateContentFieldsList":{
2034+
"type":"list",
2035+
"member":{"shape":"FieldValue"},
2036+
"max":50,
2037+
"min":1
2038+
},
19822039
"DeleteCaseRequest":{
19832040
"type":"structure",
19842041
"required":[
@@ -2650,7 +2707,8 @@
26502707
"type":"list",
26512708
"member":{"shape":"AuditEvent"},
26522709
"max":25,
2653-
"min":0
2710+
"min":0,
2711+
"sparse":true
26542712
},
26552713
"GetCaseEventConfigurationRequest":{
26562714
"type":"structure",
@@ -3756,6 +3814,15 @@
37563814
"documentation":"<p>The list of types of related items and their parameters to use for filtering.</p>",
37573815
"union":true
37583816
},
3817+
"RelatedItemUpdateContent":{
3818+
"type":"structure",
3819+
"members":{
3820+
"comment":{"shape":"CommentUpdateContent"},
3821+
"custom":{"shape":"CustomUpdateContent"}
3822+
},
3823+
"documentation":"<p>Represents the content of a related item to be updated. This is a union type that can contain either comment content or custom content.</p>",
3824+
"union":true
3825+
},
37593826
"RequiredCaseRule":{
37603827
"type":"structure",
37613828
"required":[
@@ -3923,7 +3990,8 @@
39233990
"type":"list",
39243991
"member":{"shape":"SearchAllRelatedItemsResponseItem"},
39253992
"max":25,
3926-
"min":0
3993+
"min":0,
3994+
"sparse":true
39273995
},
39283996
"SearchAllRelatedItemsSort":{
39293997
"type":"structure",
@@ -4031,7 +4099,8 @@
40314099
"type":"list",
40324100
"member":{"shape":"SearchCasesResponseItem"},
40334101
"max":100,
4034-
"min":0
4102+
"min":0,
4103+
"sparse":true
40354104
},
40364105
"SearchCasesResponseItem":{
40374106
"type":"structure",
@@ -4165,7 +4234,8 @@
41654234
"type":"list",
41664235
"member":{"shape":"SearchRelatedItemsResponseItem"},
41674236
"max":25,
4168-
"min":0
4237+
"min":0,
4238+
"sparse":true
41694239
},
41704240
"SearchTagKey":{
41714241
"type":"string",
@@ -4464,7 +4534,8 @@
44644534
"Tags":{
44654535
"type":"map",
44664536
"key":{"shape":"String"},
4467-
"value":{"shape":"String"}
4537+
"value":{"shape":"String"},
4538+
"sparse":true
44684539
},
44694540
"TargetSlaMinutes":{
44704541
"type":"long",
@@ -4753,6 +4824,87 @@
47534824
"type":"structure",
47544825
"members":{}
47554826
},
4827+
"UpdateRelatedItemRequest":{
4828+
"type":"structure",
4829+
"required":[
4830+
"domainId",
4831+
"caseId",
4832+
"relatedItemId",
4833+
"content"
4834+
],
4835+
"members":{
4836+
"domainId":{
4837+
"shape":"DomainId",
4838+
"documentation":"<p>The unique identifier of the Cases domain. </p>",
4839+
"location":"uri",
4840+
"locationName":"domainId"
4841+
},
4842+
"caseId":{
4843+
"shape":"CaseId",
4844+
"documentation":"<p>A unique identifier of the case.</p>",
4845+
"location":"uri",
4846+
"locationName":"caseId"
4847+
},
4848+
"relatedItemId":{
4849+
"shape":"RelatedItemId",
4850+
"documentation":"<p>Unique identifier of a related item.</p>",
4851+
"location":"uri",
4852+
"locationName":"relatedItemId"
4853+
},
4854+
"content":{
4855+
"shape":"RelatedItemUpdateContent",
4856+
"documentation":"<p>The content of a related item to be updated.</p>"
4857+
},
4858+
"performedBy":{
4859+
"shape":"UserUnion",
4860+
"documentation":"<p>Represents the user who performed the update of the related item.</p>"
4861+
}
4862+
}
4863+
},
4864+
"UpdateRelatedItemResponse":{
4865+
"type":"structure",
4866+
"required":[
4867+
"relatedItemId",
4868+
"relatedItemArn",
4869+
"type",
4870+
"content",
4871+
"associationTime"
4872+
],
4873+
"members":{
4874+
"relatedItemId":{
4875+
"shape":"RelatedItemId",
4876+
"documentation":"<p>The unique identifier of the updated related item.</p>"
4877+
},
4878+
"relatedItemArn":{
4879+
"shape":"RelatedItemArn",
4880+
"documentation":"<p>The Amazon Resource Name (ARN) of the updated related item.</p>"
4881+
},
4882+
"type":{
4883+
"shape":"RelatedItemType",
4884+
"documentation":"<p>Type of the updated related item.</p>"
4885+
},
4886+
"content":{
4887+
"shape":"RelatedItemContent",
4888+
"documentation":"<p>Represents the content of the updated related item.</p>"
4889+
},
4890+
"associationTime":{
4891+
"shape":"AssociationTime",
4892+
"documentation":"<p>Time at which the related item was associated with the case.</p>"
4893+
},
4894+
"tags":{
4895+
"shape":"Tags",
4896+
"documentation":"<p>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.</p>"
4897+
},
4898+
"lastUpdatedUser":{
4899+
"shape":"UserUnion",
4900+
"documentation":"<p>Represents the last user that updated the related item.</p>"
4901+
},
4902+
"createdBy":{
4903+
"shape":"UserUnion",
4904+
"documentation":"<p>Represents the creator of the related item.</p>"
4905+
}
4906+
}
4907+
},
47564908
"UpdateTemplateRequest":{
47574909
"type":"structure",
47584910
"required":[

0 commit comments

Comments
 (0)