:doc:`ConnectCases <../../connectcases>` / Client / update_case

***********
update_case
***********



.. py:method:: ConnectCases.Client.update_case(**kwargs)

  

  

  .. note::

    

    If you provide a value for ``PerformedBy.UserArn`` you must also have `connect\:DescribeUser <https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html>`__ permission on the User ARN resource that you provide

    

   

  Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the ``CreateCase`` input .

   

  If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateCase>`_  


  **Request Syntax**
  ::

    response = client.update_case(
        domainId='string',
        caseId='string',
        fields=[
            {
                'id': 'string',
                'value': {
                    'stringValue': 'string',
                    'doubleValue': 123.0,
                    'booleanValue': True|False,
                    'emptyValue': {}
                    ,
                    'userArnValue': 'string'
                }
            },
        ],
        performedBy={
            'userArn': 'string',
            'customEntity': 'string'
        }
    )
    
  :type domainId: string
  :param domainId: **[REQUIRED]** 

    The unique identifier of the Cases domain.

    

  
  :type caseId: string
  :param caseId: **[REQUIRED]** 

    A unique identifier of the case.

    

  
  :type fields: list
  :param fields: **[REQUIRED]** 

    An array of objects with ``fieldId`` (matching ListFields/DescribeField) and value union data, structured identical to ``CreateCase``.

    

  
    - *(dict) --* 

      Object for case field values.

      

    
      - **id** *(string) --* **[REQUIRED]** 

        Unique identifier of a field.

        

      
      - **value** *(dict) --* **[REQUIRED]** 

        Union of potential field value types.

        .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``stringValue``, ``doubleValue``, ``booleanValue``, ``emptyValue``, ``userArnValue``. 

      
        - **stringValue** *(string) --* 

          String value type.

          

        
        - **doubleValue** *(float) --* 

          Can be either null, or have a Double number value type. Only one value can be provided.

          

        
        - **booleanValue** *(boolean) --* 

          Can be either null, or have a Boolean value type. Only one value can be provided.

          

        
        - **emptyValue** *(dict) --* 

          An empty value.

          

        
        
        - **userArnValue** *(string) --* 

          Represents the user that performed the audit.

          

        
      
    

  :type performedBy: dict
  :param performedBy: 

    Represents the entity that performed the action.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``userArn``, ``customEntity``. 

  
    - **userArn** *(string) --* 

      Represents the Amazon Connect ARN of the user.

      

    
    - **customEntity** *(string) --* 

      Any provided entity.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ConnectCases.Client.exceptions.InternalServerException`

  
  *   :py:class:`ConnectCases.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ConnectCases.Client.exceptions.ValidationException`

  
  *   :py:class:`ConnectCases.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ConnectCases.Client.exceptions.AccessDeniedException`

  