consents
Create or update informed consent (v2)
Submit informed consent form without the tax data transmission consent, which is handled by PUT /patients/tax-deduction-consent.
post/api/consents/v2
Request body
Example request
{
"consent_type": "psychological",
"form_data": {
"birth_date": "15/03/1990",
"birth_place": "Milano",
"consent_given": true,
"first_name": "Mario",
"last_name": "Rossi",
"residence": "Via Roma 123, Milano (MI)",
"tax_code": "RSSMRA90C15F205X"
},
"operator_id": "123e4567-e89b-12d3-a456-426614174000"
}Response
Successful Response
Example response
{
"consent_id": "123e4567-e89b-12d3-a456-426614174001",
"message": "Modulo consenso inviato. OTP inviato alla tua email.",
"next_action": "verify_otp",
"status": "pending_otp"
}