Skip to main content
PATCH

Clearing metadata values

To clear label, description, groupLabel, format, aiContext, synonyms, or sampleValues, send null or an empty string (""). drillFields works differently: null reverts the field to the view’s default drill fields, while an empty list ([]) or an empty string removes drill entirely. Timeframe fields (for example, created_at[date]) and a composite topic’s shared fields can’t be cleared this way and will result in an error.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

modelId
string<uuid>
required

The ID of the model.

Example:

"123e4567-e89b-12d3-a456-426614174000"

viewName
string
required

The name of the view that contains the field.

Example:

"orders"

fieldName
string
required

The name of the field to update.

Example:

"total_amount"

Query Parameters

branch_id
string<uuid>

Branch ID to use for branch-aware operations

Example:

"123e4567-e89b-12d3-a456-426614174001"

Body

application/json
aiContext
string

AI context for the field; null or an empty string clears it

allValues

Deprecated: use sampleValues instead. An array, or a comma-separated string; null or an empty string clears them.

binBoundaries

Bin boundaries for binned fields; an array of numbers, or a comma-separated string

binLabels

Labels for bins; an array, or a JSON-encoded array

description
string

Field description. Pass as null or an empty string to clear.

drillFields

Drill-down fields as an array or a comma-separated string.

Pass an empty list or string to remove drilling, and null to revert to the view's default.

elseRawValue

For grouped fields, values that don't match a group keep their original value instead of elseValue.

elseValue
string

Else value for grouped fields

filters

Filters for the field, keyed by filter ID.

format
string

Field format. Pass as null or an empty string to clear.

groupFilters

Group filters, one filter per entry in groupNames.

groupLabel
string

Group label. Pass as null or an empty string to clear.

groupNames

Group names

hidden

Whether the field is hidden

ignored

Whether the field is ignored

isCalc

Whether this is a calculation field

label
string

Field label. Pass as null or an empty string to clear.

newFieldName
string

New field name (for rename)

newViewName
string

New view name (for move)

Example:

"orders"

sampleValues

Sample values for the field as an array or a comma-separated string. Pass as null or an empty string to clear.

sql
string

SQL expression for the field

synonyms

Synonyms for the field as an array or a comma-separated string. Pass as null or an empty string to clear.

tags

Tags for the field as an array or a comma-separated string.

topicContext
string

Topic context for the field

Response

Field updated successfully

success
boolean
Example:

true