There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Update a table

Last updated June 17, 2020

PUT /hubdb/api/v2/tables/:tableId

Method Details

HTTP Methods:

PUT

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Required Scope:

hubdb

Update an existing HubDB table. You can use this endpoint to add or remove a column, or to publish a table that's ready to be used.

Table updates will modify the draft table. Use the /publish  endpoint to push all changes live.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.

Optional Parameters How to use Description
Update Draft details /draft
Used in the request URL
Include /draft at the end of the request path to update the draft version of the table.
Name "name": {new name}
Used in the request
Renames the table
Use for pages "useForPages": {true or false}
Used in the request
Set this to true to enable the table for dynamic pages.
Published at "publishedAt":{millisecond timestamp
Used in the request
Set this to the current (or a past) time to publish a table that's ready to be used
Columns "columns": [ {column list} ]
Used in the request
Updates the columns in the table. See creating a table for the column definitions.
IMPORTANT: Data in this field overwrites the existing columns. If you want to add a new column, you'll need to include the existing columns and the new column in the request.