# Run API for many host from full stack to infra only

**URL:** <https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078>\
**Category:** Dynatrace API\
**Tags:** hosts-classic, dynatrace-api\
**Created:** [October 1, 2024, 5:52pm UTC](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078 "2024-10-01T17:52:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeyEngineer](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@HeyEngineer](https://community.dynatrace.com/u/HeyEngineer)\
**Post date:** [October 1, 2024, 5:52pm UTC](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078/1 "2024-10-01T17:52:25Z")

</div>

using builtin:host.monitoring.mod I can do one using the post settings/objects API.&nbsp; How would I format one command where I have 400 host.

[{“schemaId”:“builtin:host.monitoring.mode”,“schemaVersion”:“1.2.0”,“scope”:“HOST-5EDAD70B7766F2B9”,“value”:{“monitoringMode”:“INFRA\_ONLY”}}]

---

<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:** [October 2, 2024, 6:48am UTC](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078/2 "2024-10-02T06:48:22Z")

</div>

Hi,

You are using a POST request… Do you want to know which host are in Fullstack and Infra mode, right?

Best regards

---

<div class="post-metadata">

**Author:** ![anaidu](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anaidu](https://community.dynatrace.com/u/anaidu)\
**Post date:** [October 2, 2024, 9:08am UTC](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078/3 "2024-10-02T09:08:22Z")

</div>

Hi,

You can use this utility created to convert Hosts from Fullstack to Infra or vice versa: [BizOpsConfigurator](https://dynatrace.github.io/BizOpsConfigurator/#MassEdit)

Make sure you use right Tenant URL, API token and Hostgroup parameters to change the monitoring mode. Please use the dry run option to ensure & validate your request before applying the request real time.

Regards,

Ajay

---

<div class="post-metadata">

**Author:** ![HeyEngineer](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@HeyEngineer](https://community.dynatrace.com/u/HeyEngineer)\
**Post date:** [December 8, 2024, 5:40pm UTC](https://community.dynatrace.com/t/run-api-for-many-host-from-full-stack-to-infra-only/48078/4 "2024-12-08T17:40:23Z")

</div>

Thanks!
