30 Aug 2026 09:24 AM
Hi All,
I wanted to export list of problems within a period of time to an excel sheet.
What i did is the following:
- Generate new Token with problem Read
- In Dynatrace Environment API : I went to Problems => Get, then i clicked on the lock key to authenticate using the new tokens generated
- I clicked on "Try it out"
- I filled the details as below
1- fields => Problem,impacted,Affected,Root Cause,Start Date,Duration,Alerting profiles
2- nextPageKey=> Null
3- pageSize=> 50
4- from=> 2026-07-01
5- to=> 2026-07-31
6- problemSelector=> status("any")
7-entitySelector=> type("any")
8-sort=> null
Then i clicked on Execute, but it did not work
I got the below responses:
Snippets=> curl -X 'GET' \ '****\ -H 'accept: application/json; charset=utf-8' \ -H 'Authorization: Api-Token *********'
| Code | Details |
| 401 Undocumented | Error: Unauthorized Response body{ "error": { "code": 401, "message": "Token Authentication failed" } |
Can you guide me where is the problem and how to solve it please
30 Aug 2026 10:01 AM
@Khejazi token scope is incorrect or you are calling a different environment.
30 Aug 2026 10:14 AM - edited 30 Aug 2026 10:25 AM
so can you guide me what to do please
What is the correct token to be used
Which one of these?
30 Aug 2026 10:20 AM
@Julius_Loman also what about the parameters values? are they OK?
30 Aug 2026 11:35 AM
Thanks for the support, I just recreated another token with read problem and it works fine.
Featured Posts