lib/zendesk_api/actions.rb
def create_or_update_many!(client, attributes)
      association = Association.new(:class => self)

      response = client.connection.post("#{association.generate_path}/create_or_update_many") do |req|
        req.body = { resource_name => attributes }

        yield req if block_given?
      end

      JobStatus.new_from_response(client, response)
    end
def create_or_update_many!(client, attributes)
      association = Association.new(:class => self)

      response = client.connection.post("#{association.generate_path}/create_or_update_many") do |req|
        req.body = { resource_name => attributes }

        yield req if block_given?
      end

      JobStatus.new_from_response(client, response)
    end
Creates or updates multiple resources using the create_or_update_many endpoint.

 @param [Client] client The {Client} object to be used
 @param [Array<Hash>] attributes The attributes to update resources with

 @return [JobStatus] the {JobStatus} instance for this destroy job