{
"type": "urn:ds365:error:api-key-missing",
"title": "API key missing",
"status": 401,
"detail": "The request has no X-API-Key header. Create an API key in the web app and send it in that header.",
"instance": "/api/v1/assets",
"errorCode": "API_KEY_MISSING",
"traceId": "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01",
"errors": [
{
"code": "API_KEY_MISSING"
}
]
}
Queries assets with filter, sort, field selection, page size and expands.
Only the fields of the asset are available for select, filter and sort (see AssetDto). Expands add related data; data. paths in an expand are resolved against the types.
With select the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without select an item is the complete asset with its expands in expands.
A page holds limit items (default 50, at most 1000). If more exist, hasMore is true and nextCursor continues with POST /cursor/continue — or with this operation when the body carries the nextCursor in cursor; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its limit for an asset is reported in incompleteExpands; continue it with POST /assets/expand.
{
"type": "urn:ds365:error:api-key-missing",
"title": "API key missing",
"status": 401,
"detail": "The request has no X-API-Key header. Create an API key in the web app and send it in that header.",
"instance": "/api/v1/assets",
"errorCode": "API_KEY_MISSING",
"traceId": "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01",
"errors": [
{
"code": "API_KEY_MISSING"
}
]
}
The API key of the subscription. Each operation names the scope it needs in x-pat-scopes: api_read (in the interface Read) or api_write (Read and Write). The key is created under Administration › Integrations › API Keys.
Body
application/json
select
string[]
The fields to return. Without it, all fields of the asset.
filter
Filter group · object
Show child attributes
sort
Sort field · object[]
The sort order. Without it, by id. The id is always the last sort key unless it is sorted explicitly.
Show child attributes
limit
integer<int32>
default:50
The page size, 1 to 1000.
Required range: 1 <= x <= 1000
expands
Expand definition · object[]
Related data to read with each asset. An unknown name is rejected with 400.
Show child attributes
cursor
string
The nextCursor of a previous response. When set, the query stored in the cursor is continued and all other members are ignored.
Response
A page of assets.
items
(Asset · object | Expand row · object)[]
required
The assets, or for an expand cursor the rows of the expand.
An asset. With select an item holds only the selected properties and, on POST /assets/query, the lifted expands under their names (object_data as an object, the others as a list).
Asset
Expand row
Show child attributes
nextCursor
string | null
Present when more items exist. Valid for one hour, for the same user and subscription.
hasMore
boolean
True when more items exist.
incompleteExpands
object | null
Expands that hold more rows than their limit, keyed name:parentId.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Docusnap365","description":"Official documentation for Docusnap365: scan your network, build your IT inventory, manage IT assets and costs, run your ISMS and connect AI tools via MCP and API.","colors":{"primary":"#0F7683","light":"#38BECF","dark":"#0F7683"},"logo":{"light":"https://mintcdn.com/docusnap/w7DSWRB4BRB49qQA/images/Docusnap_Logo.svg?fit=max\u0026auto=format\u0026n=w7DSWRB4BRB49qQA\u0026q=85\u0026s=30ba3056aa591cff3faf8c4addf943c0","dark":"https://mintcdn.com/docusnap/w7DSWRB4BRB49qQA/images/Docusnap_Logo_white.svg?fit=max\u0026auto=format\u0026n=w7DSWRB4BRB49qQA\u0026q=85\u0026s=9325dcb387db7939baab29338fddf607","href":"https://www.docusnap.com"},"favicon":"https://mintcdn.com/docusnap/8cT_v1WiPR-atVd2/favicon.svg?fit=max\u0026auto=format\u0026n=8cT_v1WiPR-atVd2\u0026q=85\u0026s=9bb2a8c996b466e0a76f375054191f52","footer":{"socials":{"website":"https://www.docusnap.com"}},"contextual":{"options":["chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"de","navbar":{"links":[{"href":"https://docusnap365.com","label":"Anmelden"}],"primary":{"type":"button","label":"Kostenlos testen","href":"https://www.docusnap.com/de/trial?utm_source=docs\u0026utm_medium=navbar\u0026utm_campaign=trial"}},"href":"de/getting-started/overview"},{"language":"en","default":true,"navbar":{"links":[{"href":"https://docusnap365.com","label":"Sign In"}],"primary":{"type":"button","label":"Try for Free","href":"https://www.docusnap.com/en/trial?utm_source=docs\u0026utm_medium=navbar\u0026utm_campaign=trial"}},"href":"en/getting-started/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"docusnap","hasAudioNarration":false,"actualSubdomain":"docusnap","customDomains":["www.docusnap.com"],"gitSource":{"type":"github","owner":"docusnap","repo":"ds365.customerdocs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b05718f310cc7c2ea50eef2","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"de","tag":"Scannen","count":39},{"language":"en","tag":"Scanning","count":39},{"language":"de","tag":"Scan-Module","count":25},{"language":"en","tag":"Scan Modules","count":25},{"language":"de","tag":"Inventar","count":19},{"language":"en","tag":"Inventory","count":19},{"language":"de","tag":"Neuigkeiten","count":18},{"language":"en","tag":"What's new","count":18},{"language":"de","tag":"Verwaltung","count":17},{"language":"en","tag":"Administration","count":17},{"language":"de","tag":"ISMS","count":14},{"language":"en","tag":"ISMS","count":14},{"language":"de","tag":"Tutorials","count":12},{"language":"de","tag":"ITAM","count":12},{"language":"en","tag":"Tutorials","count":12},{"language":"en","tag":"ITAM","count":12},{"language":"de","tag":"MCP \u0026 API","count":11},{"language":"de","tag":"Dokumentation","count":11},{"language":"en","tag":"MCP \u0026 API","count":11},{"language":"en","tag":"Documentation","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#topbar-cta-button a>span:first-child{background-color:#9F6D06!important;opacity:1!important}#topbar-cta-button a,#topbar-cta-button a span{color:#FFFFFF!important}#topbar-cta-button a svg{display:none!important}#topbar-cta-button a{padding-right:0.75rem!important}#topbar-cta-button a:hover span,#topbar-cta-button a:focus-visible span{text-decoration:underline;text-underline-offset:2px}body:has(.api-section) #header>.prose,body:has(.api-section) #header>.prose p{font-size:1rem!important;line-height:1.75rem!important}#content[data-page-href$=\"/changelog\"] [data-component-part=\"update-tag-list\"],#content[data-page-href*=\"/changelog/\"] [data-component-part=\"update-tag-list\"]{display:none!important}"}]}
{"page":{"pagePath":"api-reference/query/query-assets","slug":"/api-reference/query/query-assets","pageMetadata":{"title":"Query assets","description":"Queries assets with filter, sort, field selection, page size and expands.\n\nOnly the fields of the asset are available for `select`, `filter` and `sort` (see `AssetDto`). Expands add related data; `data.` paths in an expand are resolved against the types.\n\nWith `select` the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without `select` an item is the complete asset with its expands in `expands`.\n\nA page holds `limit` items (default 50, at most 1000). If more exist, `hasMore` is true and `nextCursor` continues with `POST /cursor/continue` — or with this operation when the body carries the `nextCursor` in `cursor`; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its `limit` for an asset is reported in `incompleteExpands`; continue it with `POST /assets/expand`.\n\nRequires the scope `api_read` (*Read*).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /assets/query","href":"/api-reference/query/query-assets","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n em: \"em\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Queries assets with filter, sort, field selection, page size and expands.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Only the fields of the asset are available for \", _jsx(_components.code, {\n children: \"select\"\n }), \", \", _jsx(_components.code, {\n children: \"filter\"\n }), \" and \", _jsx(_components.code, {\n children: \"sort\"\n }), \" (see \", _jsx(_components.code, {\n children: \"AssetDto\"\n }), \"). Expands add related data; \", _jsx(_components.code, {\n children: \"data.\"\n }), \" paths in an expand are resolved against the types.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"With \", _jsx(_components.code, {\n children: \"select\"\n }), \" the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without \", _jsx(_components.code, {\n children: \"select\"\n }), \" an item is the complete asset with its expands in \", _jsx(_components.code, {\n children: \"expands\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A page holds \", _jsx(_components.code, {\n children: \"limit\"\n }), \" items (default 50, at most 1000). If more exist, \", _jsx(_components.code, {\n children: \"hasMore\"\n }), \" is true and \", _jsx(_components.code, {\n children: \"nextCursor\"\n }), \" continues with \", _jsx(_components.code, {\n children: \"POST /cursor/continue\"\n }), \" — or with this operation when the body carries the \", _jsx(_components.code, {\n children: \"nextCursor\"\n }), \" in \", _jsx(_components.code, {\n children: \"cursor\"\n }), \"; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its \", _jsx(_components.code, {\n children: \"limit\"\n }), \" for an asset is reported in \", _jsx(_components.code, {\n children: \"incompleteExpands\"\n }), \"; continue it with \", _jsx(_components.code, {\n children: \"POST /assets/expand\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Requires the scope \", _jsx(_components.code, {\n children: \"api_read\"\n }), \" (\", _jsx(_components.em, {\n children: \"Read\"\n }), \").\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Query assets","description":"Queries assets with filter, sort, field selection, page size and expands.\n\nOnly the fields of the asset are available for `select`, `filter` and `sort` (see `AssetDto`). Expands add related data; `data.` paths in an expand are resolved against the types.\n\nWith `select` the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without `select` an item is the complete asset with its expands in `expands`.\n\nA page holds `limit` items (default 50, at most 1000). If more exist, `hasMore` is true and `nextCursor` continues with `POST /cursor/continue` — or with this operation when the body carries the `nextCursor` in `cursor`; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its `limit` for an asset is reported in `incompleteExpands`; continue it with `POST /assets/expand`.\n\nRequires the scope `api_read` (*Read*).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /assets/query","href":"/api-reference/query/query-assets","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"queryAssets","tags":["Query"],"summary":"Query assets","description":"Queries assets with filter, sort, field selection, page size and expands.\n\nOnly the fields of the asset are available for `select`, `filter` and `sort` (see `AssetDto`). Expands add related data; `data.` paths in an expand are resolved against the types.\n\nWith `select` the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without `select` an item is the complete asset with its expands in `expands`.\n\nA page holds `limit` items (default 50, at most 1000). If more exist, `hasMore` is true and `nextCursor` continues with `POST /cursor/continue` — or with this operation when the body carries the `nextCursor` in `cursor`; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its `limit` for an asset is reported in `incompleteExpands`; continue it with `POST /assets/expand`.\n\nRequires the scope `api_read` (*Read*).\n","x-pat-scopes":["api_read"],"requestBody":"48e2b9d0-9cee-46e8-a066-53fd65a467e8","responses":{"200":"99bbc89f-c01f-4c63-ab7b-189bdcb48415","400":"d3a0cd82-6a19-45b2-8b13-a62d7b7d3a68","401":"8e757a94-059d-4352-9609-b2ca6e3d9c1b","403":"8e348fd0-1d1b-4950-9bfe-92b1fece26f7","429":"46925a71-4386-43aa-9383-2e8b028371c4","500":"89223317-6cb4-4139-8fa0-76d4e58417ce","503":"cae57b09-70be-43ba-ace9-abee4f45dc0e"},"method":"post","type":"path","servers":["79e82876-7427-4f0c-99be-abd41d84b173"],"security":["e4b21bdc-82ed-4c08-a9e8-802f34c48a08"],"path":"/assets/query","baseUrlOptions":["https://api.docusnap365.com/api/v1"],"title":"Query assets","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Query request","type":"object","properties":{"select":{"type":"array","items":{"type":"string","uniqueKey":"select.items.[INDEX]","typeLabel":"string"},"description":"The fields to return. Without it, all fields of the asset.","uniqueKey":"select","typeLabel":"string[]"},"filter":{"title":"Filter group","type":"object","properties":{"logic":{"type":"string","title":"Logical operator","description":"How the conditions and groups of a group are combined.","default":"And","enum":["And","Or"],"uniqueKey":"filter.logic","typeLabel":"enum\u003cstring>"},"conditions":{"type":"array","items":{"title":"Filter condition","type":"object","required":["path","op"],"properties":{"path":{"type":"string","description":"The field. Only the fields of the main query are available, in an expand the fields of this expand.","isRequired":true,"uniqueKey":"filter.conditions.items.[INDEX].path","typeLabel":"string"},"op":{"title":"Filter operator","type":"string","description":"The operator of a condition. Case-insensitive in the request body.\n\n`Eq`, `Neq`, `Gt`, `Gte`, `Lt`, `Lte` compare. `Neq` and `NotIn` keep rows whose field is empty. `Contains`, `StartsWith`, `EndsWith` match text without regard to case; `%`, `_` and `\\` in `value` are taken literally. `Like` is SQL LIKE with the wildcards of the caller and regard to case. `In` and `NotIn` take a list in `value`; every other operator with a value takes a single value, and any other shape is rejected with 400 `FIELD_TYPE_MISMATCH`. `IsNull` and `IsNotNull` need no `value`. `ArrayAny` is true when at least one element of a JSON array satisfies `arrayFilter`. `ArrayAll` is true when the JSON array has at least one element and every element satisfies `arrayFilter`; an empty or missing array does not match. `ArrayAny` and `ArrayAll` need an `arrayFilter` with at least one condition. `ArrayContains` is true when the JSON array contains `value`, and needs `value`. An array operator on a field that is not a JSON array is rejected.\n\nComparison and list operators (`Eq`, `Neq`, `Gt`, `Gte`, `Lt`, `Lte`, `In`, `NotIn`) are rejected on a field that holds a JSON object or array.\n","enum":["Eq","Neq","Gt","Gte","Lt","Lte","Contains","StartsWith","EndsWith","Like","In","NotIn","IsNull","IsNotNull","ArrayAny","ArrayAll","ArrayContains"],"isRequired":true,"uniqueKey":"filter.conditions.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"value":{"description":"The comparison value. Its JSON type must fit the field; a list for `In` and `NotIn`, otherwise a single value. Any other shape is rejected with 400 `FIELD_TYPE_MISMATCH`.","uniqueKey":"filter.conditions.items.[INDEX].value","typeLabel":"any"},"arrayFilter":{"description":"For `ArrayAny` and `ArrayAll` the condition on the elements of the array. The paths are relative to the element (`name`, not `data.list[*].name`); only `Eq`, `Neq`, `Gt`, `Gte`, `Lt` and `Lte` are allowed.","uniqueKey":"filter.conditions.items.[INDEX].arrayFilter","typeLabel":"any"}},"uniqueKey":"filter.conditions.items.[INDEX]","typeLabel":"Filter condition · object"},"uniqueKey":"filter.conditions","typeLabel":"Filter condition · object[]"},"groups":{"type":"array","items":{"$circularRef":"c012bcf3-ed15-4c53-9650-751daed937e6"},"description":"Nested groups. They are combined with the conditions by `logic`.","uniqueKey":"filter.groups","typeLabel":"array"}},"uniqueKey":"filter","typeLabel":"Filter group · object"},"sort":{"type":"array","items":{"title":"Sort field","type":"object","required":["path"],"properties":{"path":{"type":"string","description":"The field to sort by.","isRequired":true,"uniqueKey":"sort.items.[INDEX].path","typeLabel":"string"},"desc":{"type":"boolean","default":false,"description":"Sort descending.","uniqueKey":"sort.items.[INDEX].desc","typeLabel":"boolean"},"nulls":{"type":"string","title":"Position of empty values","description":"Where empty values appear in the sort order. `Default` leaves it to the database.","default":"Default","enum":["Default","First","Last"],"uniqueKey":"sort.items.[INDEX].nulls","typeLabel":"enum\u003cstring>"}},"uniqueKey":"sort.items.[INDEX]","typeLabel":"Sort field · object"},"description":"The sort order. Without it, by id. The id is always the last sort key unless it is sorted explicitly.","uniqueKey":"sort","typeLabel":"Sort field · object[]"},"limit":{"type":"integer","format":"int32","default":50,"minimum":1,"maximum":1000,"description":"The page size, 1 to 1000.","uniqueKey":"limit","typeLabel":"integer\u003cint32>"},"expands":{"type":"array","items":{"title":"Expand definition","type":"object","required":["name"],"properties":{"name":{"type":"string","enum":["object_data","object_essentials","object_blocks","children"],"description":"The related data. `object_data` is the captured data of the type (one row), `object_essentials` the essentials (one row per type), `object_blocks` the blocks of the asset (very many rows; always set a `limit`), `children` the assets below it.\n","isRequired":true,"uniqueKey":"expands.items.[INDEX].name","typeLabel":"enum\u003cstring>"},"select":{"type":"array","items":{"type":"string","uniqueKey":"expands.items.[INDEX].select.items.[INDEX]","typeLabel":"string"},"description":"The fields of the expand. In `object_data`, `object_essentials` and `object_blocks` also paths into `data`, for example `data.cpuCores` (depends on the type of the asset).","uniqueKey":"expands.items.[INDEX].select","typeLabel":"string[]"},"filter":{"type":"object","title":"Filter group","description":"Restricts only the expand, never the assets. An asset for which no row of the expand matches is still in the response, only without this expand. For `object_data` (one row) `sort` and `limit` have no effect.","properties":{"logic":{"type":"string","title":"Logical operator","description":"How the conditions and groups of a group are combined.","default":"And","enum":["And","Or"],"uniqueKey":"expands.items.[INDEX].filter.logic","typeLabel":"enum\u003cstring>"},"conditions":{"type":"array","items":{"title":"Filter condition","type":"object","required":["path","op"],"properties":{"path":{"type":"string","description":"The field. Only the fields of the main query are available, in an expand the fields of this expand.","isRequired":true,"uniqueKey":"expands.items.[INDEX].filter.conditions.items.[INDEX].path","typeLabel":"string"},"op":{"title":"Filter operator","type":"string","description":"The operator of a condition. Case-insensitive in the request body.\n\n`Eq`, `Neq`, `Gt`, `Gte`, `Lt`, `Lte` compare. `Neq` and `NotIn` keep rows whose field is empty. `Contains`, `StartsWith`, `EndsWith` match text without regard to case; `%`, `_` and `\\` in `value` are taken literally. `Like` is SQL LIKE with the wildcards of the caller and regard to case. `In` and `NotIn` take a list in `value`; every other operator with a value takes a single value, and any other shape is rejected with 400 `FIELD_TYPE_MISMATCH`. `IsNull` and `IsNotNull` need no `value`. `ArrayAny` is true when at least one element of a JSON array satisfies `arrayFilter`. `ArrayAll` is true when the JSON array has at least one element and every element satisfies `arrayFilter`; an empty or missing array does not match. `ArrayAny` and `ArrayAll` need an `arrayFilter` with at least one condition. `ArrayContains` is true when the JSON array contains `value`, and needs `value`. An array operator on a field that is not a JSON array is rejected.\n\nComparison and list operators (`Eq`, `Neq`, `Gt`, `Gte`, `Lt`, `Lte`, `In`, `NotIn`) are rejected on a field that holds a JSON object or array.\n","enum":["Eq","Neq","Gt","Gte","Lt","Lte","Contains","StartsWith","EndsWith","Like","In","NotIn","IsNull","IsNotNull","ArrayAny","ArrayAll","ArrayContains"],"isRequired":true,"uniqueKey":"expands.items.[INDEX].filter.conditions.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"value":{"description":"The comparison value. Its JSON type must fit the field; a list for `In` and `NotIn`, otherwise a single value. Any other shape is rejected with 400 `FIELD_TYPE_MISMATCH`.","uniqueKey":"expands.items.[INDEX].filter.conditions.items.[INDEX].value","typeLabel":"any"},"arrayFilter":{"description":"For `ArrayAny` and `ArrayAll` the condition on the elements of the array. The paths are relative to the element (`name`, not `data.list[*].name`); only `Eq`, `Neq`, `Gt`, `Gte`, `Lt` and `Lte` are allowed.","uniqueKey":"expands.items.[INDEX].filter.conditions.items.[INDEX].arrayFilter","typeLabel":"any"}},"uniqueKey":"expands.items.[INDEX].filter.conditions.items.[INDEX]","typeLabel":"Filter condition · object"},"uniqueKey":"expands.items.[INDEX].filter.conditions","typeLabel":"Filter condition · object[]"},"groups":{"type":"array","items":{"$circularRef":"c012bcf3-ed15-4c53-9650-751daed937e6"},"description":"Nested groups. They are combined with the conditions by `logic`.","uniqueKey":"expands.items.[INDEX].filter.groups","typeLabel":"array"}},"uniqueKey":"expands.items.[INDEX].filter","typeLabel":"Filter group · object"},"sort":{"type":"array","items":{"title":"Sort field","type":"object","required":["path"],"properties":{"path":{"type":"string","description":"The field to sort by.","isRequired":true,"uniqueKey":"expands.items.[INDEX].sort.items.[INDEX].path","typeLabel":"string"},"desc":{"type":"boolean","default":false,"description":"Sort descending.","uniqueKey":"expands.items.[INDEX].sort.items.[INDEX].desc","typeLabel":"boolean"},"nulls":{"type":"string","title":"Position of empty values","description":"Where empty values appear in the sort order. `Default` leaves it to the database.","default":"Default","enum":["Default","First","Last"],"uniqueKey":"expands.items.[INDEX].sort.items.[INDEX].nulls","typeLabel":"enum\u003cstring>"}},"uniqueKey":"expands.items.[INDEX].sort.items.[INDEX]","typeLabel":"Sort field · object"},"uniqueKey":"expands.items.[INDEX].sort","typeLabel":"Sort field · object[]"},"limit":{"type":"integer","format":"int32","default":50,"minimum":1,"maximum":1000,"description":"The number of rows per asset, 1 to 1000.","uniqueKey":"expands.items.[INDEX].limit","typeLabel":"integer\u003cint32>"}},"uniqueKey":"expands.items.[INDEX]","typeLabel":"Expand definition · object"},"description":"Related data to read with each asset. An unknown name is rejected with 400.","uniqueKey":"expands","typeLabel":"Expand definition · object[]"},"cursor":{"type":"string","description":"The `nextCursor` of a previous response. When set, the query stored in the cursor is continued and all other members are ignored.","uniqueKey":"cursor","typeLabel":"string"}},"uniqueKey":"","typeLabel":"Query request · object"},"examples":{"Assets whose name contains a text, newest first":{"title":"Assets whose name contains a text, newest first","value":{"select":["id","name","createdAt"],"filter":{"logic":"And","conditions":[{"path":"name","op":"Contains","value":"server"}]},"sort":[{"path":"createdAt","desc":true}],"limit":20}},"An asset with the captured data of its type":{"title":"An asset with the captured data of its type","value":{"select":["id","name"],"filter":{"conditions":[{"path":"id","op":"Eq","value":"3f2504e0-4f89-11d3-9a0c-0305e82c3301"}]},"expands":[{"name":"object_data","select":["id","data"]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"99bbc89f-c01f-4c63-ab7b-189bdcb48415":{"description":"A page of assets.","headers":{"X-RateLimit-Limit":{"description":"Requests included per quota period. Not sent for a subscription without a limit.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Included plus extra requests still available in the running period.","schema":{"type":"integer"}},"X-RateLimit-Extra-Remaining":{"description":"Extra requests still available. They are not reset with the period.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Start of the next quota period as Unix time in seconds.","schema":{"type":"integer","format":"int64"}}},"content":{"application/json":{"schema":{"title":"Query response","type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset","description":"An asset. With `select` an item holds only the selected properties and, on `POST /assets/query`, the lifted expands under their names (`object_data` as an object, the others as a list).\n","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"},"entityId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.entityId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.entityId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.entityId","typeLabel":"string\u003cuuid> | null"},"schemaId":{"type":"string","format":"uuid","description":"The type of the asset.","uniqueKey":"\\items.items.[INDEX].oneOf.0.schemaId","typeLabel":"string\u003cuuid>"},"parentId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.parentId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.parentId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.parentId","typeLabel":"string\u003cuuid> | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"objectType":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.objectType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.objectType.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.objectType","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.type","typeLabel":"string | null"},"iconId":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.iconId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.iconId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.iconId","typeLabel":"string | null"},"sourceType":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.sourceType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.sourceType.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.sourceType","typeLabel":"string | null"},"organizationId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.organizationId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.organizationId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.organizationId","typeLabel":"string\u003cuuid> | null"},"locationId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.locationId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.locationId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.locationId","typeLabel":"string\u003cuuid> | null"},"platformId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.platformId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.platformId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.platformId","typeLabel":"string\u003cuuid> | null"},"domainId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.domainId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.domainId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.domainId","typeLabel":"string\u003cuuid> | null"},"version":{"type":"integer","format":"int32","uniqueKey":"\\items.items.[INDEX].oneOf.0.version","typeLabel":"integer\u003cint32>"},"status":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.status","typeLabel":"string | null"},"isManually":{"type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.0.isManually","typeLabel":"boolean"},"createdAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.createdAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.createdAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.createdAt","typeLabel":"string\u003cdate-time> | null"},"createdBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.createdBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.createdBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.createdBy","typeLabel":"string\u003cuuid> | null"},"createdByDisplayName":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.createdByDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.createdByDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.createdByDisplayName","typeLabel":"string | null"},"modifiedAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedAt","typeLabel":"string\u003cdate-time> | null"},"modifiedBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedBy","typeLabel":"string\u003cuuid> | null"},"modifiedByDisplayName":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedByDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedByDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.modifiedByDisplayName","typeLabel":"string | null"},"deletedAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedAt","typeLabel":"string\u003cdate-time> | null"},"deletedBy":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedBy.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedBy","typeLabel":"string\u003cuuid> | null"},"deletedByDisplayName":{"oneOf":[{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedByDisplayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedByDisplayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.deletedByDisplayName","typeLabel":"string | null"},"expands":{"oneOf":[{"type":"object","additionalProperties":{"type":"array","items":{"title":"Expand row","type":"object","additionalProperties":true,"description":"One row of an expand. Columns without a value are omitted. JSON columns (`data`) are returned as JSON.","uniqueKey":"\\items.items.[INDEX].oneOf.0.expands.oneOf.0.additionalProperties.items.[INDEX]","typeLabel":"Expand row · object"},"uniqueKey":"\\items.items.[INDEX].oneOf.0.expands.oneOf.0.additionalProperties","typeLabel":"Expand row · object[]"},"description":"The expands by name. Only in the complete form, not when `select` lifted them.","uniqueKey":"\\items.items.[INDEX].oneOf.0.expands.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"array","items":{"title":"Expand row","type":"object","additionalProperties":true,"description":"One row of an expand. Columns without a value are omitted. JSON columns (`data`) are returned as JSON.","uniqueKey":"\\items.items.[INDEX].oneOf.0.expands.oneOf.1.additionalProperties.items.[INDEX]","typeLabel":"Expand row · object"},"uniqueKey":"\\items.items.[INDEX].oneOf.0.expands.oneOf.1.additionalProperties","typeLabel":"Expand row · object[]"},"description":"The expands by name. Only in the complete form, not when `select` lifted them.","uniqueKey":"\\items.items.[INDEX].oneOf.0.expands.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.expands","typeLabel":"object | null"}},"additionalProperties":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0","typeLabel":"Asset · object"},{"type":"object","title":"Expand row","description":"One row of an expand. Columns without a value are omitted. JSON columns (`data`) are returned as JSON.","additionalProperties":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1","typeLabel":"Expand row · object"}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"Asset · object | Expand row · object"},"description":"The assets, or for an expand cursor the rows of the expand.","isRequired":true,"uniqueKey":"\\items","typeLabel":"(Asset · object | Expand row · object)[]"},"nextCursor":{"oneOf":[{"type":"string","description":"Present when more items exist. Valid for one hour, for the same user and subscription.","uniqueKey":"nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Present when more items exist. Valid for one hour, for the same user and subscription.","uniqueKey":"nextCursor.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextCursor","typeLabel":"string | null"},"hasMore":{"type":"boolean","description":"True when more items exist.","uniqueKey":"hasMore","typeLabel":"boolean"},"incompleteExpands":{"oneOf":[{"type":"object","additionalProperties":{"title":"Incomplete expand","type":"object","required":["parentId","cursor"],"properties":{"parentId":{"type":"string","format":"uuid","description":"The asset whose expand is incomplete.","isRequired":true,"uniqueKey":"incompleteExpands.oneOf.0.additionalProperties.parentId","typeLabel":"string\u003cuuid>"},"cursor":{"type":"string","description":"The cursor to continue the expand with `POST /assets/expand`.","isRequired":true,"uniqueKey":"incompleteExpands.oneOf.0.additionalProperties.cursor","typeLabel":"string"},"loadedCount":{"type":"integer","format":"int32","description":"The number of rows already returned.","uniqueKey":"incompleteExpands.oneOf.0.additionalProperties.loadedCount","typeLabel":"integer\u003cint32>"}},"uniqueKey":"incompleteExpands.oneOf.0.additionalProperties","typeLabel":"Incomplete expand · object"},"description":"Expands that hold more rows than their `limit`, keyed `name:parentId`.","uniqueKey":"incompleteExpands.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"title":"Incomplete expand","type":"object","required":["parentId","cursor"],"properties":{"parentId":{"type":"string","format":"uuid","description":"The asset whose expand is incomplete.","uniqueKey":"incompleteExpands.oneOf.1.additionalProperties.parentId","typeLabel":"string\u003cuuid>"},"cursor":{"type":"string","description":"The cursor to continue the expand with `POST /assets/expand`.","uniqueKey":"incompleteExpands.oneOf.1.additionalProperties.cursor","typeLabel":"string"},"loadedCount":{"type":"integer","format":"int32","description":"The number of rows already returned.","uniqueKey":"incompleteExpands.oneOf.1.additionalProperties.loadedCount","typeLabel":"integer\u003cint32>"}},"uniqueKey":"incompleteExpands.oneOf.1.additionalProperties","typeLabel":"Incomplete expand · object"},"description":"Expands that hold more rows than their `limit`, keyed `name:parentId`.","uniqueKey":"incompleteExpands.oneOf.1","typeLabel":"null"}],"uniqueKey":"incompleteExpands","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"Query response · object"},"examples":{"Example":{"title":"Example","value":{"items":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","entityId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","schemaId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","parentId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","objectType":"\u003cstring>","type":"\u003cstring>","iconId":"\u003cstring>","sourceType":"\u003cstring>","organizationId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","locationId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","platformId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","domainId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","version":123,"status":"\u003cstring>","isManually":true,"createdAt":"2023-11-07T05:31:56Z","createdBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","createdByDisplayName":"\u003cstring>","modifiedAt":"2023-11-07T05:31:56Z","modifiedBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","modifiedByDisplayName":"\u003cstring>","deletedAt":"2023-11-07T05:31:56Z","deletedBy":"3c90c3cc-0d44-4b50-8888-8dd25736052a","deletedByDisplayName":"\u003cstring>","expands":{}}],"nextCursor":"\u003cstring>","hasMore":true,"incompleteExpands":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"d3a0cd82-6a19-45b2-8b13-a62d7b7d3a68":{"description":"The body cannot be read or a `limit` is outside 1 to 1000, an expand name is unknown, a path is not available, a filter value does not fit the field or does not have the shape of the operator, an operator cannot be applied to the field or lacks its `arrayFilter` or `value`, or the cursor is invalid or expired.","x-error-codes":["VALIDATION_FAILED","UNKNOWN_PATH","FIELD_TYPE_MISMATCH","UNSUPPORTED_OPERATOR","INVALID_CURSOR","CURSOR_EXPIRED"],"content":{"application/problem+json":{"schema":{"title":"Problem details","type":"object","description":"An error according to RFC 9457. `errors` is never empty; for one error `errors[0].code` equals `errorCode`.","properties":{"type":{"type":"string","description":"A URN derived from `errorCode`, for example `urn:ds365:error:not-found`. It cannot be resolved.","uniqueKey":"type","typeLabel":"string"},"title":{"type":"string","description":"A fixed English text per code.","uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A technical English sentence. The text may change and should not be evaluated.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"The request path.","uniqueKey":"instance","typeLabel":"string"},"errorCode":{"type":"string","description":"The error code. The codes of an operation are listed in `x-error-codes` of its response.","uniqueKey":"errorCode","typeLabel":"string"},"traceId":{"type":"string","description":"The trace id of the request. Give it to support.","uniqueKey":"traceId","typeLabel":"string"},"errors":{"type":"array","items":{"title":"Error item","type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific code of this item.","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","description":"The field or parameter the error concerns. Absent when it concerns the whole request.","uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"description":"Further values, for example `entityType` and `id` of a missing asset or `missingScopes`. Absent when empty.","uniqueKey":"errors.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"Error item · object"},"uniqueKey":"errors","typeLabel":"Error item · object[]"}},"uniqueKey":"","typeLabel":"Problem details · object"},"examples":{"A field that is not available":{"title":"A field that is not available","value":{"type":"urn:ds365:error:unknown-path","title":"Unknown field path","status":400,"detail":"Field 'hostname' is not configured for source 'objects'","instance":"/api/v1/assets/query","errorCode":"UNKNOWN_PATH","traceId":"00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01","errors":[{"code":"UNKNOWN_PATH","path":"filter","data":{"field":"hostname","source":"objects","origin":"filter"}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"8e757a94-059d-4352-9609-b2ca6e3d9c1b":{"description":"The API key is missing (`API_KEY_MISSING`) or invalid (`API_KEY_INVALID`); unknown, expired and revoked keys are not told apart. Rarely, the request context is incomplete (`UNAUTHORIZED`).","x-error-codes":["API_KEY_MISSING","API_KEY_INVALID","UNAUTHORIZED"],"headers":{"WWW-Authenticate":{"description":"The scheme and the header of the key: `ApiKey header=\"X-API-Key\"`.","schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"title":"Problem details","type":"object","description":"An error according to RFC 9457. `errors` is never empty; for one error `errors[0].code` equals `errorCode`.","properties":{"type":{"type":"string","description":"A URN derived from `errorCode`, for example `urn:ds365:error:not-found`. It cannot be resolved.","uniqueKey":"type","typeLabel":"string"},"title":{"type":"string","description":"A fixed English text per code.","uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A technical English sentence. The text may change and should not be evaluated.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"The request path.","uniqueKey":"instance","typeLabel":"string"},"errorCode":{"type":"string","description":"The error code. The codes of an operation are listed in `x-error-codes` of its response.","uniqueKey":"errorCode","typeLabel":"string"},"traceId":{"type":"string","description":"The trace id of the request. Give it to support.","uniqueKey":"traceId","typeLabel":"string"},"errors":{"type":"array","items":{"title":"Error item","type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific code of this item.","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","description":"The field or parameter the error concerns. Absent when it concerns the whole request.","uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"description":"Further values, for example `entityType` and `id` of a missing asset or `missingScopes`. Absent when empty.","uniqueKey":"errors.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"Error item · object"},"uniqueKey":"errors","typeLabel":"Error item · object[]"}},"uniqueKey":"","typeLabel":"Problem details · object"},"examples":{"A request without an API key":{"title":"A request without an API key","value":{"type":"urn:ds365:error:api-key-missing","title":"API key missing","status":401,"detail":"The request has no X-API-Key header. Create an API key in the web app and send it in that header.","instance":"/api/v1/assets","errorCode":"API_KEY_MISSING","traceId":"00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01","errors":[{"code":"API_KEY_MISSING"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"8e348fd0-1d1b-4950-9bfe-92b1fece26f7":{"description":"The key lacks the scope `api_read` (*Read*), the cursor was issued to another user or another subscription, or the permission layer of the database refused the access.","x-error-codes":["FORBIDDEN","CURSOR_USER_MISMATCH","CURSOR_DATA_SOURCE_MISMATCH","PERMISSION_DENIED","MODULE_NOT_IN_EDITION","TENANT_FROZEN"],"content":{"application/problem+json":{"schema":{"title":"Problem details","type":"object","description":"An error according to RFC 9457. `errors` is never empty; for one error `errors[0].code` equals `errorCode`.","properties":{"type":{"type":"string","description":"A URN derived from `errorCode`, for example `urn:ds365:error:not-found`. It cannot be resolved.","uniqueKey":"type","typeLabel":"string"},"title":{"type":"string","description":"A fixed English text per code.","uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A technical English sentence. The text may change and should not be evaluated.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"The request path.","uniqueKey":"instance","typeLabel":"string"},"errorCode":{"type":"string","description":"The error code. The codes of an operation are listed in `x-error-codes` of its response.","uniqueKey":"errorCode","typeLabel":"string"},"traceId":{"type":"string","description":"The trace id of the request. Give it to support.","uniqueKey":"traceId","typeLabel":"string"},"errors":{"type":"array","items":{"title":"Error item","type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific code of this item.","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","description":"The field or parameter the error concerns. Absent when it concerns the whole request.","uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"description":"Further values, for example `entityType` and `id` of a missing asset or `missingScopes`. Absent when empty.","uniqueKey":"errors.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"Error item · object"},"uniqueKey":"errors","typeLabel":"Error item · object[]"}},"uniqueKey":"","typeLabel":"Problem details · object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"detail":"\u003cstring>","instance":"\u003cstring>","errorCode":"\u003cstring>","traceId":"\u003cstring>","errors":[{"code":"\u003cstring>","path":"\u003cstring>","data":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"46925a71-4386-43aa-9383-2e8b028371c4":{"description":"The request quota of the subscription is used up, included and extra requests alike. Retry after the instant in `Retry-After`. A denied request is counted as well.","x-error-codes":["REST_REQUEST_QUOTA_EXCEEDED"],"headers":{"Retry-After":{"description":"Start of the next quota period as an HTTP date. The same instant as `X-RateLimit-Reset`.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests included per quota period. Not sent for a subscription without a limit.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Included plus extra requests still available in the running period.","schema":{"type":"integer"}},"X-RateLimit-Extra-Remaining":{"description":"Extra requests still available. They are not reset with the period.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Start of the next quota period as Unix time in seconds.","schema":{"type":"integer","format":"int64"}}},"content":{"application/problem+json":{"schema":{"title":"Problem details","type":"object","description":"An error according to RFC 9457. `errors` is never empty; for one error `errors[0].code` equals `errorCode`.","properties":{"type":{"type":"string","description":"A URN derived from `errorCode`, for example `urn:ds365:error:not-found`. It cannot be resolved.","uniqueKey":"type","typeLabel":"string"},"title":{"type":"string","description":"A fixed English text per code.","uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A technical English sentence. The text may change and should not be evaluated.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"The request path.","uniqueKey":"instance","typeLabel":"string"},"errorCode":{"type":"string","description":"The error code. The codes of an operation are listed in `x-error-codes` of its response.","uniqueKey":"errorCode","typeLabel":"string"},"traceId":{"type":"string","description":"The trace id of the request. Give it to support.","uniqueKey":"traceId","typeLabel":"string"},"errors":{"type":"array","items":{"title":"Error item","type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific code of this item.","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","description":"The field or parameter the error concerns. Absent when it concerns the whole request.","uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"description":"Further values, for example `entityType` and `id` of a missing asset or `missingScopes`. Absent when empty.","uniqueKey":"errors.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"Error item · object"},"uniqueKey":"errors","typeLabel":"Error item · object[]"}},"uniqueKey":"","typeLabel":"Problem details · object"},"examples":{"The quota is used up":{"title":"The quota is used up","value":{"type":"urn:ds365:error:rest-request-quota-exceeded","title":"Request quota exceeded","status":429,"detail":"The request quota of 10000 requests per period is exhausted until 2026-12-01T00:00:00.0000000+00:00.","instance":"/api/v1/assets","errorCode":"REST_REQUEST_QUOTA_EXCEEDED","traceId":"00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01","errors":[{"code":"REST_REQUEST_QUOTA_EXCEEDED","data":{"requestsLimit":10000,"requestsUsed":10000,"quotaResetAt":"2026-12-01T00:00:00+00:00"}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"89223317-6cb4-4139-8fa0-76d4e58417ce":{"description":"An unexpected fault. `detail` is a fixed sentence; use `traceId` when reporting it.","x-error-codes":["INTERNAL_ERROR"],"content":{"application/problem+json":{"schema":{"title":"Problem details","type":"object","description":"An error according to RFC 9457. `errors` is never empty; for one error `errors[0].code` equals `errorCode`.","properties":{"type":{"type":"string","description":"A URN derived from `errorCode`, for example `urn:ds365:error:not-found`. It cannot be resolved.","uniqueKey":"type","typeLabel":"string"},"title":{"type":"string","description":"A fixed English text per code.","uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A technical English sentence. The text may change and should not be evaluated.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"The request path.","uniqueKey":"instance","typeLabel":"string"},"errorCode":{"type":"string","description":"The error code. The codes of an operation are listed in `x-error-codes` of its response.","uniqueKey":"errorCode","typeLabel":"string"},"traceId":{"type":"string","description":"The trace id of the request. Give it to support.","uniqueKey":"traceId","typeLabel":"string"},"errors":{"type":"array","items":{"title":"Error item","type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific code of this item.","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","description":"The field or parameter the error concerns. Absent when it concerns the whole request.","uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"description":"Further values, for example `entityType` and `id` of a missing asset or `missingScopes`. Absent when empty.","uniqueKey":"errors.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"Error item · object"},"uniqueKey":"errors","typeLabel":"Error item · object[]"}},"uniqueKey":"","typeLabel":"Problem details · object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"detail":"\u003cstring>","instance":"\u003cstring>","errorCode":"\u003cstring>","traceId":"\u003cstring>","errors":[{"code":"\u003cstring>","path":"\u003cstring>","data":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"cae57b09-70be-43ba-ace9-abee4f45dc0e":{"description":"The request quota could not be checked and the request was therefore not served, the database failed transiently, or the API key could not be checked (`API_KEY_VALIDATION_UNAVAILABLE`; the key was not judged). Retrying may succeed.","x-error-codes":["SERVICE_UNAVAILABLE","API_KEY_VALIDATION_UNAVAILABLE"],"content":{"application/problem+json":{"schema":{"title":"Problem details","type":"object","description":"An error according to RFC 9457. `errors` is never empty; for one error `errors[0].code` equals `errorCode`.","properties":{"type":{"type":"string","description":"A URN derived from `errorCode`, for example `urn:ds365:error:not-found`. It cannot be resolved.","uniqueKey":"type","typeLabel":"string"},"title":{"type":"string","description":"A fixed English text per code.","uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code.","uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A technical English sentence. The text may change and should not be evaluated.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"The request path.","uniqueKey":"instance","typeLabel":"string"},"errorCode":{"type":"string","description":"The error code. The codes of an operation are listed in `x-error-codes` of its response.","uniqueKey":"errorCode","typeLabel":"string"},"traceId":{"type":"string","description":"The trace id of the request. Give it to support.","uniqueKey":"traceId","typeLabel":"string"},"errors":{"type":"array","items":{"title":"Error item","type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The specific code of this item.","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","description":"The field or parameter the error concerns. Absent when it concerns the whole request.","uniqueKey":"errors.items.[INDEX].path","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"description":"Further values, for example `entityType` and `id` of a missing asset or `missingScopes`. Absent when empty.","uniqueKey":"errors.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"Error item · object"},"uniqueKey":"errors","typeLabel":"Error item · object[]"}},"uniqueKey":"","typeLabel":"Problem details · object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"detail":"\u003cstring>","instance":"\u003cstring>","errorCode":"\u003cstring>","traceId":"\u003cstring>","errors":[{"code":"\u003cstring>","path":"\u003cstring>","data":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e4b21bdc-82ed-4c08-a9e8-802f34c48a08":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"The API key of the subscription. Each operation names the scope it needs in `x-pat-scopes`: `api_read` (in the interface *Read*) or `api_write` (*Read and Write*). The key is created under *Administration › Integrations › API Keys*.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"79e82876-7427-4f0c-99be-abd41d84b173":{"url":"https://api.docusnap365.com/api/v1"}},"schemas":{"c012bcf3-ed15-4c53-9650-751daed937e6":{"title":"Filter group","type":"object","properties":{"logic":{"type":"string","title":"Logical operator","description":"How the conditions and groups of a group are combined.","default":"And","enum":["And","Or"]},"conditions":{"type":"array","items":{"title":"Filter condition","type":"object","required":["path","op"],"properties":{"path":{"type":"string","description":"The field. Only the fields of the main query are available, in an expand the fields of this expand.","isRequired":true},"op":{"title":"Filter operator","type":"string","description":"The operator of a condition. Case-insensitive in the request body.\n\n`Eq`, `Neq`, `Gt`, `Gte`, `Lt`, `Lte` compare. `Neq` and `NotIn` keep rows whose field is empty. `Contains`, `StartsWith`, `EndsWith` match text without regard to case; `%`, `_` and `\\` in `value` are taken literally. `Like` is SQL LIKE with the wildcards of the caller and regard to case. `In` and `NotIn` take a list in `value`; every other operator with a value takes a single value, and any other shape is rejected with 400 `FIELD_TYPE_MISMATCH`. `IsNull` and `IsNotNull` need no `value`. `ArrayAny` is true when at least one element of a JSON array satisfies `arrayFilter`. `ArrayAll` is true when the JSON array has at least one element and every element satisfies `arrayFilter`; an empty or missing array does not match. `ArrayAny` and `ArrayAll` need an `arrayFilter` with at least one condition. `ArrayContains` is true when the JSON array contains `value`, and needs `value`. An array operator on a field that is not a JSON array is rejected.\n\nComparison and list operators (`Eq`, `Neq`, `Gt`, `Gte`, `Lt`, `Lte`, `In`, `NotIn`) are rejected on a field that holds a JSON object or array.\n","enum":["Eq","Neq","Gt","Gte","Lt","Lte","Contains","StartsWith","EndsWith","Like","In","NotIn","IsNull","IsNotNull","ArrayAny","ArrayAll","ArrayContains"],"isRequired":true},"value":{"description":"The comparison value. Its JSON type must fit the field; a list for `In` and `NotIn`, otherwise a single value. Any other shape is rejected with 400 `FIELD_TYPE_MISMATCH`."},"arrayFilter":{"description":"For `ArrayAny` and `ArrayAll` the condition on the elements of the array. The paths are relative to the element (`name`, not `data.list[*].name`); only `Eq`, `Neq`, `Gt`, `Gte`, `Lt` and `Lte` are allowed."}}}},"groups":{"type":"array","items":{"$circularRef":"c012bcf3-ed15-4c53-9650-751daed937e6"},"description":"Nested groups. They are combined with the conditions by `logic`."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"The API key of the subscription. Each operation names the scope it needs in `x-pat-scopes`: `api_read` (in the interface *Read*) or `api_write` (*Read and Write*). The key is created under *Administration › Integrations › API Keys*.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"The API key of the subscription. Each operation names the scope it needs in `x-pat-scopes`: `api_read` (in the interface *Read*) or `api_write` (*Read and Write*). The key is created under *Administration › Integrations › API Keys*.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.en.yaml"},"subdomain":"docusnap","siteName":"Docusnap365","title":"Query assets - Docusnap365","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"de":{"href":"/de/getting-started/overview","matchLevel":4},"en":{"href":"/api-reference/query/query-assets","matchLevel":0}}},"lastModified":"2026-11-23T22:35:14.188Z","originalFileLocation":"api-reference/query/query-assets.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Queries assets with filter, sort, field selection, page size and expands. Only the fields of the asset are available for select, filter and sort (see AssetDto). Expands add related data; data. paths in an expand are resolved against the types. With select the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without select an item is the complete asset with its expands in expands. A page holds limit items (default 50, at most 1000). If more exist, hasMore is true and nextCursor continues with POST /cursor/continue — or with this operation when the body carries the nextCursor in cursor; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its limit for an asset is reported in incompleteExpands; continue it with POST /assets/expand. Requires the scope api_read (Read).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Docusnap365\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Query assets - Docusnap365\">\u003cmeta data-mint-head property=\"og:description\" content=\"Queries assets with filter, sort, field selection, page size and expands. Only the fields of the asset are available for select, filter and sort (see AssetDto). Expands add related data; data. paths in an expand are resolved against the types. With select the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without select an item is the complete asset with its expands in expands. A page holds limit items (default 50, at most 1000). If more exist, hasMore is true and nextCursor continues with POST /cursor/continue — or with this operation when the body carries the nextCursor in cursor; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its limit for an asset is reported in incompleteExpands; continue it with POST /assets/expand. Requires the scope api_read (Read).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Docusnap365\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.docusnap.com/docs/api-reference/query/query-assets\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docusnap.mintlify.site/docs/_mintlify/api/og/v2?division=Query\u0026amp;title=Query+assets\u0026amp;description=Queries+assets+with+filter%2C+sort%2C+field+selection%2C+page+size+and+expands.%0A%0AOnly+the+fields+of+the+asset+are+available+for+%60select%60%2C+%60filter%60+and+%60sort%60+%28see+%60As\u0026amp;theme=76256092d55f72ccd86a07dd\u0026amp;signature=3d69d09012a706e9518b4ef45097ba27eaf23ec1ea94db49eb5435ceb0de1b9b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Query assets - Docusnap365\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Queries assets with filter, sort, field selection, page size and expands. Only the fields of the asset are available for select, filter and sort (see AssetDto). Expands add related data; data. paths in an expand are resolved against the types. With select the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without select an item is the complete asset with its expands in expands. A page holds limit items (default 50, at most 1000). If more exist, hasMore is true and nextCursor continues with POST /cursor/continue — or with this operation when the body carries the nextCursor in cursor; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its limit for an asset is reported in incompleteExpands; continue it with POST /assets/expand. Requires the scope api_read (Read).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docusnap.mintlify.site/docs/_mintlify/api/og/v2?division=Query\u0026amp;title=Query+assets\u0026amp;description=Queries+assets+with+filter%2C+sort%2C+field+selection%2C+page+size+and+expands.%0A%0AOnly+the+fields+of+the+asset+are+available+for+%60select%60%2C+%60filter%60+and+%60sort%60+%28see+%60As\u0026amp;theme=76256092d55f72ccd86a07dd\u0026amp;signature=3d69d09012a706e9518b4ef45097ba27eaf23ec1ea94db49eb5435ceb0de1b9b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/docusnap/H7rYqvu3TO3yj0a1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Docusnap365\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F7683\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.docusnap.com/docs/api-reference/query/query-assets\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/query/query-assets.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.docusnap.com/#organization\",\"name\":\"Docusnap365\",\"url\":\"https://www.docusnap.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/docusnap/w7DSWRB4BRB49qQA/images/Docusnap_Logo.svg?fit=max\u0026auto=format\u0026n=w7DSWRB4BRB49qQA\u0026q=85\u0026s=30ba3056aa591cff3faf8c4addf943c0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.docusnap.com/docs#website\",\"name\":\"Docusnap365\",\"url\":\"https://www.docusnap.com/docs\",\"publisher\":{\"@id\":\"https://www.docusnap.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.docusnap.com/docs/api-reference/query/query-assets#webpage\",\"url\":\"https://www.docusnap.com/docs/api-reference/query/query-assets\",\"name\":\"Query assets\",\"description\":\"Queries assets with filter, sort, field selection, page size and expands. Only the fields of the asset are available for select, filter and sort (see AssetDto). Expands add related data; data. paths in an expand are resolved against the types. With select the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without select an item is the complete asset with its expands in expands. A page holds limit items (default 50, at most 1000). If more exist, hasMore is true and nextCursor continues with POST /cursor/continue — or with this operation when the body carries the nextCursor in cursor; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its limit for an asset is reported in incompleteExpands; continue it with POST /assets/expand. Requires the scope api_read (Read).\",\"dateModified\":\"2026-11-23T22:35:14.188Z\",\"isPartOf\":{\"@id\":\"https://www.docusnap.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.docusnap.com/docs/api-reference/query/query-assets#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.docusnap.com/docs/api-reference/query/query-assets#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://www.docusnap.com/docs/en/api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Reference\",\"item\":\"https://www.docusnap.com/docs/api-reference/assets/list-assets\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Query assets\",\"item\":\"https://www.docusnap.com/docs/api-reference/query/query-assets\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.docusnap.com/docs/api-reference/query/query-assets#apireference\",\"headline\":\"Query assets\",\"name\":\"Query assets\",\"description\":\"Queries assets with filter, sort, field selection, page size and expands. Only the fields of the asset are available for select, filter and sort (see AssetDto). Expands add related data; data. paths in an expand are resolved against the types. With select the response items contain only the selected properties, and the expands are lifted to the top level of the item; the id is included if it is selected or expands are requested. Without select an item is the complete asset with its expands in expands. A page holds limit items (default 50, at most 1000). If more exist, hasMore is true and nextCursor continues with POST /cursor/continue — or with this operation when the body carries the nextCursor in cursor; the stored query then applies and all other members of the body are ignored. Every page has the same shape as the first. An expand that holds more rows than its limit for an asset is reported in incompleteExpands; continue it with POST /assets/expand. Requires the scope api_read (Read).\",\"url\":\"https://www.docusnap.com/docs/api-reference/query/query-assets\",\"mainEntityOfPage\":{\"@id\":\"https://www.docusnap.com/docs/api-reference/query/query-assets#webpage\"},\"dateModified\":\"2026-11-23T22:35:14.188Z\",\"publisher\":{\"@id\":\"https://www.docusnap.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.docusnap.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Docusnap365\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Docusnap365\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/query/query-assets.md","siteName":"Docusnap365","nav":{"global":null,"languages":[{"language":"de","navbar":{"links":[{"href":"https://docusnap365.com","label":"Anmelden"}],"primary":{"type":"button","label":"Kostenlos testen","href":"https://www.docusnap.com/de/trial?utm_source=docs\u0026utm_medium=navbar\u0026utm_campaign=trial"}},"pages":[{"title":"de","href":"/de/getting-started/overview"}]},{"language":"en","default":true,"navbar":{"links":[{"href":"https://docusnap365.com","label":"Sign In"}],"primary":{"type":"button","label":"Try for Free","href":"https://www.docusnap.com/en/trial?utm_source=docs\u0026utm_medium=navbar\u0026utm_campaign=trial"}},"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/en/getting-started/overview"}]},{"tab":"Scanning","pages":[{"title":"Scanning","href":"/en/scan/understanding-scanning"}]},{"tab":"Inventory","pages":[{"title":"Inventory","href":"/en/assets/overview"}]},{"tab":"ITAM","pages":[{"title":"ITAM","href":"/en/itam/understanding-itam"}]},{"tab":"ISMS","pages":[{"title":"ISMS","href":"/en/isms/understanding-isms"}]},{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/documents/overview"}]},{"tab":"Analysis","pages":[{"title":"Analysis","href":"/en/analysis/overview"}]},{"tab":"AI Assistant","pages":[{"title":"AI Assistant","href":"/en/assistant/overview"}]},{"tab":"Administration","pages":[{"title":"Administration","href":"/en/settings/subscription"}]},{"tab":"MCP \u0026 API","groups":[{"group":"MCP","pages":[{"title":"MCP—Basics","sidebarTitle":"Overview","href":"/en/api/mcp"},{"title":"MCP—Tools","sidebarTitle":"Tools","href":"/en/api/mcp-specific-tools"}]},{"group":"API","pages":[{"title":"Understanding the REST API","sidebarTitle":"Basics","href":"/en/api/overview"},{"title":"Data Model","sidebarTitle":"Data Model","href":"/en/api/data-model"},{"group":"API Reference","pages":[{"group":"Assets","pages":[{"title":"List assets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /assets","href":"/api-reference/assets/list-assets"},{"title":"Get one asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml get /asset/{id}","href":"/api-reference/assets/get-one-asset"},{"title":"Create or update one asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /asset","href":"/api-reference/assets/create-or-update-one-asset"},{"title":"Create or update several assets","description":"Writes up to 100 assets in one transaction, each created or updated by identity matching as in `POST /asset`. More than 100 entries are rejected with 400. An empty list is answered with 200 and an empty `results`.\n\nAn entry that is protected (a more complete record exists) or has too few identity values does not abort the batch: it is skipped and its entry in `results` carries `errorMessage` and `error` with the error code. Every other rejection aborts the whole batch with 400; the index of the entry is in `path` where known (`[3].object.name`).\n\nRequires the scope `api_write` (*Read and Write*). The response of the ingest service is returned unchanged on success; a rejection of the whole batch is `application/problem+json`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /asset/bulk","href":"/api-reference/assets/create-or-update-several-assets"}]},{"group":"Query","pages":[{"title":"Query assets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /assets/query","href":"/api-reference/query/query-assets"},{"title":"Read or continue an expand of one asset","description":"Reads the related data (`expandName`) of one asset (`parentId`). Without `cursor` the request starts the expand with the given `select`, `filter`, `sort` and `limit`. With the cursor from `incompleteExpands` it continues that expand; the cursor carries the original query, and `select`, `filter`, `sort` and `limit` of the body are not applied. `parentId` and `expandName` must match the cursor.\n\nThe parent asset must be visible to the user, otherwise the answer is 404.\n\nRequires the scope `api_read` (*Read*).\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /assets/expand","href":"/api-reference/query/read-or-continue-an-expand-of-one-asset"},{"title":"Continue from a cursor","deprecated":null,"version":null,"openapi":"/api-reference/openapi.en.yaml post /cursor/continue","href":"/api-reference/query/continue-from-a-cursor"}]}]}]}]},{"tab":"What's new","pages":[{"title":"What's new","href":"/en/changelog"}]}]}]},"basePath":"","title":"Query assets - Docusnap365","deploymentId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","buildId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CoHzAoFO.js","snippetPresets-C5LN7NjD.js","utils-BpbIYxoM.js","style-to-object-BY3JEAdk.js","utils-BZwmDJa7.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CX_8VhVG.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Dwu87dmY.js","_Uint8Array-B3i1ZElT.js","isObject-FP1Yky1u.js","ApiExamples-CFIWkASu.js","usePlaygroundInputsStore-DQyvDMeD.js","shallow-C76oKkt-.js","isEqual-B4Njk6_P.js","CodeSnippets-COpKhdko.js","CodeSnippet-C6XWIfQu.js","use-playground-group-access-CTV1-lLQ.js","Page-Cu8jJzLy.js","api-description-markdown-CIH_USrp.js","DynamicMarkdown-D8nv7Epe.js","SectionHeading-Bf3Mv7z3.js","MethodPill-BcGQxR6W.js","getPastedJson-DMp6zdSQ.js","Check2Icon-TCQe7AMx.js","axios-CsQoIw0U.js","Markdown-DJPODUCq.js","AssistantPageLink-DD0-O5es.js","dist-C-6Hw7la.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}