Problems API - DELETE a comment

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

Deletes a comment from the specified problem.

DELETEManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v1/problem/details/{problemId}/comments/{commentId}
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v1/problem/details/{problemId}/comments/{commentId}

Authentication

To execute this request, you need an access token with DataExport scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
problemIdstring

The ID of the problem where you want to delete the comment.

pathrequired
commentIdstring

The ID of the comment to delete.

pathrequired

Response

Response codes

CodeTypeDescription
4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

default-

default response

Example

In this example, the request deletes the comment with ID 2216103859600298777_1538400720000 from the problem with ID 2307087411653364173_1538400720000V2.

The API token is passed in the Authorization header.

Curl

curl -X DELETE \
https://mySampleEnv.live.dynatrace.com/api/v1/problem/details/2307087411653364173_1538400720000V2/comments/2216103859600298777_1538400720000 \
-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v1/problem/details/2307087411653364173_1538400720000V2/comments/2216103859600298777_1538400720000

Response code

204