|
810 | 810 | "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>", |
811 | 811 | "idempotent":true |
812 | 812 | }, |
| 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 | + }, |
813 | 832 | "UpdateTemplate":{ |
814 | 833 | "name":"UpdateTemplate", |
815 | 834 | "http":{ |
|
870 | 889 | }, |
871 | 890 | "type":{ |
872 | 891 | "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>" |
874 | 893 | }, |
875 | 894 | "relatedItemType":{ |
876 | 895 | "shape":"RelatedItemType", |
|
924 | 943 | }, |
925 | 944 | "AuditEventFieldList":{ |
926 | 945 | "type":"list", |
927 | | - "member":{"shape":"AuditEventField"} |
| 946 | + "member":{"shape":"AuditEventField"}, |
| 947 | + "sparse":true |
928 | 948 | }, |
929 | 949 | "AuditEventFieldValueUnion":{ |
930 | 950 | "type":"structure", |
|
977 | 997 | "enum":[ |
978 | 998 | "Case.Created", |
979 | 999 | "Case.Updated", |
980 | | - "RelatedItem.Created" |
| 1000 | + "RelatedItem.Created", |
| 1001 | + "RelatedItem.Deleted", |
| 1002 | + "RelatedItem.Updated" |
981 | 1003 | ] |
982 | 1004 | }, |
983 | 1005 | "BasicLayout":{ |
|
1438 | 1460 | "members":{}, |
1439 | 1461 | "documentation":"<p>A filter for related items of type <code>Comment</code>.</p>" |
1440 | 1462 | }, |
| 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 | + }, |
1441 | 1481 | "CompoundCondition":{ |
1442 | 1482 | "type":"structure", |
1443 | 1483 | "required":["conditions"], |
|
1979 | 2019 | "max":50, |
1980 | 2020 | "min":1 |
1981 | 2021 | }, |
| 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 | + }, |
1982 | 2039 | "DeleteCaseRequest":{ |
1983 | 2040 | "type":"structure", |
1984 | 2041 | "required":[ |
|
2650 | 2707 | "type":"list", |
2651 | 2708 | "member":{"shape":"AuditEvent"}, |
2652 | 2709 | "max":25, |
2653 | | - "min":0 |
| 2710 | + "min":0, |
| 2711 | + "sparse":true |
2654 | 2712 | }, |
2655 | 2713 | "GetCaseEventConfigurationRequest":{ |
2656 | 2714 | "type":"structure", |
|
3756 | 3814 | "documentation":"<p>The list of types of related items and their parameters to use for filtering.</p>", |
3757 | 3815 | "union":true |
3758 | 3816 | }, |
| 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 | + }, |
3759 | 3826 | "RequiredCaseRule":{ |
3760 | 3827 | "type":"structure", |
3761 | 3828 | "required":[ |
|
3923 | 3990 | "type":"list", |
3924 | 3991 | "member":{"shape":"SearchAllRelatedItemsResponseItem"}, |
3925 | 3992 | "max":25, |
3926 | | - "min":0 |
| 3993 | + "min":0, |
| 3994 | + "sparse":true |
3927 | 3995 | }, |
3928 | 3996 | "SearchAllRelatedItemsSort":{ |
3929 | 3997 | "type":"structure", |
|
4031 | 4099 | "type":"list", |
4032 | 4100 | "member":{"shape":"SearchCasesResponseItem"}, |
4033 | 4101 | "max":100, |
4034 | | - "min":0 |
| 4102 | + "min":0, |
| 4103 | + "sparse":true |
4035 | 4104 | }, |
4036 | 4105 | "SearchCasesResponseItem":{ |
4037 | 4106 | "type":"structure", |
|
4165 | 4234 | "type":"list", |
4166 | 4235 | "member":{"shape":"SearchRelatedItemsResponseItem"}, |
4167 | 4236 | "max":25, |
4168 | | - "min":0 |
| 4237 | + "min":0, |
| 4238 | + "sparse":true |
4169 | 4239 | }, |
4170 | 4240 | "SearchTagKey":{ |
4171 | 4241 | "type":"string", |
|
4464 | 4534 | "Tags":{ |
4465 | 4535 | "type":"map", |
4466 | 4536 | "key":{"shape":"String"}, |
4467 | | - "value":{"shape":"String"} |
| 4537 | + "value":{"shape":"String"}, |
| 4538 | + "sparse":true |
4468 | 4539 | }, |
4469 | 4540 | "TargetSlaMinutes":{ |
4470 | 4541 | "type":"long", |
|
4753 | 4824 | "type":"structure", |
4754 | 4825 | "members":{} |
4755 | 4826 | }, |
| 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 | + }, |
4756 | 4908 | "UpdateTemplateRequest":{ |
4757 | 4909 | "type":"structure", |
4758 | 4910 | "required":[ |
|
0 commit comments