Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Get Consents

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

Use this resource to retrieve the existing consent responses from OpenSpecimen application. Use HTTP GET method to call this API.

Here cpr_id refers to the actual identifier of the registration for which you wants to retrieve the consent responses.

 

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

Use this URL to retrieve the consent response for the given registration id.

Result:

The response of this request will contains the details of the response submitted by the participant.

Below is the example of the update participant:

URLhttp[s]:<host>:<port>/collection-protocol-registrations/4/consents
MethodGET
content-typeapplication/json
response
{
"cprId": null
"cpId": null
"ppid": null
"consentDocumentUrl": null
"consentSignatureDate": null
"witness": {
"id": 1
"firstName": "Admin"
"lastName": "Admin"
"loginName": "admin@admin.com"
"domain": "openspecimen"
"emailAddress": "admin@admin.com"
"admin": true
"cpCount": 0
"creationDate": null
}
-

"consentTierResponses": [
1]0:  {
"statement": "Allow to use the sample for research"
"response": "Yes"
}

"consentDocumentName": null
}

 

Error Cases :

code
Applies to
Status Message
200All resourcesParticipant registered successfully
401All requestsAuthorization failed, User doesn’t have privileges to register Participants
404All requestsParticipant not found, Participant with the given identifier is not present in the system
500All requestsInternal server error, Encountered server error while performing operations
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com