Save a graph path.
POST/api/v1/graph/saved-pathscustom_fields:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | custom_fields:write |
| 非同期 | いいえ |
| MCP ツール | create_graph_saved_path |
| Portal の権限 | create_graph_saved_paths |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | GraphSavedPathCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json GraphSavedPath または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
GraphSavedPath
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string または null | 必須 | |
is_active | boolean | 必須 | |
name | string | 必須 | |
perspective | string | 必須 | all or executive. |
saved_path_id | string | 必須 | |
slug | string | 必須 | |
start_custom_field_template_id | string または null | 必須 | The register a register_row path starts at. |
start_kind | string | 必須 | document or register_row. |
steps | object または null | 必須 | The steps with their labels (format graph_saved_path_steps): the Portal's own document. |
GraphSavedPathCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string または null | 任意 | Up to 1000 characters. |
is_active | boolean または null | 任意 | True when left out. |
name | string | 必須 | Up to 200 characters. |
perspective | string または null | 任意 | all (default) or executive. |
slug | string | 必須 | Lower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters. |
start_custom_field_template_id | string または null | 任意 | Needed for a register_row path. |
start_kind | string または null | 任意 | register_row (default) or document. |
steps | object | 必須 | The steps (format graph_saved_path_steps): 1 to 4 of {relation_code, direction, kind, template_id}. |