Skip to main content

Try a normaliser on values.

POST/api/v1/graph/normalisers/testcustom_fields:read

Runs a recipe over values and answers each value's key with the per-step trace, and the groups of values that now share a key. Name the recipe by steps (a draft), by slug (a stored one) or by builtin (with pattern for regex); name the values by values or by sample_from, the latest distinct values a register field holds, read through the caller's row access. stop_list and missing_markers_list name lookup lists. Writes nothing. Needs Test Graph Normalisers, and View Graph Normalisers to name a stored recipe by slug.

Scopecustom_fields:read
AsynchronousNo
MCP tooltest_graph_normalisers
Portal permissionstest_graph_normalisers

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonGraphNormaliserTestInput

Responses​

StatusDescriptionBody
200Success.application/json GraphNormaliserTestResult
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
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​

GraphNormaliserTestInput​

FieldTypeRequiredDescription
builtinstring or nullOptionalA built-in normaliser.
missing_markers_liststring or nullOptionalThe lookup list of values that count as missing.
patternstring or nullOptionalThe pattern of the regex built-in.
sample_fromGraphSampleFromInput or nullOptionalTake the values from a register field instead.
slugstring or nullOptionalA stored recipe.
stepsobject or nullOptionalA draft recipe (format graph_normaliser_steps).
stop_liststring or nullOptionalThe lookup list of stop words.
valuesarray of stringOptionalThe values to try, up to 200.

GraphNormaliserTestResult​

FieldTypeRequiredDescription
namestringRequiredThe recipe's name.
resultobjectRequiredEach value's key with the per-step trace, and the groups of values that now share a key (format graph_normaliser_test): the Portal's own document.
versionintegerRequired≥ -2147483648; ≤ 2147483647
was_sampledbooleanRequiredThe values were read from sample_from.

GraphSampleFromInput​

FieldTypeRequiredDescription
custom_field_idstringRequired
custom_field_template_idstringRequired
limitinteger or nullOptional1 to 100; 20 when left out.