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

Create a custom normaliser.

POST/api/v1/graph/normaliserscustom_fields:write
注記

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

Saves a recipe under a slug (lower-case letters, digits and hyphens, starting with a letter, 2 to 64 characters; 409 already_exists when taken). steps is the document the Portal's normaliser editor builds (format graph_normaliser_steps). Try it first with test_graph_normalisers. Needs Create Graph Normalisers.

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

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonGraphNormaliserCreateInput

応答​

ステータス説明本文
201Success.application/json GraphNormaliser または 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 のコードです。各コードからそのページに移動できます。

スキーマ​

GraphNormaliser​

フィールド型必須説明
descriptionstring または null必須
is_activeboolean必須
namestring必須
normaliser_idstring必須
slugstring必須
stepsobject または null必須The ordered steps (format graph_normaliser_steps): the Portal's own document.
used_byGraphUse の配列必須The fields that name the normaliser.
valuestring必須What a field's graph role names to use it: custom:<slug>.
versioninteger必須Goes up when the steps change. ≥ -2147483648; ≤ 2147483647

GraphNormaliserCreateInput​

フィールド型必須説明
descriptionstring または null任意Up to 1000 characters.
is_activeboolean または null任意True when left out.
namestring必須Up to 200 characters.
slugstring必須Lower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters.
stepsobject必須The ordered steps (format graph_normaliser_steps).

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.