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-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | GraphNormaliserCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json GraphNormaliser または 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 のコードです。各コードからそのページに移動できます。
スキーマ
GraphNormaliser
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string または null | 必須 | |
is_active | boolean | 必須 | |
name | string | 必須 | |
normaliser_id | string | 必須 | |
slug | string | 必須 | |
steps | object または null | 必須 | The ordered steps (format graph_normaliser_steps): the Portal's own document. |
used_by | GraphUse の配列 | 必須 | The fields that name the normaliser. |
value | string | 必須 | What a field's graph role names to use it: custom:<slug>. |
version | integer | 必須 | Goes up when the steps change. ≥ -2147483648; ≤ 2147483647 |
GraphNormaliserCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string または null | 任意 | Up to 1000 characters. |
is_active | boolean または null | 任意 | True when left out. |
name | string | 必須 | Up to 200 characters. |
slug | string | 必須 | Lower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters. |
steps | object | 必須 | The ordered steps (format graph_normaliser_steps). |
GraphUse
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_id | string または null | 必須 | The field; null for a template-level use. |
custom_field_template_id | string または null | 必須 | The template; null for a use outside a template. |
label | string | 必須 | The template, or the template and field, as the builder names it. |
where | string または null | 必須 | For a normaliser: field_role or document_link, or null. |