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

*******************************
update_user_hierarchy_structure
*******************************



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

  

  Updates the user hierarchy structure: add, remove, and rename user hierarchy levels.

  

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


  **Request Syntax**
  ::

    response = client.update_user_hierarchy_structure(
        HierarchyStructure={
            'LevelOne': {
                'Name': 'string'
            },
            'LevelTwo': {
                'Name': 'string'
            },
            'LevelThree': {
                'Name': 'string'
            },
            'LevelFour': {
                'Name': 'string'
            },
            'LevelFive': {
                'Name': 'string'
            }
        },
        InstanceId='string'
    )
    
  :type HierarchyStructure: dict
  :param HierarchyStructure: **[REQUIRED]** 

    The hierarchy levels to update.

    

  
    - **LevelOne** *(dict) --* 

      The update for level one.

      

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

        The name of the user hierarchy level. Must not be more than 50 characters.

        

      
    
    - **LevelTwo** *(dict) --* 

      The update for level two.

      

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

        The name of the user hierarchy level. Must not be more than 50 characters.

        

      
    
    - **LevelThree** *(dict) --* 

      The update for level three.

      

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

        The name of the user hierarchy level. Must not be more than 50 characters.

        

      
    
    - **LevelFour** *(dict) --* 

      The update for level four.

      

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

        The name of the user hierarchy level. Must not be more than 50 characters.

        

      
    
    - **LevelFive** *(dict) --* 

      The update for level five.

      

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

        The name of the user hierarchy level. Must not be more than 50 characters.

        

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

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

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

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

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

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

  