...
Below are the attributes which need to be sent in the request body:
Parameter | Detail |
---|---|
name | Container type name. Should be unique |
nameFormat | Container Naming format. Please refer https://openspecimen.atlassian.net/wiki/x/a4CB for available tokens. |
noOfRows | Number of rows |
noOfColumns | Number of columns |
rowLabelingScheme | Row labeling scheme, by default it will be N Available permissible values are : {Numbers, Alphabets Upper Case, Alphabets Lower Case, Roman Upper Case, Roman Lower Case} |
columnLabelingScheme | Column labeling scheme, by default it will be N Available permissible values are : {Numbers, Alphabets Upper Case, Alphabets Lower Case, Roman Upper Case, Roman Lower Case} |
temperature | Temperature of container |
storeSpecimenEnabled | Can store specimens in container of this type. Either true or false |
canHold | Can hold container type detail. Ex: 'Freezer' can hold 'Rack', 'Rack' can hold 'Box' |
http[s]:<host>:<port>/openspecimen/rest/ng/container-types/<id>
...
Below is the example of the create container type:
URL | http://<host>:<port>/ openspecimen/rest/ng/container-types/1 | |||||||||
Method | PUT | |||||||||
Request | application/json | |||||||||
json |
| |||||||||
Response |
|
|
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Container type has been updated successfully |
400 | All requests | Invalid parameters, e.g duplicate event label, blank event label etc |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |