Problems API v2 - PUT a comment

Updates the specified comment on a problem.

The request consumes an application/json payload.

PUTSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/problems/{problemId}/comments/{commentId}
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/problems/{problemId}/comments/{commentId}

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

ParameterTypeDescriptionInRequired
problemIdstring

The ID of the required problem.

pathrequired
commentIdstring

The ID of the required comment.

pathrequired
bodyCommentRequestDtoImpl

The JSON body of the request. Contains the updated comment.

bodyoptional

Request body objects

The CommentRequestDtoImpl object

ElementTypeDescriptionRequired
contextstring

The context of the comment.

optional
messagestring

The text of the comment.

required

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.

{
"context": "string",
"message": "string"
}

Response

Response codes

CodeTypeDescription
204-

Success. The comment has been updated.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.