{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Products","product_name":"Treasure Insights","type":"markdown"},"seo":{"title":"Update a Table","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"update-a-table","__idx":0},"children":["Update a Table"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /reporting/datamodels/{datamodel_id}/datasets/{dataset_id}/tables/{table_id}"]},". The following example uses the same definition as the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/treasure-insights/create-or-add-a-table"},"children":["Create/Add a Table"]}," POST API."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the API endpoint, select the appropriate ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/endpoints"},"children":["endpoint for your region"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X PUT https://<api endpoint>/reporting/datamodels/xxxxxx/datasets/yyyyyy/tables/zzzzz \\\n-H 'authorization: TD1 xxxx/xxxxxxxxxxxxxx' \\\n-H 'cache-control: no-cache' \\\n-H 'accept: application/json' \\\n-H 'content-type: application/json' \\\n-d '{\n      \"name\": \"pageviews\",\n      \"definition\": {\n        \"columns\": {\n          \"td_url\": {\n            \"type\": \"text\"\n          },\n          \"time\": {\n            \"type\": \"int\"\n          }\n        }\n      }\n    }'\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Update a Table","id":"update-a-table","depth":1}],"frontmatter":{"seo":{"title":"Update a Table"}},"lastModified":"2026-03-10T06:52:05.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/treasure-insights/update-a-table","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}