# Update List Filter Email Event API Error

**URL:** <https://community.hubspot.com/t/update-list-filter-email-event-api-error/127371>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [March 5, 2025, 1:13pm UTC](https://community.hubspot.com/t/update-list-filter-email-event-api-error/127371 "2025-03-05T13:13:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlejandroGarcia](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AlejandroGarcia](https://community.hubspot.com/u/AlejandroGarcia)\
**Post date:** [March 5, 2025, 1:13pm UTC](https://community.hubspot.com/t/update-list-filter-email-event-api-error/127371/1 "2025-03-05T13:13:20Z")

</div>

Hi,  
I’m trying to create/update the filters of a Dynamic List. It is a simple filter: Get all Contacts who Received and specific Email.  
I tried both adding the filters in the creation and updating an existing List. The Update body for example:

{

“filterBranch”: {

“filterBranchType”: “OR”,

“filters”: [],

“filterBranches”: [

{

“filterBranchType”: “AND”,

“filters”: [

{

“level”: “EMAIL\_API\_CAMPAIGN”,

“appId”: “XXXXX”,

“emailId”: “186899289459”,

“filterType”: “EMAIL\_EVENT”,

“operator”: “RECEIVED”

}

],“filterBranches”: []

}

]

}

}  
I can see how the Id changes in the UI, but it looks like it is not matching the EmailId and it is using the Id as a name:

 ![AlejandroGarcia_0-1741180102643.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a3317f8d9c371d3d65111d43dfd8b24eef684028.png)

The Email exists:

 ![AlejandroGarcia_1-1741180238576.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/5/d5cc50b9d4803545d9c90ad3b69f7958deec5012.png)

I’ve tried all Levels:

“EMAIL\_API\_CAMPAIGN”, “EMAIL\_API\_CAMPAIGN\_GROUP”, “HUBSPOT\_CAMPAIGN” and I get the same error.  
Is there any other setting I should change?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 5, 2025, 9:02pm UTC](https://community.hubspot.com/t/update-list-filter-email-event-api-error/127371/2 "2025-03-05T21:02:30Z")

</div>

Hey, @AlejandroGarcia 👋 Thanks for your post. One thing that helps me sometimes is to try to reverse-engineer the List filters in-app first.

- Create a List with the same filter options
- Verify it populates as expected
- Grab the List ILS ID
- Make a request to the [**GET List by ID Endpoint**](https://developers.hubspot.com/docs/guides/api/crm/lists/overview#retrieve-lists:~:text=To%20retrieve%20an,list%20ID%20below.) and include the `includeFilters=true` param  
`https://api.hubapi.com/crm/v3/lists/{some_list_ILS_ID}?includeFilters=true​`
- Compare the filter set-up JSON between what you stared with and what is contained in the response

It might not be the exact solution, but it may get you to the next step.

Talk soon! — Jaycee

---

<div class="post-metadata">

**Author:** ![AlejandroGarcia](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AlejandroGarcia](https://community.hubspot.com/u/AlejandroGarcia)\
**Post date:** [March 6, 2025, 7:59am UTC](https://community.hubspot.com/t/update-list-filter-email-event-api-error/127371/3 "2025-03-06T07:59:19Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , that worked! Tried to do it before but didn’t know the ?IncludeFilters=true option.  
Thank you!
