Skip to content
Last updated

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 POST API.

For the API endpoint, select the appropriate endpoint for your region.

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"
          }
        }
      }
    }'