Skip to main content
PUT
Set Entity Type Field Formula

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Team-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Team keys must allow every team checked by the request. OAuth access depends on the user’s roles and resource access.
  • Change how a field in a team’s database gets its value: The permission is checked on the team that owns the field’s database. A caller admitted to the database only through a share cannot change its formulas.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the entity type field on the type that defines it. A field a type inherits takes its formula from the parent's placement.

Body

application/json
valueSource
enum<string>

ENTERED (callers write the value), COMPUTED (formula owns the value) or AUTO_NUMBER (a counter numbers each record).

Available options:
FIELD_VALUE_SOURCE_UNSPECIFIED,
FIELD_VALUE_SOURCE_ENTERED,
FIELD_VALUE_SOURCE_COMPUTED,
FIELD_VALUE_SOURCE_AUTO_NUMBER
formula
string | null

The formula. Required when value_source is COMPUTED; refused otherwise.

defaultFormula
string | null

A formula that fills the field on create when the caller leaves it empty. ENTERED only; omit to clear the field's default.

autoNumber
AutoNumberSettings · object | null

How an auto-numbered field builds its values: the prefix followed by the next number, zero-padded to digits.

Response

200 - application/json

Success

data
data · object

The field as saved.