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.
| Scope | custom_fields:write |
| Asynchronous | No |
| MCP tool | create_graph_saved_path |
| Portal permissions | create_graph_saved_paths |
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 | GraphSavedPathCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json GraphSavedPath 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 | already_exists, 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
GraphSavedPath
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | Required | |
is_active | boolean | Required | |
name | string | Required | |
perspective | string | Required | all or executive. |
saved_path_id | string | Required | |
slug | string | Required | |
start_custom_field_template_id | string or null | Required | The register a register_row path starts at. |
start_kind | string | Required | document or register_row. |
steps | object or null | Required | The steps with their labels (format graph_saved_path_steps): the Portal's own document. |
GraphSavedPathCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | Optional | Up to 1000 characters. |
is_active | boolean or null | Optional | True when left out. |
name | string | Required | Up to 200 characters. |
perspective | string or null | Optional | all (default) or executive. |
slug | string | Required | Lower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters. |
start_custom_field_template_id | string or null | Optional | Needed for a register_row path. |
start_kind | string or null | Optional | register_row (default) or document. |
steps | object | Required | The steps (format graph_saved_path_steps): 1 to 4 of {relation_code, direction, kind, template_id}. |