v1

latestOpenAPI 3.0.02026-07-2638801.8 MB
plan

Generate calculation plan for converting the field

put/table/{tableId}/field/{fieldId}/plan

Path parameters

tableIdstring required
fieldIdstring required

Request body

type'singleLineText' | 'longText' | 'user' | 'attachment' | 'checkbox' | 'multipleSelect' | 'singleSelect' | 'date' | 'number' | 'rating' | 'formula' | 'rollup' | 'conditionalRollup' | 'link' | 'createdTime' | 'lastModifiedTime' | 'createdBy' | 'lastModifiedBy' | 'autoNumber' | 'button' required

The field types supported by teable.

namestring
uniqueboolean

Whether this field is not unique.

notNullboolean

Whether this field is not null.

dbFieldNamestring

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.

isLookupboolean

Whether this field is lookup field. witch means cellValue and [fieldType] is looked up from the linked table.

isConditionalLookupboolean

Whether this lookup field applies a conditional filter when resolving linked records.

descriptionstring nullable

The description of the field.

Example request

{
  "type": "singleSelect",
  "description": "this is a summary"
}

Response

Returns the calculation plan

estimateTimenumber
updateCellCountnumber
linkFieldCountnumber
skipboolean