Working with Aggregates
This page shows examples of how you can create, update and search for aggregates with the Aggregates API. It walks through a complete flow, end to end: register a folder, create an aggregate, add a version to it, update the aggregate - creating a second version in the same call - update its extensions, compile a snapshot and download its content, then search for the aggregate by its content and by the models it references.
Every step is a single HTTP request. Follow the steps in order: each step uses
values created by earlier steps, and the example values below are carried
through the whole page so you can see exactly where everything fits. The
requests are shown with curl; use any HTTP client you like.
For what aggregates, aggregate versions, lineages and snapshots are, see Concepts: Aggregates, Aggregate Versions, Lineages. For limits on how often you can call the API, see Aggregates rate limits.
Before You Begin
Five placeholders describe your data and credentials. Replace them with your own values in every request:
| Placeholder | Meaning |
|---|---|
<project-id> |
GUID of the project that contains the folder |
<folder-urn> |
Data Management folder the aggregate will live in |
<lineage-urn> |
The document (model) the aggregate version includes |
<version-urn> |
A specific document version, used as snapshot source |
<token> |
OAuth2 bearer token (never shown in the examples) |
Every request uses these two headers, with the OAuth scopes listed on each endpoint’s reference page:
Authorization: Bearer <token>
Content-Type: application/json
Note
<folder-urn> appears inside request URLs. Folder URNs contain characters
that must be URL-encoded in a path - for example
urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w becomes
urn%3aadsk.wipprod%3afs.folder%3aco.WI8roO18TU2Cl3P9y64z4w.
Everything created by the workflow appears in the examples as a concrete value - an aggregate id, checksums, a snapshot id - and the same value reappears in later steps where it is consumed. The Value Flow at a Glance table at the end summarises this.
Step 1 - Register a Folder
Register your Data Management folder with the Aggregates service using POST projects/:projectId/folders. The folder must already exist in Data Management; this step makes it available for aggregates.
curl -s -X POST 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"urn": "<folder-urn>"
}'
Example response:
{
"urn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
"createdAt": "2026-11-19T10:00:00.0000000Z",
"createdBy": "Alex Morgan",
"isDeleted": false,
"modifiedAt": null,
"modifiedBy": null
}
Step 2 - Create an Aggregate
Create the aggregate inside the registered folder using
POST projects/:projectId/folders/:folderUrn/aggregates.
The id is your choice - generate a GUID for each new aggregate. The
example below uses 1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e; every later step
refers to the same aggregate by this id.
curl -s -X POST 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"id": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"name": "Aggregate",
"description": "My first aggregate",
"isPrivate": false,
"extensions": [
{
"typeId": "construction.modelCoordination:view-1.0.0",
"extension": {
"modelSetId": "07707612-86d4-4735-8442-caa0f10c5287"
}
}
]
}'
Example response:
{
"id": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"name": "Aggregate",
"description": "My first aggregate",
"folderUrn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
"tipVersion": null,
"isPrivate": false,
"isDeleted": false,
"checksum": "d35130348e4e4fa150a3425b0a3ea479",
"extensions": [
{
"typeId": "construction.modelCoordination:view-1.0.0",
"extension": {
"modelSetId": "07707612-86d4-4735-8442-caa0f10c5287"
}
}
],
"createdBy": "Alex Morgan",
"updatedBy": "Alex Morgan"
}
Note
Record the checksum from the response - d35130348e4e4fa150a3425b0a3ea479
in this example. Steps 4 and 5 must send the current checksum whenever they
modify the aggregate. tipVersion is null until step 3 creates the
first version.
Step 3 - Create an Aggregate Version
Add a version to the aggregate using
POST projects/:projectId/folders/:folderUrn/aggregates/:aggregateId/versions.
The include section selects the model content, grouped by document - this is
the first place <lineage-urn> is used:
objectSets- explicit object ids to include from the document.viewParts- viewables of the document to include, by name. Each entry’surnidentifies one document; itsviewPartsarray names viewables within that document - for example"3D Level 0". Names are matched literally.
See Aggregate Filters for the full filter syntax.
curl -s -X POST 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates/1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e/versions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"include": [
{
"objectSets": [
{
"urn": "<lineage-urn>",
"objects": [1]
}
],
"viewParts": [
{
"urn": "<lineage-urn>",
"viewParts": ["3D Level 0"]
}
]
}
]
}'
Example response:
{
"include": [
{
"objectSets": [
{
"urn": "<lineage-urn>",
"objects": [1]
}
],
"viewParts": [
{
"urn": "<lineage-urn>",
"viewParts": ["3D Level 0"]
}
]
}
],
"exclude": [],
"version": 1,
"aggregateId": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"projectId": "<project-id>",
"folderUrn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
"createdBy": "Alex Morgan",
"createdAt": "2026-11-19T10:05:00.0000000Z"
}
Note
A viewable name is any non-empty string of at most 256 characters, matched
literally - it does not have to correspond to a viewable the document
publishes, but only names that match real viewables produce object-to-view
associations in snapshots. Examples elsewhere may show a URN used as a
viewable name; for real models, use the actual viewable names, for example
"3D Level 0".
Repeat this call to create further versions - each call increments the
version and advances the aggregate’s tipVersion. Saving a version only
stores the definition; it does not evaluate the filter or produce results.
That is what the snapshot in step 6 does.
Step 4 - Update the Aggregate and Create Version 2
A model change reaches the aggregate through an update: the PATCH body carries
the new metadata and a newAggregateVersion section, so a new aggregate
version is created in the same call. Change the aggregate with
PATCH projects/:projectId/folders/:folderUrn/aggregates/:aggregateId.
The body must also carry the current checksum - the one returned by step 2.
A stale checksum no longer matches the aggregate and the update is rejected
with 409 Conflict, so one update cannot silently overwrite another.
Version 2 below uses the index filter with an example query: instead of
listing explicit objects and view parts, an indexFilter selects objects by
property value. The example selects everything whose category is Walls -
s.props.p20d8441e is the property id of category in the document’s
property index:
curl -s -X PATCH 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates/1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e?includeTipVersionDetails=false' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"description": "My first aggregate, updated",
"checksum": "d35130348e4e4fa150a3425b0a3ea479",
"newAggregateVersion": {
"include": [
{
"indexFilter": {
"filter": {
"$and": [
{ "$or": [ { "s.props.p20d8441e": "'Walls'" } ] }
]
}
}
}
]
}
}'
Example response:
{
"id": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"name": "Aggregate",
"description": "My first aggregate, updated",
"checksum": "658db9cc8fd968bae829cbd422625d6f",
"tipVersion": 2
}
Note
Every successful update rotates the checksum. The response above now
carries 658db9cc8fd968bae829cbd422625d6f - that is the checksum step 5
must send. Omitting newAggregateVersion updates the metadata only and
leaves the tip version unchanged.
The query language supports $and / $or composition over document
properties (s.props.<propertyId>). Which property ids exist - and what
values they hold - is defined by the document’s property index; the
example’s s.props.p20d8441e (category) is from the sample model used
throughout this page. See
Aggregate Filters
for the full query language.
Step 5 - Update the Aggregate Extensions
Replace the extension set on the aggregate using
PATCH projects/:projectId/folders/:folderUrn/aggregates/:aggregateId/extensions,
the dedicated extensions endpoint. Same rule as step 4: the body carries the
current checksum - the one returned by step 4. Setting an extension’s
extension value to null deletes that extension - except for core
extensions, which cannot be deleted once attached. See
Aggregate Extensions.
curl -s -X PATCH 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates/1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e/extensions' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"extensions": [
{
"typeId": "construction.modelCoordination:view-1.0.0",
"extension": {
"modelSetId": "5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c"
}
}
],
"checksum": "658db9cc8fd968bae829cbd422625d6f"
}'
Example response:
{
"id": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"extensions": [
{
"typeId": "construction.modelCoordination:view-1.0.0",
"extension": {
"modelSetId": "5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c"
}
}
],
"checksum": "f0e1d2c3b4a5968778695a4b3c2d1e0f"
}
Step 6 - Create a Snapshot
A snapshot targets an aggregate version - this request uses version 2.
Compile a version with
POST projects/:projectId/folders/:folderUrn/aggregates/:aggregateId/versions/:version/snapshots.
The id is again your choice - generate a GUID per snapshot
(9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4 in this example).
sourceVersions lists the document versions whose content feeds the
snapshot - this is where <version-urn> is used, and it is what makes the
property filter in version 2 resolvable: the compiler evaluates the version’s
indexFilter query against the property index of the listed document
versions. A property filter stored in an aggregate version is only a query;
the snapshot’s sourceVersions pin it to concrete file versions at compile
time.
curl -s -X POST 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates/1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e/versions/2/snapshots' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"id": "9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4",
"name": "My first snapshot",
"description": "Snapshot of version 2",
"sourceVersions": [
"<version-urn>"
]
}'
Example response:
{
"id": "9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4",
"aggregateId": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"version": 2,
"name": "My first snapshot",
"status": "Pending",
"sourceVersions": [
"urn:adsk.wipprod:fs.file:vf.b909RzMKR4mhc3O7UBY_8g?version=2"
]
}
Snapshot creation is asynchronous: a new snapshot is Pending, then
Processing. Poll the snapshot with
GET projects/:projectId/folders/:folderUrn/aggregates/:aggregateId/snapshots/:snapshotId
until status becomes Successful or Failed:
curl -s 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates/1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e/snapshots/9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4' \
-H 'Authorization: Bearer <token>'
Note
Compilation can take anywhere from seconds to several minutes. The optional
disableInstancing query flag on the create call creates the snapshot as
a record only, without compiled content.
A snapshot whose version filter matches no objects still compiles to
Successful - but the downloaded content array is then empty. A
Successful status means the snapshot compiled, not that it selected
anything.
Download the Snapshot Content
Once the snapshot is Successful, the GET response carries a content
object - a pre-signed resource URL and the headers to send with it:
{
"id": "9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4",
"status": "Successful",
"content": {
"url": "https://aggregates-content.example.com/snapshots/9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4?X-Amz-Signature=...",
"headers": {
"x-amz-server-side-encryption": "AES256"
}
}
}
Download the complete snapshot with a plain GET against that URL, passing the headers exactly as returned. Do not add the bearer token - the URL is pre-signed:
curl -s '<content.url from the snapshot response>' \
-H 'x-amz-server-side-encryption: AES256'
The download is the complete compiled snapshot - a JSON document with one entry per source version, each listing the selected objects, their view associations and the 16-element transform:
{
"schemaVersion": 1,
"contentId": "9a8b7c6d-5e4f-43a2-b1c0-d9e8f7a6b5c4",
"sourceType": "AggregateVersion",
"content": [
{
"lineageUrn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA",
"versionUrn": "urn:adsk.wipprod:fs.file:vf.b909RzMKR4mhc3O7UBY_8g?version=2",
"name": "ClashB.rvt",
"objects": [1],
"transform": [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1],
"views": [],
"viewsObjects": [
{
"viewId": "0d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a",
"objects": [1]
}
]
}
]
}
Step 7 - Filter Aggregates
Find aggregates in the folder whose content matches a model filter using
POST projects/:projectId/folders/:folderUrn/aggregates:filter.
The example looks for aggregates that include <lineage-urn> with the view
parts declared in step 3, carrying the view extension attached in step 2.
filter.extensionTypeId restricts the matches to aggregates that carry
that extension type.
filter.includeAggregatesWithoutModels is set because the aggregate’s tip
version (2, from step 4) is a property filter that references no models -
without the flag, an aggregate whose current version names no models cannot
satisfy the models filter.
curl -s -X POST 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates:filter?limit=20&offset=0&sortBy=CreatedAt&sortDirection=Ascending' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"filter": {
"models": [
{
"urn": "<lineage-urn>",
"viewParts": ["3D Level 0"]
}
],
"extensionTypeId": "construction.modelCoordination:view-1.0.0",
"includeAggregatesWithoutModels": true
}
}'
Example response - the aggregate created in step 2 is among the matches:
{
"results": [
{
"id": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"name": "Aggregate",
"tipVersion": 2
}
],
"pagination": {
"limit": 20,
"offset": 0,
"totalResults": 1,
"nextUrl": null
}
}
Note
When more pages exist, pagination.nextUrl is a ready-to-follow URL with
the next offset and limit.
Step 8 - Search Aggregate Lineages
Given document lineage URNs, return the aggregates in the folder that reference them, and the version each uses, with POST projects/:projectId/folders/:folderUrn/aggregates:search-lineages. The request body is a plain JSON array of URNs - provide between 1 and 50.
curl -s -X POST 'https://developer.api.autodesk.com/construction/aggregate/v1/projects/<project-id>/folders/<folder-urn>/aggregates:search-lineages?offset=0&limit=20' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '[
"<lineage-urn>"
]'
Example response - the workflow’s aggregate appears at version 1 only:
version 1 named the lineage in its include section, but version 2 (the
property filter from step 4) names no lineage and so never enters the index:
{
"pagination": { "offset": 0, "limit": 20 },
"aggregates": [
{
"folderUrn": "urn:adsk.wipprod:fs.folder:co.WI8roO18TU2Cl3P9y64z4w",
"aggregateId": "1c2d3e4f-0a1b-42c3-8d4e-5f6a7b8c9d0e",
"lineageUrn": "urn:adsk.wipprod:dm.lineage:jvMF7mrHR7OwG_DToKsJUA",
"version": 1
}
]
}
Note
The lineage index is populated only from explicit lineage URNs in a
version’s include section (objectSets / viewParts entries with a
urn), and is scoped to one folder. Versions whose include is a property
filter (IndexFilter) only never appear in the results, even after their
content compiles successfully.
Value Flow at a Glance
| Value | Created in | Consumed in |
|---|---|---|
<folder-urn> |
your input | steps 1-8 |
| aggregate id | step 2 (your GUID) | steps 3-8 |
| checksum | step 2 response - step 4 body step 4 response - step 5 body | steps 4, 5 |
| version | step 3 (returns 1) step 4 (returns 2) | steps 6, 7, 8 |
| snapshot id | step 6 (your GUID) | step 6 poll |
<lineage-urn> |
your input | steps 3, 7, 8 |
<version-urn> |
your input | step 6 |