openspecimen/rest/ng/container-types/<containerTypeId>{container_type_Id}
Use this resource to delete Container Type container type in the OpenSpecimen application. Use HTTP DELETE method to call this API api by passing the below details in JSON format.
If there are any dependencies exist on deleting type then API api will return list of dependencies. For example it will return count of containers which are of deleting container type, in this case you can not delete type until all its dependencies get deleted.
Below are the attributes which need to be sent as a path variablerequest parameter
Parameter | Details |
---|---|
containerTypeIdid | Container type identifier |
http://<host>:<port>/openspecimen/rest/ng/conatinercontainer-types/1
Use this URL to delete container type in the OpenSpecimen application.
...
URL | http://<host>:<port>/ openspecimen/rest/ng/container-types/1 | ||||||||||||||||
Method | DELETE | ||||||||||||||||
Response | 1
7 8 9 10 11
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Container type has been deleted successfully |
404 | All requests | Container type with given identifier not found. |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |