Creation dynamic list : filter branch type error 'ASSOCIATION' expected instead of 'OR'
Hi everyone,
For one of my projects, I need to create a dynamic contact list via the API. I've used the API to develop my function, but for some reason the Api response returns an exception. I get an error, but my list has been well created in the hubspot backoffice.
My project is on symfony I'm using the hubspot/api-client 11.3
Creation dynamic list : filter branch type error 'ASSOCIATION' expected instead of 'OR'
Hi Jaycee, and thank you for your kind response. I used the endpoint to make your request. the API returns :
So I executed the request in Postman, and this is what I get
The list exist well, but as you suggest the structure for filter_branch_type seems not to appear. This is surprising because the filter does exist on the list.
Creation dynamic list : filter branch type error 'ASSOCIATION' expected instead of 'OR'
I lied 😊 I do have one request. Can you make a request to the `GET/crm/v3/lists/{listId}` endpoint for the list that you created that threw the error, please? The structure for filter_branch_type should come back in the response.
Creation dynamic list : filter branch type error 'ASSOCIATION' expected instead of 'OR'
Hey, @OLicorn👋 Thanks for sharing this. That definitely sounds unexpected. Looking at the documentation for Filter Branches, it indicates you should use the approach that's in your example — using `AND` or `OR` for `filter_branch_type`. I'm going to set up a quick test to try to reproduce the error and then track down the team that is the endpoint owner. If I have additional questions or any follow up, I'll post here and tag you in the reply.