/consent_processes

POST {{base-api-url}}/consent_processes

Here are the details of parameters:

ParamDescription
templateAs with procedure templates, consent process templates may be reused several times through several procedures.
membersList of members who will be attached to this consent process.
fileThis value is optional. If necessary, it’s possible to specify a particular file for a checkbox or text to be copied. If no file is specified, then the item will be global to the signature procedure.
descriptionText to copy by the signer.
typeType of the item of the consent process: checkbox or text.
requiredSpecify whether this item of the consent process is mandatory (true) or optional (false).
expectedValueExpected value for a checkbox needs to be true and if the item is a text to write, then the expected value will be Text to write.
positionPosition allows you to define the ordre of each item in the signature process.

Request Body

{"template"=>false, "members"=>["/members/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"], "file"=>"/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "description"=>"Here is the text to copy of my first consent process.", "type"=>"checkbox", "required"=>true, "expectedValue"=>true, "position"=>1}

HEADERS

KeyDatatypeRequiredDescription
AuthorizationstringThis value is a secret and needs to be replaced by your API Key (Bearer).
Content-TypestringThis header specifies the format of the exchanges in JSON.

RESPONSES

status: Created

{"id":"/consent_processes/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","type":"checkbox","description":"Here is the text to copy of my first consent process.","required":true,"position":1,"expectedValue":true,"members":["/members/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"],"file":"/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"}