GET /api/collection/root/items
Changed onFetch objects that the current user should see at their root level. As mentioned elsewhere, the 'Root' Collection doesn't actually exist as a row in the application DB: it's simply a virtual Collection where things with no collection_id exist. It does, however, have its own set of Permissions.
This endpoint will actually show objects with no collection_id for Users that have Root Collection permissions, but for people without Root Collection perms, we'll just show the objects that have an effective location of /.
This endpoint is intended to power a 'Root Folder View' for the Current User, so regardless you'll see all the top-level objects you're allowed to access.
By default, this will show the 'normal' Collections namespace; to view a different Collections namespace, such as snippets, you can pass the ?namespace= parameter.
By default, library collections are excluded from the results; to include them, pass ?include-library=true.
Pass ?q= to filter items by name or last editor. Pass ?include-available-models=true to include the models that have at least one visible item in the requested scope.
Note that this endpoint should return results in a similar shape to /api/dashboard/:id/items, so if this is changed, that should too.
Request
- Base URL(relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Query parameters
value must be a valid boolean string ('true' or 'false').
value must be a valid boolean string ('true' or 'false').
value must be a valid boolean string ('true' or 'false').
value must be a valid boolean string ('true' or 'false').
value must be a valid boolean string ('true' or 'false').
value must be a non-blank string.
value must be a valid boolean string ('true' or 'false').
Request body
Response
Successful response
Changes
- warning
deleted the
queryrequest parametercollection_type - warning
deleted the
queryrequest parameterinclude_can_run_adhoc_query - warning
deleted the
queryrequest parameterinclude_library - warning
deleted the
queryrequest parameterofficial_collections_first - warning
deleted the
queryrequest parameterpinned_state - warning
deleted the
queryrequest parametershow_dashboard_questions - warning
deleted the
queryrequest parametersort_column - warning
deleted the
queryrequest parametersort_direction - info
added the new optional
queryrequest parametercollection-type - info
added the new optional
queryrequest parameterinclude-available-models - info
added the new optional
queryrequest parameterinclude-library - info
added the new optional
queryrequest parameterofficial-collections-first - info
added the new optional
queryrequest parameterpinned-state - info
added the new optional
queryrequest parameterq - info
added the new optional
queryrequest parametershow-dashboard-questions - info
added the new optional
queryrequest parametershow-exploration-documents - info
added the new optional
queryrequest parametersort-column - info
added the new optional
queryrequest parametersort-direction - info
added optional request body
- info
the
queryrequest parameterarchivedbecame optional - info
added the media type
application/jsonfor the response with the status
- warning
- info
added the enum value
measureto the propertyoneOf[subschema #1]/items/of thequeryrequest parametermodels
- info