You are on page 1of 3

bigdata@syncapse.

com Sign out Google BigQuery


X

Search Home Products Conferences Showcase Live Groups

Google BigQuery
Introduction Sign Up and Pricing Quickstarts Loading Data Into BigQuery Querying Data Exporting Data From BigQuery Managing Your Project Developer Guide BigQuery API BigQuery API Authorization BigQuery Client Libraries API Reference Datasets Jobs get getQueryResults insert list query Projects Tabledata Tables Quota Policy Troubleshooting Errors BigQuery Tools Tutorials and Videos Developer Support Feedback on this document

Developer Support Case Studies Release Notes Legal

Jobs: insert
Requires authorization Starts a new asynchronous job. You must have READ access to a project in order to run a job. Try it now. This method supports media upload. Uploaded files must conform to these constraints: Maximum file size: See Quota Policy for file sizes. Accepted Media MIME types: application/octet-stream This method returns immediately. You must call jobs.get() and examine the job status to learn when the job is complete. You include one and only one of the following child properties in your job resource. The child property that you include defines the type of job that this is. Child Property
load

Description Load data from an uncompressed or gzipped CSV or JSON file into a table. Specify the file location by URI. See Importing Data to a Table in the developer's guide to learn more. A query job; see Running Queries in the developer's guide to learn how to run a query job. Export a BigQuery table to Google Cloud Storage as a CSV or JSON file. See Exporting Tables in the developer's guide to learn more. Copy an existing table to another new or existing table. See Copying an Existing Table in the developer's guide to learn more.

query extract copy

Required ACLs: To call this method, you must have one of the following sets of rights: Project READ/WRITE/OWNER on the project to which the job is assigned AND appropriate dataset rights to read from or write to the appropriate tables.

Request
HTTP request
POST https://www.googleapis.com/bigquery/v2/projects/projectId /jobs

Parameters
Parameter Name Value Required Parameters
projectId string

Description Project ID of the project to bill for this job

Authorization
This request requires authorization with at least one of the following scopes (read more about authentication and authorization). Scope
https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/auth/devstorage.full_control https://www.googleapis.com/auth/devstorage.read_only

Request body
In the request body, supply a Jobs resource.

Response
If successful, this method returns a Jobs resource in the response body.

Try it!
Use the APIs Explorer below to call this method on live data and see the response. Authorize requests using OAuth 2.0:

projectId fields Request body { }

Project ID of the project that will be billed for the job (string) Selector specifying which fields to include in a partial response. Use fields editor

bold red = required Last updated October 1, 2012. Google Terms of Service Privacy Policy Jobs Report a bug English

You might also like