Import

Create Import

Creates an import.

Request
Security:
ApiKeyAuth
path Parameters
database_name
required
string

database name

Example: Alpha
table_name
required
string
Example: Bravo
data_format
required
string
Value: "msgpack.gz"
Responses
200

OK

put/table/import/{database_name}/{table_name}/{data_format}
Request samples
curl -i -X PUT \
  'https://api.treasuredata.com/v3/table/import/{database_name}/{table_name}/{data_format}' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'
Response samples
application/json
{
  • "elapsed_time": 0,
  • "database": "Alpha",
  • "md5_hex": "2ac30b788fd813e9ac7a3af9d395e109",
  • "table": "Bravo",
  • "unique_id": "2ac30b788fd813e9ac7a3af9d395e109"
}

Create Import with unique id

Creates an import with a unique ID.

Request
Security:
ApiKeyAuth
path Parameters
database_name
required
string

database name

Example: Alpha
table_name
required
string
Example: Bravo
unique_id
required
string (HexValue) [0-9a-f]+
Example: 2ac30b788fd813e9ac7a3af9d395e109
data_format
required
string
Value: "msgpack.gz"
Request Body schema: application/x-www-form-urlencoded
file
required
string <binary>
Responses
200

OK

put/table/import_with_id/{database_name}/{table_name}/{unique_id}/{data_format}
Request samples
curl -i -X PUT \
  'https://api.treasuredata.com/v3/table/import_with_id/{database_name}/{table_name}/{unique_id}/{data_format}' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d file=string
Response samples
application/json
{
  • "elapsed_time": 0,
  • "database": "Alpha",
  • "md5_hex": "2ac30b788fd813e9ac7a3af9d395e109",
  • "table": "Bravo",
  • "unique_id": "2ac30b788fd813e9ac7a3af9d395e109"
}
Support
Copyright © 2021 Treasure Data, Inc. (or its affiliates). All rights reserved.