Update consent for a test patient
Updates PATIENT_DIRECTED_DATA_EXCHANGE consent for a test patient against a project. Use consentStatus=OPTED_IN to grant consent (enables MCP tool access) or consentStatus=OPTED_OUT to revoke consent. Only works for test patients.
| Path Parameters |
|---|
projectId string — REQUIREDProject ID to update consent for |
patientId string — REQUIREDTest Patient ID |
| Request Body — REQUIRED Consent update details |
|---|
consentStatus string — REQUIREDPossible values: [ Consent status - OPTED_IN to grant consent, OPTED_OUT to revoke consent |
revocationReason stringReason for revocation (only applicable when consentStatus is OPTED_OUT) |
| Responses | ||
|---|---|---|
201Consent updated successfully
|