Retrieve Subject Query Status for a Query Identifier
get
/HSDataService-web/api/3.2.0/subjectapi/subjects/queries/{id}
This end point supports the retrieval of Subject Query Status, Error Code, Error Message and other Status associated information.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
- id
-
Type:
integer
(int64
)Required:true
Query ID
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Body
Root Schema : QueryExecutionStatus
Type:
object
- error
-
Type:
object
QueryJobError - links
-
Type:
array
linksA collection of links containing hrefs to query status and results - queryId
-
Type:
integer
(int64
) - status
-
Type:
string
Nested Schema : QueryJobError
Type:
object
- errorCode
-
Type:
string
- errorMessage
-
Type:
string
400 Response
Invalid request parameters
404 Response
Query status not found
Examples
The following example shows how to view the status of a subject query by submitting a GET request.
API URL
http://localhost:7001/HSDataService-web/api/3.2.0/subjectapi/subjects/queries/977
Example of Response Body
The following example shows the response returned in JSON format.
{ "executeAsync": false, "minRetentionPeriodDays": 5, "queryCriteria": { "allCriteriaList": [ { "type": "MedicationCriteria", "exclude": false, "medicationCodeList": [ "1000000" ], "medicationOutcomeCodeList": [ "1" ] }, { "type": "SequenceVariantsCriteria", "exclude": false, "radioOptionMode": "VAR_IN_SELECTED_GENES", "geneInformation": { "type": "SequenceVariantsGeneDetails", "geneList": [ "BID" ], "dnaVersionList": [ 2 ], "dnaAlignmentList": [ "GRCh37" ] }, "polyphenSelected": false, "siftSelected": false, "fileTypeVCFSelected": true, "fileTypeMAFSelected": false, "fileTypeCGISelected": false } ] }, "queryId": 977, "queryExecutionStatus": { "status": "DONE", "links": [ { "rel": "status", "href": "/HSDataService-web/api/3.2.0/subjectapi/subjects/queries/977" }, { "rel": "result", "href": "/HSDataService-web/api/3.2.0/subjectapi/subjects/queries/977/data" } ] } }