# Update a Table Call `PUT /reporting/datamodels/{datamodel_id}/datasets/{dataset_id}/tables/{table_id}`. The following example uses the same definition as the [Create/Add a Table](/products/customer-data-platform/treasure-insights/create-or-add-a-table) POST API. For the API endpoint, select the appropriate [endpoint for your region](https://api-docs.treasuredata.com/en/overview/aboutendpoints/#treasure-data-sites-and-baseurls). ```bash curl -X PUT https:///reporting/datamodels/xxxxxx/datasets/yyyyyy/tables/zzzzz \ -H 'authorization: TD1 xxxx/xxxxxxxxxxxxxx' \ -H 'cache-control: no-cache' \ -H 'accept: application/json' \ -H 'content-type: application/json' \ -d '{ "name": "pageviews", "definition": { "columns": { "td_url": { "type": "text" }, "time": { "type": "int" } } } }' ```