Skip to main content

Save a graph path.

POST/api/v1/graph/saved-pathscustom_fields:write

Saves a chain of relation steps from a start (a register or documents) under a slug (409 already_exists when taken). steps is the Portal's own document (format graph_saved_path_steps): each step names a relation type, a direction, a kind and a register. Relation types and registers must exist (422). Needs Create Graph Saved Paths.

Scopecustom_fields:write
AsynchronousNo
MCP toolcreate_graph_saved_path
Portal permissionscreate_graph_saved_paths

Parameters​

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

Request body​

Content typeType
application/jsonGraphSavedPathCreateInput

Responses​

StatusDescriptionBody
201Success.application/json GraphSavedPath 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
409already_exists, idempotency_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​

GraphSavedPath​

FieldTypeRequiredDescription
descriptionstring or nullRequired
is_activebooleanRequired
namestringRequired
perspectivestringRequiredall or executive.
saved_path_idstringRequired
slugstringRequired
start_custom_field_template_idstring or nullRequiredThe register a register_row path starts at.
start_kindstringRequireddocument or register_row.
stepsobject or nullRequiredThe steps with their labels (format graph_saved_path_steps): the Portal's own document.

GraphSavedPathCreateInput​

FieldTypeRequiredDescription
descriptionstring or nullOptionalUp to 1000 characters.
is_activeboolean or nullOptionalTrue when left out.
namestringRequiredUp to 200 characters.
perspectivestring or nullOptionalall (default) or executive.
slugstringRequiredLower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters.
start_custom_field_template_idstring or nullOptionalNeeded for a register_row path.
start_kindstring or nullOptionalregister_row (default) or document.
stepsobjectRequiredThe steps (format graph_saved_path_steps): 1 to 4 of {relation_code, direction, kind, template_id}.