Create a custom normaliser.
POST/api/v1/graph/normaliserscustom_fields:write
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.
| Scope | custom_fields:write |
| Asynchronous | No |
| MCP tool | create_graph_normaliser |
| Portal permissions | create_graph_normalisers |
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 | GraphNormaliserCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json GraphNormaliser 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
GraphNormaliser
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | Required | |
is_active | boolean | Required | |
name | string | Required | |
normaliser_id | string | Required | |
slug | string | Required | |
steps | object or null | Required | The ordered steps (format graph_normaliser_steps): the Portal's own document. |
used_by | array of GraphUse | Required | The fields that name the normaliser. |
value | string | Required | What a field's graph role names to use it: custom:<slug>. |
version | integer | Required | Goes up when the steps change. ≥ -2147483648; ≤ 2147483647 |
GraphNormaliserCreateInput
| 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. |
slug | string | Required | Lower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters. |
steps | object | Required | The ordered steps (format graph_normaliser_steps). |
GraphUse
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string or null | Required | The field; null for a template-level use. |
custom_field_template_id | string or null | Required | The template; null for a use outside a template. |
label | string | Required | The template, or the template and field, as the builder names it. |
where | string or null | Required | For a normaliser: field_role or document_link, or null. |