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 5 Current »

openspecimen/rest/ng/collection-prorocols/{id}

or

openspecimen/rest/ng/collection-prorocols/title={title}

or

openspecimen/rest/ng/collection-prorocols/shortTitle={shortTitle}


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 URL :

Parameter
Details
cpIdId of the collection protocol to be deleted
titleTitle of the collection protocol to be deleted
shortTitleShort title of the collection protocol to be deleted


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

or

http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/title={title}

or

http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/shortTitle={shortTitle}


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:

URL

http://<host>:<port>/openspecimen/rest/ng/collection-protocols/1

or

http://<host>:<port>/openspecimen/rest/ng/collection-protocols/title=MyCP

or

http://<host>:<port>/openspecimen/rest/ng/collection-protocols/shortTitle=cps

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