• Home
  • Dynatrace API
  • Environment
  • Problems v2
  • Comments
  • PUT a comment

Problems API v2 - PUT a comment

Updates the specified comment on a problem.

The request consumes an application/json payload.

PUTManaged https://{your-domain}/e/{your-environment-id}/api/v2/problems/{problemId}/comments/{commentId}
SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/problems/{problemId}/comments/{commentId}
Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v2/problems/{problemId}/comments/{commentId}

Authentication

To execute this request, you need an access token with Write problems (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

ElementTypeDescription
messagestring

The text of the comment.

contextstring

The context of the comment.

Can be null.

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.

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

Response

Response codes

CodeDescription
204

Success. The comment has been updated.

Related topics
  • Problem detection and analysis

    Understand the basic concepts related to how Dynatrace detects and raises alerts for problems detected in your environment.