Try it free

Submit DQL explanation feedback

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Submit feedback for a DQL explanation in Dynatrace with the DQL2NL API, including the message token, origin, feedback, and optional response details.

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

Overview

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

Parameters:

  • messageToken: Message token as provided by dql2nl: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 dql2nl:explain endpoint.

  • *queryExplanation (Optional): Response as received from the dql2nl:explain 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:dql2nl:execute scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
bodyDql2NlFeedbackRequest-bodyRequired

Request body objects

The Dql2NlFeedbackRequest object

ElementTypeDescriptionRequired
messageTokenstring-Required
originstring-Required
feedbackDql2NlFeedback-Required
userQuerystring-Required
queryExplanationstring-Optional

The Dql2NlFeedback object

ElementTypeDescriptionRequired
typeDql2NlFeedbackType-
The element can hold these values
  • positive
  • negative
Required
textstring-Optional
categoryDql2NlFeedbackCategory

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

Optional
improvementDql2NlImprovedSummary-Optional

The Dql2NlFeedbackType object

The Dql2NlFeedbackCategory object

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

The Dql2NlImprovedSummary 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": "describe logs",
"queryExplanation": "Show me the metadata of the logs data source."
}

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