Update a table

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.

You can update the draft version of the table by including /draft at the end of the request path. See the example for details.

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.