List the documents filed in a location.
The documents filed in the location that the caller may read, in ID order, each with the location or locations it is filed in and the path of each. Needs View Location Documents and View Document Metadata. include_descendants=true lists what is filed beneath the location too (the explorer's full-path view) and also needs View Locations and View Location Hierarchy; without both, a filing's path is null. document_id, document_number, reference_number, revision_number, is_latest_revision, is_privileged and is_locked narrow the list.
| |
|---|
| Scope | locations:read |
| Asynchronous | No |
| MCP tool | list_location_documents |
| Portal permissions | view_location_documents, view_document_metadata |
| Paging | keyset |
| Default order | document_id |
| Sort fields | document_id |
| Filters | document_id, document_number, reference_number, revision_number, is_latest_revision, is_privileged, is_privileged_is_null, is_locked, is_locked_is_null |
Parameters
| Name | In | Type | Required | Description |
|---|
location_id | path | string | Required | |
include_descendants | query | boolean or null | Optional | true also lists the documents filed in every readable location beneath this one (default false). Needs View Locations and View Location Hierarchy. |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
document_id | query | array of string | Optional | |
document_number | query | array of string | Optional | |
reference_number | query | array of string | Optional | |
revision_number | query | array of string | Optional | |
is_latest_revision | query | array of boolean | Optional | |
is_privileged | query | array of boolean | Optional | |
is_privileged_is_null | query | boolean | Optional | |
is_locked | query | array of boolean | Optional | |
is_locked_is_null | query | boolean | Optional | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of LocationDocument | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
LocationDocument
| Field | Type | Required | Description |
|---|
created_at | string (date-time) or null | Required | |
description | string or null | Required | |
document_date | string or null | Required | The document's date, exactly as recorded (wire-types §1.4, O14). |
document_id | string | Required | |
file_name | string or null | Required | |
file_size_bytes | string or null | Required | |
filings | array of LocationDocumentFiling | Required | Where the document is filed within the listed location (and, with include_descendants, beneath it): one entry per location, in location order. |
from_entity | string or null | Required | |
number | string or null | Required | |
reference_number | string or null | Required | |
revision | string or null | Required | |
status | string or null | Required | |
to_entity | string or null | Required | |
type | string or null | Required | |
LocationDocumentFiling
| Field | Type | Required | Description |
|---|
location_id | string | Required | |
path | string or null | Required | The location's current path (ancestors' descriptions joined with ->), from the names the caller may read; null without View Locations and View Location Hierarchy, or when an ancestor is hidden. |