Problems API v2 - POST a comment

Posts a comment on the specified problem.

The request consumes an application/json payload.

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

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

Parameter
Type
Description
In
Required
problemId
string

The ID of the required problem.

path
required
body

The JSON body of the request. Contains the comment to be added.

body
optional

Request body objects

The CommentRequestDtoImpl object

Element
Type
Description
Required
context
string

The context of the comment.

optional
message
string

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

Code
Type
Description
201
-

Success. The comment has been added.

4XX

Client side error.

5XX

Server side error.