Zum Hauptinhalt springen
PUT
/
crm
/
v3
/
lists
/
{listId}
/
memberships
/
add-and-remove
リストのレコードを追加または削除
curl --request PUT \
  --url https://api.hubapi.com/crm/v3/lists/{listId}/memberships/add-and-remove \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "recordIdsToAdd": [
    "123",
    "456",
    "789"
  ],
  "recordIdsToRemove": [
    "654"
  ]
}'
{
  "recordIdsAdded": [
    "123",
    "456"
  ],
  "recordIdsMissing": [
    "789"
  ],
  "recordIdsRemoved": [
    "654"
  ]
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -Starter
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Starter
この API には、次のいずれかのスコープが必要です。
cms.membership.access_groups.write
crm.lists.read
crm.lists.read
crm.lists.write

Authorizations

Authorization
string
header
required

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

Path Parameters

listId
string
required

「MANUAL」または「SNAPSHOT」リストのILS ID

Body

application/json

The IDs of the records to add and/or remove from the list.

The IDs of the records to add and/or remove from a list.

recordIdsToRemove
string[]
required
recordIdsToAdd
string[]
required

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

リストから「削除」されたレコードのID。

recordsIdsAdded
string[]
required
recordIdsMissing
string[]
required

「欠落」していたため(例:ポータルに存在しなかった)、「追加」または「削除」されなかったレコードのID。