Zum Hauptinhalt springen
POST
/
cms
/
v3
/
hubdb
/
tables
/
{tableIdOrName}
/
draft
/
import
データを下書きテーブルにインポート
curl --request POST \
  --url https://api.hubapi.com/cms/v3/hubdb/tables/{tableIdOrName}/draft/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'config=<string>' \
  --form file=@example-file
{
  "duplicateRows": 123,
  "errors": [
    {
      "message": "Invalid input (details will vary based on the error)",
      "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
      "category": "VALIDATION_ERROR",
      "links": {
        "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
      }
    }
  ],
  "rowLimitExceeded": true,
  "rowsImported": 123
}
次のいずれかの製品またはそれ以上が必要です。
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

multipart/form-data
config
string
file
file

Response

successful operation

duplicateRows
integer
required

重複する行の数が指定されます

errors
object[]
required

インポート時のエラーのリスト

rowLimitExceeded
boolean
required

インポート時に行の上限を超えたかどうかが指定されます

rowsImported
integer
required

インポートされる行の数が指定されます