Skip to main content

Find the records that hold values of a List Manager list.

POST/api/v1/list-value-holders/searchlookup_lists:read

The List Manager's find by value: the documents, contacts or projects that hold any of the values sent (list and values, both required), by their IDs in ascending order. Documents are found through the caller's document security and projects through the caller's project access, as the Portal's find does; contacts have no per-record security. The Portal reads every holder to answer, so a value held by very many documents is slow. Each item sets the member of its kind: document_id, or organisation_id with contact_id (null when the organisation's own row holds the value), or project_id. Read a record with get_document, list_contacts (filter by organisation_id) or get_project. include=total_count adds the number of records you can read, which list_list_value_usage counts the same way. Needs the same permissions as list_list_value_usage for the list.

Scopelookup_lists:read
AsynchronousNo
MCP toolsearch_list_value_holders
Pagingsnapshot
Default orderdocument_id, organisation_id, contact_id, project_id

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
includequeryarray of string: total_countOptionaltotal_count asks for the number of items the whole list holds for the caller under the same filters (not only this page), counted under the same access rules as the items; the answer then carries total_count. Left out, it is not counted.
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonListValueHoldersSearchInput

Responses​

StatusDescriptionBody
200Success.application/json object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/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 ListValueHolderRequired
next_cursorstring or nullRequired
total_countintegerOptionaltotal_count asks for the number of items the whole list holds for the caller under the same filters (not only this page), counted under the same access rules as the items; the answer then carries total_count. Left out, it is not counted. ≥ 0; ≤ 2147483647
warningsarray of objectRequired

Errors​

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

Schemas​

ListValueHolder​

FieldTypeRequiredDescription
contact_idstring or nullRequiredThe contact, for a list whose holders are contacts; null when the organisation's own row holds the value.
document_idstring or nullRequiredThe document, for a list whose holders are documents. Read it with get_document.
organisation_idstring or nullRequiredThe organisation, for a list whose holders are contacts: the one the contact belongs to, or the organisation itself when contact_id is null.
project_idstring or nullRequiredThe project, for a list whose holders are projects.

ListValueHoldersSearchInput​

FieldTypeRequiredDescription
liststringRequiredThe list: document_prefix, document_type, document_status, post_review_status, cross_reference_reason, contact, contact_designation, business_type, contact_category, contact_category_status, country, project_type or project_status.
valuesarray of stringRequiredThe values to find the holders of, written as list_list_value_usage shows them: a record is found when it holds any of them. A document_prefix is matched as the start of the document number; a document_type without a sub type finds every document of the type, sub types included; project values ignore case.