Migrate from Problems API v1 to Problems API v2

Problems API v1 has been deprecated with Dynatrace version 1.243. Its replacement is Problems API v2. We recommend that you migrate to the new API at your earliest convenience.

The migration affects endpoint URLs, query parameters, and response/request body parameters, as well as the scope of the token for request authentication.

New features

Events API v2 offers you the following new features:

  • The entity selector helps you to filter problems in read requests.
  • Improved problem filtering via a problem selector.
  • Unified timeframe selector.

Base URL

new Problems v2
old Problems v1
/api/v2/problems
/api/v1/problem

Authentication token scope

new Problems v2
old Problems v1
Read problems (problems.read)
Write problems (problems.write)
Access problem and event feed, metrics, and topology (DataExport)

Parameters

To learn about new query/body parameters, see the documentation of individual requests in Problems API v2.

Example

In this example, we query a list of open problems on hosts that happened within the last two hours.