Problems API v2 - POST close a problem
Closes the specified problem and adds the closing comment.
The request consumes and produces an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/problems/{problemId}/close |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/problems/{problemId}/close |
Authentication
To execute this request, you need an access token with problems.write
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
The ID of the required problem.
The JSON body of the request. Contains the closing comment on the problem.
Request body objects
The ProblemCloseRequestDtoImpl
object
The text of the closing comment.
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"message": "string"}
Response
Response codes
The problem is closed already the request hasn't been executed.
Response body objects
The ProblemCloseResult
object
The result of closing a problem.
The timestamp when the user triggered the closing.
True, if the problem is being closed.
The ID of the problem.
The Comment
object
The comment to a problem.
The user who wrote the comment.
The text of the comment.
The context of the comment.
The timestamp of comment creation, in UTC milliseconds.
The ID of the comment.
Response body JSON model
{"closeTimestamp": 1,"closing": true,"comment": {"authorName": "string","content": "string","context": "string","createdAtTimestamp": 1,"id": "string"},"problemId": "string"}