Versions Compared

Key

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

openspecimen/rest/ng/collection-protocol-registrations/{cprId}/consents

...

URLhttp://<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations/2/consents
MethodPOST
Requestapplication/json
json
Code Block
languagejs
themeEclipse
{
  "consentTierResponses":[{
     "statement":"Allow to use the sample for research",
     "response":"Yes"
  }],
  "witness":{
    "emailAddress":"admin@admin.com"
  }
}

Response

theme
Code Block
languagejs
Eclipse
{
"cprId": null null
"cpId": null null
"ppid": null null
"consentDocumentUrl": null null
"consentSignatureDate": null null
"witness":  {
"id": 1 1
"firstName":  "Admin"
"lastName":  "Admin"
"loginName":  "admin@admin.com"
"domain":  "openspecimen"
"emailAddress":  "admin@admin.com"
"admin": true true
"cpCount": 0 0
"creationDate": null null
}
-

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

"consentDocumentName": null} 

 

"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": "test"
"response": "Yes"
}
-
-

...

 null
}