19 Oct 2021
11:07 AM
- last edited on
20 Oct 2021
08:30 AM
by
MaciejNeumann
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 (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?
Solved! Go to Solution.
19 Oct 2021 11:24 AM
Ok, when the nextPageKey is not set, this parameter is required. But what do I need to specify here?
19 Oct 2021 11:39 AM
Ok, found it. "environment" is actually a keyword. Maybe I should improve my doc-reading skills 😉
19 Oct 2021 11:47 AM
Ran into this yesterday and thought I have a look at the docs today. Thanks for sparing me the work 🙂