:doc:`ConnectCampaignService <../../connectcampaigns>` / Client / put_dial_request_batch

**********************
put_dial_request_batch
**********************



.. py:method:: ConnectCampaignService.Client.put_dial_request_batch(**kwargs)

  

  Creates dials requests for the specified campaign Amazon Connect account. This API is idempotent.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcampaigns-2021-01-30/PutDialRequestBatch>`_  


  **Request Syntax**
  ::

    response = client.put_dial_request_batch(
        id='string',
        dialRequests=[
            {
                'clientToken': 'string',
                'phoneNumber': 'string',
                'expirationTime': datetime(2015, 1, 1),
                'attributes': {
                    'string': 'string'
                }
            },
        ]
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    Identifier representing a Campaign

    

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

    A list of dial requests.

    

  
    - *(dict) --* 

      A dial request for a campaign.

      

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

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

        

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

        The phone number of the customer, in E.164 format.

        

      
      - **expirationTime** *(datetime) --* **[REQUIRED]** 

        Timestamp with no UTC offset or timezone

        

      
      - **attributes** *(dict) --* **[REQUIRED]** 

        A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

        

      
        - *(string) --* 

          The key of the attribute. Attribute keys can include only alphanumeric, dash, and underscore characters.

          

        
          - *(string) --* 

            The value of the attribute.

            

          
    
  
    

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

    
    ::

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

    

    - *(dict) --* 

      PutDialRequestBatchResponse

      
      

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

        A list of successful requests identified by the unique client token.

        
        

        - *(dict) --* 

          A successful request identified by the unique client token.

          
          

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

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

            
          

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

            Identifier representing a Dial request

            
      
    
      

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

        A list of failed requests.

        
        

        - *(dict) --* 

          A failed request identified by the unique client token.

          
          

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

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

            
          

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

            Identifier representing a Dial request

            
          

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

            A predefined code indicating the error that caused the failure.

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

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

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

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

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

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

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

  