メインコンテンツへスキップ
POST
/
cms
/
v3
/
hubdb
/
tables
Create a table
curl --request POST \
  --url https://api.hubapi.com/cms/v3/hubdb/tables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "allowChildTables": true,
  "allowPublicApiAccess": true,
  "columns": [
    {
      "id": 123,
      "label": "<string>",
      "name": "<string>",
      "options": [
        {
          "createdAt": "2023-11-07T05:31:56Z",
          "id": "<string>",
          "label": "<string>",
          "name": "<string>",
          "order": 123,
          "type": "<string>",
          "updatedAt": "2023-11-07T05:31:56Z",
          "createdByUserId": 123,
          "updatedByUserId": 123
        }
      ],
      "foreignColumnId": 123,
      "foreignTableId": 123,
      "maxNumberOfCharacters": 123,
      "maxNumberOfOptions": 123
    }
  ],
  "dynamicMetaTags": {},
  "enableChildTablePages": true,
  "label": "<string>",
  "name": "<string>",
  "useForPages": true
}
'
{
  "allowChildTables": true,
  "allowPublicApiAccess": true,
  "columnCount": 123,
  "columns": [
    {
      "deleted": true,
      "description": "<string>",
      "id": "<string>",
      "label": "<string>",
      "name": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": {
        "email": "<string>",
        "firstName": "<string>",
        "id": "<string>",
        "lastName": "<string>"
      },
      "createdByUserId": 123,
      "foreignColumnId": 123,
      "foreignIds": [
        {
          "id": "<string>",
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "foreignIdsById": {},
      "foreignIdsByName": {},
      "foreignTableId": 123,
      "optionCount": 123,
      "options": [
        {
          "createdAt": "2023-11-07T05:31:56Z",
          "id": "<string>",
          "label": "<string>",
          "name": "<string>",
          "order": 123,
          "type": "<string>",
          "updatedAt": "2023-11-07T05:31:56Z",
          "createdBy": {
            "email": "<string>",
            "firstName": "<string>",
            "id": "<string>",
            "lastName": "<string>"
          },
          "createdByUserId": 123,
          "updatedBy": {
            "email": "<string>",
            "firstName": "<string>",
            "id": "<string>",
            "lastName": "<string>"
          },
          "updatedByUserId": 123
        }
      ],
      "updatedAt": "2023-11-07T05:31:56Z",
      "updatedBy": {
        "email": "<string>",
        "firstName": "<string>",
        "id": "<string>",
        "lastName": "<string>"
      },
      "updatedByUserId": 123,
      "width": 123
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "deleted": true,
  "deletedAt": "2023-11-07T05:31:56Z",
  "dynamicMetaTags": {},
  "enableChildTablePages": true,
  "id": "<string>",
  "label": "<string>",
  "name": "<string>",
  "published": true,
  "publishedAt": "2023-11-07T05:31:56Z",
  "rowCount": 123,
  "updatedAt": "2023-11-07T05:31:56Z",
  "useForPages": true,
  "createdBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "isOrderedManually": true,
  "updatedBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  }
}

Supported products

承認

Authorization
string
header
必須

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

ボディ

application/json
allowChildTables
boolean
必須

Specifies whether child tables can be created

allowPublicApiAccess
boolean
必須

Specifies whether the table can be read by public without authorization

columns
object[]
必須

List of columns in the table

dynamicMetaTags
object
必須

Specifies the key value pairs of the metadata fields with the associated column IDs.

enableChildTablePages
boolean
必須

Specifies creation of multi-level dynamic pages using child tables

label
string
必須

Label of the table

name
string
必須

Name of the table

useForPages
boolean
必須

Specifies whether the table can be used for creation of dynamic pages

レスポンス

successful operation

allowChildTables
boolean
必須

Specifies whether child tables can be created

allowPublicApiAccess
boolean
必須

Specifies whether the table can be read by public without authorization

columnCount
integer<int64>
必須

Number of columns including deleted

columns
object[]
必須

List of columns in the table

createdAt
string<date-time>
必須

Timestamp at which the table is created

deleted
boolean
必須

Specifies whether the table is marked as deleted.

deletedAt
string<date-time>
必須

The timestamp indicating when the table was deleted.

dynamicMetaTags
object
必須

Specifies the key value pairs of the metadata fields with the associated column IDs.

enableChildTablePages
boolean
必須

Specifies creation of multi-level dynamic pages using child tables

id
string
必須

Id of the table

label
string
必須

Label of the table

name
string
必須

Name of the table

published
boolean
必須

Indicates whether the table is currently published.

publishedAt
string<date-time>
必須

Timestamp at which the table is published recently

rowCount
integer<int32>
必須

Number of rows in the table

updatedAt
string<date-time>
必須

Timestamp at which the table is updated recently

useForPages
boolean
必須

Specifies whether the table can be used for creation of dynamic pages

createdBy
object
isOrderedManually
boolean

Indicates whether the table rows are ordered manually.

updatedBy
object
最終更新日 2026年6月5日