メインコンテンツへスキップ
PATCH
/
cms
/
v3
/
hubdb
/
tables
/
{tableIdOrName}
/
draft
既存のテーブルを更新
curl --request PATCH \
  --url https://api.hubapi.com/cms/v3/hubdb/tables/{tableIdOrName}/draft \
  --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",
          "createdBy": {
            "email": "<string>",
            "firstName": "<string>",
            "id": "<string>",
            "lastName": "<string>"
          },
          "createdByUserId": 123,
          "updatedBy": {
            "email": "<string>",
            "firstName": "<string>",
            "id": "<string>",
            "lastName": "<string>"
          },
          "updatedByUserId": 123
        }
      ],
      "type": "BOOLEAN",
      "foreignColumnId": 123,
      "foreignTableId": 123,
      "maxNumberOfCharacters": 123,
      "maxNumberOfOptions": 123
    }
  ],
  "dynamicMetaTags": {},
  "enableChildTablePages": true,
  "label": "<string>",
  "name": "<string>",
  "useForPages": true
}
'
{
  "allowChildTables": true,
  "allowPublicApiAccess": true,
  "columnCount": 123,
  "columns": "{name: \"column1\"",
  "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>"
  }
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Professional

認証

Authorization
string
header
必須

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

パスパラメータ

tableIdOrName
string
必須

更新するテーブルのIDまたは名前。

クエリパラメータ

archived
boolean

アーカイブ済みのテーブルを返すかどうかが指定されます。デフォルト値は「false」です。

includeForeignIds
boolean

結果で外部ID値を入力するには、これを「true」に設定してください。

isGetLocalizedSchema
boolean

テーブルのローカライズ済みのスキーマを取得するかどうかを示します。

ボディ

application/json
allowChildTables
boolean
必須

子テーブルを作成できるかどうかが指定されます

allowPublicApiAccess
boolean
必須

テーブルを許可なしで誰でも読み取れるかどうかが指定されます

columns
object[]
必須

テーブル内の列のリスト

dynamicMetaTags
object
必須

関連付けられている列IDを使用して[メタデータフィールド](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages)のキー値ペアが指定されます。

enableChildTablePages
boolean
必須

子テーブルを使用した複数レベルの動的ページの作成が指定されます

label
string
必須

テーブルのラベル

name
string
必須

テーブルの数

useForPages
boolean
必須

テーブルを動的ページの作成に使用できるかどうかが指定されます

レスポンス

successful operation

allowChildTables
boolean
必須

子テーブルを作成できるかどうかが指定されます

allowPublicApiAccess
boolean
必須

テーブルを許可なしで誰でも読み取れるかどうかが指定されます

columnCount
integer<int32>
必須

削除された列を含む列の数

columns
object[]
必須

テーブル内の列のリスト

:

"{name: \"column1\""

createdAt
string<date-time>
必須

テーブルが作成された時点のタイムスタンプ

deleted
boolean
必須

テーブルが削除済みにされたかどうかを示します。

deletedAt
string<date-time>
必須

テーブルが削除された日時を示すタイムスタンプ。

dynamicMetaTags
object
必須

関連付けられている列IDを使用して[メタデータフィールド](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages)のキー値ペアが指定されます。

enableChildTablePages
boolean
必須

子テーブルを使用した複数レベルの動的ページの作成が指定されます

id
string
必須

テーブルのID

label
string
必須

テーブルのラベル

name
string
必須

テーブルの数

published
boolean
必須

テーブルが現在公開されているかどうかを示します。

publishedAt
string<date-time>
必須

テーブルが最近公開された時点のタイムスタンプ

rowCount
integer<int32>
必須

テーブル内の行数

updatedAt
string<date-time>
必須

テーブルが最近更新された時点のタイムスタンプ

useForPages
boolean
必須

テーブルを動的ページの作成に使用できるかどうかが指定されます

createdBy
object
isOrderedManually
boolean

テーブルの行が手動で並べ替えられたかどうかを示します。

updatedBy
object
Last modified on December 8, 2025