POST api/v2/QCTests/ValidateSamplesForBatch
Request
URI Parameters
Body Parameters
ValidateSamplesForBatchParams| Name | Description | Type | Additional information |
|---|---|---|---|
| QCTestId | integer | ||
| SampleIds | Collection of integer |
Request Formats
application/json, text/json
Sample:
{
"QCTestId": 1,
"SampleIds": [
1,
2
]
}
text/html
Sample:
{"QCTestId":1,"SampleIds":[1,2]}
Response
ValidateSamplesForBatchResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ValidSampleIds | Collection of integer | ||
| DuplicatedSamples | Collection of SampleValidationError | ||
| SamplesInOtherBatch | Collection of SampleValidationError |
Response Format
application/json, text/json
Sample:
{
"ValidSampleIds": [
1,
2
],
"DuplicatedSamples": [
{
"SampleId": 1,
"SampleControlNumber": "sample string 2",
"QCTestControlNumber": "sample string 3",
"QCTestId": 1
},
{
"SampleId": 1,
"SampleControlNumber": "sample string 2",
"QCTestControlNumber": "sample string 3",
"QCTestId": 1
}
],
"SamplesInOtherBatch": [
{
"SampleId": 1,
"SampleControlNumber": "sample string 2",
"QCTestControlNumber": "sample string 3",
"QCTestId": 1
},
{
"SampleId": 1,
"SampleControlNumber": "sample string 2",
"QCTestControlNumber": "sample string 3",
"QCTestId": 1
}
]
}
text/html
Sample:
{"ValidSampleIds":[1,2],"DuplicatedSamples":[{"SampleId":1,"SampleControlNumber":"sample string 2","QCTestControlNumber":"sample string 3","QCTestId":1},{"SampleId":1,"SampleControlNumber":"sample string 2","QCTestControlNumber":"sample string 3","QCTestId":1}],"SamplesInOtherBatch":[{"SampleId":1,"SampleControlNumber":"sample string 2","QCTestControlNumber":"sample string 3","QCTestId":1},{"SampleId":1,"SampleControlNumber":"sample string 2","QCTestControlNumber":"sample string 3","QCTestId":1}]}