Zum Hauptinhalt springen
POST
/
cms
/
v3
/
hubdb
/
tables
/
{tableIdOrName}
/
draft
/
clone
テーブルを複製
curl --request POST \
  --url https://api.hubapi.com/cms/v3/hubdb/tables/{tableIdOrName}/draft/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "copyRows": true,
  "isHubspotDefined": true,
  "newLabel": "<string>",
  "newName": "<string>"
}'
{
  "allowChildTables": true,
  "allowPublicApiAccess": true,
  "columnCount": 123,
  "columns": "{name: \"column1\"",
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "deleted": true,
  "deletedAt": "2023-11-07T05:31:56Z",
  "dynamicMetaTags": {},
  "enableChildTablePages": true,
  "id": "<string>",
  "isOrderedManually": true,
  "label": "<string>",
  "name": "<string>",
  "published": true,
  "publishedAt": "2023-11-07T05:31:56Z",
  "rowCount": 123,
  "updatedAt": "2023-11-07T05:31:56Z",
  "updatedBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "useForPages": true
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -無料ツール
この API には、次のいずれかのスコープが必要です。
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

複製するテーブルのIDまたは名前。

Body

application/json
copyRows
boolean
required

複製時に行をコピーするかどうかが指定されます

isHubspotDefined
boolean
required
newLabel
string

複製されたテーブルの新しいラベル

newName
string

複製されたテーブルの新しい名前

Response

successful operation

allowChildTables
boolean
required

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

allowPublicApiAccess
boolean
required

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

columnCount
integer
required

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

columns
object[]
required

テーブル内の列のリスト

Example:

"{name: \"column1\""

createdAt
string<date-time>
required

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

deleted
boolean
required
deletedAt
string<date-time>
required
dynamicMetaTags
object
required

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

enableChildTablePages
boolean
required

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

id
string
required

テーブルのID

label
string
required

テーブルのラベル

name
string
required

テーブルの数

published
boolean
required
publishedAt
string<date-time>
required

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

rowCount
integer
required

テーブル内の行数

updatedAt
string<date-time>
required

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

useForPages
boolean
required

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

createdBy
object
isOrderedManually
boolean
updatedBy
object