• Home
  • Dynatrace API
  • Environment
  • Problems v1
  • Problems
  • POST close

Problems API - POST close

This API is deprecated. Use the Problems API v2 instead.

Closes the specified problem and adds the closing comment.

The request consumes and produces an application/json payload.

POSTManaged https://{your-domain}/e/{your-environment-id}/api/v1/problem/details/{problemId}/close
SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/problem/details/{problemId}/close
Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v1/problem/details/{problemId}/close

Authentication

To execute this request, you need an access token with Access problem and event feed, metrics, and topology (DataExport) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
problemIdstring

The ID of the problem to be closed.

pathrequired
contentstring

The closing comment.

queryrequired

Response

Response codes

CodeTypeDescription
200ProblemCloseResult

Success

Response body objects

The ProblemCloseResult object

The result of closing a problem.

ElementTypeDescription
problemIdstring

The ID of the problem.

commentProblemComment

The comment to the problem.

closeTimestampinteger

The timestamp when the closure was triggered.

closingboolean

The problem is in process of closing (true) or closed (false).

The ProblemComment object

The comment to the problem.

ElementTypeDescription
idstring

The ID of the comment.

createdAtTimestampinteger

The timestamp of the comment creation, in UTC milliseconds.

contentstring

The text of the comment.

userNamestring

The author of the comment.

contextstring

The context of the comment.

Could be any textual comment. You can only set it via REST API.

Response body JSON model

json
{ "problemId": "string", "comment": { "id": "string", "createdAtTimestamp": 1, "content": "string", "userName": "string", "context": "string" }, "closeTimestamp": 1, "closing": true }
Related topics
  • Problem detection and analysis

    Understand the basic concepts related to how Dynatrace detects and raises alerts for problems detected in your environment.