Fields
9 operations, generated from the OpenAPI document.
Add a field
POST /api/tables/{tableId}/fields
Access: field:create on the table (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
namestring requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requireddescriptionstringoptionsobjectpositionnumber
Responses
201Successidstring (uuid) requiredtableIdstring (uuid) requirednamestring requireddescriptionstring | null requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredoptionsany requiredisPrimaryboolean requiredpositionnumber requiredpermissionsobjecteditobject requiredallowFormsboolean
createdAtstring (date-time) requiredupdatedAtstring (date-time) requireddeletedAtstring (date-time) | null requiredrecomputingtruesyncedtrue
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Fields of a table in the trash, most recently deleted first
GET /api/tables/{tableId}/fields/trash
Access: table:read on the table (see ACTIONS for the minimum role); personal access tokens need schema.bases:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Responses
200Successfieldsarray of object requiredidstring (uuid) requiredtableIdstring (uuid) requirednamestring requireddescriptionstring | null requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredoptionsany requiredisPrimaryboolean requiredpositionnumber requiredpermissionsobjecteditobject requiredallowFormsboolean
createdAtstring (date-time) requiredupdatedAtstring (date-time) requireddeletedAtstring (date-time) | null requiredrecomputingtruesyncedtrue
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Restore a field from the trash
POST /api/tables/{tableId}/fields/{deletedFieldId}/restore
Access: field:restore on the table (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
deletedFieldId | path | string | yes |
Responses
200Successidstring (uuid) requiredtableIdstring (uuid) requirednamestring requireddescriptionstring | null requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredoptionsany requiredisPrimaryboolean requiredpositionnumber requiredpermissionsobjecteditobject requiredallowFormsboolean
createdAtstring (date-time) requiredupdatedAtstring (date-time) requireddeletedAtstring (date-time) | null requiredrecomputingtruesyncedtrue
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Rename, describe, reorder or convert a field
PATCH /api/fields/{fieldId}
Access: field:update on the field (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
fieldId | path | string | yes |
Request body
namestringtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | …descriptionstring | nulloptionsobjectpositionnumberpermissionsobjecteditobject requiredallowFormsboolean
Responses
200Successidstring (uuid) requiredtableIdstring (uuid) requirednamestring requireddescriptionstring | null requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredoptionsany requiredisPrimaryboolean requiredpositionnumber requiredpermissionsobjecteditobject requiredallowFormsboolean
createdAtstring (date-time) requiredupdatedAtstring (date-time) requireddeletedAtstring (date-time) | null requiredrecomputingtruesyncedtrue
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Move a field to the trash
DELETE /api/fields/{fieldId}
Access: field:delete on the field (see ACTIONS for the minimum role); personal access tokens need schema.bases:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
fieldId | path | string | yes |
Responses
204Success, no content401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Records a link field can link to (the record picker), by primary field
GET /api/fields/{linkFieldId}/link-candidates
Access: field:link_candidates on the field (see ACTIONS for the minimum role); personal access tokens need data.records:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
linkFieldId | path | string | yes |
search | query | string | no |
limit | query | integer | no |
offset | query | integer | no |
purpose | query | "link" | "filter" | no |
ids | query | string | no |
Responses
200SuccesstableIdstring (uuid) requiredrecordsarray of object requiredidstring (uuid) requirednamestring required
nextOffsetinteger | null required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
An AI field's generation state: counts and the records not done
GET /api/fields/{fieldId}/ai
Access: field:ai_status on the field (see ACTIONS for the minimum role); personal access tokens need data.records:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
fieldId | path | string | yes |
Responses
200SuccessfieldIdstring (uuid) requiredavailableboolean requiredcountsobject requiredpendinginteger requireddoneinteger requirederrorinteger requiredcanceledinteger required
cellsarray of object requiredrecordIdstring (uuid) requiredstatus"pending" | "done" | "error" | "canceled" requirederrorstring | null requiredupdatedAtstring required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Generate an AI field's value again for records, or for the whole field
POST /api/fields/{fieldId}/ai/generate
Access: field:ai_generate on the field (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
fieldId | path | string | yes |
Request body
object
Responses
200Successqueuedinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Stop an AI field's pending generations
POST /api/fields/{fieldId}/ai/cancel
Access: field:ai_generate on the field (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
fieldId | path | string | yes |
Responses
200Successcanceledinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)