Skip to content

StartMergeCasesRequest

Source code in docs_src/capo_connectcases/types/start_merge_cases_request.py
class StartMergeCasesRequest(TypedDict, closed=True):
    domain_id: "capo_connectcases.types.domain_id.DomainId"
    """<p>The unique identifier of the Cases domain. </p>"""
    case_id: "capo_connectcases.types.case_id.CaseId"
    """<p>The unique identifier of the primary case. The primary case remains active and receives the merged field values and related items. The cases can use different templates, and the primary case keeps its template.</p>"""
    secondary_case_ids: "capo_connectcases.types.case_id_list.CaseIdList"
    """<p>The unique identifier of the secondary case to merge into the primary case. The secondary case is closed when the merge finishes. Specify exactly one case ID.</p>"""
    fields_configuration: NotRequired[
        "capo_connectcases.types.fields_configuration_list.FieldsConfigurationList"
    ]
    """<p>The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields: <code>assigned_queue</code>, <code>assigned_user</code>, <code>summary</code>, and <code>case_reason</code>. If you select any other system field, the request fails with a <code>ValidationException</code>.</p> <p>For each field that can be merged, the merge works as follows:</p> <ul> <li> <p>If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.</p> </li> <li> <p>If you don't select the field and the primary case has a value for it, the primary case keeps its value.</p> </li> <li> <p>If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.</p> </li> </ul> <p>Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.</p> <p>Specify at most one entry, and set its <code>sourceCaseId</code> to the secondary case ID.</p>"""
    related_items_configuration: NotRequired[
        "capo_connectcases.types.related_items_configuration.RelatedItemsConfiguration"
    ]
    """<p>The types of related items to move from the secondary case to the primary case. Related items of a type that you don't select, or set to <code>false</code>, stay on the closed secondary case. If you omit this parameter, no related items are moved.</p> <p>File, SLA, and work plan related items are never moved. They stay on the secondary case.</p>"""
    performed_by: NotRequired["capo_connectcases.types.user_union.UserUnion"]
    """<p>The user who performed the merge. If you provide <code>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 that user.</p>"""

case_id instance-attribute

case_id: CaseId

The unique identifier of the primary case. The primary case remains active and receives the merged field values and related items. The cases can use different templates, and the primary case keeps its template.

domain_id instance-attribute

domain_id: DomainId

The unique identifier of the Cases domain.

fields_configuration instance-attribute

fields_configuration: NotRequired[FieldsConfigurationList]

The fields whose values to take from the secondary case. You can only merge custom fields and the following system fields: assigned_queue, assigned_user, summary, and case_reason. If you select any other system field, the request fails with a ValidationException.

For each field that can be merged, the merge works as follows:

  • If you select the field, the primary case gets the secondary case's value. If the secondary case's value is empty, the primary case's value is cleared.

  • If you don't select the field and the primary case has a value for it, the primary case keeps its value.

  • If you don't select the field and the primary case doesn't have the field, or its value is empty, the primary case gets the secondary case's value. This applies even when the field isn't on the primary case's template.

Field values are read from both cases when the merge runs, so changes that you make to the primary case after you start the merge are taken into account.

Specify at most one entry, and set its sourceCaseId to the secondary case ID.

performed_by instance-attribute

performed_by: NotRequired[UserUnion]

The user who performed the merge. If you provide userArn, you must also have DescribeUser permission on the ARN of that user.

related_items_configuration instance-attribute

related_items_configuration: NotRequired[RelatedItemsConfiguration]

The types of related items to move from the secondary case to the primary case. Related items of a type that you don't select, or set to false, stay on the closed secondary case. If you omit this parameter, no related items are moved.

File, SLA, and work plan related items are never moved. They stay on the secondary case.

secondary_case_ids instance-attribute

secondary_case_ids: CaseIdList

The unique identifier of the secondary case to merge into the primary case. The secondary case is closed when the merge finishes. Specify exactly one case ID.