Versions Compared

Key

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

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

...

http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers/1consents

Use this URL to update consent-tier for Collection Protocol in the OpenSpecimen application.

...

Below is the example of the update consent-tier:

URLhttp[s]://<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations/248878/consents
MethodPUT
Requestapplication/json
json


Code Block
languagejs
themeEclipse
{
  "consentSignatureDate": "2022-04-20",
  "witness": {
    "id": 1,
    "emailAddress:": "admin@krishagni.com"
  },
  "comments": "Consent to die",
  "responses": [
    {
      "code": "CS1",
      "response": "Yes"
    },
    {
      "code": "CS2",
      "response": "No"
    }
  ]
}


Response


Code Block
{
    "opComments": null,
    "cprId": null,
    "cpId": null,
    "cpShortTitle": "kaustubh_cp",
    "ppid": "PPID_KW_001",
    "consentSignatureDate": 1650412800000,
    "witness": {
        "id": 1,
        "type": "SUPER",
        "firstName": "Admin",
        "lastName": "Admin",
        "loginName": "admin@krishagni.com",
        "domain": "openspecimen",
        "emailAddress": "admin@krishagni.com",
        "instituteId": 1,
        "instituteName": "A1 - For Demo Users",
        "admin": true,
        "instituteAdmin": false,
        "phoneNumber": "",
        "manageForms": true,
        "manageWfs": true,
        "cpCount": 0,
        "activityStatus": "Locked"
    },
    "comments": "Consent to die",
    "responses": [
       {
         "code": "CS1",
         "response": "Yes"
       },
       {
         "code": "CS2",
         "response": "No"
       }
    ],
    "consentDocumentName": null,
    "statement": null,
    "code": null,
    "response": null,
    "documentFile": null,
    "mergeKey": "kaustubh_cp_PPID_KW_001"
}


...