Skip to content

Create bulk import

Request

Enables the bulk importing of data to the targeted database and table and stores it in the default resource pool.

Security
ApiKeyAuth
Path
bulk_import_namestring(name)required
database_namestring(name)required

database name

Example:Alpha
table_namestring(name)required
Example:Bravo
Bodyapplication/x-www-form-urlencoded
auto_create_tableboolean

when true, creates table if table doesn't exist.

curl -i -X POST \
  'https://api.treasuredata.com/v3/bulk_import/create/{bulk_import_name}/Alpha/Bravo' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d auto_create_table=true

Responses

OK

Bodyapplication/json
bulk_importstring(name)required
namestring(name)required
job_idinteger(JobId)

unique identifier of job

Example:19
Response
{ "bulk_import": "string", "name": "string", "job_id": 19 }