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_positionobjectYes

Object with the following literal:

prev_sibling_slug string - the previous field's slug value (added field will be placed after it on the edit record layout)

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