Create field
Create a new field in the specified table with the given configuration
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
The field types supported by teable.
singleLineText
, longText
, user
, attachment
, checkbox
, multipleSelect
, singleSelect
, date
, number
, duration
, rating
, formula
, rollup
, count
, link
, createdTime
, lastModifiedTime
, createdBy
, lastModifiedBy
, autoNumber
, button
The name of the field. can not be duplicated in the table.
1
Whether this field is not unique.
Whether this field is not null.
Field(column) name in backend database. Limitation: 1-63 characters, can only contain letters, numbers and underscore, case sensitive, cannot be duplicated with existing db field name in the table.
1
Whether this field is lookup field. witch means cellValue and [fieldType] is looked up from the linked table.
The description of the field.
The lookup options for field, you need to configure it when isLookup attribute is true or field type is rollup.
The options of the field. The configuration of the field's options depend on the it's specific type.
The id of the field that start with "fld", followed by exactly 16 alphanumeric characters /^fld[\da-zA-Z]{16}$/
. It is sometimes useful to specify an id at creation time
Response
The id of the field.
The name of the field. can not be duplicated in the table.
The field types supported by teable.
singleLineText
, longText
, user
, attachment
, checkbox
, multipleSelect
, singleSelect
, date
, number
, duration
, rating
, formula
, rollup
, count
, link
, createdTime
, lastModifiedTime
, createdBy
, lastModifiedBy
, autoNumber
, button
The configuration options of the field. The structure of the field's options depend on the field's type.
The cell value type of the field.
string
, number
, boolean
, dateTime
The field type of database that cellValue really store.
TEXT
, INTEGER
, DATETIME
, REAL
, BLOB
, JSON
, BOOLEAN
Field(column) name in backend database. Limitation: 1-63 characters, can only contain letters, numbers and underscore, case sensitive, cannot be duplicated with existing db field name in the table.
1
The description of the field.
Whether this field is lookup field. witch means cellValue and [fieldType] is looked up from the linked table.
field lookup options.
Whether this field is not null.
Whether this field is not unique.
Whether this field is primary field.
Whether this field is computed field, you can not modify cellValue in computed field.
Whether this field's calculation is pending.
Whether This field has a configuration error. Check the fields referenced by this field's formula or configuration.
Whether this field has multiple cell value.