# Creating key requests automatically.

**URL:** <https://community.dynatrace.com/t/creating-key-requests-automatically/21406>\
**Category:** Open Q&A\
**Tags:** services-classic\
**Created:** [February 4, 2021, 1:25pm UTC](https://community.dynatrace.com/t/creating-key-requests-automatically/21406 "2021-02-04T13:25:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariyakalappura](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mariyakalappura](https://community.dynatrace.com/u/mariyakalappura)\
**Post date:** [February 4, 2021, 1:25pm UTC](https://community.dynatrace.com/t/creating-key-requests-automatically/21406/1 "2021-02-04T13:25:55Z")

</div>

Is there any way to create key requests automatically for a service. We have a spring-boot application and I want to know if there is any way we can do this configuration from the code itself.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [February 4, 2021, 1:29pm UTC](https://community.dynatrace.com/t/creating-key-requests-automatically/21406/2 "2021-02-04T13:29:22Z")

</div>

You cannot make automatical rules for marking requests as key ones, but you can use API and some scripts if you know already list of endpoints you want to mark as key ones:

> **[Request attributes API](https://docs.dynatrace.com/docs/dynatrace-api/configuration-api/service-api/request-attributes-api)**
>
> Learn what the Dynatrace request attribute config API offers.

The problem may be if some of them has some variables in paths which has to be overwritten using Request naming rules.

Sebastian
