{
"sessionID": "11111111-1111-1111-1111-111111111111",
"subjectID": "history.record.11111111-1111-1111-1111-111111111111",
"scope": "diagnosticSampleRead",
"source": "userAction",
"expiresAt": "2026-04-02T16:20:00Z",
"usageLimit": 1
}curl --location '/v1/privacy/diagnostic-consent' \
--header 'Content-Type: application/json' \
--data '{
"sessionID": "11111111-1111-1111-1111-111111111111",
"subjectID": "history.record.11111111-1111-1111-1111-111111111111",
"scope": "diagnosticSampleRead",
"source": "userAction",
"expiresAt": "2026-04-02T16:20:00Z",
"usageLimit": 1
}'{
"endpoint": "POST /v1/privacy/diagnostic-consent",
"consent": {
"id": "44444444-4444-4444-4444-444444444444",
"subjectID": "history.record.11111111-1111-1111-1111-111111111111",
"scopes": [
"diagnosticSampleRead"
],
"source": "userAction",
"createdAt": "2026-04-01T16:20:00Z",
"expiresAt": "2026-04-02T16:20:00Z",
"usageLimit": 1,
"usageCount": 0
},
"authorizationState": "authorized",
"privacyFlags": {
"values": [
"diagnostic_sample_authorized"
]
}
}