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.
| Scope | custom_fields:write |
| Asynchronous | No |
| MCP tool | create_graph_resolve_run |
| Portal permissions | run_graph_resolve_jobs |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | GraphResolveRunCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json GraphResolveRun or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
GraphBackfillRun
| Field | Type | Required | Description |
|---|---|---|---|
backfill_run_id | string | Required | |
chunk_number | integer | Required | ≥ -2147483648; ≤ 2147483647 |
chunk_size | integer | Required | ≥ -2147483648; ≤ 2147483647 |
created_at | string (date-time) or null | Required | |
custom_field_template_ids | array of string | Required | The templates the run resolves; empty for each configured template. |
documents_failed | integer | Required | ≥ -2147483648; ≤ 2147483647 |
documents_finished | integer | Required | ≥ -2147483648; ≤ 2147483647 |
documents_in_flight | integer | Required | Documents of the current chunk with no outcome yet. ≥ -2147483648; ≤ 2147483647 |
documents_queued | integer | Required | ≥ -2147483648; ≤ 2147483647 |
documents_skipped | integer | Required | ≥ -2147483648; ≤ 2147483647 |
documents_with_edges | integer | Required | ≥ -2147483648; ≤ 2147483647 |
documents_without_edges | integer | Required | ≥ -2147483648; ≤ 2147483647 |
edges_written | integer | Required | ≥ -2147483648; ≤ 2147483647 |
finished_at | string (date-time) or null | Required | |
is_stalled | boolean | Required | Some documents of the current chunk have no live claim: only a resume moves the run on. |
preset | string or null | Required | fast, balanced or thorough; null for each template's own budget. |
scope | GraphBackfillScope | Required | |
skip_processed | boolean | Required | |
started_by_user_id | string or null | Required | |
status | string | Required | running, paused or completed (open). |
updated_at | string (date-time) or null | Required |
GraphBackfillScope
| Field | Type | Required | Description |
|---|---|---|---|
kind | string | Required | all, folder, project, doc_type or documents. |
values | array of string | Required | Folder, project or document IDs, or document type names; empty for all. |
GraphResolveRun
| Field | Type | Required | Description |
|---|---|---|---|
backfill_run | GraphBackfillRun or null | Required | For several documents: the backfill run over exactly those documents; null for one. |
resolve_run_id | string | Required | Written on every link the run makes. |
task_ids | array of string | Required | The Portal's background tasks (the run's driver for several documents). |
GraphResolveRunCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_template_ids | array of string | Optional | Only these templates; each configured template when left out. |
document_ids | array of string | Required | The documents to resolve; each must be readable by the caller. |
preset | string or null | Optional | fast, balanced or thorough; each template's own budget when left out. |