Zum Hauptinhalt springen
PUT
/
crm
/
objects
/
2026-03
/
{fromObjectType}
/
{fromObjectId}
/
associations
/
default
/
{toObjectType}
/
{toObjectId}
Datensätze zuordnen (Standard)
curl --request PUT \
  --url https://api.hubapi.com/crm/objects/2026-03/{fromObjectType}/{fromObjectId}/associations/default/{toObjectType}/{toObjectId} \
  --header 'Authorization: Bearer <token>'
{
  "completedAt": "2023-11-07T05:31:56Z",
  "results": [
    {
      "associationSpec": {
        "associationCategory": "HUBSPOT_DEFINED",
        "associationTypeId": 123
      },
      "from": {
        "id": "<string>"
      },
      "to": {
        "id": "<string>"
      }
    }
  ],
  "startedAt": "2023-11-07T05:31:56Z",
  "status": "CANCELED",
  "errors": [
    {
      "category": "<string>",
      "context": {},
      "errors": [
        {
          "message": "<string>",
          "code": "<string>",
          "context": "{missingScopes=[scope1, scope2]}",
          "in": "<string>",
          "subCategory": "<string>"
        }
      ],
      "links": {},
      "message": "<string>",
      "status": "<string>",
      "id": "<string>",
      "subCategory": {}
    }
  ],
  "links": {},
  "numErrors": 123,
  "requestedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://developers.hubspot.de/docs/llms.txt

Use this file to discover all available pages before exploring further.

Supported products

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

fromObjectId
string
erforderlich

Die ID des Quellobjekts in der Zuordnung.

fromObjectType
string
erforderlich

Der Typ des Quellobjekts in der Zuordnung.

toObjectId
string
erforderlich

Die ID des Zielobjekts in der Zuordnung.

toObjectType
string
erforderlich

Der Typ des Zielobjekts in der Zuordnung.

Antwort

successful operation

Die Antwort, die nach dem Ausführen eines Batch-Vorgangs für Verknüpfungen zurückgegeben wird.

completedAt
string<date-time>
erforderlich

Der Zeitstempel, wann der Batch-Prozess abgeschlossen war (Format ISO 8601).

results
object[]
erforderlich
startedAt
string<date-time>
erforderlich

Der Zeitstempel, wann die Ausführung des Batch-Prozesses ausgeführt wurde (Format ISO 8601).

status
enum<string>
erforderlich

Der Status der Batch-Verarbeitungsanfrage: „PENDING“, „PROCESSING“, „CANCELED“ oder „COMPLETE“.

Verfügbare Optionen:
CANCELED,
COMPLETE,
PENDING,
PROCESSING
errors
object[]

Ein Objekt mit relevanten Links im Zusammenhang mit der Batch-Anfrage.

numErrors
integer<int32>

Die Anzahl der Fehler während der Batch-Verarbeitung.

requestedAt
string<date-time>

Der Zeitstempel, wann der Batch-Prozess eingeleitet wurde (Format ISO 8601).

Last modified on April 13, 2026