Problems API - DELETE a comment
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} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v1/problem/details/{problemId}/comments/{commentId} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/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
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 |
Response
Response codes
Code | Type | Description |
---|---|---|
4XX | ErrorEnvelope | Client side error. |
5XX | ErrorEnvelope | 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