Skip to main content

Add Field

POST

https://app.smartsuite.com/api/v1/applications/[tableId]/add_field/

Creates a field in the specified Table (App).

Example Request

curl -X POST https://app.smartsuite.com/api/v1/applications/646536cac79b49252b0f94f5/add_field/ \
-H "Authorization: Token YOUR_API_KEY" \
-H "ACCOUNT-ID: WORKSPACE_ID" \
-H "Content-Type: application/json" \
--data '{
"field": {
"slug": "[Random 10 digit alphanumeric value]",
"label": "[Field Name]",
"field_type": "[Field Type]",
"params": {
[Field-Specific Parameters]
},
"is_new": true
},
"field_position": {
"prev_sibling_slug": "[Previous Field Slug (or null)]"
},
"auto_fill_structure_layout": true
}'

Path Parameters​

ParamTypeDescription
tableIdstringThe Id of the Table in which to create the field.

Request Body​

ParamTypeOptionalDescription
fieldobjectNoA field object. See Definition
field_positionobjectNo

Required. Omitting it returns 400.

Object with the following literal:

prev_sibling_slug string - the previous field's slug value. Note: this value is currently ignored, and new fields are always added at the end of the Table's fields.

"prev_sibling_slug": "[Previous Field Slug (or null)]"
auto_fill_structure_layoutbooleanYes
Note

The field definition is wrapped in a field key. Update Field is different: it takes the bare field object, with no wrapper.

Response​

Returns 200 OK with an empty body. The new field is not echoed back; use Get Table to read the stored field definition.