# Is there any API to Enable Override defaults in Process Group Settings?

**URL:** <https://community.dynatrace.com/t/is-there-any-api-to-enable-override-defaults-in-process-group-settings/31614>\
**Category:** Dynatrace API\
**Tags:** process-groups, dynatrace-api\
**Created:** [May 27, 2021, 7:34am UTC](https://community.dynatrace.com/t/is-there-any-api-to-enable-override-defaults-in-process-group-settings/31614 "2021-05-27T07:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakb](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nakb](https://community.dynatrace.com/u/nakb)\
**Post date:** [May 27, 2021, 7:34am UTC](https://community.dynatrace.com/t/is-there-any-api-to-enable-override-defaults-in-process-group-settings/31614/1 "2021-05-27T07:34:36Z")

</div>

Hi I am trying to automate the enable/disable Process Group on all hosts using Override Defaults in Dynatrace but I am unable to find any PUT API for this, please let me know if any available or any other way to automate it.

 ![naveen_0-1622100750270.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/50624950c9b75f838002161f260db068852d8ff5.png)

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [January 4, 2022, 2:21pm UTC](https://community.dynatrace.com/t/is-there-any-api-to-enable-override-defaults-in-process-group-settings/31614/2 "2022-01-04T14:21:01Z")

</div>

Hi Community members, do you have some helpful tips on subject mentioned above?

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [April 26, 2022, 1:30pm UTC](https://community.dynatrace.com/t/is-there-any-api-to-enable-override-defaults-in-process-group-settings/31614/3 "2022-04-26T13:30:48Z")

</div>

As&nbsp;[@pahofmann](https://community.dynatrace.com/user/22796)&nbsp;and&nbsp;[@mark\_bley](https://community.dynatrace.com/user/13072)&nbsp;are mentioning in the related Product Idea about this topic, this is now possible through&nbsp;[Settings API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings?_ga=2.18031290.2061216437.1650870575-939210357.1648450979).

 ![MaciejNeumann_0-1650979804443.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/dc18253bc0ce68a3ad9fb69fbd395fe972d05220.png)

You can try following payload and send it to “/api/v2/settings/objects”

```markup
[
    {
        "schemaVersion": "1.0.7",
        "schemaId": "builtin:declarativegrouping",
        "scope": "environment",
        "value": {
            "enabled": true,
            "name": "MY TEST",
            "detection": [
                {
                    "id": "MY TEST",
                    "processGroupName": "Some PG Name",
                    "rules": [
                        {
                            "property": "executablePath",
                            "condition": "$eq(/path/to/exec)"
                        }
                    ]
                }
            ]
        }
    }
]

```
