# New Settings API: scope is required

**URL:** <https://community.dynatrace.com/t/new-settings-api-scope-is-required/33027>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [October 19, 2021, 10:07am UTC](https://community.dynatrace.com/t/new-settings-api-scope-is-required/33027 "2021-10-19T10:07:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [October 19, 2021, 10:07am UTC](https://community.dynatrace.com/t/new-settings-api-scope-is-required/33027/1 "2021-10-19T10:07:13Z")

</div>

Using the v2/settings API to set preset dashboards for certain groups.

Found out that the schema = builtin:dashboards.presets

When execution this to get the objects …

```markup
curl -X GET "https://xxxxx.live.dynatrace.com/api/v2/settings/objects?schemaIds=builtin%3Adashboards.presets&fields=objectId%2Cvalue" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token xxxx"

```

I complains that scope is required.

Acccording to the docs, scope is optional ([Settings API - GET objects — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/objects/get-objects/))

And I have no idea what to define as scope here. The dashboard itself?

---

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [October 19, 2021, 10:24am UTC](https://community.dynatrace.com/t/new-settings-api-scope-is-required/33027/2 "2021-10-19T10:24:46Z")

</div>

Ok,&nbsp;when the&nbsp; **nextPageKey** &nbsp;is not set, this parameter is required. But what do I need to specify here?

---

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [October 19, 2021, 10:39am UTC](https://community.dynatrace.com/t/new-settings-api-scope-is-required/33027/3 "2021-10-19T10:39:45Z")

</div>

Ok, found it. “environment” is actually a keyword. Maybe I should improve my doc-reading skills 😉

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [October 19, 2021, 10:47am UTC](https://community.dynatrace.com/t/new-settings-api-scope-is-required/33027/4 "2021-10-19T10:47:56Z")

</div>

Ran into this yesterday and thought I have a look at the docs today. Thanks for sparing me the work 🙂
