Query Elements
API Name
API Name: Elements – Query
Overview
This API searches and retrieves elements based on filtering, hierarchy scope, time range, and pagination.
MBSE Core uses this API for:
Incremental synchronization
Target lookup
Criteria-based filtering
Package-based browsing
Bulk element retrieval
Connector responsibility:
Apply hierarchy filters (parent + recursion).
Apply time filters (
afterTime,beforeTime) if supported.Apply structured filters and/or native query.
Apply pagination.
Respect expand options.
Convert results into
MbseElementobjects.Return results in
MbseElementListResponse.
API URI
URI Parameters
projectIds
Yes
List
List of project IDs (comma-separated).
elementTypeIds
Yes
List
List of element type IDs.
branchId
No
String
Branch ID.
expand
No
List
Controls additional data fetch. Values: PROPERTIES, TAGS, FILES, RELATIONS.
properties
No
List
List of property IDs to include (if PROPERTIES expanded).
tags
No
List
List of tag IDs to include (if TAGS expanded).
pageNumber
Yes
Integer
0-based page index.
pageSize
Yes
Integer
Number of elements per page.
Request Body
Request Body Parameters
parentElementIds
No
List
Restrict search to child hierarchy of given parents.
recursiveChildSearch
No
Boolean
If true, search recursively under parent hierarchy.
afterTime
No
ZonedDateTime
Return elements updated after this time.
beforeTime
No
ZonedDateTime
Return elements updated before this time.
elementIds
No
List
Restrict search to specific element IDs.
qualifiedNames
No
List
Search by qualified names.
createdBy
No
String
Filter by creator.
filters
No
Map<String,Object>
Structured filter criteria.
nativeQuery
No
String
Native query string (if supported).
orderBy
No
List
Sorting rules.
Behavior Rules
1. Parent Filtering
If
parentElementIdsprovided:Return elements under these parents.
If not provided:
Return root-level elements or full project search.
If
recursiveChildSearch = true:Search entire hierarchy under parent.
If false:
Search direct children only.
2. Time Filtering
Apply
afterTimeandbeforeTimeif supported.If not supported:
Ignore at connector level.
MBSE Core may filter.
3. Element ID Filtering
If
elementIdsprovided:Restrict results strictly to these IDs.
4. Filters & Native Query
If
filtersprovided:Apply structured criteria.
If
nativeQueryprovided:Execute directly in end system.
If both provided:
Combine logically if supported.
5. Pagination
Pagination is mandatory.
Implement using:
pageNumberpageSize
Must return only requested page.
6. Expand Behavior
PROPERTIES
Include properties. Filter if properties provided.
TAGS
Include tags. Filter if tags provided.
FILES
Include attached files.
RELATIONS
Include relations.
If expand not provided:
Return only base element metadata.
Response Payload
Response Structure
MbseElementListResponse
elements
Yes
List
Ordering
Respect
orderByrules.Each rule:
namedirection(ASC,DESC)
Default ordering: system-defined if not provided.
Error Handling
400
Invalid input parameters
404
Project or element type not found
500
Internal server error
Implementation Guidelines
Avoid full-table scans where possible.
Use native system query capabilities.
Apply pagination at source system level.
Avoid fetching properties/tags/files unless requested.
Ensure ISO-8601 date format.
Return deterministic results.
Design Rationale
This API enables:
Scalable element retrieval
Hierarchical search
Time-based polling
Target lookup
Criteria-based filtering
It is the backbone of MBSE synchronization and search functionality.
Last updated

