メインコンテンツへスキップ
POST
/
media-bridge
/
v1
/
{appId}
/
schemas
/
{objectType}
/
associations
関連付け定義を作成
curl --request POST \
  --url 'https://api.hubapi.com/media-bridge/v1/{appId}/schemas/{objectType}/associations?hapikey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromObjectTypeId": "<string>",
  "toObjectTypeId": "<string>",
  "name": "<string>"
}
'
{
  "fromObjectTypeId": "<string>",
  "id": "<string>",
  "toObjectTypeId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub無料ツール
Sales HubSales Hub無料ツール
Service HubService Hub無料ツール
Content HubContent Hub無料ツール

認証

hapikey
string
query
必須

パスパラメータ

appId
integer<int32>
必須

メディアブリッジアプリのappId。メディアブリッジを使用する開発者アカウント内に複数のアプリを持つことが可能です。

objectType
string
必須

定義を作成するオブジェクトタイプ

ボディ

application/json
fromObjectTypeId
string
必須
toObjectTypeId
string
必須
name
string

レスポンス

successful operation

The definition of an association

fromObjectTypeId
string
必須

ソースオブジェクトタイプのID(例:コンタクトの場合は0-1)。

id
string
必須

関連付けられたオブジェクトの固有ID(例:コンタクトID)。

toObjectTypeId
string
必須

ターゲットオブジェクトタイプのID(例:取引の場合は0-3)。

createdAt
string<date-time>

関連付けが作成された時刻のタイムスタンプ(ISO 8601形式)。

name
string

ラベル付き関連付けタイプの場合、関連付けの内部名。

updatedAt
string<date-time>

ISO 8601形式の関連付けが最後に更新されたときのタイムスタンプ。

Last modified on September 3, 2025