Zum Hauptinhalt springen
PUT
/
crm
/
v3
/
objects
/
partner_services
/
{partnerServiceId}
/
associations
/
{toObjectType}
/
{toObjectId}
/
{associationType}
Associer un service partenaire à un autre objet
curl --request PUT \
  --url https://api.hubapi.com/crm/v3/objects/partner_services/{partnerServiceId}/associations/{toObjectType}/{toObjectId}/{associationType} \
  --header 'Authorization: Bearer <token>'
{
  "associations": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "archived": true,
  "archivedAt": "2023-11-07T05:31:56Z",
  "propertiesWithHistory": {},
  "id": "<string>",
  "objectWriteTraceId": "<string>",
  "properties": {},
  "updatedAt": "2023-11-07T05:31:56Z"
}

Produits pris en charge

Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing Hub -Gratuit
Sales HubSales Hub -Gratuit
Service HubService Hub -Gratuit
Content HubContent Hub -Gratuit
Cette API requiert l'une des portées suivantes :
crm.objects.partner-services.write

Authorizations

Authorization
string
header
required

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

Path Parameters

objectType
string
required
objectId
string
required
toObjectType
string
required
toObjectId
string
required
associationType
string
required
partnerServiceId
string
required

Response

successful operation

Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type.

createdAt
string<date-time>
required

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

archived
boolean
required

Whether the object is archived.

id
string
required

The unique ID of the object.

properties
object
required

Key value pairs representing the properties of the object.

updatedAt
string<date-time>
required

The timestamp when the object was last updated, in ISO 8601 format.

associations
object

A list defining relationships with other objects.

archivedAt
string<date-time>

The timestamp when the object was archived, in ISO 8601 format.

propertiesWithHistory
object

Key-value pairs representing the properties of the object along with their history.

objectWriteTraceId
string