openspecimen/rest/ng/collection-protocol-registrations/{cprId}/consents
...
URL | http://<host>:<port>/ openspecimen/rest/ng/collection-protocol-registrations/2/consents |
Method | POST |
Request | application/json |
json | Code Block |
---|
| {
"consentTierResponses":[{
"statement":"Allow to use the sample for research",
"response":"Yes"
}],
"witness":{
"emailAddress":"admin@admin.com"
}
} |
|
Response | Code Block |
---|
language | js | theme |
---|
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"
}
-
-
...