buusing
1
When trying to remove a contact from a list via the api described here:
https://legacydocs.hubspot.com/docs/methods/lists/remove_contact_from_list
- the endpoint return an error 500 - internal error.
I have tried using both the old and new PHP libraries:
as well as raw curl request:
curl --location --request POST 'https://api.hubapi.com/contacts/v1/lists/14/remove' \
--header 'Authorization: Bearer xxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"vids": [10427501]
}'
Am i missing something, or is the endpoint broken ?
Hey ,
Is the list an dynamic or static list? You cannot programmatically remove contacts from dynamic lists only static lists. See below from documentation:
Please note that you cannot manually remove contacts to dynamic lists - they can only be updated by the contacts system based on the properties of the list itself. To determine whether a list is dynamic or static, when you get a list, you will see a flag called dynamic that equates to true or false.
buusing
3
Ahh that makes sense - forgot to check that.
Thanks for the quick answer.