:doc:`IoTSiteWise <../../iotsitewise>` / Client / batch_associate_project_assets

******************************
batch_associate_project_assets
******************************



.. py:method:: IoTSiteWise.Client.batch_associate_project_assets(**kwargs)

  

  Associates a group (batch) of assets with an IoT SiteWise Monitor project.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/BatchAssociateProjectAssets>`_  


  **Request Syntax**
  ::

    response = client.batch_associate_project_assets(
        projectId='string',
        assetIds=[
            'string',
        ],
        clientToken='string'
    )
    
  :type projectId: string
  :param projectId: **[REQUIRED]** 

    The ID of the project to which to associate the assets.

    

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

    The IDs of the assets to be associated to the project.

    

  
    - *(string) --* 

    

  :type clientToken: string
  :param clientToken: 

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'errors': [
              {
                  'assetId': 'string',
                  'code': 'INTERNAL_FAILURE',
                  'message': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **errors** *(list) --* 

        A list of associated error information, if any.

        
        

        - *(dict) --* 

          Contains error details for the requested associate project asset action.

          
          

          - **assetId** *(string) --* 

            The ID of the asset, in UUID format.

            
          

          - **code** *(string) --* 

            The error code.

            
          

          - **message** *(string) --* 

            The error message.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`IoTSiteWise.Client.exceptions.InvalidRequestException`

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

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

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

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

  