Skip to main content

Resolve the graph links of documents in the background.

POST/api/v1/graph/resolve-runscustom_fields:write

Resolves the documents as the caller (reads through their access, writes attributed to them). One document runs at once on the interactive lane, with its on-demand DocumentLink fields; several become a backfill run over exactly those documents (backfill_run in the answer), paced on the bulk lane, resumable and without the on-demand fields. preset fast skips the rerank and the LLM verifier; balanced and thorough pick the template budgets. Every document must be one the caller can read (404 naming the documents). Needs Run Graph Resolve Jobs.

Scopecustom_fields:write
AsynchronousNo
MCP toolcreate_graph_resolve_run
Portal permissionsrun_graph_resolve_jobs

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonGraphResolveRunCreateInput

Responses​

StatusDescriptionBody
201Success.application/json GraphResolveRun or object
400invalid_version, malformed_jsonapplication/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
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

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

Schemas​

GraphBackfillRun​

FieldTypeRequiredDescription
backfill_run_idstringRequired
chunk_numberintegerRequired≥ -2147483648; ≤ 2147483647
chunk_sizeintegerRequired≥ -2147483648; ≤ 2147483647
created_atstring (date-time) or nullRequired
custom_field_template_idsarray of stringRequiredThe templates the run resolves; empty for each configured template.
documents_failedintegerRequired≥ -2147483648; ≤ 2147483647
documents_finishedintegerRequired≥ -2147483648; ≤ 2147483647
documents_in_flightintegerRequiredDocuments of the current chunk with no outcome yet. ≥ -2147483648; ≤ 2147483647
documents_queuedintegerRequired≥ -2147483648; ≤ 2147483647
documents_skippedintegerRequired≥ -2147483648; ≤ 2147483647
documents_with_edgesintegerRequired≥ -2147483648; ≤ 2147483647
documents_without_edgesintegerRequired≥ -2147483648; ≤ 2147483647
edges_writtenintegerRequired≥ -2147483648; ≤ 2147483647
finished_atstring (date-time) or nullRequired
is_stalledbooleanRequiredSome documents of the current chunk have no live claim: only a resume moves the run on.
presetstring or nullRequiredfast, balanced or thorough; null for each template's own budget.
scopeGraphBackfillScopeRequired
skip_processedbooleanRequired
started_by_user_idstring or nullRequired
statusstringRequiredrunning, paused or completed (open).
updated_atstring (date-time) or nullRequired

GraphBackfillScope​

FieldTypeRequiredDescription
kindstringRequiredall, folder, project, doc_type or documents.
valuesarray of stringRequiredFolder, project or document IDs, or document type names; empty for all.

GraphResolveRun​

FieldTypeRequiredDescription
backfill_runGraphBackfillRun or nullRequiredFor several documents: the backfill run over exactly those documents; null for one.
resolve_run_idstringRequiredWritten on every link the run makes.
task_idsarray of stringRequiredThe Portal's background tasks (the run's driver for several documents).

GraphResolveRunCreateInput​

FieldTypeRequiredDescription
custom_field_template_idsarray of stringOptionalOnly these templates; each configured template when left out.
document_idsarray of stringRequiredThe documents to resolve; each must be readable by the caller.
presetstring or nullOptionalfast, balanced or thorough; each template's own budget when left out.