Skip to main content
PUT
/
crm
/
v3
/
lists
/
{listId}
/
memberships
/
add
Agregar registros a una lista
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"
  ]
}

Productos compatibles

Se requiere uno de los siguientes productos o productos de ediciones superiores.
Marketing HubMarketing Hub -Starter
Sales HubSales Hub -Gratuito
Service HubService Hub -Gratuito
Content HubContent Hub -Starter
Esta API requiere uno de los siguientes ámbitos:
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

El ID de ILS de la lista "MANUAL" o "INSTANTÁNEA".

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

Los ID de los registros que fueron "eliminados" de la lista.

recordsIdsAdded
string[]
required
recordIdsMissing
string[]
required

Los ID de los registros identificados como "faltante" (por ejemplo, no existían en el portal) y, por lo tanto, no fueron "agregados" o "eliminados".