Skip to main content

Versions

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: versions · 69 operations

GET /v1/versions/{tenant_slug}/sunset-timeline​

Get Sunset Timeline

Aggregate deprecation and sunset dates across projects (#508). Must be registered before /{tenant_slug}/{project_id} so sunset-timeline is not parsed as a project id.

entries is one page of at most limit revisions (1,000 at most), soonest sunset first; hasMore says whether the timeline continues at offset + limit (#7196). The order is computed from revision metadata, so the timeline is sorted in memory over at most 10,000 deprecated revisions and pages by offset rather than by cursor.

Args: tenant_slug: The tenant in the URL. project_id: Narrow to one project. limit: Page size. offset: Entries to skip. auth_data: The authenticated principal.

Returns: The page of timeline entries, whether more follow, and the product timeline.

Raises: HTTPException: 404 when projectId names an unknown project.

Operation id: get_sunset_timeline_v1_versions__tenant_slug__sunset_timeline_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
projectIdquerystring or nullnoQuery parameter: project id.
limitqueryintegernoPage size. At most 1000.
offsetqueryintegernoEntries to skip. The timeline is ordered by a date computed from each revision's metadata, so it pages by offset; at most 10,000.
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 sunset timeline.application/json SunsetTimelineResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}​

List Versions

List a project's versions, newest first, one page at a time.

The body is a JSON array. At most limit versions (200 at most) are returned; the X-Has-More response header says whether more exist and X-Next-Cursor carries the cursor of the next page (#7196).

Supports authentication via:

  • JWT token in Authorization header (Bearer token)
  • API key in X-API-Key header

Args: tenant_slug: The tenant slug project_id: The project ID lifecycle: Only revisions with this lifecycle tag. q: Search text over the revision note, changelog and commit message. creator_id: Only revisions created by this user. created_after: Only revisions created on or after this instant. created_before: Only revisions created on or before this instant. limit: Page size. cursor: Where the page starts (the previous page's X-Next-Cursor). response: The outgoing response (paging headers are set on it). auth_data: Authentication data (injected by dependency)

Returns: One page of the project's versions.

Raises: HTTPException: 400 for a malformed cursor or lifecycle filter; 404 for an unknown project.

Operation id: list_versions_v1_versions__tenant_slug___project_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
lifecyclequerystring or nullnoFilter catalog/history by revision lifecycle tag (#739): stable, beta, deprecated, archived.
qquerystring or nullnoSearch revision note, changelog, full commit message body, and commit author (case-insensitive, #2579).
creatorIdquerystring or nullnoFilter by creator user id (#2579).
createdAfterquerystring (date-time) or nullnoInclude revisions with created_at on or after this instant (ISO 8601, #2579).
createdBeforequerystring (date-time) or nullnoInclude revisions with created_at on or before this instant (ISO 8601, #2579).
limitqueryintegernoPage size. At most 200.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
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 list versions.application/json array of VersionSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}​

Create Version

Create a new version (push).

Supports authentication via JWT token or API key. When using JWT, the creator_id field will be set to the authenticated user.

Optimistic locking (#2566): baseRevisionId is required. It must match the server head (branch tip, or latest revision when there are no branches) before this push. If another client advanced the head, the API returns 409 with code: STALE_HEAD and currentHead metadata.

If version_id is not provided, it will be auto-generated by bumping the latest version. Use bump_strategy='minor' for minor version bump, or 'patch' (default) for patch bump.

If source_version_id is provided, classes will be copied from that version. With copyPaths: true its paths are copied too (#771); copyPaths without source_version_id is a 422.

A push is a version change, so the new revision's quality/lint score is captured onto its record after the response is sent (#5259) — the versions list then renders the badge from the stored score instead of linting on read.

Args: tenant_slug: The tenant slug project_id: The project ID request: Version creation data background_tasks: FastAPI background tasks (post-response lint capture) auth_data: Authentication data (injected by dependency)

Returns: The created version

Operation id: create_version_v1_versions__tenant_slug___project_id__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 create version.

Responses

StatusDescriptionBody
200Successful response for create version.application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/by-version/{version_id}​

Get Version By Version Id

Get a specific version by version ID string (e.g., '1.0.0').

Supports authentication via JWT token or API key. Successor resolution (#749) matches GET .../{version_record_id}. Pull payload selection (#2591) matches GET .../{version_record_id}. Delta pull (#2592) matches GET .../{version_record_id}.

Operation id: get_version_by_version_id_v1_versions__tenant_slug___project_id__by_version__version_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
successorResolutionqueryenum "none", "resolve", "redirect"nonone: return the requested revision only. resolve: follow metadata.successorRevisionId (same project, #748); JSON body is the final revision; see X-Apiome-* response headers. redirect: HTTP 307 to this path with the final revision id and successorResolution=none.
auditSuccessorResolutionquerybooleannoWhen true, emit version_protection_audit for successor resolution (#749).
includeSectionsquerystring or nullnoComma-separated pull payload sections to include (#2591). Always includes id, project_id, and version_id. Mutually exclusive with excludeSections. Sections: core, commit, publish, lineage, governance, creator, project, timestamps.
excludeSectionsquerystring or nullnoComma-separated sections to omit from the pull body (#2591). Core identifiers cannot be removed. Mutually exclusive with includeSections.
sinceRevisionIdquerystring or nullnoWhen set, the JSON body includes schemaPullDelta with changed OpenAPI components.schemas entities since this revision (#2592). Must be the resolved head revision or an ancestor in the revision parent graph.
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
200Full VersionSchema, or JSON with includeSections/excludeSections (#2591), or JSON with schemaPullDelta when sinceRevisionId is set (#2592).application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/fork​

Fork Version From Revision

Fork a schema version line into this project from a source revision in another project (sandbox / provenance).

Not the same as a named branch within one project (#500): fork is cross-project isolation with recorded lineage. The forked revision's quality/lint score is captured after the response is sent (#5259).

Copies the source revision's classes and their properties (not its paths). A versionId the target project already has is 409 with detail.code version_exists (#3211).

Operation id: fork_version_from_revision_v1_versions__tenant_slug___project_id__fork_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 fork version from revision.

Responses

StatusDescriptionBody
200Successful response for fork version from revision.application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/merge-sessions/{merge_session_id}​

Get Merge Session

Load persisted merge session and status transition history (#2573).

Operation id: get_merge_session_v1_versions__tenant_slug___project_id__merge_sessions__merge_session_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
merge_session_idpathstringyesPath parameter identifying the merge session id segment.
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 merge session.application/json object
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/versions/{tenant_slug}/{project_id}/merge-sessions/{merge_session_id}​

Patch Merge Session Status

Transition merge session status with audited events (#2573).

Operation id: patch_merge_session_status_v1_versions__tenant_slug___project_id__merge_sessions__merge_session_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
merge_session_idpathstringyesPath parameter identifying the merge session id segment.
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 merge session status.

Responses

StatusDescriptionBody
200Successful response for patch merge session status.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/merge-sessions/{merge_session_id}/conflicts​

List Merge Session Conflicts Route

List conflict rows for a merge session (#2573).

Operation id: list_merge_session_conflicts_route_v1_versions__tenant_slug___project_id__merge_sessions__merge_session_id__conflicts_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
merge_session_idpathstringyesPath parameter identifying the merge session id segment.
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 list merge session conflicts route.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/revision-graph/history​

Get Revision History Window

The history window behind the revision graph: everything within depth of the tips (#2593).

One request returns the whole window — revisions with both parent ids and their distance — so the graph needs no request per revision.

Operation id: get_revision_history_window_v1_versions__tenant_slug___project_id__revision_graph_history_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
tipqueryarray of string or nullnoRevision ids to start from (repeatable); every branch tip when omitted.
depthqueryintegernoParent steps to walk.
limitqueryintegernoMost revisions to return.
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 revision history window.application/json RevisionHistoryWindowResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/revision-graph/merge-base​

Get Revision Merge Base

mergeBase(revA, revB): the best common ancestor of two revisions, or null (#2593).

Of the common ancestors that are an ancestor of no other common ancestor, the most recently created is the merge base; all of them are listed as candidates (more than one only in a criss-cross history). Disjoint histories return mergeBase: null and disjoint: true.

Operation id: get_revision_merge_base_v1_versions__tenant_slug___project_id__revision_graph_merge_base_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
aquerystringyesOne revision id.
bquerystringyesThe other revision id.
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 revision merge base.application/json RevisionMergeBaseResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/timeline​

Get Project Timeline

The project's activity timeline, newest first (#2594).

Each event that concerns a revision carries revisionId and links to that revision, its ancestors in the revision DAG and this timeline filtered to it.

Operation id: get_project_timeline_v1_versions__tenant_slug___project_id__timeline_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
revisionIdquerystring or nullnoOnly events that concern this revision.
kindqueryarray of string or nullnopublish, merge, tag, protection or other (repeatable or comma-separated).
actorIdquerystring or nullnoOnly events by this user.
sincequerystring or nullnoInclusive lower bound on occurredAt (ISO 8601).
untilquerystring or nullnoInclusive upper bound on occurredAt (ISO 8601).
limitqueryintegernoPage size.
cursorquerystring or nullnonextCursor from the previous page.
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 project timeline.application/json ProjectTimelineResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/version-branches​

List Version Branches

List named version branches for a project, by name (Studio BFF / git menu).

The body is a JSON array of at most limit branches (1,000 at most). The X-Has-More response header says whether more exist and X-Next-Cursor carries the cursor of the next page (#7196).

Args: tenant_slug: The tenant in the URL. project_id: The project whose branches are listed. response: The outgoing response (paging headers are set on it). limit: Page size. cursor: Where the page starts (the previous page's X-Next-Cursor). auth_data: The authenticated principal.

Returns: One page of branches.

Raises: HTTPException: 400 for a malformed cursor; 404 when the project is unknown.

Operation id: list_version_branches_v1_versions__tenant_slug___project_id__version_branches_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
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 list version branches.application/json array of object
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/version-branches​

Create Version Branch

Create a branch whose tip is an existing revision.

Operation id: create_version_branch_v1_versions__tenant_slug___project_id__version_branches_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 create version branch.

Responses

StatusDescriptionBody
200Successful response for create version branch.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/version-branches/from-revision​

Version Branch From Revision

Create a named branch whose tip is an existing revision (in-project lineage; #2570).

Idempotency: Repeating the same branchName + sourceRevisionId returns 200 with idempotentReplay: true when the branch already exists with that tip (and compatible lineage). Conflicting reuse of branchName returns 409 with a clear message.

Operation id: version_branch_from_revision_v1_versions__tenant_slug___project_id__version_branches_from_revision_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 version branch from revision.

Responses

StatusDescriptionBody
200Successful response for version branch from revision.application/json VersionBranchFromRevisionResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/version-branches/merge​

Version Branch Merge

Execute merge into target branch: new revision with two parents, three-way materialization.

Operation id: version_branch_merge_v1_versions__tenant_slug___project_id__version_branches_merge_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 version branch merge.

Responses

StatusDescriptionBody
200Successful response for version branch merge.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/version-branches/merge-preview​

Version Branch Merge Preview

Dry-run merge (no DB writes): merge-base id, two-way summary counts, per-kind conflict metadata, classification, and optional capped merged OpenAPI when auto-merge is possible (#2572).

Operation id: version_branch_merge_preview_v1_versions__tenant_slug___project_id__version_branches_merge_preview_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 version branch merge preview.

Responses

StatusDescriptionBody
200Successful response for version branch merge preview.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/version-branches/rollback​

Version Branch Rollback

Apply revert-style rollback: new revision with target snapshot, parent = prior tip (#745).

Operation id: version_branch_rollback_v1_versions__tenant_slug___project_id__version_branches_rollback_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 version branch rollback.

Responses

StatusDescriptionBody
200Successful response for version branch rollback.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/version-branches/rollback-preview​

Version Branch Rollback Preview

Dry-run rollback: schema compatibility tip→target, deprecation warnings (#506), fingerprint.

Operation id: version_branch_rollback_preview_v1_versions__tenant_slug___project_id__version_branches_rollback_preview_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
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 version branch rollback preview.

Responses

StatusDescriptionBody
200Successful response for version branch rollback preview.application/json object
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/versions/{tenant_slug}/{project_id}/version-branches/{branch_id}​

Patch Version Branch Policy

Tenant administrators: set protected and/or requireMergePath and/or promote default branch.

Operation id: patch_version_branch_policy_v1_versions__tenant_slug___project_id__version_branches__branch_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
branch_idpathstringyesPath parameter identifying the branch id segment.
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 branch policy.

Responses

StatusDescriptionBody
200Successful response for patch version branch policy.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/version-branches/{branch_id}/divergence​

Get Version Branch Divergence

Branch-vs-branch divergence: merge base, ahead/behind counts, and sampled commits (#2721).

Operation id: get_version_branch_divergence_v1_versions__tenant_slug___project_id__version_branches__branch_id__divergence_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
branch_idpathstringyesPath parameter identifying the branch id segment.
againstquerystring or nullnoQuery parameter: against.
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 branch divergence.application/json VersionBranchDivergenceResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{revision_id}/ancestors​

Get Revision Ancestors

ancestors(revX, depth): the revision and its ancestors within depth parent steps (#2593).

Follows both parents of a merge. Each revision carries its distance — the fewest parent steps from revision_id (itself 0).

Operation id: get_revision_ancestors_v1_versions__tenant_slug___project_id___revision_id__ancestors_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
revision_idpathstringyesRevision UUID (versions.id).
depthqueryintegernoParent steps to walk.
limitqueryintegernoMost revisions to return.
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 revision ancestors.application/json RevisionHistoryWindowResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}​

Get Version

Get a specific version by ID.

Supports authentication via JWT token or API key.

Successor resolution (#749): when successorResolution is resolve or redirect, follows metadata.successorRevisionId (#748) within the project until a revision has no successor, hits a protected branch tip / protected tag target (#504), or errors. Loops return 409 SUCCESSOR_CYCLE.

Pull payload selection (#2591): includeSections / excludeSections reduce JSON size for CI; the strong ETag still identifies the revision only (same as full body, #2568).

Delta pull (#2592): sinceRevisionId adds schemaPullDelta (changed schema entities only).

Content stamp (#7078): the database keeps a per-revision change counter that moves by one for every transaction that edits the revision's classes, properties, paths, operations, servers, security schemes, component pins or its own content fields; reads never move it. The rendered-document cache (#7081) keys documents, and the schema ETag, on (revision, stamp).

Operation id: get_version_v1_versions__tenant_slug___project_id___version_record_id__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).
successorResolutionqueryenum "none", "resolve", "redirect"nonone: return the requested revision only. resolve: follow metadata.successorRevisionId (same project, #748); JSON body is the final revision; see X-Apiome-* response headers. redirect: HTTP 307 to this path with the final revision id and successorResolution=none.
auditSuccessorResolutionquerybooleannoWhen true, emit version_protection_audit for successor resolution (#749).
includeSectionsquerystring or nullnoComma-separated pull payload sections to include (#2591). Always includes id, project_id, and version_id. Mutually exclusive with excludeSections. Sections: core, commit, publish, lineage, governance, creator, project, timestamps.
excludeSectionsquerystring or nullnoComma-separated sections to omit from the pull body (#2591). Core identifiers cannot be removed. Mutually exclusive with includeSections.
sinceRevisionIdquerystring or nullnoWhen set, the JSON body includes schemaPullDelta with changed OpenAPI components.schemas entities since this revision (#2592). Must be the resolved head revision or an ancestor in the revision parent graph.
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
200Full VersionSchema, or JSON with includeSections/excludeSections (#2591), or JSON with schemaPullDelta when sinceRevisionId is set (#2592).application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}​

Update Version

Update an existing version.

Supports authentication via JWT token or API key. Published versions cannot be updated (they are frozen).

Args: tenant_slug: The tenant slug project_id: The project ID version_record_id: The version record ID request: Version update data auth_data: Authentication data (injected by dependency)

Returns: The updated version

Operation id: update_version_v1_versions__tenant_slug___project_id___version_record_id__put

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 update version.

Responses

StatusDescriptionBody
200Successful response for update version.application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/versions/{tenant_slug}/{project_id}/{version_record_id}​

Delete Version

Delete a version (soft delete).

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug project_id: The project ID version_record_id: The version record ID auth_data: Authentication data (injected by dependency)

Returns: Success message

Operation id: delete_version_v1_versions__tenant_slug___project_id___version_record_id__delete

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 delete version.application/json map of string
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/breaking-publish-guardrail​

Get Breaking Publish Guardrail

Preflight the breaking-publish guardrail for a revision (CTG-3.4, #4478).

What the publish dialog calls before showing Publish: it reports whether this revision would break consumers without a major-version bump, which changes are breaking, and whether the tenant's policy warns or blocks. Read-only — nothing is published or stored.

Args: tenant_slug: The tenant slug project_id: The project ID version_record_id: The version record ID auth_data: Authentication data (injected by dependency)

Returns: The guardrail assessment; status is unavailable (never an error) when the comparison could not be made.

Raises: HTTPException: 404 when the revision does not exist in this project.

Operation id: get_breaking_publish_guardrail_v1_versions__tenant_slug___project_id___version_record_id__breaking_publish_guardrail_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 breaking publish guardrail.application/json BreakingPublishGuardrailOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/contracts-publish-gate​

Get Contracts Publish Gate

Preflight the contracts publish gate for a revision (PFX-7.3, #6963).

What the publish dialog calls before showing Publish: whether the Pact can-i-deploy verdict for this revision says it breaks a contract, which rows say so, and whether the policy (contracts.publishPolicy in the deploy-gate policy) warns or blocks. Read-only — nothing is published or stored. A caller without pacts:view gets unavailable, never a verdict.

Args: tenant_slug: The tenant slug project_id: The project ID version_record_id: The version record ID auth_data: Authentication data (injected by dependency)

Returns: The gate assessment; status is unavailable (never an error) when the verdict could not be read.

Raises: HTTPException: 404 when the revision does not exist in this project.

Operation id: get_contracts_publish_gate_v1_versions__tenant_slug___project_id___version_record_id__contracts_publish_gate_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 contracts publish gate.application/json ContractsPublishGateOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/document​

Get Version Document

Read a revision's OpenAPI document, draft or published (COA-5.13).

The document a workspace member sees in the UI: OpenAPI 3.2, private operations kept. It is served from the document store once rendered; If-None-Match answers 304.

Args: tenant_slug: The workspace slug (the workspace is taken from the credentials). project_id: The project (or catalog item) UUID the revision belongs to. version_record_id: The revision UUID (versions.id). if_none_match: ETag(s) the caller already holds. auth_data: The authenticated caller.

Returns: The document streamed as JSON, or 304 with no body.

Raises: HTTPException: 404 for an unknown revision, 502 when the stored bytes are gone.

Operation id: get_version_document_v1_versions__tenant_slug___project_id___version_record_id__document_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).
If-None-Matchheaderstring or nullnoAn ETag from an earlier response; the answer is 304 while the document is unchanged.
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 revision's OpenAPI 3.2 document, as compact JSON.application/json object
304If-None-Match names the current ETag; no body.—
404Unknown revision, or one of another workspace or project.—
422Validation Errorapplication/json HTTPValidationError
502document-unreadable: the document store did not return the stored bytes.—

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/draft-lock​

Get Draft Lock Status

Return whether an active edit lock exists on this draft revision (polling / Studio header #2585).

Operation id: get_draft_lock_status_v1_versions__tenant_slug___project_id___version_record_id__draft_lock_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 draft lock status.application/json VersionDraftLockStatusResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/draft-lock/acquire​

Acquire Draft Lock

Acquire or refresh an edit lock on an unpublished (draft) revision.

Returns 409 with code: DRAFT_LOCK_CONFLICT and ownerUserId / expiresAt when another user holds an active lock.

Operation id: acquire_draft_lock_v1_versions__tenant_slug___project_id___version_record_id__draft_lock_acquire_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 acquire draft lock.

Responses

StatusDescriptionBody
200Successful response for acquire draft lock.application/json VersionDraftLockResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/draft-lock/force-release​

Force Release Draft Lock

Remove any lock on the revision (tenant administrators only).

Operation id: force_release_draft_lock_v1_versions__tenant_slug___project_id___version_record_id__draft_lock_force_release_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
204Successful response for force release draft lock.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/draft-lock/release​

Release Draft Lock

Release the current user's lock. Idempotent when no lock exists (204).

Operation id: release_draft_lock_v1_versions__tenant_slug___project_id___version_record_id__draft_lock_release_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
204Successful response for release draft lock.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/draft-lock/renew​

Renew Draft Lock

Extend the lease on an active lock held by the current user.

Operation id: renew_draft_lock_v1_versions__tenant_slug___project_id___version_record_id__draft_lock_renew_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 renew draft lock.

Responses

StatusDescriptionBody
200Successful response for renew draft lock.application/json VersionDraftLockResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/freeze-schema​

Get Version Freeze Status

Whether a version is frozen, with the snapshot's SHA-256, size, counts and download count (#3214).

Operation id: get_version_freeze_status_v1_versions__tenant_slug___project_id___version_record_id__freeze_schema_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 freeze status.application/json FreezeSchemaResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/freeze-schema​

Freeze Version Schema

Freeze a published version's OpenAPI document (#3214).

Stores the exact bytes GET /v1/schema/{tenant}/{project}/{version} serves now; while frozen, that route returns them verbatim, so later edits to the version's classes, properties and paths do not change the downloaded document. The bytes are written to the document store as the version's frozen_schema object (COA-5.5, #7081). Also captures the class schemas into apiome.class_schema when the version has none yet (the pre-#3214 behaviour).

  • Only published versions can be frozen (409 version_not_published).
  • A version already frozen is 409 already_frozen (with its SHA-256).
  • dryRun returns the snapshot that would be stored without writing anything.
  • Only the version creator or a tenant administrator can freeze.

Returns: frozen, sha256, sizeBytes, snapshotUrl and the class / property / path counts.

Operation id: freeze_version_schema_v1_versions__tenant_slug___project_id___version_record_id__freeze_schema_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 freeze version schema.

Responses

StatusDescriptionBody
200Successful response for freeze version schema.application/json FreezeSchemaResponse
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/freeze-schema​

Unfreeze Version Schema

Unfreeze a version: delete its snapshot so /v1/schema is generated live again (#3214).

  • 404 not_frozen when the version has no snapshot.
  • 409 snapshot_downloaded once the snapshot has been fetched — a consumer may depend on it — unless force=true, which only a tenant administrator may pass (403 force_unfreeze_requires_admin).
  • Only the version creator or a tenant administrator can unfreeze.

Returns: The removed snapshot's details, with frozen: false.

Operation id: unfreeze_version_schema_v1_versions__tenant_slug___project_id___version_record_id__freeze_schema_delete

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).
forcequerybooleannoUnfreeze although the snapshot has been downloaded (tenant administrators only).
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 unfreeze version schema.application/json FreezeSchemaResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock​

Set Version Mock

Enable or disable the hosted mock for a version (#4422 SIM-2.1, #4446 SIM-2.5).

Operation id: set_version_mock_v1_versions__tenant_slug___project_id___version_record_id__mock_put

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 set version mock.

Responses

StatusDescriptionBody
200Successful response for set version mock.application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/bundle​

Get Version Mock Bundle

Export the version's portable mock bundle (#4741, PMR-1.1).

The bundle pins the version snapshot (its generated OpenAPI document), the portable subset of versions.mock_settings (scenarios and chaos knobs), and fixture digests into one self-contained, signed JSON document that apiome-mock can serve offline — in CI, on a laptop, or inside an air-gapped network.

The document is deterministic: exporting the same version with the same settings always yields the same manifestDigest, which is the identifier release proofs attach (PMR-3.2). Tenant credentials never travel: only allowlisted settings keys are bundled, and credential-shaped fields inside them are dropped and listed in manifest.redactions.

Args: tenant_slug: The tenant slug. project_id: The project ID that must own the version. version_record_id: The version record ID (UUID) to export. response: Injected so the export can advertise a download filename. auth_data: Authentication context; requires versions:view.

Returns: The bundle document (bundleFormat, manifest, manifestDigest, signature, spec, settings, fixtures).

Raises: HTTPException: 404 when the version does not exist in the project, 409 when mock serving is not enabled for the version.

Operation id: get_version_mock_bundle_v1_versions__tenant_slug___project_id___version_record_id__mock_bundle_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 mock bundle.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/callbacks​

Get Version Mock Callbacks

Return the version's mock callback definitions and their content digests (#4746, PMR-2.3).

Operation id: get_version_mock_callbacks_v1_versions__tenant_slug___project_id___version_record_id__mock_callbacks_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 mock callbacks.application/json VersionMockCallbacksResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/callbacks​

Set Version Mock Callbacks

Replace the version's mock callback definitions (#4746, PMR-2.3).

Definitions are validated against the versioned callback schema and against this version's generated OpenAPI document: a trigger must name a real operation, a payloadSchema $ref must resolve, every destination must be a safe absolute http(s) URL, and the retry schedule must stay inside its cost ceiling. Valid definitions are stored canonically in versions.mock_settings under callbacks, alongside the other mock knobs, and travel inside portable mock bundles. The response echoes each definition's content digest — the identity a test asserts when it exercises the callback. An empty callbacks map clears them.

Operation id: set_version_mock_callbacks_v1_versions__tenant_slug___project_id___version_record_id__mock_callbacks_put

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 set version mock callbacks.

Responses

StatusDescriptionBody
200Successful response for set version mock callbacks.application/json VersionMockCallbacksResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/capture-policy​

Get Version Mock Capture Policy

Return the version's guarded proxy capture policy and its current state (#4747, PMR-2.4).

Operation id: get_version_mock_capture_policy_v1_versions__tenant_slug___project_id___version_record_id__mock_capture_policy_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 mock capture policy.application/json VersionMockCapturePolicyResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/capture-policy​

Set Version Mock Capture Policy

Authorize (or switch off) guarded proxy capture for a version (#4747, PMR-2.4).

Capture lets the hosted mock forward a request to a real upstream and record the exchange as a reviewable fixture candidate. Three things gate it, and this endpoint is where two of them are set:

  • Explicit owner authorization. The caller must own the mock (version creator or tenant administrator) and must set acknowledged — an affirmative statement that they are permitted to record traffic from these upstreams. The authorization block recording who they were, when, and when the grant lapses is stamped by the server; it is never accepted from the client, and it is clamped to at most MAX_AUTHORIZATION_HOURS. Capture stops on its own when the grant expires.
  • An upstream allowlist. upstreams is the complete set of base URLs capture may ever fetch. A request whose path does not fall under one of them is refused rather than proxied, which is what keeps capture from becoming an SSRF pivot.

The third gate — address-level SSRF policy, public addresses only, re-checked on every redirect hop — is enforced by the runtime at fetch time and cannot be configured away here.

redaction adds rules on top of the always-on credential rules; it can never subtract from them. Sending enabled: false keeps the allowlist but stops recording.

Operation id: set_version_mock_capture_policy_v1_versions__tenant_slug___project_id___version_record_id__mock_capture_policy_put

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 set version mock capture policy.

Responses

StatusDescriptionBody
200Successful response for set version mock capture policy.application/json VersionMockCapturePolicyResponse
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/capture-policy​

Delete Version Mock Capture Policy

Revoke guarded proxy capture entirely (#4747, PMR-2.4).

Removes the policy — allowlist, authorization, redaction rules — so nothing can be recorded until a new grant is made. Already-recorded exchanges are deliberately left alone: revoking permission to record must not destroy the evidence of what was recorded. Discard those explicitly with DELETE .../mock/captures.

Operation id: delete_version_mock_capture_policy_v1_versions__tenant_slug___project_id___version_record_id__mock_capture_policy_delete

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 delete version mock capture policy.application/json VersionMockCapturePolicyResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/captures​

List Version Mock Captures

List the exchanges guarded capture has recorded for this version (#4747, PMR-2.4).

This is the review queue. Every entry is already redacted — the runtime never stores anything else — and carries the full list of redaction decisions plus the provenance of the fetch, so a reviewer can see what was removed and where the data came from before approving anything.

Pages by cursor: pass the previous page's nextCursor until hasMore is false (#7196).

Args: tenant_slug: The tenant in the URL. project_id: The project owning the version. version_record_id: The versions.id UUID whose mock recorded the captures. state: Only captures in this review state. limit: Page size. cursor: Where the page starts (nextCursor of the previous page). offset: Captures to skip (deprecated). include_exchange: Include each capture's full redacted document. auth_data: The authenticated principal.

Returns: The page of captures, whether another follows, and the live counts by review state.

Raises: HTTPException: 400 for a malformed cursor, 403 without versions:view, 404 for an unknown version.

Operation id: list_version_mock_captures_v1_versions__tenant_slug___project_id___version_record_id__mock_captures_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).
statequeryenum "pending", "approved", "rejected", "published" or nullnoFilter by review state.
limitqueryintegernoPage size. At most 200.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
offsetqueryintegernoRows to skip. Deprecated: page with cursor instead. At most 10,000.
includeExchangequerybooleannoInclude each capture's full redacted document, not only its summary.
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 list version mock captures.application/json VersionMockCapturesResponse
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/captures​

Delete Version Mock Captures

Discard recorded exchanges (#4747, PMR-2.4).

Recorded traffic is the one thing here that should never accumulate: this removes it outright rather than flagging it. Captures also expire on their own; this is the manual path for an owner who wants them gone now.

Operation id: delete_version_mock_captures_v1_versions__tenant_slug___project_id___version_record_id__mock_captures_delete

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).
statequeryenum "pending", "approved", "rejected", "published" or nullnoDiscard only captures in this review state.
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 delete version mock captures.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/captures/publish​

Publish Version Mock Captures

Convert approved captures into a fixture pack (#4747, PMR-2.4).

The publish half of "review before publish": only captures an owner has explicitly approved are converted, and the resulting pack is stamped with a provenance block naming the upstreams it drew from, how many captures went into it, and how many redactions were applied. That block is what the runtime reports back on every pack listing and session reset, so a fixture replayed months later still says where it came from.

Successful JSON responses whose operation identifies a CRUD collection become session seed resources; everything else becomes named template fixture data. Anything that could not be converted is reported in notes rather than dropped silently. Publishing to an existing pack name replaces that pack.

Operation id: publish_version_mock_captures_v1_versions__tenant_slug___project_id___version_record_id__mock_captures_publish_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 (required)

Request body for publish version mock captures.

Responses

StatusDescriptionBody
200Successful response for publish version mock captures.application/json VersionMockCapturePublishResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/captures/review​

Review Version Mock Captures

Approve or reject recorded exchanges (#4747, PMR-2.4).

Nothing a capture recorded reaches a fixture pack without passing through here first. A capture already published is never re-decided: the pack that carries its provenance would otherwise be left claiming a source that disowns it.

Operation id: review_version_mock_captures_v1_versions__tenant_slug___project_id___version_record_id__mock_captures_review_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 (required)

Request body for review version mock captures.

Responses

StatusDescriptionBody
200Successful response for review version mock captures.application/json VersionMockCaptureReviewResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/correlation​

Get Version Mock Correlation

Return the version's mock response-correlation settings (#5527, MSC-1.1).

Operation id: get_version_mock_correlation_v1_versions__tenant_slug___project_id___version_record_id__mock_correlation_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 mock correlation.application/json VersionMockCorrelationResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/correlation​

Set Version Mock Correlation

Replace the version's mock response-correlation settings (#5527, MSC-1.1).

Correlation is what makes the default response path answer GET /pets/42 with an id of 42 — with no request header, so a generated SDK or a browser app gets it too. The block is validated against this version's generated OpenAPI document (every operation key must name a real operation) and against the bounded template language (every explicit expression must parse), then stored canonically in versions.mock_settings under responseCorrelation, alongside the other mock knobs, and travels inside portable mock bundles.

Omitting correlation (or sending null, or a block with mode: "off") clears the stored block and reverts the version to today's static behaviour.

With ?dryRun=true nothing is written: the same validation runs and the response describes what would be stored (#5530, MSC-1.4).

Operation id: set_version_mock_correlation_v1_versions__tenant_slug___project_id___version_record_id__mock_correlation_put

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).
dryRunquerybooleannoValidate and report what would be stored, without writing anything.
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 set version mock correlation.

Responses

StatusDescriptionBody
200Successful response for set version mock correlation.application/json VersionMockCorrelationResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/fixture-packs​

Get Version Mock Fixture Packs

Return the version's mock fixture packs and their content digests (#4745, PMR-2.2).

Operation id: get_version_mock_fixture_packs_v1_versions__tenant_slug___project_id___version_record_id__mock_fixture_packs_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 mock fixture packs.application/json VersionMockFixturePacksResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/fixture-packs​

Set Version Mock Fixture Packs

Replace the version's mock fixture packs (#4745, PMR-2.2).

Packs are validated against the versioned fixture pack schema (format id and version, name shapes, collection path/resource rules, size caps) and stored canonically in versions.mock_settings under fixturePacks, alongside the other mock knobs. The response echoes each pack's content digest — the identity a test asserts when it resets a session to the pack. An empty packs map clears them.

With ?dryRun=true nothing is written: the same validation runs and the response describes what would be stored (#5530, MSC-1.4).

Operation id: set_version_mock_fixture_packs_v1_versions__tenant_slug___project_id___version_record_id__mock_fixture_packs_put

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).
dryRunquerybooleannoValidate and report what would be stored, without writing anything.
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 set version mock fixture packs.

Responses

StatusDescriptionBody
200Successful response for set version mock fixture packs.application/json VersionMockFixturePacksResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/operations​

Get Version Mock Operations

Return the mock-authoring catalogue for this version (#5529, MSC-1.3).

The editor that configures response correlation needs three things the stored settings do not contain: the operations this version actually has (with their path, query and header parameters, so an author picks a token instead of memorizing the grammar), the JSON Pointers a binding can target, and — the part that makes inference trustworthy — which properties the path-params and inferred passes would bind, and to what, before anything is saved.

Those bindings are projected over the response schema with the very name-matching rules the runtime applies to a response body (:mod:app.mock_correlation_rules, imported by :mod:apiome_mock.correlation), so the preview cannot promise a binding the mock declines to make. Two limits follow from working on a schema instead of a body and are reported rather than hidden: a pointer inside an array names member 0 and is flagged repeated (the runtime binds every member), and a oneOf/anyOf schema is projected through its first branch.

Read-only and cheap: it generates the version's OpenAPI document and walks it. Nothing about mock serving is involved, so it answers for a version whose mock is switched off — which is exactly when correlation is being configured for the first time.

Args: tenant_slug: The tenant slug. project_id: The project ID that must own the version. version_record_id: The version record ID (UUID) to describe. auth_data: Authentication context; requires versions:view.

Returns: The operations catalogue and the fixture names templates can read on this version.

Raises: HTTPException: 404 when the version does not exist in the project.

Operation id: get_version_mock_operations_v1_versions__tenant_slug___project_id___version_record_id__mock_operations_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 mock operations.application/json VersionMockOperationsResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/preview​

Preview Version Mock

Render one synthetic request against this version's mock, without sending it (#5528, MSC-1.2).

Answers the question an author actually has — what comes back? — with no mock enabled, no instance provisioned, and no live request. The response carries the status, headers, media type and body the mock would serve, plus a decision trace naming which layer produced the body: a scenario (and which rule), session-scoped CRUD, correlation (and which pointers), or a declared example versus schema synthesis.

The render happens in apiome-mock, through the very function its data plane calls, so a preview cannot disagree with the served response. This route builds the version's portable mock bundle — the same document the bundle export produces — and asks the runtime to render it. Two consequences worth knowing: the preview reflects the bundled settings keys (scenarios, chaos, fixture packs, callbacks, correlation), and it works on a version whose mock is disabled, because nothing about serving access is involved.

Nothing is written. Session state lives and dies inside the render, no callback is delivered, no usage or provisioning row is touched, and an unsaved settings override leaves the stored settings exactly as they were. Chaos is reported rather than applied: a preview that slept for a configured latency, or that randomly answered 500, would be answering a different question.

Args: tenant_slug: The tenant slug. project_id: The project ID that must own the version. version_record_id: The version record ID (UUID) to preview. request: The synthetic request and, optionally, an unsaved settings override. auth_data: Authentication context; requires versions:view, and versions:edit when a settings override is supplied.

Returns: The rendered response and its decision trace.

Raises: HTTPException: 404 when the version does not exist in the project; 413 when the synthetic body is too large; 422 when a draft override fails the same validation its save route applies, or the runtime rejects the request; 429 when the per-version preview rate limit is exhausted; 502 when the mock runtime cannot be reached; 503 when preview is not configured on this deployment.

Operation id: preview_version_mock_v1_versions__tenant_slug___project_id___version_record_id__mock_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 (required)

Request body for preview version mock.

Responses

StatusDescriptionBody
200Successful response for preview version mock.application/json VersionMockPreviewResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/scenarios​

Get Version Mock Scenarios

Return the version's mock scenario definitions (#4454 SIM-4.2).

Operation id: get_version_mock_scenarios_v1_versions__tenant_slug___project_id___version_record_id__mock_scenarios_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 mock scenarios.application/json VersionMockScenariosResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/mock/scenarios​

Set Version Mock Scenarios

Replace the version's mock scenario definitions (#4454 SIM-4.2).

Canned responses are validated against the version's generated OpenAPI document (operation exists, status defined, media type declared, body matches the response schema); a response may opt out with offSpec. Definitions persist in versions.mock_settings alongside other mock knobs and survive publish/republish and mock toggles.

The request also carries the version-level latency/chaos knobs (#4455 SIM-4.3): chaos replaces the stored block, and omitting it (or sending null) clears the stored block.

activeScenario (#5531, MSC-2.1) names the scenario the hosted mock serves when a request sends no X-Mock-Scenario header; it must name one of the scenarios in this same request. Unlike the other two keys it is preserved when the field is omitted and cleared only when it is sent as null — an editor written before the field existed keeps sending {scenarios, chaos}, and a save from it must not silently switch a version's mock back to its default flow.

With ?dryRun=true nothing is written: the same validation runs and the response describes what would be stored (#5530, MSC-1.4).

GraphQL versions (#5729, XPC-1.1): an operation key may be a root-field coordinate (Query.user), checked against the version's GraphQL schema. graphql holds the GraphQL mock's depth and complexity caps and list length; like activeScenario it is preserved when omitted and cleared only when sent as null.

Operation id: set_version_mock_scenarios_v1_versions__tenant_slug___project_id___version_record_id__mock_scenarios_put

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).
dryRunquerybooleannoValidate and report what would be stored, without writing anything.
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 set version mock scenarios.

Responses

StatusDescriptionBody
200Successful response for set version mock scenarios.application/json VersionMockScenariosResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/original​

Get Version Original

Download the file the import stored for a revision (COA-5.7).

For a single document this is the document; for a set of files it is the set's manifest (application/vnd.apiome.fileset-manifest+json), whose members name each file to fetch from …/original/{part_path}.

Operation id: get_version_original_v1_versions__tenant_slug___project_id___version_record_id__original_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).
redirectquery"presigned" or nullnopresigned: answer 302 to a short-lived presigned URL when the store can sign one (s3) and the content is stored as it is; otherwise the file is streamed.
Rangeheaderstring or nullnoHeader parameter: Range.
If-None-Matchheaderstring or nullnoETag from a prior response; returns 304 when unchanged.
If-Rangeheaderstring or nullnoHeader parameter: If Range.
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 original file, streamed, with ETag, Accept-Ranges and Content-Disposition.application/octet-stream string (binary)
206The requested byte range (Content-Range names it).—
302?redirect=presigned: a short-lived presigned URL in Location.—
304If-None-Match names the current ETag.—
404Unknown revision, or original-not-stored: nothing stored (or no file at the path).—
410original-withheld: the import withheld the source under the intake policy.—
416The Range starts past the end; Content-Range: bytes */<size>.—
422Validation Errorapplication/json HTTPValidationError
502original-unreadable: the document store did not return the bytes.—

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/original/{part_path}​

Get Version Original Part

Download one file of a revision's stored set of files, by its path inside the set (COA-5.7).

Operation id: get_version_original_part_v1_versions__tenant_slug___project_id___version_record_id__original__part_path__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).
part_pathpathstringyesPath parameter identifying the part path segment.
redirectquery"presigned" or nullnopresigned: answer 302 to a short-lived presigned URL when the store can sign one (s3) and the content is stored as it is; otherwise the file is streamed.
Rangeheaderstring or nullnoHeader parameter: Range.
If-None-Matchheaderstring or nullnoETag from a prior response; returns 304 when unchanged.
If-Rangeheaderstring or nullnoHeader parameter: If Range.
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 original file, streamed, with ETag, Accept-Ranges and Content-Disposition.application/octet-stream string (binary)
206The requested byte range (Content-Range names it).—
302?redirect=presigned: a short-lived presigned URL in Location.—
304If-None-Match names the current ETag.—
404Unknown revision, or original-not-stored: nothing stored (or no file at the path).—
410original-withheld: the import withheld the source under the intake policy.—
416The Range starts past the end; Content-Range: bytes */<size>.—
422Validation Errorapplication/json HTTPValidationError
502original-unreadable: the document store did not return the bytes.—

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays​

List Version Overlays

List a revision's stored overlay chain, in the order it is applied.

Args: tenant_slug: The tenant slug (the tenant comes from the credential). project_id: The project id. version_record_id: The revision id. auth_data: Authenticated tenant context.

Returns: The chain, whether it is read-only, and the publish render record when there is one.

Operation id: list_version_overlays_v1_versions__tenant_slug___project_id___version_record_id__overlays_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 list version overlays.application/json VersionOverlayChainOut
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays​

Add Version Overlay

Add an overlay to a draft revision's chain.

Args: tenant_slug: The tenant slug. project_id: The project id. version_record_id: The revision id. body: The overlay, its label, source and optional position. auth_data: Authenticated tenant context.

Returns: The stored overlay.

Raises: HTTPException: 404 unknown revision; 409 overlay-version-published, overlay-chain-full or overlay-chain-conflict (a concurrent write; retry); 422 when the source is not OpenAPI or the body is invalid.

Operation id: add_version_overlay_v1_versions__tenant_slug___project_id___version_record_id__overlays_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 (required)

Request body for add version overlay.

Responses

StatusDescriptionBody
201Successful response for add version overlay.application/json VersionOverlayOut
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays/apply​

Apply Version Overlays

Apply the revision's stored chain as a new version of the same project.

The resolved document — exactly what the preview and an export render — passes the tenant's import quality gate and is imported as a new version. The source revision and its chain are not changed; the new version has an empty chain, since the overlays are now part of its source.

Args: tenant_slug: The tenant slug. project_id: The project id. version_record_id: The revision whose chain is applied. body: The new version's label (optional). auth_data: Authenticated tenant context.

Returns: The new version's id and label, and what was applied.

Raises: HTTPException: 404 unknown revision; 409 overlay-chain-empty, overlay-no-changes, version-exists or QUALITY_POLICY_BLOCKED; 422 when the source is not OpenAPI, the chain cannot be applied, or the import fails (overlay-apply-import-failed).

Operation id: apply_version_overlays_v1_versions__tenant_slug___project_id___version_record_id__overlays_apply_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 apply version overlays.

Responses

StatusDescriptionBody
201Successful response for apply version overlays.application/json VersionOverlayApplyOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays/preview​

Preview Version Overlays

Render the revision's source with its stored chain, as an export would.

Args: tenant_slug: The tenant slug. project_id: The project id. version_record_id: The revision id. auth_data: Authenticated tenant context.

Returns: The resolved document, the source and resolved fingerprints, the ledger / per-action rows / findings, and the before / after rows.

Raises: HTTPException: 404 for an unknown revision; 422 ({code, message}) when the source is not OpenAPI or the chain cannot be applied.

Operation id: preview_version_overlays_v1_versions__tenant_slug___project_id___version_record_id__overlays_preview_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 preview version overlays.application/json VersionOverlayPreviewOut
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays/preview​

Preview Version Overlay Draft

Render the chain with an unsaved draft overlay, so an edit can be checked before it is saved.

The draft is appended to the chain (a new overlay) or stands in for replace_overlay_id (an edit). Nothing is written, so a published revision can be previewed too.

Args: tenant_slug: The tenant slug. project_id: The project id. version_record_id: The revision id. body: The draft and the overlay it replaces, if any. auth_data: Authenticated tenant context.

Returns: The preview, with draft naming the draft's label in the report.

Raises: HTTPException: 404 unknown revision or overlay; 422 when the source is not OpenAPI, the draft is not an Overlay document, or the chain cannot be applied.

Operation id: preview_version_overlay_draft_v1_versions__tenant_slug___project_id___version_record_id__overlays_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 (required)

Request body for preview version overlay draft.

Responses

StatusDescriptionBody
200Successful response for preview version overlay draft.application/json VersionOverlayPreviewOut
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays/{overlay_id}​

Replace Version Overlay

Replace one overlay of a draft revision's chain, keeping its position.

Args: tenant_slug: The tenant slug. project_id: The project id. version_record_id: The revision id. overlay_id: The overlay to replace. body: The new overlay (position is ignored). auth_data: Authenticated tenant context.

Returns: The new stored overlay. It has a new id, because stored overlays are write-once.

Raises: HTTPException: 404 unknown revision or overlay; 409 overlay-version-published.

Operation id: replace_version_overlay_v1_versions__tenant_slug___project_id___version_record_id__overlays__overlay_id__put

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).
overlay_idpathstringyesPath parameter identifying the overlay id segment.
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 replace version overlay.

Responses

StatusDescriptionBody
200Successful response for replace version overlay.application/json VersionOverlayOut
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/overlays/{overlay_id}​

Delete Version Overlay

Remove one overlay from a draft revision's chain.

Args: tenant_slug: The tenant slug. project_id: The project id. version_record_id: The revision id. overlay_id: The overlay to remove. auth_data: Authenticated tenant context.

Returns: 204 No Content.

Raises: HTTPException: 404 unknown revision or overlay; 409 overlay-version-published.

Operation id: delete_version_overlay_v1_versions__tenant_slug___project_id___version_record_id__overlays__overlay_id__delete

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).
overlay_idpathstringyesPath parameter identifying the overlay id segment.
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
204Successful response for delete version overlay.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/preservation​

Get Preservation Envelope

Return the revision's live preservation envelope and semantic fingerprint.

Operation id: get_preservation_envelope_v1_versions__tenant_slug___project_id___version_record_id__preservation_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 preservation envelope.application/json PreservationEnvelopeResponse
422Validation Errorapplication/json HTTPValidationError

PUT /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/preservation​

Put Preservation Envelope

Validate and replace a draft revision's preservation envelope.

Responses: * 200 — envelope stored; body echoes the live envelope + fingerprint. * 404 — revision not in the caller's tenant/project scope. * 409 — revision is published (immutable); nothing mutated. * 422 — structured validation errors; nothing mutated.

Operation id: put_preservation_envelope_v1_versions__tenant_slug___project_id___version_record_id__preservation_put

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 put preservation envelope.

Responses

StatusDescriptionBody
200Successful response for put preservation envelope.application/json PreservationEnvelopeResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/publish​

Publish Version

Publish a version.

Only the version creator or a tenant administrator can publish a version. Published versions are frozen and cannot be modified.

Args: tenant_slug: The tenant slug project_id: The project ID version_record_id: The version record ID request: Optional publish options (visibility) auth_data: Authentication data (injected by dependency)

Returns: The published version

Operation id: publish_version_v1_versions__tenant_slug___project_id___version_record_id__publish_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 publish version.

Responses

StatusDescriptionBody
200Successful response for publish version.application/json VersionSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/source-apply​

Apply Source Changes

Apply a reviewed candidate once, in a single transaction.

Operation id: apply_source_changes_v1_versions__tenant_slug___project_id___version_record_id__source_apply_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 (required)

Request body for apply source changes.

Responses

StatusDescriptionBody
200Successful response for apply source changes.application/json SourceApplyResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/source-review​

Review Source Changes

Classify a candidate source text against the revision. Never mutates.

Operation id: review_source_changes_v1_versions__tenant_slug___project_id___version_record_id__source_review_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 (required)

Request body for review source changes.

Responses

StatusDescriptionBody
200Successful response for review source changes.application/json SourceReviewResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/unpublish​

Unpublish Version

Unpublish a version: return it to draft, record why, move its tags, notify subscribers.

Only the version creator or a tenant administrator can unpublish a version (#3213):

  • reason is stored as unpublishReason (with unpublishedAt / unpublishedBy) and sent in the version.unpublished webhook.
  • Unless keepTags, every version tag on the revision moves to the project's next-most-recent published revision, in the same transaction. Immutable tags, protected tags (for a non-administrator) and tags with nowhere to go stay, listed in tagsKept.
  • A version.unpublished push-webhook event goes to every active subscription unless silent — which only a tenant administrator may ask for (403 silent_requires_admin).
  • dryRun returns the same plan without writing anything.

An empty body behaves as before #3213, plus the tag move and the webhook.

Args: tenant_slug: The tenant slug project_id: The project ID version_record_id: The version record ID background_tasks: Runs the webhook fan-out after the response body: Optional reason / silent / keepTags / dryRun auth_data: Authentication data (injected by dependency)

Returns: The unpublished version, with tagsMoved, tagsKept, notify and webhookSubscribers

Operation id: unpublish_version_v1_versions__tenant_slug___project_id___version_record_id__unpublish_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 unpublish version.

Responses

StatusDescriptionBody
200Successful response for unpublish version.application/json VersionUnpublishResponse
422Validation Errorapplication/json HTTPValidationError

Schemas used​

BreakingPublishGuardrailOut​

Breaking-publish guardrail assessment for a candidate publish (CTG-3.4, #4478).

Shared verbatim by the preflight endpoint, the blocked-publish 422 body, and the audit trail, so the dialog, the API error, and the audit row can never disagree.

PropertyTypeRequiredDescription
policystringyesResolved guardrail level: off | warn | block.
statusstringyesdisabled | no-baseline | ok | warning | blocked | unavailable.
triggeredbooleanyesThe guardrail has a warning or a block to report.
blockedbooleanyesPublish is refused unless force-published.
breakingbooleanyesHead classifies breaking against the baseline.
majorBumpedboolean or nullnoNull when a version label is not semver (unknown, never assumed).
fromVersionstring or nullnoFrom Version.
toVersionstring or nullnoTo Version.
baselineRevisionIdstring or nullnoBaseline Revision ID.
breakingChangesarray of BreakingPublishChangeOutnoBreaking Changes.
breakingCountintegernoNumber of breaking.
truncatedbooleannoListed changes omit some of breakingCount.
countsmap of integernoCounts.
maxSeveritystring or nullnoMax Severity.
recommendedVersionstring or nullnoRecommended Version.
detailstring or nullnoDetail.
evaluatedUnderEvaluatedUnderOut or nullnoWhat the comparison was graded under: the project's compatibility mode, transitivity and Protobuf category, and the published revisions compared (XPC-4.5).
messagestringyesMessage.

ContractsPublishGateOut​

Contracts publish gate assessment for a candidate publish (PFX-7.3, #6963).

Shared verbatim by the preflight endpoint, the blocked-publish 422 body and the audit trail, so the dialog, the API error and the audit row can never disagree.

PropertyTypeRequiredDescription
policystringyesResolved level: off | warn | block.
statusstringyesdisabled | no-contracts | ok | warning | blocked | pending | unavailable.
triggeredbooleanyesThe gate has a warning or a block to report.
blockedbooleanyesPublish is refused unless force-published.
pacticipantstring or nullnoThe pacticipant bound to the project.
versionstring or nullnoThe pacticipant version asked about.
environmentstring or nullnoThe destination environment; null checks the latest counterparts.
deployableboolean or nullnocan-i-deploy verdict; null when a verification result is missing.
reasonsarray of objectnoPer-row reasons: {type, code, text}, at most 50.
reasonCountintegernoThe true number of reasons, which may exceed reasons.
countsmap of integernoCounts.
reasonstring or nullnoStable reason code of the signal.
linkstring or nullnoLink.
detailstring or nullnoDetail.
messagestringyesMessage.

FreezeSchemaRequest​

Optional body of POST /v1/versions/{tenant}/{project}/{id}/freeze-schema (#3214).

PropertyTypeRequiredDescription
dryRunbooleannoReturn the snapshot that would be stored (SHA-256, size, counts) without freezing.

FreezeSchemaResponse​

A version's frozen OpenAPI snapshot (#3214): freeze, dry run, status and unfreeze responses.

PropertyTypeRequiredDescription
versionIdstringyesVersion record id.
versionLabelstring or nullnoVersion Label.
frozenbooleanyesWhether the version is frozen after this call.
dryRunbooleannoDry Run.
sha256string or nullnoLower-case hex SHA-256 of the snapshot bytes.
sizeBytesinteger or nullnoSize Bytes.
snapshotUrlstring or nullnoWhere the frozen document is served: /v1/schema/{tenant}/{project}/{version}.
classCountintegernoNumber of class.
propertyCountintegernoNumber of property.
pathCountintegernoNumber of path.
frozenAtstring (date-time) or string or nullnoFrozen At.
frozenBystring or nullnoFrozen By.
downloadCountintegernoSuccessful GET /v1/schema fetches of the snapshot; above 0, unfreezing needs force.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

MergeSessionStatusPatchRequest​

Update merge session lifecycle state (#2573).

PropertyTypeRequiredDescription
statusenum "resolving", "applied", "aborted"yesTarget status: resolving, applied, or aborted (from preview/resolving only).

PreservationEnvelopePutRequest​

Replace a draft revision's preservation envelope.

PropertyTypeRequiredDescription
dialectstringyesOAS dialect the claims target (e.g. 3.1.0).
claimsarray of PreservationClaimBodynoThe full new set of claims (empty clears).

PreservationEnvelopeResponse​

A revision's live preservation envelope plus its semantic fingerprint.

PropertyTypeRequiredDescription
envelopeVersionstringyesEnvelope payload contract version.
dialectstringyesOAS dialect the claims were validated under.
claimsarray of PreservationClaimBodyyesClaims.
fingerprintSemanticFingerprintyesSemantic fingerprint of the merged (canonical + preserved) document, reporting the intentionally excluded lexical differences.

ProjectTimelineResponse​

A page of a project's activity timeline, newest first (#2594).

PropertyTypeRequiredDescription
projectIdstringyesProject ID.
itemsarray of ProjectTimelineEventOutnoItems.
limitintegeryesThe page size (after clamping).
hasMorebooleanyesHas More.
nextCursorstring or nullnoPass as cursor for the next page when hasMore is true.
restrictedbooleanyesTrue when failures and denied attempts were left out (callers who are not tenant admins).

RevisionHistoryWindowResponse​

A bounded window of the revision DAG reachable from one or more tips (#2593).

PropertyTypeRequiredDescription
tipsarray of stringyesThe revisions the window starts from.
depthintegeryesThe parent steps walked (after clamping).
limitintegeryesThe most revisions returned (after clamping).
truncatedbooleanyesTrue when the depth or the limit cut the history short.
nodesarray of RevisionGraphNodeOutnoNearest the tips first, then newest first.

RevisionMergeBaseResponse​

mergeBase(revA, revB) — the best common ancestor of two revisions (#2593).

PropertyTypeRequiredDescription
astringyesThe first revision.
bstringyesThe second revision.
mergeBaseRevisionMergeBaseOut or nullnoNull when the two histories share no revision (disjoint).
candidatesarray of stringnoEvery best common ancestor, newest first; more than one in a criss-cross history.
disjointbooleanyesTrue when the two revisions have no common ancestor.

SourceApplyRequest​

Apply a reviewed candidate under optimistic concurrency.

PropertyTypeRequiredDescription
sourceTextstringyesThe full candidate source text.
sourceFormatenum "yaml", "json"noSerialization of source_text.
baseDigeststringyesThe baseDigest the review endpoint returned; the apply is rejected as stale when the revision no longer fingerprints to it.
changeSetDigeststringyesThe changeSetDigest the review endpoint returned for this candidate against that base.

SourceApplyResponse​

Apply outcome: exactly one revision mutation, or an idempotent no-op.

PropertyTypeRequiredDescription
appliedbooleanyesApplied.
alreadyAppliedbooleannoAlready Applied.
noChangesbooleannoNo Changes.
resultDigeststringyesResult Digest.
auditIdstring or nullnoAudit ID.
countsSourceChangeCounts or nullnoCounts.
enrichmentsarray of stringnoPointers the generator deterministically added during the apply (reported, never silent).
claimCountintegernoPreservation claims live after the apply.

SourceReviewRequest​

A candidate source text to classify against the revision.

PropertyTypeRequiredDescription
sourceTextstringyesThe full candidate source text.
sourceFormatenum "yaml", "json"noSerialization of source_text.

SourceReviewResponse​

Review outcome: the classified change set, nothing mutated.

PropertyTypeRequiredDescription
dialectstringyesDialect.
changeSetSourceChangeSetBodyyesChange Set.

SunsetTimelineResponse​

Aggregated sunset / deprecation timeline for accessible projects (#508).

PropertyTypeRequiredDescription
entriesarray of SunsetTimelineEntryOutnoEntries.
productsarray of SunsetTimelineProductEntryOutnoDeprecated and retired API products and plans (APX-1.4), soonest retirement first. Empty without projects:view; with projectId, only products that include that project.
hasMorebooleannoWhether entries continues past this page (read it with a larger offset).

VersionBranchCreateRequest​

Create a named branch whose tip is an existing revision.

PropertyTypeRequiredDescription
namestringyesBranch name; unique per project.
fromVersionIdstringyesExisting revision (version row id) to use as the branch tip.

VersionBranchDivergenceResponse​

Branch-vs-branch divergence metrics and commit samples (#2721).

PropertyTypeRequiredDescription
branchVersionBranchDivergenceBranchOutyesBranch.
againstVersionBranchDivergenceBranchOutyesAgainst.
mergeBaseVersionBranchDivergenceMergeBaseOut or nullnoMerge Base.
aheadintegeryesAhead.
behindintegeryesBehind.
aheadSamplearray of VersionBranchDivergenceSampleOutnoAhead Sample.
behindSamplearray of VersionBranchDivergenceSampleOutnoBehind Sample.

VersionBranchFromRevisionRequest​

Create a named branch whose tip is an existing revision (in-project; #2570).

PropertyTypeRequiredDescription
sourceRevisionIdstringyesRevision (versions.id) to use as the branch tip.
branchNamestringyesNew branch name; unique per project.

VersionBranchFromRevisionResponse​

Result of branch-from-revision; idempotentReplay documents safe retries (#2570).

PropertyTypeRequiredDescription
branchVersionBranchRecordOutyesBranch.
tipVersionVersionSchemayesTip Version.
idempotentReplaybooleannoTrue when the branch already existed with the same tip and lineage (safe retry).

VersionBranchMergePreviewRequest​

Dry-run merge preview (three-way schema merge + merge-base).

PropertyTypeRequiredDescription
sourceBranchNamestringyesSource Branch Name.
targetBranchNamestringyesTarget Branch Name.
includeMergedOpenApibooleannoWhen true (default), include merged OpenAPI preview when auto-merge is possible and under the size cap; set false to omit large payloads (counts and conflicts unchanged).
persistMergeSessionbooleannoWhen true, insert merge_sessions + conflict rows for resumable resolution (#2573).
overridePublishedImmutabilitybooleannoTenant admin only: preview merge when a branch tip is published immutable (#2586).
overrideReasonstring or nullnoAudit text when overriding published immutability (#2586).

VersionBranchMergeRequest​

Merge source branch into target: requires baseRevisionId = current target tip (optimistic lock).

PropertyTypeRequiredDescription
sourceBranchNamestringyesSource Branch Name.
targetBranchNamestringyesTarget Branch Name.
baseRevisionIdstringyesBase Revision ID.
skipCompatGatebooleannoWhen true, skip optional project compatGateOnMerge check against merge result.
compatGateOverrideReasonstring or nullnoRequired when skipCompatGate is true and compatGateOnMerge is enabled (#2590).
overridePublishedImmutabilitybooleannoTenant admin only: merge when a branch tip is published immutable (#2586).
overrideReasonstring or nullnoAudit text when overriding published immutability (#2586).

VersionBranchPolicyPatchRequest​

Tenant-admin: branch protection and merge-path policy (#504, #2583).

PropertyTypeRequiredDescription
protectedboolean or nullnoProtected.
isDefaultboolean or nullnoIs Default.
requireMergePathboolean or nullnoRequire Merge Path.

VersionBranchRollbackPreviewRequest​

Dry-run rollback: compatibility / deprecation signals before apply (#745).

PropertyTypeRequiredDescription
branchNamestringyesNamed branch whose tip is rolled forward with restored content.
targetRevisionIdstringyesRevision (versions.id) whose class snapshot is restored (must be an ancestor of the branch tip).
overridePublishedImmutabilitybooleannoTenant admin only: preview rollback when branch tip is published immutable (#2586).
overrideReasonstring or nullnoAudit text when overriding published immutability (#2586).

VersionBranchRollbackRequest​

Revert-style rollback: new revision whose tree matches target; parent = prior branch tip (#745).

PropertyTypeRequiredDescription
branchNamestringyesBranch Name.
targetRevisionIdstringyesTarget Revision ID.
baseRevisionIdstringyesMust equal current branch tip (optimistic concurrency).
skipCompatWarningbooleannoWhen true, apply even if compat analysis is not safe (still blocked if compatGateOnRollback is on).
shortMessagestring or nullnoShort Message.
changelogstring or nullnoChangelog.
reasonstring or nullnoOptional audit reason persisted on rollback workflow audit (#2582).
overridePublishedImmutabilitybooleannoTenant admin only: roll back when branch tip is published immutable (#2586).
overrideReasonstring or nullnoAudit text when overriding published immutability (#2586).

VersionCreateRequest​

Request model for creating a version.

PropertyTypeRequiredDescription
version_idstring or nullnoProject version identifier or semantic version label, depending on context.
shortMessagestring or nullnoRevision note (commit message analog).
changelogstring or nullnoChangelog.
authorstring or nullnoAuthor.
messagestring or nullnoMessage.
externalRefstring or nullnoExternal Ref.
baseRevisionIdstringyesRevision id the client believes is the current head (optimistic lock; #2566).
branchNamestring or nullnoNamed branch to advance; required when the project has multiple branches.
source_version_idstring or nullnoSource Version ID.
copyPathsbooleannoAlso copy the source version's paths (operations, parameters, request bodies, responses) — #771. Classes are always copied with source_version_id; requires it.
sourceCommitShastring or nullnoRepository source commit SHA that triggered this revision (RAR-4.2 refresh provenance); recorded for repository auto-refresh imports.
sourceCommittedAtstring (date-time) or string or nullnoCommit timestamp of source_commit_sha (RAR-4.2 refresh provenance).
bump_strategystring or nullnoBump Strategy.
overridePublishedImmutabilitybooleannoTenant admin only: allow push from an immutable published tip (#2586).
overrideReasonstring or nullnoAudit text when overriding published immutability (#2586).

VersionDraftLockAcquireRequest​

Optional lease duration for draft lock acquire/renew (#2584).

PropertyTypeRequiredDescription
leaseSecondsinteger or nullnoLock duration in seconds (default 900).

VersionDraftLockRenewRequest​

VersionDraftLockRenewRequest schema.

PropertyTypeRequiredDescription
leaseSecondsinteger or nullnoLease Seconds.

VersionDraftLockResponse​

Active draft edit lock on an unpublished revision (#2584).

PropertyTypeRequiredDescription
versionIdstringyesVersion ID.
ownerUserIdstringyesOwner User ID.
expiresAtstring (date-time)yesExpires At.

VersionDraftLockStatusResponse​

Draft lock presence for a revision — used for Studio polling (#2585).

PropertyTypeRequiredDescription
activebooleanyesActive.
versionIdstring or nullnoVersion ID.
ownerUserIdstring or nullnoOwner User ID.
expiresAtstring (date-time) or nullnoExpires At.

VersionForkRequest​

Fork a schema version line into another project from a source revision (cross-project sandbox).

PropertyTypeRequiredDescription
sourceRevisionIdstringyesSource version row id (revision) to copy from.
upstreamProjectIdstring or nullnoOptional upstream project for merge-back; defaults to the source revision's project.
versionIdstring or nullnoExplicit semantic version string for the forked version (e.g. '2.0.0').
shortMessagestring or nullnoShort Message.
changelogstring or nullnoChangelog.
authorstring or nullnoAuthor.
messagestring or nullnoMessage.
externalRefstring or nullnoExternal Ref.
bumpStrategystring or nullnoAuto-versioning strategy when versionId is omitted: 'minor' or 'patch' (default).

VersionMockCallbacksRequest​

Replace the version's mock callback definitions (#4746 PMR-2.3).

PropertyTypeRequiredDescription
callbacksmap of MockCallbackSpecnoCallback definitions keyed by callback name; an empty map clears them.

VersionMockCallbacksResponse​

The version's persisted mock callback definitions and their content digests (#4746 PMR-2.3).

PropertyTypeRequiredDescription
callbacksmap of MockCallbackSpecnoCallback definitions keyed by callback name, in canonical stored form.
digestsmap of stringnosha256:<hex> content digest of each definition — the identity a test pins.

VersionMockCapturePolicyRequest​

Grant, change, or switch off guarded proxy capture for a version (#4747 PMR-2.4).

The authorization block is never accepted from the client: the API stamps the authenticated user and clamps the lifetime itself, so "who authorized this" cannot be claimed.

PropertyTypeRequiredDescription
enabledbooleannoSwitch capture on (the default) or off without losing the allowlist.
upstreamsarray of stringnoAbsolute http(s) base URLs capture may fetch; at least one is required.
redactionMockCaptureRedactionSpec or nullnoExtra redaction rules on top of the always-on credential rules.
validateResponsesbooleannoCheck each captured response against the version's declared contract.
ttlHoursinteger or nullnoRequested authorization lifetime in hours (clamped to at most 168).
acknowledgedbooleannoExplicit confirmation that the caller is authorized to record traffic from these upstreams. Capture cannot be granted without it.

VersionMockCapturePolicyResponse​

The version's stored capture policy, its digest, and whether capture is live (#4747 PMR-2.4).

PropertyTypeRequiredDescription
policyMockCapturePolicySpec or nullnoThe stored policy, or null when capture was never configured.
digeststring or nullnosha256:<hex> digest of the policy; recorded on every capture.
statestringyesWhy capture is or is not live: authorized, unconfigured, disabled, no-upstreams, unauthorized, or expired.
capturesmap of integernoLive capture counts by review state (pending/approved/rejected/published).

VersionMockCapturePublishRequest​

Convert approved captures into a fixture pack (#4747 PMR-2.4).

PropertyTypeRequiredDescription
packNamestringyesName of the fixture pack to create or replace.
captureIdsarray of stringnoApproved capture ids to publish; empty means every approved capture.
descriptionstringnoDescription stored on the resulting pack.

VersionMockCapturePublishResponse​

The fixture pack produced from reviewed captures (#4747 PMR-2.4).

PropertyTypeRequiredDescription
packNamestringyesThe pack that was written.
digeststringyessha256:<hex> digest of the published pack.
publishedarray of stringnoCapture ids marked published.
notesarray of stringnoWhat the conversion skipped and why, so nothing is dropped silently.
provenanceMockFixturePackProvenanceSpecyesThe provenance block stamped on the pack — its origin and redaction totals.

VersionMockCaptureReviewRequest​

Approve or reject recorded exchanges (#4747 PMR-2.4).

PropertyTypeRequiredDescription
captureIdsarray of stringnoCapture ids to decide.
decisionenum "approve", "reject"yesThe review decision to record.
notestring or nullnoOptional note stored with the decision.

VersionMockCaptureReviewResponse​

The result of a review decision (#4747 PMR-2.4).

PropertyTypeRequiredDescription
reviewedarray of stringnoCapture ids whose review state changed.
countsmap of integernoLive capture counts by review state after the decision.

VersionMockCapturesResponse​

A version's recorded exchanges awaiting review (#4747 PMR-2.4).

PropertyTypeRequiredDescription
capturesarray of MockCaptureSummarynoRecorded exchanges, newest first.
countsmap of integernoLive capture counts by review state.
hasMorebooleannoWhether another page exists.
nextCursorstring or nullnoPass as cursor to read the next page; null on the last page.

VersionMockCorrelationRequest​

Replace the version's mock response-correlation settings (#5527 MSC-1.1).

PropertyTypeRequiredDescription
correlationMockResponseCorrelationSpec or nullnoThe correlation block; omit or send null to clear it (correlation reverts to off).

VersionMockCorrelationResponse​

The version's persisted mock response-correlation settings (#5527 MSC-1.1).

PropertyTypeRequiredDescription
correlationMockResponseCorrelationSpec or nullnoThe stored correlation block; null when the version has none (correlation is off).

VersionMockFixturePacksRequest​

Replace the version's mock fixture packs (#4745 PMR-2.2).

PropertyTypeRequiredDescription
packsmap of MockFixturePackSpecnoFixture packs keyed by pack name; an empty map clears them.

VersionMockFixturePacksResponse​

The version's persisted mock fixture packs and their content digests (#4745 PMR-2.2).

PropertyTypeRequiredDescription
packsmap of MockFixturePackSpecnoFixture packs keyed by pack name, in canonical stored form.
digestsmap of stringnosha256:<hex> content digest of each pack — the identity tests pin on reset.

VersionMockOperationsResponse​

The mock-authoring catalogue for one version (#5529 MSC-1.3).

What an author needs to configure correlation without hand-writing JSON: the version's own operations and their parameters, the pointers a binding can target, the fixture names templates can read, and — the part a preview exists for — which properties the path-params and inferred passes would bind, computed with the same name-matching rules the runtime applies.

PropertyTypeRequiredDescription
operationsarray of MockAuthoringOperationSpecnoOne entry per operation, in document order.
fixturesarray of stringnoFixture names readable as {{fixture.<name>}} on this version.

VersionMockPreviewRequest​

Render one synthetic request against the version's mock (#5528 MSC-1.2).

PropertyTypeRequiredDescription
requestMockPreviewRequestSpecnoThe synthetic request; defaults to GET / when omitted.
settingsMockPreviewSettingsSpec or nullnoAn unsaved configuration to render against instead of the stored one. Requires versions:edit; nothing is persisted.

VersionMockPreviewResponse​

What the mock would serve for the previewed request, and why (#5528 MSC-1.2).

PropertyTypeRequiredDescription
operationstring or nullnoMatched operation key ("GET /pets/{petId}"); null when nothing matched.
pathParamsmap of stringnoPath template parameters routing extracted from the request.
statusintegeryesThe HTTP status the mock would return.
headersmap of stringnoResponse headers the mock would return, including the X-Mock-* family.
mediaTypestringnoNegotiated response media type.
bodyanynoThe response body, per bodyEncoding.
bodyEncodingstringnoHow body is carried: json, text, base64, or empty.
traceMockPreviewTraceyesWhich layer produced the body, and why.
chaosMockPreviewChaosnoWhat chaos the data plane would have applied.
draftbooleannoTrue when an unsaved settings override was rendered instead of the stored settings.

VersionMockScenariosRequest​

Replace the version's mock scenario definitions (#4454 SIM-4.2).

PropertyTypeRequiredDescription
scenariosmap of MockScenarioSpecInputnoScenario definitions keyed by scenario name; an empty map clears them.
chaosMockChaosSpec or nullnoVersion-level latency/chaos knobs; omit or send null to clear them (#4455 SIM-4.3).
activeScenariostring or nullnoThe scenario the mock serves when a request sends no X-Mock-Scenario header (#5531 MSC-2.1). It must name one of the scenarios in this same request. Sending null clears it; omitting the field entirely keeps whatever is stored, so an editor that does not know about it cannot silently drop a version's active scenario.
graphqlMockGraphQlSettingsSpec or nullnoGraphQL mock limits and list length (#5729 XPC-1.1). Sending null clears them; omitting the field keeps whatever is stored.

VersionMockScenariosResponse​

The version's persisted mock scenario definitions (#4454 SIM-4.2).

PropertyTypeRequiredDescription
scenariosmap of MockScenarioSpecOutputnoScenario definitions keyed by scenario name.
chaosMockChaosSpec or nullnoVersion-level latency/chaos knobs (#4455 SIM-4.3).
activeScenariostring or nullnoThe scenario served when a request sends no X-Mock-Scenario header; null when the version has none (#5531 MSC-2.1).
graphqlMockGraphQlSettingsSpec or nullnoGraphQL mock limits and list length; null when none are stored (#5729 XPC-1.1).

VersionMockToggleRequest​

Enable or disable the hosted mock for a version (#4422 SIM-2.1, #4446 SIM-2.5).

PropertyTypeRequiredDescription
enabledbooleanyesWhen true, apiome-mock serves this version (draft mocks are private/key-gated).

VersionOverlayApplyOut​

The version an apply created.

PropertyTypeRequiredDescription
project_idstringyesProject identifier the resource belongs to.
version_record_idstringyesThe new version's id (versions.id).
version_labelstringyesVersion Label.
source_version_record_idstringyesThe revision whose chain was applied.
overlay_countintegeryesOverlays in the applied chain.
change_countintegeryesValues the chain changed.

VersionOverlayApplyRequest​

Body of POST …/overlays/apply.

PropertyTypeRequiredDescription
version_labelstring or nullnoLabel of the new version (for example 1.1.0). Default: a date/time label.

VersionOverlayChainOut​

GET …/overlays: the chain in application order.

PropertyTypeRequiredDescription
version_record_idstringyesVersion Record ID.
publishedbooleanyesTrue when the revision is published: the chain is read-only.
max_overlaysintegernoLongest chain a revision may hold.
overlaysarray of VersionOverlayOutyesOverlays.
renderVersionOverlayRenderOut or nullnoWhat the publish render recorded; null before publish or without a chain.

VersionOverlayOut​

One stored overlay of a revision's chain.

PropertyTypeRequiredDescription
idstringyesThe overlay id. A replace gives the overlay a new id (rows are write-once).
positionintegeryesOrder in the chain; 0 applies first.
namestringyesHuman-readable name.
sourceenum "manual", "lint-fix", "export-studio", "enrichment-export"yesProvenance source for the record (for example human or imported).
content_fingerprintstringyessha256: of the document's canonical JSON.
action_countintegeryesHow many actions the overlay declares.
created_bystring or nullnoCreated By.
created_atstring (date-time) or nullnoCreation timestamp (ISO 8601).
documentobjectyesThe Overlay document.

VersionOverlayPreviewOut​

GET …/overlays/preview: the resolved document and the provenance of every change.

PropertyTypeRequiredDescription
version_record_idstringyesVersion Record ID.
source_fingerprintstringyesFingerprint of the source OpenAPI document.
resolved_fingerprintstringyesFingerprint of the resolved document.
documentobjectyesThe resolved OpenAPI document (source + chain).
reportExportOverlayReport or nullnoLedger rows, per-action match counts (actions) and overlay.* findings; null when the chain is empty.
diffarray of VersionOverlayDiffRownoOne before / after row per changed value (at most 500), with the actions that changed it.
draftstring or nullnoThe draft overlay's label in report (draft:<name>), when a draft was previewed.

VersionOverlayPreviewRequest​

Body of POST …/overlays/preview: an optional draft, and the stored overlay it stands in for.

PropertyTypeRequiredDescription
draftVersionOverlayDraft or nullnoThe unsaved overlay. Omitted: the stored chain alone (same as GET).
replace_overlay_idstring or nullnoPreview the draft in this stored overlay's place (an edit). Omitted: the draft is appended to the chain (a new overlay).

VersionOverlayWrite​

Body of POST / PUT …/overlays: one Overlay document and its label and origin.

PropertyTypeRequiredDescription
namestringyesThe overlay's label, shown in ledger rows.
sourceenum "manual", "lint-fix", "export-studio", "enrichment-export"noWhere the overlay came from: manual (uploaded), lint-fix (a saved fix plan), export-studio (saved from Export Studio) or enrichment-export (accepted agent-toolset enrichment).
documentobjectyesThe parsed Overlay 1.0 / 1.1 / 1.2 document, at most 1 MiB serialized.
positioninteger or nullnoPOST only: where to insert it (0 applies first). Omitted or past the end appends. Ignored by PUT, which keeps the replaced overlay's position.

VersionPublishRequest​

Publish: optional last-minute revision note / changelog applied before freeze.

PropertyTypeRequiredDescription
visibilitystring or nullnoVisibility.
shortMessagestring or nullnoShort Message.
changelogstring or nullnoChangelog.
publishedImmutableboolean or nullnoIf true (default), published revision rejects git-like writes unless admin override (#2586).
changeReportBaselineModeenum "auto", "initial", "manual"noHow to choose the baseline for the publication change report: auto (prior published ancestor), initial (empty baseline), or manual.
changeReportBaselineRevisionIdstring or nullnoRequired when changeReportBaselineMode is manual: published revision to diff from.
allowBreakingboolean or nullnoAllow publishing when backward-compatibility vs the baseline is breaking (#3212).
skipPublishChecksboolean or nullnoBypass OpenAPI build, documentation, compatibility, and style-guide gates (emergency only).
forcePublishReasonstring or nullnoRequired when skipPublishChecks is true — recorded to the audit trail (GOV-2.5).

VersionSchema​

Schema revision: shortMessage = commit-style note; changelog = release notes (markdown).

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
project_idstringyesProject identifier the resource belongs to.
creator_idstring or nullnoCreator ID.
version_idstringyesProject version identifier or semantic version label, depending on context.
shortMessagestring or nullnoHuman-readable revision note (stored as description in DB).
changelogstring or nullnoMarkdown changelog / release notes (stored as change_log in DB).
authorstring or nullnoOptional commit author string (audit / CI identity; stored as commit_author).
messagestring or nullnoOptional full commit message body (stored as commit_message).
externalRefstring or nullnoExternal work item id or URL (Jira, Linear, etc.).
visibilitystringnoVisibility.
publishedbooleannoPublished.
published_atstring (date-time) or string or nullnoPublished At timestamp (ISO 8601).
publishedImmutablebooleannoWhen published: if true, git-like writes require tenant-admin override (#2586).
mockEnabledbooleannoWhen true, apiome-mock serves this revision (#4422). Draft mocks require a tenant API key (#4446).
mockPrivatebooleannoWhen true, the mock is key-gated for an unpublished draft (#4446, SIM-2.5).
mockBaseUrlstring or nullnoStable mock URL when mockEnabled is true (computed by REST).
enabledbooleannoWhether the resource is active.
parent_version_idstring or nullnoParent Version ID.
merge_parent_version_idstring or nullnoMerge Parent Version ID.
sourceCommitShastring or nullnoRepository source commit SHA that triggered this revision (RAR-4.2 refresh provenance); NULL for hand-authored revisions.
sourceCommittedAtstring (date-time) or string or nullnoCommit timestamp of source_commit_sha (RAR-4.2 refresh provenance).
forkedFromRevisionIdstring or nullnoSource revision (versions.id) if this row is a fork.
upstreamProjectIdstring or nullnoUpstream project for merge/sync (optional).
forkSourceVersionLabelstring or nullnoFork Source Version Label.
forkSourceProjectNamestring or nullnoFork Source Project Name.
upstreamProjectNamestring or nullnoUpstream Project Name.
revisionLockedbooleannoTenant-admin lock: revision cannot be soft-deleted by non-admins.
metadataobject or nullnoRevision-level JSON (deprecation, sunset, successor revision id, lifecycle tag, etc.).
lifecyclestringnoGovernance lifecycle tag: stable | beta | deprecated | archived (#739); aligns with metadata.lifecycle and #507 deprecation when unset.
qualityScoreinteger or nullnoStored 0-100 quality score for this revision (#5259); null when the revision has not been linted yet. Open GET .../lint to compute and store it.
qualityGradestring or nullnoStored A-F grade matching qualityScore; null when unscored.
securityScoreinteger or nullnoStored 0-100 security score for this revision (ASP-1.3), read from the newest persisted clx-axis-v1 evaluation; null when the security axis is not assessed (no security rule pack evaluated the revision, or its style guide disables the pack).
securityGradestring or nullnoStored A-F grade matching securityScore; null when securityScore is null.
unpublishReasonstring or nullnoReason recorded with the most recent unpublish (#3213); null when never unpublished or no reason was given.
unpublishedAtstring (date-time) or string or nullnoWhen the revision was most recently unpublished (#3213).
unpublishedBystring or nullnoUser id that most recently unpublished the revision (#3213).
creator_namestring or nullnoCreator Name.
creator_emailstring or nullnoCreator Email.
project_namestring or nullnoProject Name.
project_slugstring or nullnoProject Slug.
created_atstring (date-time) or string or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or string or nullnoLast update timestamp (ISO 8601).
copied_classesinteger or nullnoCreate only: classes copied from source_version_id.
copied_pathsinteger or nullnoCreate only, with copyPaths: paths copied from source_version_id (#771).
copied_operationsinteger or nullnoCreate only, with copyPaths: operations copied with those paths (#771).
copy_warningstring or nullnoCreate only: why nothing was copied (e.g. the source version was not found).

VersionUnpublishRequest​

Optional body of POST /v1/versions/{tenant}/{project}/{id}/unpublish (#3213).

An empty body keeps the original behaviour: unpublish, move the revision's tags to the previous published revision, and notify webhook subscribers.

PropertyTypeRequiredDescription
reasonstring or nullnoWhy the revision is unpublished; stored as unpublishReason and sent in the webhook.
silentbooleannoSkip the version.unpublished webhook. Tenant administrators only (403 silent_requires_admin).
keepTagsbooleannoLeave version tags on the unpublished revision instead of moving them to the previous published revision.
dryRunbooleannoReturn the plan (tag moves, webhook subscribers) without unpublishing anything.

VersionUnpublishResponse​

The unpublished revision plus what the unpublish did (#3213).

On a dry run, the revision is returned as it is now (still published) and nothing is written.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
project_idstringyesProject identifier the resource belongs to.
creator_idstring or nullnoCreator ID.
version_idstringyesProject version identifier or semantic version label, depending on context.
shortMessagestring or nullnoHuman-readable revision note (stored as description in DB).
changelogstring or nullnoMarkdown changelog / release notes (stored as change_log in DB).
authorstring or nullnoOptional commit author string (audit / CI identity; stored as commit_author).
messagestring or nullnoOptional full commit message body (stored as commit_message).
externalRefstring or nullnoExternal work item id or URL (Jira, Linear, etc.).
visibilitystringnoVisibility.
publishedbooleannoPublished.
published_atstring (date-time) or string or nullnoPublished At timestamp (ISO 8601).
publishedImmutablebooleannoWhen published: if true, git-like writes require tenant-admin override (#2586).
mockEnabledbooleannoWhen true, apiome-mock serves this revision (#4422). Draft mocks require a tenant API key (#4446).
mockPrivatebooleannoWhen true, the mock is key-gated for an unpublished draft (#4446, SIM-2.5).
mockBaseUrlstring or nullnoStable mock URL when mockEnabled is true (computed by REST).
enabledbooleannoWhether the resource is active.
parent_version_idstring or nullnoParent Version ID.
merge_parent_version_idstring or nullnoMerge Parent Version ID.
sourceCommitShastring or nullnoRepository source commit SHA that triggered this revision (RAR-4.2 refresh provenance); NULL for hand-authored revisions.
sourceCommittedAtstring (date-time) or string or nullnoCommit timestamp of source_commit_sha (RAR-4.2 refresh provenance).
forkedFromRevisionIdstring or nullnoSource revision (versions.id) if this row is a fork.
upstreamProjectIdstring or nullnoUpstream project for merge/sync (optional).
forkSourceVersionLabelstring or nullnoFork Source Version Label.
forkSourceProjectNamestring or nullnoFork Source Project Name.
upstreamProjectNamestring or nullnoUpstream Project Name.
revisionLockedbooleannoTenant-admin lock: revision cannot be soft-deleted by non-admins.
metadataobject or nullnoRevision-level JSON (deprecation, sunset, successor revision id, lifecycle tag, etc.).
lifecyclestringnoGovernance lifecycle tag: stable | beta | deprecated | archived (#739); aligns with metadata.lifecycle and #507 deprecation when unset.
qualityScoreinteger or nullnoStored 0-100 quality score for this revision (#5259); null when the revision has not been linted yet. Open GET .../lint to compute and store it.
qualityGradestring or nullnoStored A-F grade matching qualityScore; null when unscored.
securityScoreinteger or nullnoStored 0-100 security score for this revision (ASP-1.3), read from the newest persisted clx-axis-v1 evaluation; null when the security axis is not assessed (no security rule pack evaluated the revision, or its style guide disables the pack).
securityGradestring or nullnoStored A-F grade matching securityScore; null when securityScore is null.
unpublishReasonstring or nullnoReason recorded with the most recent unpublish (#3213); null when never unpublished or no reason was given.
unpublishedAtstring (date-time) or string or nullnoWhen the revision was most recently unpublished (#3213).
unpublishedBystring or nullnoUser id that most recently unpublished the revision (#3213).
creator_namestring or nullnoCreator Name.
creator_emailstring or nullnoCreator Email.
project_namestring or nullnoProject Name.
project_slugstring or nullnoProject Slug.
created_atstring (date-time) or string or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or string or nullnoLast update timestamp (ISO 8601).
copied_classesinteger or nullnoCreate only: classes copied from source_version_id.
copied_pathsinteger or nullnoCreate only, with copyPaths: paths copied from source_version_id (#771).
copied_operationsinteger or nullnoCreate only, with copyPaths: operations copied with those paths (#771).
copy_warningstring or nullnoCreate only: why nothing was copied (e.g. the source version was not found).
dryRunbooleannoDry Run.
tagsMovedarray of UnpublishTagMovenoTags Moved.
tagsKeptarray of UnpublishTagKeptnoTags Kept.
previousPublishedVersionIdstring or nullnoRevision the tags move to: the project's next-most-recent published revision.
previousPublishedVersionLabelstring or nullnoPrevious Published Version Label.
publishedVersionsRemainingintegernoPublished revisions the project has once this one is unpublished.
notifybooleannoWhether a version.unpublished webhook is (or would be) sent.
webhookSubscribersinteger or nullnoActive push-webhook subscriptions notified; null when the count could not be read.

VersionUpdateRequest​

Request model for updating a version.

PropertyTypeRequiredDescription
shortMessagestring or nullnoShort Message.
changelogstring or nullnoChangelog.
enabledboolean or nullnoWhether the resource is active.
revisionLockedboolean or nullnoTenant admins only: lock revision against deletion.
metadataobject or nullnoShallow-merge into versions.metadata (deprecation fields, lifecycle tag #739, etc.).