Pular para o conteúdo principal
POST
/
crm
/
associations
/
v4
/
{fromObjectType}
/
{toObjectType}
/
labels
Create association label
curl --request POST \
  --url https://api.hubapi.com/crm/associations/v4/{fromObjectType}/{toObjectType}/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "name": "<string>",
  "inverseLabel": "<string>"
}
'
{
  "results": [
    {
      "category": "HUBSPOT_DEFINED",
      "typeId": 123,
      "label": "<string>"
    }
  ]
}

Produtos suportados

Requer um dos seguintes produtos ou superior.
Marketing HubMarketing Hub -Grátis
Sales HubSales Hub -Grátis
Service HubService Hub -Grátis
Content HubContent Hub -Grátis

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

fromObjectType
string
obrigatório
toObjectType
string
obrigatório

Corpo

application/json
label
string
obrigatório

A descriptor that provides context about the relationship between two associated CRM objects.

name
string
obrigatório

The unique identifier for the association definition.

inverseLabel
string

An optional descriptor that clarifies the reverse relationship in the association.

Resposta

successful operation

results
object[]
obrigatório
Last modified on March 24, 2026