Preview Model
Previews the fields a model exposes without saving the model.
The response contains the previewed model, including the fields it exposes.
With async=true, the response contains a job instead; poll the job until it
completes to retrieve the field list.
The model is not saved, and policies and labels are ignored. Use this
endpoint to validate a query or configuration before calling
POST /api/models to save it.
Field type overrides
Use field_overrides to choose types for detected source fields on CSV file,
HTTP API, Google Sheets, and MongoDB models. Other model types reject overrides.
Keep additional_fields for user-defined fields.
For example, include this fragment in a complete model request to treat amount
as a number:
Use fields separately to choose which fields to publish. The response’s
fields[].type contains each published field’s effective type.
On update, only supplied override entries change types. Omitted entries, an
empty map, or null preserve current types, including types chosen in the UI.
Removing an entry does not restore its inferred type; supply another concrete
type to change it. There is no separate inferred-type or override-state map in
the response.
Authentication
Basic organization-scoped API key
Headers
Query parameters
Request
User-defined fields to add to the model alongside its source fields
Type updates keyed by exact source field name, for models that support type selection. Applies only to detected source fields and does not publish them. Omitted entries retain their current types; an empty or omitted map leaves all types unchanged.
Technical/source field names to publish in the model. Use source names, not model-field UUIDs or display labels. For example, use dealname rather than Deal Name. Omit or pass an empty array to publish all standard source fields.
Ignored for user and organization-scoped API keys, which always act in their own organization
Permissions policy IDs applied to the model. On update, a non-empty list replaces the model’s policies and an empty or omitted list leaves them unchanged.
Deprecated; ignored
