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

openspecimen/rest/ng/collection-protocol-registrations/{registration_id}

Use this resource to delete an existing registration from the OpenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSON format.


Use this resource to delete an existing participant in the OpenSpecimen application. Use HTTP DELETE method to call this API by passing the below details:

Below are the parameters which need to be sent with the request:

Parameter
Details
registration_idIdentifier of the registration which you want to delete from OpenSpecimen

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

Use this URL to delete registration from OpenSpecimen application.

Result:

The response of this request will contains the identifier of the deleted participant and the success message.

Below is the example of the delete participant:

 

 

URLhttp[s]:<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations/1
MethodDELETE
content-typeapplication/json

Response

{

id: 1

participant: {

id: 1

firstName: "john"

lastName: "cena"

middleName: null

activityStatus: "Disabled"

registeredCps: [1]

0:  "cp"

-

}-

cpId: 1

ppid: "ASCI123er_1449205966737"

activityStatus: "Disabled"

registrationDate: 1398105000000

}

 

Error Cases :

code
Applies to
Status Message
200All resourcesParticipant deleted successfully
401All requestsAuthorization failed, User doesn’t have privileges to delete Participants
500All requestsInternal server error, Encountered server error while performing operations


  • No labels