younifyd
Menu

Put /crm/v3/lists/{list Id}/memberships/add And Remove /crm/v3/lists/{list Id}/memberships/add And Remove

Add and/or Remove Records from a List

PUT/crm/v3/lists/{listId}/memberships/add-and-remove

Use it in a workflow

  1. Add a step and choose the HubSpot connector.
  2. Pick the Put /crm/v3/lists/{list Id}/memberships/add And Remove /crm/v3/lists/{list Id}/memberships/add And Remove action (under Lists).
  3. Fill in the fields below, then reference the result from later steps as {{putCrmV3ListsListIdMembershipsAddAndRemoveCrmV3ListsListIdMembershipsAddAndRemove.response.data}}.

Request

Path parameters

listIdstringrequired

The **ILS ID** of the `MANUAL` or `SNAPSHOT` list.

Request body

Enter the body as JSON in the step's Body field.

recordIdsToAddarray<string>required
recordIdsToRemovearray<string>required
json
{
  "recordIdsToAdd": [
    "string"
  ],
  "recordIdsToRemove": [
    "string"
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{putCrmV3ListsListIdMembershipsAddAndRemoveCrmV3ListsListIdMembershipsAddAndRemove.response.data.<field>}}.

recordIdsMissingarray<string>

The IDs of the records that were `missing` (e.g. did not exist in the portal) and so were not `added` or `removed`.

recordIdsRemovedarray<string>

The IDs of the records that were `removed` from the list.

recordsIdsAddedarray<string>
json
{
  "recordIdsMissing": [
    "string"
  ],
  "recordIdsRemoved": [
    "string"
  ],
  "recordsIdsAdded": [
    "string"
  ]
}

Need more? See the HubSpot guide for connection setup and behaviour shared by every action.