Try it free

Submit DQL generation feedback

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Submit feedback for a generated DQL result in Dynatrace with the NL2DQL API, including the message token, origin, feedback, and optional query details.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/davis/copilot/v1/skills/nl2dql:feedback

Overview

Allows to provide feedback to a nl2dql response. The payload is a JSON dictionary combining feedback and information from the nl2dql response. Please review the examples for the correct payload formatting.

Parameters:

  • messageToken: Message token as provided by nl2dql:explain.

  • origin: Application name of the caller.

  • feedback: Feedback dictionary.

    • type: Type of the feedback: "positive" or "negative".
    • text: Natural language feedback text.
    • category (Optional): One out of "misunderstood", "incorrect", "incomplete", "error", "other".
    • improvement (Optional):
      • text: Suggestion to improve the answer
      • confirmation: true to verify that the improvement suggestion is valid, false otherwise
  • userQuery (Optional): Message prompt as sent to the nl2dql:generate endpoint.

  • *generatedDql (Optional): Response as received from the nl2dql:generate endpoint.

Please note, this endpoint is in preview and is subject to the Dynatrace preview conditions, as linked in the overview.

Authentication

To execute this request, you need a platform token or OAuth access token with davis-copilot:nl2dql:execute scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
bodyNl2DqlFeedbackRequest-bodyRequired

Request body objects

The Nl2DqlFeedbackRequest object

ElementTypeDescriptionRequired
messageTokenstring-Required
originstring-Required
feedbackNl2DqlFeedback-Required
userQuerystring-Required
generatedDqlstring-Optional

The Nl2DqlFeedback object

ElementTypeDescriptionRequired
typeNl2DqlFeedbackType-
The element can hold these values
  • positive
  • negative
Required
textstring-Optional
categoryNl2DqlFeedbackCategory

Must be one of [ "misunderstood", "incorrect", "incomplete", "error", "other" ]

Optional
improvementNl2DqlImprovedSummary-Optional

The Nl2DqlFeedbackType object

The Nl2DqlFeedbackCategory object

Must be one of [ "misunderstood", "incorrect", "incomplete", "error", "other" ]

The Nl2DqlImprovedSummary object

ElementTypeDescriptionRequired
textstring-Required
confirmationboolean-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.

{
"messageToken": "string",
"origin": "Notebooks DQL to NL feedback",
"feedback": {
"type": "positive",
"text": "The DQL statement was not correct.",
"category": "misunderstood",
"improvement": {
"text": "The DQL statement should have shown me metadata for the logs source.",
"confirmation": true
}
},
"userQuery": "Show me the latest 100 logs.",
"generatedDql": "fetch logs \n| limit 100 \n| sort timestamp desc"
}

Response

Response codes

CodeTypeDescription
202-

Feedback successfully submitted

4XXClientErrorResponse-
5XXInternalErrorResponse-

Response body objects

The ClientErrorResponse object

ElementTypeDescription
errorClientErrorResponseObject-

The ClientErrorResponseObject object

ElementTypeDescription
codeinteger-
messagestring-

Response body JSON models

{
"error": {
"code": 400,
"message": "Bad Request"
}
}
Related tags
Platform APIDynatrace PlatformAI Observability