# Why Dynatrace API accept agregationType parameter instead of aggregationType parameter for value percentile ?

**URL:** <https://community.dynatrace.com/t/why-dynatrace-api-accept-agregationtype-parameter-instead-of-aggregationtype-parameter-for-value-percentile/16316>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [October 12, 2018, 1:47pm UTC](https://community.dynatrace.com/t/why-dynatrace-api-accept-agregationtype-parameter-instead-of-aggregationtype-parameter-for-value-percentile/16316 "2018-10-12T13:47:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjoly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sjoly/32/25284_2.png) [@sjoly](https://community.dynatrace.com/u/sjoly)\
**Post date:** [October 12, 2018, 1:47pm UTC](https://community.dynatrace.com/t/why-dynatrace-api-accept-agregationtype-parameter-instead-of-aggregationtype-parameter-for-value-percentile/16316/1 "2018-10-12T13:47:58Z")

</div>

Hi, it’s not really a question more to inform or investigate about the reason why.

About this great and helpful article of [Wolfgang Beer](https://www.dynatrace.com/news/blog/author/wolfgang-beer/) : [Custom percentiles for dashboard charts & Dynatrace API calls](https://www.dynatrace.com/news/blog/custom-percentiles-dashboard-charts-dynatrace-api-calls/).

In the example API call fetches url the name parameter **agregationType** with only 1 **g** works for the value **percentile**. But for other **Built-in metrics** and **aggregations** , **agregationType** parameter with only 1 **g** don’t works and will return the message :

```auto
{
    "error": {
        "code": 400,
        "message": "The aggregation type is not allowed for the given timeseries id."
    }
}

```

So be careful to always use **aggregationType** with 2 **g** because it always works 🙂

I hope this will help some of you to not loose time, as me 🙂

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [October 15, 2018, 6:16am UTC](https://community.dynatrace.com/t/why-dynatrace-api-accept-agregationtype-parameter-instead-of-aggregationtype-parameter-for-value-percentile/16316/2 "2018-10-15T06:16:21Z")

</div>

Hi Stephane,

Thanks a lot for reporting that. We will immediately fix the typo in the blog post.

Best greetings,

Wolfgang
