Skip to main content

Change a custom normaliser.

PATCH/api/v1/graph/normalisers/{normaliser_id}custom_fields:write

A merge patch. Its version goes up when its steps change. The slug can change only while no field names the normaliser (409 conflict otherwise, naming the fields). preview_graph_normaliser shows what a change would do to the keys already written. Needs Edit Graph Normalisers.

Scopecustom_fields:write
AsynchronousNo
MCP toolupdate_graph_normaliser
Portal permissionsedit_graph_normalisers

Parameters​

NameInTypeRequiredDescription
normaliser_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonGraphNormaliserPatchInput
application/merge-patch+jsonGraphNormaliserPatchInput

Responses​

StatusDescriptionBody
200Success.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
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_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

GraphNormaliserPatchInput​

FieldTypeRequiredDescription
descriptionstring or nullOptional
is_activeboolean or nullOptional
namestring or nullOptional
normaliser_idstring or nullOptional
slugstring or nullOptional
stepsobject or nullOptional
used_byarray of GraphUseInput or nullOptional
valuestring or nullOptional
versioninteger or nullOptional

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.

GraphUseInput​

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