Zum Hauptinhalt springen
PUT
/
crm
/
v3
/
lists
/
{listId}
/
memberships
/
add
Datensätze zu einer Liste hinzufügen
curl --request PUT \
  --url https://api.hubapi.com/crm/v3/lists/{listId}/memberships/add \
  --header 'Content-Type: application/json' \
  --header 'private-app: <api-key>' \
  --data '[
  "<string>"
]'
{
  "recordIdsAdded": [
    "123",
    "456"
  ],
  "recordIdsMissing": [
    "789"
  ]
}

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Starter
Sales HubSales Hub -Kostenlos
Service HubService Hub -Kostenlos
Content HubContent Hub -Starter
Diese API erfordert einen der folgenden Bereiche:
cms.membership.access_groups.write
crm.lists.read
crm.lists.read
crm.lists.write

Authorizations

private-app
string
header
required

Path Parameters

listId
string
required

Die ILS-ID der Liste „MANUAL“ oder „SNAPSHOT“.

Body

application/json · string[]

The IDs of the records to add to the list.

The body is of type string[].

Response

Successful response

The IDs of the records that were added, removed, and/or found to be missing as a result of the membership update request.

recordIdsRemoved
string[]
required

Die IDs der Datensätze, die aus der Liste „entfernt“ wurden.

recordsIdsAdded
string[]
required
recordIdsMissing
string[]
required

Die IDs der „fehlenden“ Datensätze (z. B. nicht im Portal vorhanden), die nicht „hinzugefügt“ oder „entfernt“ wurden.