Zum Hauptinhalt springen
POST
/
crm-object-schemas
/
v3
/
schemas
/
{objectType}
/
associations
cURL
curl --request POST \
  --url https://api.hubapi.com/crm-object-schemas/v3/schemas/{objectType}/associations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fromObjectTypeId": "2-123456",
  "toObjectTypeId": "contact",
  "name": "my_object_to_contact"
}'
{
  "id": "105",
  "fromObjectTypeId": "2-123456",
  "toObjectTypeId": "0-1",
  "name": "my_object_to_contact"
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing HubEnterprise
Sales HubSales HubEnterprise
Service HubService HubEnterprise
Content HubContent HubEnterprise

Authorizations

Authorization
string
header
required

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

Path Parameters

objectType
string
required

スキーマの完全修飾名またはオブジェクトタイプID。

Body

application/json

Attributes that define the association.

Defines an association between two object types.

fromObjectTypeId
string
required

リンク元のプライマリー オブジェクト タイプのID。

toObjectTypeId
string
required

リンク先のターゲット オブジェクト タイプのID。

name
string

この関連付けの重複しない名前。

Response

successful operation

Defines an association between two object types.

fromObjectTypeId
string
required

リンク元のプライマリー オブジェクト タイプのID。

Example:

""

id
string
required

この関連付けの固有ID。

Example:

""

toObjectTypeId
string
required

リンク先のターゲット オブジェクト タイプのID。

Example:

""

createdAt
string<date-time>

関連付けが定義された日時。

name
string

この関連付けの重複しない名前。

Example:

""

updatedAt
string<date-time>

関連付けが最後に更新された日時。