curl --request PUT \
--url https://api.hubapi.com/crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 123
}
]
'{
"fromObjectId": "<string>",
"fromObjectTypeId": "<string>",
"labels": [
"<string>"
],
"toObjectId": "<string>",
"toObjectTypeId": "<string>"
}Définir des libellés d’association entre deux fiches d’informations.
curl --request PUT \
--url https://api.hubapi.com/crm/objects/2026-03/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 123
}
]
'{
"fromObjectId": "<string>",
"fromObjectTypeId": "<string>",
"labels": [
"<string>"
],
"toObjectId": "<string>",
"toObjectTypeId": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://developers.hubspot.fr/docs/llms.txt
Use this file to discover all available pages before exploring further.
Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
Identifiant unique de l'objet source dans l'association à créer.
Spécifie le type de l'objet source dans l'association à créer.
Identifiant unique de l'objet cible dans l'association à créer.
Spécifie le type de l'objet cible dans l'association à créer.
successful operation
Les descripteurs de relation applicables entre deux types d'objets.
L'ID de l'objet source dans l'association.
ID de type de l'objet source dans l'association.
Un ensemble de libellés associés à la relation entre les objets.
L'ID de l'objet cible dans l'association.
L'ID de type de l'objet cible dans l'association.