lib/hubspot/codegen/crm/tickets/api/batch_api.rb
# Create a batch of tickets
# Create a batch of tickets. This follows the same rules as creating an individual object.
# @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput] 
# @param [Hash] opts the optional parameters
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
Create a batch of tickets
Create a batch of tickets. This follows the same rules as creating an individual object.
Create a batch of tickets Create a batch of tickets . This follows the same rules as creating an individual object .
def create_with_http_info(batch_input_simple_public_object_input, opts = {})
          if @api_client.config.debugging
            @api_client.config.logger.debug 'Calling API: BatchApi.create ...'
          end
          if @api_client.config.client_side_validation && batch_input_simple_public_object_input.nil?
            fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_input' when calling BatchApi.create"
          end
          local_var_path = '/crm/v3/objects/tickets/batch/create'
          query_params = opts[:query_params] || {}
          header_params = opts[:header_params] || {}
          header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
          header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
          form_params = opts[:form_params] || {}
          post_body = opts[:body] || @api_client.object_to_http_body(batch_input_simple_public_object_input) 
          return_type = opts[:return_type] || 'BatchResponseSimplePublicObject' 
          auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
          new_options = opts.merge(
            :header_params => header_params,
            :query_params => query_params,
            :form_params => form_params,
            :body => post_body,
            :auth_names => auth_names,
            :return_type => return_type
          )
          data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
          if @api_client.config.debugging
            @api_client.config.logger.debug "API called: BatchApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
          end
          return data, status_code, headers
        end
def create_with_http_info ( batch_input_simple_public_object_input , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: BatchApi.create ...' end if @api_client . config . client_side_validation && batch_input_simple_public_object_input . nil? fail ArgumentError , "Missing the required parameter 'batch_input_simple_public_object_input' when calling BatchApi.create" end local_var_path = '/crm/v3/objects/tickets/batch/create' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' , '*/*' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :body ] || @api_client . object_to_http_body ( batch_input_simple_public_object_input ) return_type = opts [ :return_type ] || 'BatchResponseSimplePublicObject' auth_names = opts [ :auth_names ] || [ 'hapikey' , 'oauth2' ] new_options = opts . merge ( :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: BatchApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create a batch of tickets
Create a batch of tickets.
Create a batch of tickets Create a batch of tickets .
# verify the required parameter 'batch_input_simple_public_object_input' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
BatchResponseSimplePublicObject data, response status code and response headers
BatchResponseSimplePublicObject data response status code and response headers
Array<(BatchResponseSimplePublicObject, Integer, Hash)>
batch_input_simple_public_object_input
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters