Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Use this API to create one or more aliquot requirements from a given parent requirement.

URL/openspecimen/rest/ng/specimen-requirements/{parentReqId}/aliquots
MethodPOST
Body
{
  "code": "PL",
  "noOfAliquots": 5,
  "qtyPerAliquot": 2
}                                                                                    

Response

HTTP Status Code
Description
200                                 The derived specimen requirement is created and is assigned a unique ID. The response body contains the requirement details along with the unique ID. This unique ID can be used later to update, retrieve or create aliquots.                                                                                                        
400Something incorrect with the request. The response body contains the error code and the human readable error message.
500Something wrong with the server. Please contact support along with the request payload and exception stack trace.

Request Parameters

Parameter
Description
parentReqIdParent specimen requirement ID.
codePrefix 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.
noOfAliquotsNumber of aliquots to create.
qtyPerAliquotQuantity of each aliquot.
  • No labels