Update an existing table
Changed onUpdate an existing HubDB table. You can use this endpoint to add or remove columns to the table as well as restore an archived table. Tables updated using the endpoint will only modify the draft verion of the table. Use the /publish endpoint to push all the changes to the published version. To restore a table, include the query parameter archived=true and "archived": false in the json body. Note: You need to include all the columns in the input when you are adding/removing/updating a column. If you do not include an already existing column in the request, it will be deleted.
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft
- Auth
- OAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: hubdb
- or OAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: hubdb.tables.write
Path parameters
The unique identifier or name of the table to update.
Query parameters
Whether to return only results that have been archived.
Include foreign IDs in the response.
Whether to retrieve the localized schema.
Request body
Response
successful operation
Changes
- info
the security scope
hubdbwas added to the endpoint's security schemeoauth2 - info
the security scope
hubdb.tables.writewas removed from the endpoint's security schemeoauth2
- info
- info
the security scope
hubdb.tables.writewas added to the endpoint's security schemeoauth2 - info
the security scope
hubdb-schemas-writewas removed from the endpoint's security schemeoauth2
- info