# Errors using Update List Filters API

**URL:** <https://community.hubspot.com/t/errors-using-update-list-filters-api/105362>\
**Category:** APIs & Integrations\
**Tags:** sdk\
**Created:** [April 20, 2024, 9:05pm UTC](https://community.hubspot.com/t/errors-using-update-list-filters-api/105362 "2024-04-20T21:05:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenzoenns](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lorenzoenns/32/1486_2.png) [@Lorenzoenns](https://community.hubspot.com/u/Lorenzoenns)\
**Post date:** [April 20, 2024, 9:05pm UTC](https://community.hubspot.com/t/errors-using-update-list-filters-api/105362/1 "2024-04-20T21:05:08Z")

</div>

Hi,

I’m trying to update filters in an exsiting dynamic list, on a monthly basis, using the API.

According to teh documentation, the following applies:  
PUT & End point: [https://api.hubapi.com/crm/v3/lists/{list\_id}/update-list-filters](https://api.hubapi.com/crm/v3/lists/%7Blist_id%7D/update-list-filters)

For the life of me, I can’t get this API to work.

I simply want to update the filters to include all Contacts that have a ‘createdate’ that is, for exmaple, between March 1, 2024 and March 31, 2024 (inclusive).  
Anybody have pointers or an example of the request body code I’d need here?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [April 22, 2024, 12:44am UTC](https://community.hubspot.com/t/errors-using-update-list-filters-api/105362/2 "2024-04-22T00:44:54Z")

</div>

Hi @Lorenzoenns 👋

If you haven’t already, I think you’ll want to review HubSpot’s [“List filters [BETA]” API documentation](https://developers.hubspot.com/docs/api/crm/lists-filters), specifically the _“Is between or is not between dates”_ section. Using this example, I was able to successfully update the filters of a Dynamic Contact List like so:

**PUT** [https://api.hubapi.com/crm/v3/lists/:LIST\_ID/update-list-filters](https://api.hubapi.com/crm/v3/lists/:LIST%5C_ID/update-list-filters)

**Request body:**

```lia-code-sample
// see this documention for filter definition schema: https://developers.hubspot.com/docs/api/crm/lists-filters
{
 "name": "Sample Date Between",
 "objectTypeId": "0-1", // "0-1" is Contact
 "processingType": "DYNAMIC",
 "filterBranch": {
 "filters": [],
 "filterBranchOperator": "OR",
 "filterBranchType": "OR",
 "filterBranches": [
 {
 "filterBranches": [],
 "filters": [
 {
 "property": "createdate",
 "operation": {
 "operator": "IS_BETWEEN",
 "includeObjectsWithNoValueSet": false,
 "lowerBoundEndpointBehavior": "INCLUSIVE",
 "upperBoundEndpointBehavior": "INCLUSIVE",
 "propertyParser": "VALUE",
 "lowerBoundTimePoint": {
 "timeType": "DATE",
 "timezoneSource": "CUSTOM",
 "zoneId": "Australia/Brisbane", // can be "UTC" or portal timezone (e.g. "Australia/Brisbane"
 "year": 2024,
 "month": 4,
 "day": 1,
 "hour": 0,
 "minute": 0,
 "second": 0,
 "millisecond": 0
 },
 "upperBoundTimePoint": {
 "timeType": "DATE",
 "timezoneSource": "CUSTOM",
 "zoneId": "Australia/Brisbane", // can be "UTC" or portal timezone (e.g. "Australia/Brisbane"
 "year": 2024,
 "month": 4,
 "day": 21,
 "hour": 23,
 "minute": 59,
 "second": 59,
 "millisecond": 999
 },
 "type": "TIME_RANGED",
 "operationType": "TIME_RANGED"
 },
 "filterType": "PROPERTY"
 }
 ],
 "filterBranchType": "AND",
 "filterBranchOperator": "AND"
 }
 ]
 }
}

```

I hope that proves helpful. Please let me know if you have any follow-up questions.
