Get status of a submitted query
GET/query/:queryId/status
Check the status of a previously-submitted query.
Queries are processed asynchronously, so may take some time to complete depending on system demand and query complexity. You should check the status of your query regularly until it reaches a final state (FINISHED
or FAILED
).
Status information for a query (identified by :queryId
) can only be accessed by the user who originally submitted it.
Required scope(s): [data.chf:query
, data.indices:query
]
Request
Path Parameters
Unique identifier of the query.
Responses
- 200
- 401
- 403
- 404
- 500
Success - latest status for the specified query.
- application/json
- Schema
- Example (from schema)
Schema
Unique identifier of the query.
Possible values: [SUBMITTED
, IN_PROGRESS
, RUNNING
, COMPLETED
, FAILED
, CANCELLED
]
Current status of the query.
Timestamp denoting when query was submitted.
Timestamp denoting when query status was last updated.
Timestamp denoting when query results will expire (only available when status is FINISHED
).
Details of the error if query failed (only available when status is FAILED
).
{
"queryId": "4DDC21D9-E30C-458A-80E2-642CA3238541",
"status": "IN_PROGRESS",
"requestedAt": "2024-04-02T16:20:09.736000+00:00",
"updatedAt": "2024-04-02T16:20:20.667925+00:00",
"expiresAt": "2024-04-04T16:20:20.667953+00:00",
"error": "string"
}
Unauthorized - invalid access token or requesting user is not the original query submitter.
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}
Forbidden - invalid access token or user not authorised.
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}
Query not found
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}
Internal server error - contact tech@gardin.ag for further assistance.
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}