Skip to main content

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.

Scopecustom_fields:write
AsynchronousNo
MCP toolcreate_graph_backfill_run
Portal permissionsstart_graph_backfill_jobs

Parameters​

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

Request body​

Content typeType
application/jsonGraphBackfillRunCreateInput

Responses​

StatusDescriptionBody
201Success.application/json GraphBackfillRun or 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
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

GraphBackfillRunCreateInput​

FieldTypeRequiredDescription
chunk_sizeinteger or nullOptionalDocuments published per chunk, 1 to 1000; 50 when left out. Pacing, not a cap.
custom_field_template_idsarray of stringOptionalOnly these templates; each configured template when left out.
presetstring or nullOptionalfast, balanced or thorough; each template's own budget when left out.
scopeGraphBackfillScopeInputRequired
skip_processedboolean or nullOptionalLeave out documents another run already resolved. True when left out.

GraphBackfillScope​

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

GraphBackfillScopeInput​

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