Skip to main content

List the documents filed in a location.

GET/api/v1/locations/{location_id}/documentslocations:read

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.

Scopelocations:read
AsynchronousNo
MCP toollist_location_documents
Portal permissionsview_location_documents, view_document_metadata
Pagingkeyset
Default orderdocument_id
Sort fieldsdocument_id
Filtersdocument_id, document_number, reference_number, revision_number, is_latest_revision, is_privileged, is_privileged_is_null, is_locked, is_locked_is_null

Parameters​

NameInTypeRequiredDescription
location_idpathstringRequired
include_descendantsqueryboolean or nullOptionaltrue also lists the documents filed in every readable location beneath this one (default false). Needs View Locations and View Location Hierarchy.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
document_idqueryarray of stringOptional
document_numberqueryarray of stringOptional
reference_numberqueryarray of stringOptional
revision_numberqueryarray of stringOptional
is_latest_revisionqueryarray of booleanOptional
is_privilegedqueryarray of booleanOptional
is_privileged_is_nullquerybooleanOptional
is_lockedqueryarray of booleanOptional
is_locked_is_nullquerybooleanOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of LocationDocumentRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

LocationDocument​

FieldTypeRequiredDescription
created_atstring (date-time) or nullRequired
descriptionstring or nullRequired
document_datestring or nullRequiredThe document's date, exactly as recorded (wire-types §1.4, O14).
document_idstringRequired
file_namestring or nullRequired
file_size_bytesstring or nullRequired
filingsarray of LocationDocumentFilingRequiredWhere the document is filed within the listed location (and, with include_descendants, beneath it): one entry per location, in location order.
from_entitystring or nullRequired
numberstring or nullRequired
reference_numberstring or nullRequired
revisionstring or nullRequired
statusstring or nullRequired
to_entitystring or nullRequired
typestring or nullRequired

LocationDocumentFiling​

FieldTypeRequiredDescription
location_idstringRequired
pathstring or nullRequiredThe 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.