Get Revisions
API Name
API Name: Revisions – Get
Overview
This API returns the list of revisions for a given project.
MBSE Core uses this API for:
Polling revision history
Incremental synchronization
Identifying changes within a time window
Fetching revisions in chronological order
Connector implementation must:
Sort revisions strictly based on
revisionTimeImplement pagination even if the end system does not support it natively
Respect
pageNumberandpageSizein all casesApply time filtering (
afterTime,beforeTime) if supported by the end systemIf time filtering is not supported, return complete data and allow MBSE Core to filter
This API does not support nextPageLink. Pagination is strictly controlled using pageNumber and pageSize.
API URI
URI Parameters
projectId
True
String
ID of the project for which revisions need to be fetched.
elementTypeIds
True
List
List of element type IDs defined in element-types JSON configuration. Only revisions affecting these element types must be returned.
branchId
False
String
ID of the branch from which revisions need to be retrieved. If omitted, default branch behavior of the end system should apply.
afterTime
False
String
Time filter in format YYYY-MM-dd'T'HH:mm:ss.SSSX. Returns revisions updated strictly after this time. If end system does not support filtering, return full data and MBSE Core will filter.
beforeTime
False
String
Time filter in format YYYY-MM-dd'T'HH:mm:ss.SSSX. Returns revisions updated strictly before this time. If end system does not support filtering, return full data and MBSE Core will filter.
pageNumber
True
Integer
0-based page index indicating which page of results to return.
pageSize
True
Integer
Number of revisions to return per page.
orderByDirection
True
String
Sorting direction based on revisionTime. Possible values: ASC (oldest first) or DESC (latest first).
Behavior Rules
Revisions must be sorted strictly by
revisionTime.revisionTimeis the primary and authoritative sorting field.Pagination is mandatory. Connector must:
Apply
pageNumberandpageSizeReturn only the requested page of results
Implement pagination logic even if the end system does not support it natively.
If both
afterTimeandbeforeTimeare provided, return revisions such that:afterTime < revisionTime < beforeTime
If the end system does not support:
Time filtering → return complete data and allow MBSE Core to filter.
Branch filtering → apply default branch behavior.
Only revisions affecting the provided
elementTypeIdsmust be returned.This API must not return element-level change details. It only returns revision metadata.
Response Payload
Note: This is a sample response. Actual revision identifiers and metadata depend on the end system implementation.
Response Parameters
revisions
True
List
List of revisions matching the provided filters and pagination parameters.
Revision Object
revisionId
True
String
Unique identifier of the revision in the end system.
parentRevisionId
False
String
Identifier of the parent revision. Used to represent revision lineage or commit chain.
revisionTime
True
String
Timestamp when the revision was created. Format: YYYY-MM-dd'T'HH:mm:ss.SSSX.
author
True
String
Username or identifier of the user who created the revision.
comment
False
String
Revision message or comment associated with the revision.
Deterministic Ordering Requirement
Connector must ensure deterministic ordering of revisions.
If multiple revisions have identical revisionTime, connector should apply a secondary sort using revisionId to maintain consistent ordering across pages.
Example Use Cases
1) Polling Revisions After a Given Time
2) Fetch Latest Revisions
Implementation Notes for Connector Developers
Revision granularity must align with the end system’s commit model.
If multiple element changes are grouped under one revision in the end system, return that revision only once.
Do not include element change details in this API.
Element-level changes must be retrieved using corresponding element-change APIs.
Pagination logic must be implemented at connector level if end system lacks native support.
Last updated

