Validate a value against a dtype

POST /Platform/dtypes/validate

Validate a value against a dtype.

dtype uses the Python dtype class name (== the @hilus/ui registry key): email, phonenumber, color, scheduling_rule, hql_query, url, integer, ...

Returns {valid, normalized, failures} where normalized is the value the dtype would actually store (e.g. e164 phone numbers, normalized hex colors).

Validation never stores the value. A few dtypes check differently:

A handle of dtype itself (markdown-… for markdown) is read like any handle: one you cannot see is invalid exactly as one that does not exist. A handle of another dtype is plain text here.

Body parameters

Returns

DtypeValidateResult

Example request

curl -X POST "https://api.hilus.ai/Platform/dtypes/validate" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'