Use this API to create one or more aliquot requirements from a given parent requirement.
URL | /openspecimen/rest/ng/specimen-requirements/{parentReqId}/aliquots |
Method | POST |
Body | |
}
Response
200 | The derived specimen requirement is aliquot requirements are created and is assigned a unique ID. The response body contains the requirement aliquot details along with the their unique ID. This unique ID can be used later to update, retrieve or create aliquots. IDs. |
400 400 | Something incorrect with the request. The response body contains the error code and the human readable error message. |
500 | Something wrong with the server. Please contact support along with the request payload and exception stack trace. |
Request Parameters
parentReqId | Parent specimen requirement ID. |
code | Prefix of unique code assigned to each aliquot. Example: If code is PL, then first aliquot is assigned PL1, second aliquot is assigned PL2 and like that. |
noOfAliquots | Number of aliquots to create. |
qtyPerAliquot | Quantity of each aliquot. |