# Dynatrace Environment API - Dynamic Filtering

**URL:** <https://community.dynatrace.com/t/dynatrace-environment-api-dynamic-filtering/47162>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [August 15, 2024, 11:18am UTC](https://community.dynatrace.com/t/dynatrace-environment-api-dynamic-filtering/47162 "2024-08-15T11:18:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrd07820](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mrd07820](https://community.dynatrace.com/u/mrd07820)\
**Post date:** [August 15, 2024, 11:18am UTC](https://community.dynatrace.com/t/dynatrace-environment-api-dynamic-filtering/47162/1 "2024-08-15T11:18:26Z")

</div>

I am quite new to the Dynatrace environment and trying my hand at building a query.

I am in the&nbsp;Dynatrace Environment API V2.0 (https://{environmentid}.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Environment%20API%20v2#/) trying to build a query under ‘Settings - Objects’ using the SchemaIds ‘builtin:alerting.maintenance-window’. I need to filter the output such that I receive only those data fields for which value.schedule.onceRecurrence.startTime or value.schedule.onceRecurrence.endTime are in the last 10 minutes.

When I enter a value manually it executes but it is not working with something like&nbsp;value.schedule.onceRecurrence.startTime = now-9m.

Is the syntax supposed to be different or dynamic filtering is not supported at all on this interface?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [August 16, 2024, 5:50am UTC](https://community.dynatrace.com/t/dynatrace-environment-api-dynamic-filtering/47162/2 "2024-08-16T05:50:15Z")

</div>

Hi,

I think those filters cannot be applied in GET request itself. You can make a GET request from here:

 ![AntonPineiro_0-1723787347870.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/b/7b7dc92b2e01e5d001f133436f64f2255b0543d2.png)

And later, post processing to filter objects base on your criteria.

Best regards
