New Settings API: scope is required

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 …

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)

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

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

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

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