Import data into draft table
Changed onImport the contents of a CSV file into an existing HubDB table. The data will always be imported into the draft version of the table. Use the /publish endpoint to push these changes to the published version. This endpoint takes a multi-part POST request. The first part will be a set of JSON-formatted options for the import and you can specify this with the name as config. The second part will be the CSV file you want to import and you can specify this with the name as file. Refer the overview section to check the details and format of the JSON-formatted options for the import.
Request
- Base URLhttps://api.hubapi.com
- Auth
- HTTP bearer
- or API key in query parameter hapikey
- or none
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body multipart/form-data
Response
successful operation
Example response
{
"errors": [
{
"category": "VALIDATION_ERROR",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
},
"message": "Invalid input (details will vary based on the error)"
}
]
}Changes
- info
api operation id
post-/cms/hubdb/2026-03/tables/{tableIdOrName}/draft/import_importDraftTableremoved and replaced withpost-/cms/hubdb/2026-03/tables/{tableIdOrName}/draft/import
- info
- info
endpoint added
- info
Some revisions have not been checked yet.