# 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](/apis/endpoints/endpoints).


```bash
curl -X PUT https://<api endpoint>/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"
          }
        }
      }
    }'
```