Versions Compared

Key

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

...

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.

...

Parameter
Details
idDistribution Protocol Id protocol id of the Distribution Protocol

...

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

Use this URL to delete Distribution Protocol distribution protocol in openSpecimen application.

...

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:

URLhttp://<host>:<port>/openspecimen/rest/ng/distribution-protocols/{distributionprotocolId}1 
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