Skip to main content

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 — REQUIRED

Project ID to update consent for

patientId string — REQUIRED

Test Patient ID

Request Body — REQUIRED

Consent update details

consentStatus string — REQUIRED

Possible values: [OPTED_IN, OPTED_OUT]

Consent status - OPTED_IN to grant consent, OPTED_OUT to revoke consent

revocationReason string

Reason for revocation (only applicable when consentStatus is OPTED_OUT)

Responses
201

Consent updated successfully

Schema — OPTIONAL
consentRecordId string

ID of the consent record that was created or updated