Saltar al contenido principal
POST
/
media-bridge
/
2026-03
/
{appId}
/
schemas
/
{objectType}
/
associations
Create association definition
curl --request POST \
  --url https://api.hubapi.com/media-bridge/2026-03/{appId}/schemas/{objectType}/associations \
  --header 'Authorization: Bearer <token>' \
  --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"
}

Supported products

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

appId
integer<int32>
requerido
objectType
string
requerido

Cuerpo

application/json
fromObjectTypeId
string
requerido
toObjectTypeId
string
requerido
name
string

Respuesta

successful operation

The definition of an association

fromObjectTypeId
string
requerido

The ID of the source object type (e.g., 0-1 for contacts).

id
string
requerido

The unique ID of the associated object (e.g., a contact ID).

toObjectTypeId
string
requerido

The ID of the destination object type (e.g., 0-3 for deals).

createdAt
string<date-time>

The timestamp when the association was created, in ISO 8601 format.

name
string

For labeled association types, the internal name of the association.

updatedAt
string<date-time>

The timestamp when the last update was made to an association, in ISO 8601 format.

Last modified on June 5, 2026