Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
distributionprotocolIdidDistribution Protocol Id protocol id of the Distribution Protocoldistribution protocol
titleDistribution 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

http://<host>:<port>/

catissuecore

openspecimen/rest/ng/distribution-protocols/1

or

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

{distributionprotocolId}

title=cpTitle

MethodDELETE
Requestapplication /json

Response

"success"

...

code
Applies to
Status Message
200All resourcesDistribution Protocolprotocol has been deleted successfully
401All requestsAuthorization failed, User user doesn’t have Authority
404All requestsDistribution Protocolprotocol not found, Distribution Protocolprotocol with given details not present in the system
500All requestsInternal server error, Encountered encountered server error while performing operations