Start a graph backfill run.
POST/api/v1/graph/backfill-runscustom_fields:write
Resolves every document of a scope in paced chunks on the bulk lane, as the caller, until done or paused. scope.kind is all, folder (folder IDs), project (project IDs), doc_type (document type names) or documents (document IDs); every kind but all needs values. preset fast, balanced or thorough sets the budget of the whole run. skip_processed leaves out documents another run resolved (failures are tried again). Follow it with get_graph_backfill_run. Needs Start Graph Backfill Jobs.
| Scope | custom_fields:write |
| Asynchronous | No |
| MCP tool | create_graph_backfill_run |
| Portal permissions | start_graph_backfill_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 | GraphBackfillRunCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json GraphBackfillRun 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 |
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 |
GraphBackfillRunCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
chunk_size | integer or null | Optional | Documents published per chunk, 1 to 1000; 50 when left out. Pacing, not a cap. |
custom_field_template_ids | array of string | Optional | Only these templates; each configured template when left out. |
preset | string or null | Optional | fast, balanced or thorough; each template's own budget when left out. |
scope | GraphBackfillScopeInput | Required | |
skip_processed | boolean or null | Optional | Leave out documents another run already resolved. True when left out. |
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. |
GraphBackfillScopeInput
| Field | Type | Required | Description |
|---|---|---|---|
kind | string | Optional | all, folder, project, doc_type or documents. |
values | array of string | Optional | Folder, project or document IDs, or document type names; empty for all. |