{
"sessionID": "11111111-1111-1111-1111-111111111111",
"subjectID": "history.record.11111111-1111-1111-1111-111111111111",
"scope": "diagnosticSampleRead",
"action": "diagnosticSampleViewed",
"target": {
"type": "historyRecord",
"identifier": "11111111-1111-1111-1111-111111111111",
"classification": "p1"
},
"reason": "User copied a scoped diagnostic export.",
"consentID": "44444444-4444-4444-4444-444444444444",
"authorizationState": "authorized",
"outcome": "succeeded",
"metadata": {
"exportType": "historyDiagnostics"
}
}curl --location '/v1/privacy/audit-trails' \
--header 'Content-Type: application/json' \
--data '{
"sessionID": "11111111-1111-1111-1111-111111111111",
"subjectID": "history.record.11111111-1111-1111-1111-111111111111",
"scope": "diagnosticSampleRead",
"action": "diagnosticSampleViewed",
"target": {
"type": "historyRecord",
"identifier": "11111111-1111-1111-1111-111111111111",
"classification": "p1"
},
"reason": "User copied a scoped diagnostic export.",
"consentID": "44444444-4444-4444-4444-444444444444",
"authorizationState": "authorized",
"outcome": "succeeded",
"metadata": {
"exportType": "historyDiagnostics"
}
}'{
"endpoint": "POST /v1/privacy/audit-trails",
"trail": {
"id": "55555555-5555-5555-5555-555555555555",
"createdAt": "2026-04-01T16:20:00Z",
"actorID": "com.hanwang.OneSay",
"action": "diagnosticSampleViewed",
"target": {
"type": "historyRecord",
"identifier": "11111111-1111-1111-1111-111111111111",
"classification": "p1"
},
"reason": "User copied a scoped diagnostic export.",
"consentID": "44444444-4444-4444-4444-444444444444",
"authorizationState": "authorized",
"outcome": "succeeded",
"metadata": {
"exportType": "historyDiagnostics"
}
},
"privacyFlags": {
"values": [
"audit_trail_recorded"
]
}
}