:doc:`Connect <../../connect>` / Client / dismiss_user_contact

********************
dismiss_user_contact
********************



.. py:method:: Connect.Client.dismiss_user_contact(**kwargs)

  

  Dismisses contacts from an agent’s CCP and returns the agent to an available state, which allows the agent to receive a new routed contact. Contacts can only be dismissed if they are in a ``MISSED``, ``ERROR``, ``ENDED``, or ``REJECTED`` state in the `Agent Event Stream <https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DismissUserContact>`_  


  **Request Syntax**
  ::

    response = client.dismiss_user_contact(
        UserId='string',
        InstanceId='string',
        ContactId='string'
    )
    
  :type UserId: string
  :param UserId: **[REQUIRED]** 

    The identifier of the user account.

    

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

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

    

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

    The identifier of the contact.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

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

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  