Version change report
Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.
Tag: version-change-report · 8 operations
GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report
Get Version Change Report
Return the persisted change report for a published revision, if present.
Authentication: JWT or API key (tenant-scoped). Read access follows the same tenant/project scoping as other version APIs.
Operation id: get_version_change_report_v1_versions__tenant_slug___project_id___version_record_id__change_report_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get version change report. | application/json VersionChangeReportOut |
| 422 | Validation Error | application/json HTTPValidationError |
PATCH /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report
Patch Version Change Report
Save user edit snapshots (full replacement per field sent).
Authorization: JWT required. Only the revision creator or a tenant administrator may edit. API-key-only authentication cannot PATCH.
Semantics: Each optional field is a full snapshot of that slice (not a diff). Sending
null for a field clears that user override. clearEdits: true removes all overrides.
Approval (#2705): an edit returns a submitted or approved report to draft — the new
content needs a new review before it can be exported as PDF — and is written to the audit
trail.
Operation id: patch_version_change_report_v1_versions__tenant_slug___project_id___version_record_id__change_report_patch
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for patch version change report.
application/json—VersionChangeReportPatch
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for patch version change report. | application/json VersionChangeReportOut |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report/approve
Approve Change Report
Approve a change report that is pending review (pending_review → approved).
An approved report can be exported as PDF. Editing or regenerating it afterwards returns
it to draft.
Authorization: JWT required. A tenant administrator who did not submit the report.
Returns 409 when the report is not pending review, 403 for the submitter.
Operation id: approve_change_report_v1_versions__tenant_slug___project_id___version_record_id__change_report_approve_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (optional)
Request body for approve change report.
application/json—ChangeReportReviewRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for approve change report. | application/json VersionChangeReportOut |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report/pdf
Export Change Report Pdf
Download an approved change report as a PDF.
The PDF is rendered from the report's effective header, body and footnote (your edits
where you made any). Exporting the same report twice gives the same bytes, so the
X-Content-SHA256 header — also stored on the report as lastPdfSha256 — identifies
the file that was handed out. Each export is written to the audit trail.
Authorization: JWT or API key; read access to versions.
Returns 409 unless the report is approved.
Operation id: export_change_report_pdf_v1_versions__tenant_slug___project_id___version_record_id__change_report_pdf_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The approved change report as a PDF. X-Content-SHA256 carries the file's SHA-256, which is also stored as lastPdfSha256. | application/pdf any |
| 409 | The report is not approved. | — |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report/publish-preview
Preview Change Report For Publish
Preview the publication change report that would be generated after publish, without persisting.
Same baseline options as POST …/publish (changeReportBaselineMode / changeReportBaselineRevisionId).
Requires JWT; same authorization as publishing (revision creator or tenant admin).
Operation id: preview_change_report_for_publish_v1_versions__tenant_slug___project_id___version_record_id__change_report_publish_preview_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (optional)
Request body for preview change report for publish.
application/json—VersionPublishChangeReportPreviewRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for preview change report for publish. | application/json VersionPublishChangeReportPreviewOut |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report/regenerate
Regenerate Version Change Report
Re-run rendering from stored changeModelJson using the Mustache template pipeline (CR-03).
Resolution order: optional templateVersionId in the body, then project default, tenant
default, then the system template (1.0.0).
Authorization: Same as PATCH (creator or tenant admin, JWT required).
Approval (#2705): like an edit, a regeneration returns the report to draft and is
written to the audit trail.
Operation id: regenerate_version_change_report_v1_versions__tenant_slug___project_id___version_record_id__change_report_regenerate_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (optional)
Request body for regenerate version change report.
application/json—VersionChangeReportRegenerateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for regenerate version change report. | application/json VersionChangeReportOut |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report/reject
Reject Change Report
Send a change report that is pending review back to draft, with an optional note.
Authorization: JWT required. A tenant administrator.
Returns 409 when the report is not pending review.
Operation id: reject_change_report_v1_versions__tenant_slug___project_id___version_record_id__change_report_reject_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (optional)
Request body for reject change report.
application/json—ChangeReportReviewRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for reject change report. | application/json VersionChangeReportOut |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/change-report/submit
Submit Change Report For Review
Submit a draft change report for review (draft → pending_review).
Authorization: JWT required. The revision creator or a tenant administrator — the same people who may edit the report.
Returns 409 when the report is not a draft.
Operation id: submit_change_report_for_review_v1_versions__tenant_slug___project_id___version_record_id__change_report_submit_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for submit change report for review. | application/json VersionChangeReportOut |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
ChangeReportReviewRequest
Body of an approve / reject call on a change report (#2705). The note is optional.
| Property | Type | Required | Description |
|---|---|---|---|
note | string or null | no | The reviewer's note, kept with the report and written to the audit trail. |
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
VersionChangeReportOut
Stored change report row plus effective (edited-over-rendered) snapshots.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
tenantId | string | yes | Tenant ID. |
projectId | string | yes | Project ID. |
publishedRevisionId | string | yes | Published Revision ID. |
baselineRevisionId | string or null | no | Baseline Revision ID. |
changeModelJson | object | yes | Change Model JSON. |
renderedBody | string or null | no | Rendered Body. |
headerSnapshot | string or null | no | Header Snapshot. |
footnoteSnapshot | string or null | no | Footnote Snapshot. |
editedRenderedBody | string or null | no | Edited Rendered Body. |
editedHeaderSnapshot | string or null | no | Edited Header Snapshot. |
editedFootnoteSnapshot | string or null | no | Edited Footnote Snapshot. |
effectiveRenderedBody | string or null | no | Effective Rendered Body. |
effectiveHeaderSnapshot | string or null | no | Effective Header Snapshot. |
effectiveFootnoteSnapshot | string or null | no | Effective Footnote Snapshot. |
editedAt | string or null | no | Edited At. |
editedBy | string or null | no | Edited By. |
templateVersionId | string or null | no | Template Version ID. |
renderedAt | string or null | no | Rendered At. |
regeneratedAt | string or null | no | Regenerated At. |
approvalState | string | no | Approval State. |
submittedBy | string or null | no | Submitted By. |
submittedAt | string or null | no | Submitted At. |
approvedBy | string or null | no | Approved By. |
approvedAt | string or null | no | Approved At. |
reviewNote | string or null | no | Review Note. |
lastPdfSha256 | string or null | no | Last Pdf Sha256. |
lastPdfExportedAt | string or null | no | Last Pdf Exported At. |
createdAt | string or null | no | Created At. |
updatedAt | string or null | no | Updated At. |
VersionChangeReportPatch
PATCH user edits as full snapshots per field (null in JSON clears that override).
| Property | Type | Required | Description |
|---|---|---|---|
editedRenderedBody | string or null | no | Edited Rendered Body. |
editedHeaderSnapshot | string or null | no | Edited Header Snapshot. |
editedFootnoteSnapshot | string or null | no | Edited Footnote Snapshot. |
clearEdits | boolean or null | no | When true, remove all user edit snapshots and clear editedAt/editedBy. |
VersionChangeReportRegenerateRequest
Optional template version id; effective template resolved per CR-03.
| Property | Type | Required | Description |
|---|---|---|---|
templateVersionId | string or null | no | Template Version ID. |
discardUserEdits | boolean | no | Discard User Edits. |
VersionPublishChangeReportPreviewOut
Draft change report Mustache output for pre-publish preview.
| Property | Type | Required | Description |
|---|---|---|---|
headerSnapshot | string | yes | Header Snapshot. |
renderedBody | string | yes | Rendered Body. |
footnoteSnapshot | string | yes | Footnote Snapshot. |
changeModelJson | object | yes | Change Model JSON. |
baselineRevisionId | string or null | no | Baseline Revision ID. |
templateVersionId | string or null | no | Template Version ID. |
fromVersionLabel | string | yes | From Version Label. |
toVersionLabel | string | yes | To Version Label. |
initialPublication | boolean | no | Initial Publication. |
VersionPublishChangeReportPreviewRequest
Preview publication change report before publishing (same baseline fields as publish).
| Property | Type | Required | Description |
|---|---|---|---|
changeReportBaselineMode | enum "auto", "initial", "manual" | no | Change Report Baseline Mode. |
changeReportBaselineRevisionId | string or null | no | Change Report Baseline Revision ID. |