Skip to main content

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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get version change report.application/json VersionChangeReportOut
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for patch version change report.

Responses

StatusDescriptionBody
200Successful response for patch version change report.application/json VersionChangeReportOut
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (optional)

Request body for approve change report.

Responses

StatusDescriptionBody
200Successful response for approve change report.application/json VersionChangeReportOut
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200The approved change report as a PDF. X-Content-SHA256 carries the file's SHA-256, which is also stored as lastPdfSha256.application/pdf any
409The report is not approved.—
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (optional)

Request body for preview change report for publish.

Responses

StatusDescriptionBody
200Successful response for preview change report for publish.application/json VersionPublishChangeReportPreviewOut
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (optional)

Request body for regenerate version change report.

Responses

StatusDescriptionBody
200Successful response for regenerate version change report.application/json VersionChangeReportOut
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (optional)

Request body for reject change report.

Responses

StatusDescriptionBody
200Successful response for reject change report.application/json VersionChangeReportOut
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for submit change report for review.application/json VersionChangeReportOut
422Validation Errorapplication/json HTTPValidationError

Schemas used​

ChangeReportReviewRequest​

Body of an approve / reject call on a change report (#2705). The note is optional.

PropertyTypeRequiredDescription
notestring or nullnoThe reviewer's note, kept with the report and written to the audit trail.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

VersionChangeReportOut​

Stored change report row plus effective (edited-over-rendered) snapshots.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
tenantIdstringyesTenant ID.
projectIdstringyesProject ID.
publishedRevisionIdstringyesPublished Revision ID.
baselineRevisionIdstring or nullnoBaseline Revision ID.
changeModelJsonobjectyesChange Model JSON.
renderedBodystring or nullnoRendered Body.
headerSnapshotstring or nullnoHeader Snapshot.
footnoteSnapshotstring or nullnoFootnote Snapshot.
editedRenderedBodystring or nullnoEdited Rendered Body.
editedHeaderSnapshotstring or nullnoEdited Header Snapshot.
editedFootnoteSnapshotstring or nullnoEdited Footnote Snapshot.
effectiveRenderedBodystring or nullnoEffective Rendered Body.
effectiveHeaderSnapshotstring or nullnoEffective Header Snapshot.
effectiveFootnoteSnapshotstring or nullnoEffective Footnote Snapshot.
editedAtstring or nullnoEdited At.
editedBystring or nullnoEdited By.
templateVersionIdstring or nullnoTemplate Version ID.
renderedAtstring or nullnoRendered At.
regeneratedAtstring or nullnoRegenerated At.
approvalStatestringnoApproval State.
submittedBystring or nullnoSubmitted By.
submittedAtstring or nullnoSubmitted At.
approvedBystring or nullnoApproved By.
approvedAtstring or nullnoApproved At.
reviewNotestring or nullnoReview Note.
lastPdfSha256string or nullnoLast Pdf Sha256.
lastPdfExportedAtstring or nullnoLast Pdf Exported At.
createdAtstring or nullnoCreated At.
updatedAtstring or nullnoUpdated At.

VersionChangeReportPatch​

PATCH user edits as full snapshots per field (null in JSON clears that override).

PropertyTypeRequiredDescription
editedRenderedBodystring or nullnoEdited Rendered Body.
editedHeaderSnapshotstring or nullnoEdited Header Snapshot.
editedFootnoteSnapshotstring or nullnoEdited Footnote Snapshot.
clearEditsboolean or nullnoWhen true, remove all user edit snapshots and clear editedAt/editedBy.

VersionChangeReportRegenerateRequest​

Optional template version id; effective template resolved per CR-03.

PropertyTypeRequiredDescription
templateVersionIdstring or nullnoTemplate Version ID.
discardUserEditsbooleannoDiscard User Edits.

VersionPublishChangeReportPreviewOut​

Draft change report Mustache output for pre-publish preview.

PropertyTypeRequiredDescription
headerSnapshotstringyesHeader Snapshot.
renderedBodystringyesRendered Body.
footnoteSnapshotstringyesFootnote Snapshot.
changeModelJsonobjectyesChange Model JSON.
baselineRevisionIdstring or nullnoBaseline Revision ID.
templateVersionIdstring or nullnoTemplate Version ID.
fromVersionLabelstringyesFrom Version Label.
toVersionLabelstringyesTo Version Label.
initialPublicationbooleannoInitial Publication.

VersionPublishChangeReportPreviewRequest​

Preview publication change report before publishing (same baseline fields as publish).

PropertyTypeRequiredDescription
changeReportBaselineModeenum "auto", "initial", "manual"noChange Report Baseline Mode.
changeReportBaselineRevisionIdstring or nullnoChange Report Baseline Revision ID.