curl --request POST \
--url https://tables-api.softr.io/api/v1/databases/{databaseId}/tables/{tableId}/fields \
--header 'Content-Type: application/json' \
--header 'Softr-Api-Key: <api-key>' \
--data '
{
"name": "<string>",
"type": "<string>",
"options": {}
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"type": "SINGLE_LINE_TEXT",
"options": {},
"allowMultipleEntries": true,
"readonly": true,
"required": true,
"locked": true,
"defaultValue": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Add a new field to a table.
curl --request POST \
--url https://tables-api.softr.io/api/v1/databases/{databaseId}/tables/{tableId}/fields \
--header 'Content-Type: application/json' \
--header 'Softr-Api-Key: <api-key>' \
--data '
{
"name": "<string>",
"type": "<string>",
"options": {}
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"type": "SINGLE_LINE_TEXT",
"options": {},
"allowMultipleEntries": true,
"readonly": true,
"required": true,
"locked": true,
"defaultValue": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}The newly created field.
Show child attributes
The type of the field.
SINGLE_LINE_TEXT, CHECKBOX, CURRENCY, DATETIME, DURATION, EMAIL, SELECT, NUMBER, ATTACHMENT, RATING, LINKED_RECORD, LONG_TEXT, URL, PERCENT, BUTTON, PROGRESS, PHONE, DATE_RANGE, ADDRESS, TIME, LOOKUP, ROLLUP, FORMULA, COUNT, CREATED_AT, UPDATED_AT, CREATED_BY, UPDATED_BY, AUTONUMBER, RECORD_ID, USER Configuration options for the field, specific to its type. See the official documentation for the structure of each type.