:doc:`ConnectCampaignServiceV2 <../../connectcampaignsv2>` / Client / put_profile_outbound_request_batch

**********************************
put_profile_outbound_request_batch
**********************************



.. py:method:: ConnectCampaignServiceV2.Client.put_profile_outbound_request_batch(**kwargs)

  

  Takes in a list of profile outbound requests to be placed as part of an outbound campaign. This API is idempotent.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcampaignsv2-2024-04-23/PutProfileOutboundRequestBatch>`_  


  **Request Syntax**
  ::

    response = client.put_profile_outbound_request_batch(
        id='string',
        profileOutboundRequests=[
            {
                'clientToken': 'string',
                'profileId': 'string',
                'expirationTime': datetime(2015, 1, 1)
            },
        ]
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    Identifier representing a Campaign

    

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

    List of profile outbound requests

    

  
    - *(dict) --* 

      Information about a profile outbound request

      

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

        Client provided parameter used for idempotency. Its value must be unique for each request.

        

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

        Identifier of the customer profile

        

      
      - **expirationTime** *(datetime) --* 

        Timestamp with no UTC offset or timezone

        

      
    

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

    
    ::

      {
          'successfulRequests': [
              {
                  'clientToken': 'string',
                  'id': 'string'
              },
          ],
          'failedRequests': [
              {
                  'clientToken': 'string',
                  'id': 'string',
                  'failureCode': 'UnknownError'|'ResourceNotFound'|'Conflict'|'RequestThrottled'|'InvalidInput'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The response for PutProfileOutboundRequestBatch API

      
      

      - **successfulRequests** *(list) --* 

        List of successful profile outbound requests

        
        

        - *(dict) --* 

          Success details for a profile outbound request

          
          

          - **clientToken** *(string) --* 

            Client provided parameter used for idempotency. Its value must be unique for each request.

            
          

          - **id** *(string) --* 

            Identifier of the profile outbound request

            
      
    
      

      - **failedRequests** *(list) --* 

        List of failed profile outbound requests

        
        

        - *(dict) --* 

          Failure details for a profile outbound request

          
          

          - **clientToken** *(string) --* 

            Client provided parameter used for idempotency. Its value must be unique for each request.

            
          

          - **id** *(string) --* 

            Identifier of the profile outbound request

            
          

          - **failureCode** *(string) --* 

            Predefined code indicating the error that caused the failure

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.InternalServerException`

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

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

  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.ConflictException`

  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.InvalidCampaignStateException`

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

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

  