Zum Hauptinhalt springen
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"
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubGratuit
Sales HubSales HubGratuit
Service HubService HubGratuit
Content HubContent HubGratuit

Portées requises

Cette API requiert l’une des portées suivantes :
  • 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