OHN-20 Privacy and Information Governance
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-20/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com- Authentification
bearerAuth: http bearer (JWT)
Les contrats sont rédigés en anglais.
Register of processing activities, legal roles (controller / processor chain), approved purposes, privacy impact assessments, privacy notices, cross-border transfer reviews and privacy incidents, plus jurisdiction privacy configuration, reports with signed one-time exports, and machine contracts for OHN-48 (retention decisions) and gateways (transfer decisions). All routes live under /api/ohn/v1/privacy-governance and are scoped to the token jurisdiction. Every POST requires an Idempotency-Key header (1-255 characters; a replay returns the stored answer; reuse with another body is 409 idempotency_conflict). Version-checked writes take expected_version and answer 409 concurrent_mutation when stale. Default deny. Policy values (code lists, incident response window, transfer corridors) are jurisdiction configuration: when absent the operation fails closed (503 not_configured, setting names what is missing). Roles: privacy_officer and jurisdiction_administrator (stewards), privacy_service (read-only machine role for the service reads), unauthorized_viewer (always refused). Policy configuration and outbox dispatch are jurisdiction_administrator only. Java: tokens are issued by the gateway (ES256, audience ohn-20); the TypeScript synthetic sign-in helper is not part of this contract. Synthetic data only.
Opérations
- config (6)
- register (6)
- roles (4)
- purposes (3)
- assessments (4)
- transfers (5)
- notices (4)
- incidents (4)
- reports (4)
- operations (4)
- Autres opérations (2)
config
GET/api/ohn/v1/privacy-governance/config
Controlled values, policy settings, corridors, retention rules, readiness flags and the list of missing settings.
Identifiant d’opération: ohn20_getConfig
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Jurisdiction configuration | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
POST/api/ohn/v1/privacy-governance/config/controlled-values
jurisdiction_administrator. Creates or updates one code of a jurisdiction code list; an update increments version; emits privacy.policy.changed.
Identifiant d’opération: ohn20_upsertControlledValue
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ControlledValueCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Controlled value with receipt and events | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
POST/api/ohn/v1/privacy-governance/config/policy-settings
jurisdiction_administrator. expected_version 0 creates the settings; later writes need the current policy_version. incident_response_hours is required but may be null (clock not configured).
Identifiant d’opération: ohn20_setPolicySettings
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PolicySettingsCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Policy settings with receipt and events | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
POST/api/ohn/v1/privacy-governance/config/transfer-corridors
jurisdiction_administrator. Approves or suspends a corridor to a destination jurisdiction. The destination must differ from the token jurisdiction; approving needs the destination active in OHN-01.
Identifiant d’opération: ohn20_setTransferCorridor
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:TransferCorridorCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Corridor with receipt and events | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
POST/api/ohn/v1/privacy-governance/config/retention-rules
jurisdiction_administrator. Sets the retention rule of a record class; legal_basis must be an active legal_basis code.
Identifiant d’opération: ohn20_setRetentionRule
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RetentionRuleCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Retention rule with receipt and events | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/retention-decisions
OHN-48 contract ohn20.retention-decision/1.0.0. Always 200 with permit or deny; every decision is audited and decision_ref is its receipt id. Unknown query parameters are refused (422).
Identifiant d’opération: ohn20_getRetentionDecision
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
jurisdiction_id | query | string | non | Required uuid; must equal the token jurisdiction (403 jurisdiction_out_of_scope) |
organization_id | query | string | non | Required uuid |
record_class | query | string | non | Required code |
operation | query | string | non | Required: policy_approval or disposal |
retention_years | query | string | non | Required number 0..200 |
record_set_ref | query | string | non | Optional uuid |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Decision | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
register
GET/api/ohn/v1/privacy-governance/processing-register
OHN-20-API-001. Paged register of processing activities (service reads allowed for privacy_service).
Identifiant d’opération: ohn20_listProcessingRegister
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
limit | query | string | non | Clamped to 1..100, default 25 |
offset | query | string | non | |
status | query | string | non | |
purpose | query | string | non | |
controller | query | string | non | |
retention_policy | query | string | non | |
q | query | string | non | Case-insensitive search in data_categories |
sort | query | string | non | created_at (default), updated_at, status, processing_purpose |
order | query | string | non | asc or desc (default) |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page with total | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/processing-activities
Form OHN-20-F001. Registers an activity as draft (W001).
Identifiant d’opération: ohn20_createProcessingActivity
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ProcessingActivityCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Activity with receipt | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/processing-activities/{id}
Identifiant d’opération: ohn20_getProcessingActivity
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Activity with roles, assessments, transfers, history (reduced for privacy_service), next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/processing-activities/{id}/transitions
W001 draft, lawful_basis_reviewed, risk_assessed, authorized, monitored; one step at a time with guards; authorizing needs OHN-07 membership and an OHN-16 permit.
Identifiant d’opération: ohn20_transitionProcessingActivity
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:WorkflowTransitionCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Transition committed with receipt and events | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/retention-references/{retention}
OHN-48 contract. Activities that rely on a retention schedule.
Identifiant d’opération: ohn20_getRetentionReferences
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
retention | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | References | application/json: JsonObject |
404 | not_found | — |
GET/api/ohn/v1/privacy-governance/data-flows
OHN-20-P005. Activities as nodes and edges (controller, processor, sub-processors, cross-border destinations).
Identifiant d’opération: ohn20_listDataFlows
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
limit | query | string | non | |
offset | query | string | non | |
status | query | string | non | |
q | query | string | non | |
destination | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page with total | application/json: JsonObject |
roles
GET/api/ohn/v1/privacy-governance/legal-roles
Identifiant d’opération: ohn20_listLegalRoles
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
processing_activity_id | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Assignments (max 500) | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/legal-roles
Identifiant d’opération: ohn20_assignLegalRole
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LegalRoleCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Assignment with receipt | application/json: JsonObject |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
POST/api/ohn/v1/privacy-governance/legal-roles/{id}/revoke
Identifiant d’opération: ohn20_revokeLegalRole
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:VersionedReasonCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Revoked assignment with receipt | application/json: JsonObject |
404 | not_found | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
GET/api/ohn/v1/privacy-governance/role-matrix
Identifiant d’opération: ohn20_getRoleMatrix
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Activities by legal role with gaps (accountable_controller_missing, processor_chain_undocumented) | application/json: JsonObject |
purposes
GET/api/ohn/v1/privacy-governance/purposes
Identifiant d’opération: ohn20_listPurposes
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Approved purposes (max 500) | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/purposes
Identifiant d’opération: ohn20_approvePurpose
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:DisclosurePurposeCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Purpose with receipt and events | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
POST/api/ohn/v1/privacy-governance/purposes/{id}/retire
Identifiant d’opération: ohn20_retirePurpose
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:VersionedReasonCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Retired purpose with receipt and events | application/json: JsonObject |
404 | not_found | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
assessments
GET/api/ohn/v1/privacy-governance/assessments
OHN-20-P002 list.
Identifiant d’opération: ohn20_listAssessments
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
limit | query | string | non | |
offset | query | string | non | |
approval_state | query | string | non | |
risk_rating | query | string | non | |
processing_activity_id | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page with total | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/assessments
Form OHN-20-F002 (OHN-20-API-002). Approval is never client-asserted; only draft or submitted are accepted.
Identifiant d’opération: ohn20_createAssessment
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:AssessmentCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Assessment with receipt | application/json: JsonObject |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
GET/api/ohn/v1/privacy-governance/assessments/{id}
Identifiant d’opération: ohn20_getAssessment
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Assessment with activity, previous assessments, history and can_decide | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/assessments/{id}/decision
Submit, approve or reject. The reviewer must differ from the submitter (403 separation_of_duties). Approving needs risk_rating and emits privacy.assessment.approved.
Identifiant d’opération: ohn20_decideAssessment
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:AssessmentDecisionCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Assessment with receipt and events | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
transfers
GET/api/ohn/v1/privacy-governance/transfers
Identifiant d’opération: ohn20_listTransfers
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
limit | query | string | non | |
offset | query | string | non | |
state | query | string | non | |
outcome | query | string | non | |
destination | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Page with total | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/transfers/review
Form OHN-20-F003 (OHN-20-API-003). Opens W002 at requested; origin_jurisdiction must equal the token jurisdiction.
Identifiant d’opération: ohn20_requestTransferReview
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:TransferReviewCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Transfer review with receipt | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/transfers/{id}
Identifiant d’opération: ohn20_getTransfer
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Transfer with corridor, activity, history, next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/transfers/{id}/transitions
W002 requested, residency_checked, legal_approval, purpose_limited, logged_or_denied. decision deny closes the review as denied. The final authorization needs an OHN-16 permit and (by policy) a distinct authorizer.
Identifiant d’opération: ohn20_transitionTransfer
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:WorkflowTransitionCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Transfer with receipt and events | application/json: JsonObject |
403 | denied_by_policy, jurisdiction_out_of_scope, separation_of_duties or pdp_denied | — |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/transfer-decisions
Machine contract for gateways. Always 200 with allow or deny (default deny).
Identifiant d’opération: ohn20_getTransferDecision
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
destination_jurisdiction | query | string | non | Required uuid |
processing_activity_id | query | string | non | Required uuid |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Decision | application/json: JsonObject |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
notices
GET/api/ohn/v1/privacy-governance/notices
Identifiant d’opération: ohn20_listNotices
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
status | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Notices (max 500) | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/notices
Form OHN-20-F004. A notice version and language is unique per organization (409 duplicate).
Identifiant d’opération: ohn20_createNotice
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PrivacyNoticeCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Notice with receipt | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
GET/api/ohn/v1/privacy-governance/notices/{id}
Identifiant d’opération: ohn20_getNotice
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Notice with history, next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/notices/{id}/transitions
draft, impact_reviewed, legally_reviewed, effective, retired; effective needs an active publication channel; effective and retired emit privacy.policy.changed.
Identifiant d’opération: ohn20_transitionNotice
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:WorkflowTransitionCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Notice with receipt and events | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
incidents
GET/api/ohn/v1/privacy-governance/incidents
Identifiant d’opération: ohn20_listIncidents
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Incidents (max 500) with clock_status | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/incidents
Opens W003 at incident_reported. The response clock exists only when the jurisdiction configured incident_response_hours.
Identifiant d’opération: ohn20_reportIncident
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:IncidentCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Incident with receipt | application/json: JsonObject |
404 | not_found | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
GET/api/ohn/v1/privacy-governance/incidents/{id}
Identifiant d’opération: ohn20_getIncident
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Incident with history, next_state and lifecycle | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/incidents/{id}/transitions
W003 incident_reported, triaged, impact_evaluated, notification_decision, remediated. notification_required must be decided explicitly at notification_decision.
Identifiant d’opération: ohn20_transitionIncident
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | uuid; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:WorkflowTransitionCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Incident with receipt | application/json: JsonObject |
409 | concurrent_mutation, invalid_transition, duplicate, idempotency_conflict or request_in_progress | — |
422 | domain_validation_failed (details per field), workflow_refused (guard), organization_not_member, jurisdiction_not_active or code_not_recognized | — |
reports
GET/api/ohn/v1/privacy-governance/reports
Identifiant d’opération: ohn20_listReports
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Report definitions | application/json: JsonObject |
GET/api/ohn/v1/privacy-governance/reports/{id}
Identifiant d’opération: ohn20_getReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | OHN-20-R001, OHN-20-R002 or OHN-20-R003; anything else is 404 |
purpose | query | string | non | |
controller | query | string | non | |
status | query | string | non | |
risk | query | string | non | |
from | query | string | non | |
to | query | string | non | |
country | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Report rows, metrics, metric definitions and provenance | application/json: JsonObject |
404 | not_found | — |
POST/api/ohn/v1/privacy-governance/reports/{id}/export
Identifiant d’opération: ohn20_createExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string | oui | OHN-20-R001, OHN-20-R002 or OHN-20-R003; anything else is 404 |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExportCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | HMAC-signed export with one-time retrieval path | application/json: JsonObject |
404 | not_found | — |
503 | not_configured (export signing key missing); nothing generated | — |
GET/api/ohn/v1/privacy-governance/exports/{token}
One time, five minutes, bound to the requesting principal and jurisdiction.
Identifiant d’opération: ohn20_downloadExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | CSV or PDF body with X-OHN20-Signature header | text/csv: string (binary)application/pdf: string (binary) |
404 | not_found | — |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
operations
GET/api/ohn/v1/privacy-governance/dashboard
Identifiant d’opération: ohn20_getDashboard
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | KPIs, distributions, 30-day trend, exceptions and dependency modes | application/json: JsonObject |
GET/api/ohn/v1/privacy-governance/audit
Identifiant d’opération: ohn20_listAudit
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
limit | query | string | non | |
offset | query | string | non | |
resource_id | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Audit receipts of the jurisdiction (append-only) | application/json: JsonObject |
GET/api/ohn/v1/privacy-governance/outbox
Identifiant d’opération: ohn20_listOutbox
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Pending and delivered events and the OHN-24 sink mode | application/json: JsonObject |
POST/api/ohn/v1/privacy-governance/outbox/dispatch
jurisdiction_administrator. At-least-once relay of pending events to OHN-24; a failed delivery stays pending. The body is optional.
Identifiant d’opération: ohn20_dispatchOutbox
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête
application/json:DispatchCommand
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | delivered, failed, pending_after and receipt | application/json: JsonObject |
503 | not_configured (setting names what is missing) or dependency_unavailable (OHN-01, OHN-07, OHN-16, OHN-24); nothing written | — |
Autres opérations
GET/health/ohn-20
Identifiant d’opération: ohn20_health
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Database reachable; dependency modes and flags | application/json: JsonObject |
503 | Database unavailable | — |
GET/api/ohn/v1/privacy-governance/health
Identifiant d’opération: ohn20_externalHealth
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Liveness | application/json: JsonObject |
Schémas
JsonObject
object
Code
string
ControlledValueCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
list_name | "processing_purpose" | "legal_basis" | "publication_channel" | "volume_class" | oui | |
code | Code | oui | |
label_en | string | oui | |
label_fr | string | oui | |
active | boolean | non |
PolicySettingsCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
incident_response_hours | integer | null | non | Must be present; null means the response clock is not configured (checked by the service, since the generated model cannot tell absent from null) |
require_distinct_authorizer | boolean | oui |
TransferCorridorCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
destination_jurisdiction | string (uuid) | oui | |
legal_authority_ref | string (uuid) | oui | |
safeguard_ref | string (uuid) | oui | |
status | "approved" | "suspended" | non | |
valid_until | string | non |
RetentionRuleCommand
ProcessingActivityCommand
WorkflowTransitionCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
to_state | string | oui | |
evidence_ref | string (uuid) | oui | |
reason | string | oui | |
decision | "advance" | "deny" | non | |
notification_required | boolean | non |
LegalRoleCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
processing_activity_id | string (uuid) | oui | |
legal_role | "controller" | "joint_controller" | "processor" | "sub_processor" | oui | |
party_org | string (uuid) | oui | |
accountable_person | string (uuid) | oui | |
parent_assignment_id | string (uuid) | non | Required for sub_processor and forbidden otherwise |
VersionedReasonCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
reason | string | oui |
DisclosurePurposeCommand
AssessmentCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
processing_activity_id | string (uuid) | oui | |
risk_description | string | oui | |
threat_categories | string | oui | |
mitigations | string | oui | |
owner_id | string (uuid) | oui | |
approval_state | "draft" | "submitted" | oui |
AssessmentDecisionCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
decision | "submitted" | "approved" | "rejected" | oui | |
risk_rating | "low" | "medium" | "high" | non | Required to approve |
evidence_ref | string (uuid) | oui | |
reason | string | oui |
TransferReviewCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
origin_jurisdiction | string (uuid) | oui | |
destination_jurisdiction | string (uuid) | oui | Must differ from origin_jurisdiction |
data_categories | string | oui | |
legal_authority_ref | string (uuid) | oui | |
safeguard_ref | string (uuid) | oui | |
processing_activity_id | string (uuid) | oui | |
volume_class | Code | non |
PrivacyNoticeCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
notice_version | string | oui | |
language | string | oui | |
effective_at | string | oui | |
review_evidence_ref | string (uuid) | oui | |
publication_channel | Code | oui |
IncidentCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
processing_activity_id | string (uuid) | non | |
summary | string | oui | |
evidence_ref | string (uuid) | oui |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "csv" | "pdf" | oui | |
filters | object | non |
DispatchCommand
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
limit | integer | non |