Skip to main content

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.

Scopecustom_fields:write
AsynchronousNo
MCP toolcreate_graph_normaliser
Portal permissionscreate_graph_normalisers

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonGraphNormaliserCreateInput

Responses​

StatusDescriptionBody
201Success.application/json GraphNormaliser or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GraphNormaliser​

FieldTypeRequiredDescription
descriptionstring or nullRequired
is_activebooleanRequired
namestringRequired
normaliser_idstringRequired
slugstringRequired
stepsobject or nullRequiredThe ordered steps (format graph_normaliser_steps): the Portal's own document.
used_byarray of GraphUseRequiredThe fields that name the normaliser.
valuestringRequiredWhat a field's graph role names to use it: custom:<slug>.
versionintegerRequiredGoes up when the steps change. ≥ -2147483648; ≤ 2147483647

GraphNormaliserCreateInput​

FieldTypeRequiredDescription
descriptionstring or nullOptionalUp to 1000 characters.
is_activeboolean or nullOptionalTrue when left out.
namestringRequiredUp to 200 characters.
slugstringRequiredLower-case letters, digits and hyphens, starting with a letter; 2 to 64 characters.
stepsobjectRequiredThe ordered steps (format graph_normaliser_steps).

GraphUse​

FieldTypeRequiredDescription
custom_field_idstring or nullRequiredThe field; null for a template-level use.
custom_field_template_idstring or nullRequiredThe template; null for a use outside a template.
labelstringRequiredThe template, or the template and field, as the builder names it.
wherestring or nullRequiredFor a normaliser: field_role or document_link, or null.