Store consent information based on a template, and update consent status for user.

This API does not use caller authentication. The handle query parameter has the authentication information embedded in it.

The following URL is used by consent templates as form action URL. The handle uniquely identifies the subject, and the template used to generate the consent form.

POST https://api.consentgrid.io/v1/processForm?handle=handle
Content-Type: application/json | application/x-www-form-urlencoded

The expected request body is as follows:

Content-Type: application/json

{
  "consents": {
    "c1": {
      "value": true,
      "choices": {
      // Any additional fields used in the SmartConsent
      }
    },
    // Additional consents
  }
}

If the request body is URL-encoded, and is a list of key-value pairs where each key is the field name addressing a field in the above JSON document:

data.field1=value1&consents.name.value=true&consents.choices.expiration=2016-01-02T15:04:05Z07:00