This API is deprecated. Use the Problems API v2 instead.
Deletes a comment from the specified problem.
DELETE | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v1/problem/details/{problemId}/comments/{commentId} |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v1/problem/details/{problemId}/comments/{commentId} |
To execute this request, you need an access token with DataExport
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
problemId | string | The ID of the problem where you want to delete the comment. | path | required |
commentId | string | The ID of the comment to delete. | path | required |
Code | Type | Description |
---|---|---|
4XX | Error | Client side error. |
5XX | Error | Server side error. |
default | - | default response |
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 -X DELETE \https://mySampleEnv.live.dynatrace.com/api/v1/problem/details/2307087411653364173_1538400720000V2/comments/2216103859600298777_1538400720000 \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com/api/v1/problem/details/2307087411653364173_1538400720000V2/comments/2216103859600298777_1538400720000
204