Updates the specified table schema. Schema can include column descriptions in the format [name, type, alias, description].
Security
ApiKeyAuth
- https://api.treasuredata.com/v3https://api.treasuredata.com/v3/table/update-schema/{database_name}/{table_name}
- https://api.treasuredata.co.jp/v3https://api.treasuredata.co.jp/v3/table/update-schema/{database_name}/{table_name}
- https://api.ap02.treasuredata.com/v3https://api.ap02.treasuredata.com/v3/table/update-schema/{database_name}/{table_name}
- https://api.eu01.treasuredata.com/v3https://api.eu01.treasuredata.com/v3/table/update-schema/{database_name}/{table_name}
- TableSchemaAsArray
- TableSchemaAsString
curl -i -X POST \
https://api.treasuredata.com/v3/table/update-schema/Alpha/Bravo \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d name=table1_new_name \
-d 'schema=[["name","string","first_name"],["creation_date","long"]]' \
-d ignore_duplicate_schema=true \
-d detect_schema=true \
-d include_v=true \
-d expire_days=1 \
-d overwrite=trueResponse
{ "database": "Alpha", "table": "Bravo", "type": "log" }