Path parameters
-
Project ID
Format should match the following pattern:
^[A-Za-z0-9\-]+$
. -
Query ID
Format should match the following pattern:
^[A-Za-z0-9\-]+$
.
POST /project/{projectId}/queries/{queryId}
curl \ --request POST 'http://127.0.0.1:8278/api/v1/project/{projectId}/queries/{queryId}' \ --header "Content-Type: application/json" \ --data '{"language":"JAVA","attemptTypedEntities":false}'
Request examples
{ "language": "JAVA", "attemptTypedEntities": false }
Response examples (200)
{ "id": "string", "projectId": "string", "input": { "database": "string", "schema": "string", "name": "string", "query": "string", "createdAt": "2025-05-04T09:42:00Z", "runScriptTemplate": "string", "queryType": "STORED_PROCEDURE" }, "output": { "query": "string", "status": "NOT_STARTED", "lastModifiedAt": "2025-05-04T09:42:00Z", "language": "JAVA", "attemptedTypedEntities": true, "usedTypedEntities": false, "errorMessage": "string", "modified": true, "runScriptTemplate": "string", "functionName": "string" } }
Response examples (404)
{ "jobId": "string", "message": "string", "description": "string", "timestamp": "2025-05-04T09:42:00Z" }
Response examples (492)
{ "jobId": "string", "message": "string", "description": "string", "timestamp": "2025-05-04T09:42:00Z" }
Response examples (497)
{ "jobId": "string", "message": "string", "description": "string", "timestamp": "2025-05-04T09:42:00Z" }