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

« Previous Version 3 Next »

openSpecimen/rest/ng/collection-prorocols/{cpId}

Use this resource to delete the Collection 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
cpIdCP id of the collection protocol


http[s]:<host>:<port>/openSpecimen/rest/ng/collection-protocols/{cpId}

Use this URL to delete Collection Protocol in openSpecimen application.

Result:

The response of this request will contains the details of the deleted Collection Protocol.

Below is the example of the delete Collection Protocol:

URLhttp://<host>:<port>/openSpecimen/rest/ng/collection-protocols/{cpId}
MethodDELETE
Requestapplication /json

Response

"success"

 

 Error Cases :

code
Applies to
Status Message
200All resourcesCollection Protocol has been deleted successfully
401All requestsAuthorization failed, user doesn’t have authority
404All requestsCollection Protocol not found, collection Protocol with given details not present in the system
500All requestsInternal server error, encountered server error while performing operations
  • No labels