Skip to main content
POST
/
cms
/
v3
/
hubdb
/
tables
/
{tableIdOrName}
/
rows
Add a new row to a table
curl --request POST \
  --url https://api.hubapi.com/cms/v3/hubdb/tables/{tableIdOrName}/rows \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "path": "<string>",
  "childTableId": 123,
  "values": {},
  "name": "<string>",
  "displayIndex": 123
}'
{
  "path": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "childTableId": "<string>",
  "publishedAt": "2023-11-07T05:31:56Z",
  "values": {},
  "name": "<string>",
  "id": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}
Productos compatibles
Se requiere uno de los siguientes productos o productos de ediciones superiores.
Marketing HubMarketing HubGratuito
Sales HubSales HubGratuito
Service HubService HubGratuito
Content HubContent HubGratuito

Ámbitos Requeridos

Esta API requiere uno de los siguientes ámbitos:
  • hubdb

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

tableIdOrName
string
required

The ID or name of the target table.

Body

application/json
values
object
required

List of key value pairs with the column name and column value

path
string

Specifies the value for hs_path column, which will be used as slug in the dynamic pages

childTableId
integer

Specifies the value for the column child table id

name
string

Specifies the value for hs_name column, which will be used as title in the dynamic pages

displayIndex
integer

Response

successful operation

values
object
required

List of key value pairs with the column name and column value

path
string

Specifies the value for hs_path column, which will be used as slug in the dynamic pages

createdAt
string<date-time>

Timestamp at which the row is created

childTableId
string

Specifies the value for the column child table id

publishedAt
string<date-time>
name
string

Specifies the value for hs_name column, which will be used as title in the dynamic pages

id
string

The id of the table row

updatedAt
string<date-time>

Timestamp at which the row is updated last time

I