メインコンテンツまでスキップ

Create a relation type.

POST/api/v1/graph/relation-typescustom_fields:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Adds a relation type under a code of 2 to 40 capital letters, digits and underscores starting with a letter (409 already_exists when taken). from_kinds and to_kinds hold document and/or register_row. Needs Create Graph Relation Types.

スコープcustom_fields:write
非同期いいえ
MCP ツールcreate_graph_relation_type
Portal の権限create_graph_relation_types

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonGraphRelationTypeCreateInput

応答​

ステータス説明本文
201Success.application/json GraphRelationType または 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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

GraphRelationType​

フィールド型必須説明
categorystring または null必須
colorstring または null必須
decision_categorystring または null必須
derivationstring または null必須Set for a relation type the engine derives (it cannot be deleted).
external_codestring または null必須
from_kindsstring の配列必須What the relation can start from: document, register_row.
impact_directionstring または null必須Set with impact_weight.
impact_weightnumber または null必須Above 0 up to 1, for an impact edge; null when the relation is not one.
inverse_labelstring または null必須How the relation reads from the other end; null when it reads the same.
is_activeboolean必須
is_symmetricboolean必須
is_transitiveboolean必須
labelstring必須
navigation_audiencestring または null必須Who sees the relation when navigating: all or analyst.
relation_type_idstring必須The code, 2 to 40 capital letters, digits and underscores.
to_custom_field_template_idstring または null必須The register a relation ends at, when it is fixed.
to_kindsstring の配列必須What the relation can end at: document, register_row.
used_byGraphUse の配列必須The fields and templates configured to use the relation type.

GraphRelationTypeCreateInput​

フィールド型必須説明
categorystring または null任意Up to 40 characters.
colorstring または null任意Up to 20 characters.
decision_categorystring または null任意
external_codestring または null任意Up to 100 characters.
from_kindsstring の配列任意document and/or register_row. Both when left out.
impact_directionstring または null任意
impact_weightnumber または null任意Above 0 up to 1; send with impact_direction.
inverse_labelstring または null任意Up to 100 characters.
is_activeboolean または null任意True when left out.
is_symmetricboolean または null任意False when left out.
is_transitiveboolean または null任意False when left out.
labelstring必須Up to 100 characters.
navigation_audiencestring または null任意all or analyst.
relation_type_idstring必須The code: 2 to 40 capital letters, digits and underscores, starting with a letter.
to_custom_field_template_idstring または null任意
to_kindsstring の配列任意document and/or register_row. Both when left out.

GraphUse​

フィールド型必須説明
custom_field_idstring または null必須The field; null for a template-level use.
custom_field_template_idstring または null必須The template; null for a use outside a template.
labelstring必須The template, or the template and field, as the builder names it.
wherestring または null必須For a normaliser: field_role or document_link, or null.