Skip to main content
PUT
/
api
/
dataeng
/
query
/
{query_id}
Update generated query
curl --request PUT \
  --url https://api.example.com/api/dataeng/query/{query_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>"
}
'
{
  "query": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "data": {
    "start": 123,
    "row_count": 123,
    "columns": [
      "<string>"
    ],
    "next_start": 123,
    "data": [
      [
        "<unknown>"
      ]
    ]
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

query_id
string
required

Body

application/json
query
string
required

The updated SQL query text.

Response

Query updated successfully.

query
string
required

The interpreted SQL query generated from the prompt.

id
string<uuid> | null

A unique ID for the generated query.

data
DataResponse · object

The data returned as part of the query response, if applicable.

error
string | null

Error message if any issue occurred during query generation.