Create draft consent record
Gives a draft consent record for the individual and a data agreement, without saving it. Use it when the individual must sign the consent before the server saves it: build the signature from the draft, then send both with 'Create consent record with signature'.
Create consent record with signature
Saves a consent record that the individual signed, in one step. Get the draft with 'Create draft consent record', sign it, and send the record and the signature. The record is saved with `optIn: true` and the state `signed`.
Create blank signature
Gives a signature template for the latest revision of a consent record, without saving it. Use it to sign a record that is `unsigned`, for example after an update:
Update consent record signature
Saves the signature of the individual for a consent record and makes the record `signed`. Send the template from 'Create blank signature' with `signature` (a compact JWS, ES256) and `verificationSignedBy` (the public key as an EC P-256 JWK in a JSON string) filled in. The server verifies the JWS with the key.