:doc:`QuickSight <../../quicksight>` / Client / create_folder_membership

************************
create_folder_membership
************************



.. py:method:: QuickSight.Client.create_folder_membership(**kwargs)

  

  Adds an asset, such as a dashboard, analysis, or dataset into a folder.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateFolderMembership>`_  


  **Request Syntax**
  ::

    response = client.create_folder_membership(
        AwsAccountId='string',
        FolderId='string',
        MemberId='string',
        MemberType='DASHBOARD'|'ANALYSIS'|'DATASET'|'DATASOURCE'|'TOPIC'
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID for the Amazon Web Services account that contains the folder.

    

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

    The ID of the folder.

    

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

    The ID of the asset that you want to add to the folder.

    

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

    The member type of the asset that you want to add to a folder.

    

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

    
    ::

      {
          'Status': 123,
          'FolderMember': {
              'MemberId': 'string',
              'MemberType': 'DASHBOARD'|'ANALYSIS'|'DATASET'|'DATASOURCE'|'TOPIC'
          },
          'RequestId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
      

      - **FolderMember** *(dict) --* 

        Information about the member in the folder.

        
        

        - **MemberId** *(string) --* 

          The ID of an asset in the folder.

          
        

        - **MemberType** *(string) --* 

          The type of asset that it is.

          
    
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

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

  
  *   :py:class:`QuickSight.Client.exceptions.ResourceExistsException`

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

  
  *   :py:class:`QuickSight.Client.exceptions.LimitExceededException`

  
  *   :py:class:`QuickSight.Client.exceptions.UnsupportedUserEditionException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

  