catissuecoreopenspecimen/rest/ng/distribution-protocols/{id}
or
openspecimen/rest/ng/distribution-protocols/title={distributionprotocolIdtitle}
Use this resource to delete the Distribution Protocol distribution protocol. Use HTTP DELETE method to call this API by passing the below details in JSON format.
Below are the attributes which need to be sent in the request body :
Parameter | Details |
---|---|
distributionprotocolIdid | Distribution Protocol Id protocol id of the Distribution Protocoldistribution protocol |
title | Distribution protocol title of the distribution protocol |
http[s]:<host>:<port>/openspecimen/rest/ng/distribution-protocols/{id}
or
http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/distribution-protocols/title={distributionprotocolIdtitle}
Use this URL to delete Distribution Protocol distribution protocol in caTissue openSpecimen application.
Result:
The response of this request will contains the details of the deleted Distribution Protocol distribution protocol.
Below is the example of the delete Distribution Protocol distribution protocol:
URL | catissuecore openspecimen/rest/ng/distribution-protocols/1 or title=cpTitle |
Method | DELETE |
Request | application /json |
Response | "success" |
...
code | Applies to | Status Message |
---|---|---|
200 | All resources | Distribution Protocolprotocol has been deleted successfully |
401 | All requests | Authorization failed, User user doesn’t have Authority |
404 | All requests | Distribution Protocolprotocol not found, Distribution Protocolprotocol with given details not present in the system |
500 | All requests | Internal server error, Encountered encountered server error while performing operations |