Modify table
Changes the name and/or description of the base
Function ModifyTable(Val Token, Val Base, Val Table, Val Name = "", Val Description = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Base | --base | String | ✔ | Base identifier |
| Table | --table | String | ✔ | Table identifier |
| Name | --title | String | ✖ | New name |
| Description | --description | String | ✖ | New description |
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
1C:Enterprise/OneScript code example
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "apppSUqWfuxL53HHT";
Table = "tbl4oOxSHEcqPx92T";
Name = "Test table 2 (change.)";
Description = "New table (change.)";
Result = OPI_Airtable.ModifyTable(Token, Base, Table, Name, Description);
- Bash
- CMD/Bat
oint airtable ModifyTable \
--token "***" \
--base "appSvHTETQWodBcs7" \
--table "tblyaw6xgylz1eTkq" \
--title "Test table 2 (change.)" \
--description "New table (change.)"
oint airtable ModifyTable ^
--token "***" ^
--base "appSvHTETQWodBcs7" ^
--table "tblyaw6xgylz1eTkq" ^
--title "Test table 2 (change.)" ^
--description "New table (change.)"
Result
{
"id": "tblFGmvh2eldM8MuJ",
"name": "Test table 2 (change.)",
"description": "New table (change.)",
"primaryFieldId": "fld1kKzxt28cIDzux",
"fields": [
{
"id": "fld1kKzxt28cIDzux",
"name": "Number",
"type": "number",
"options": {
"precision": 0
}
},
{
"id": "fldjieUsYGSL73qDH",
"name": "String",
"type": "richText"
},
{
"id": "fldItQcyt2WEmekDf",
"name": "Attachment",
"type": "multipleAttachments",
"options": {
"isReversed": false
}
},
{
"id": "fldy4khNYN61zgLDj",
"name": "Checkbox",
"type": "checkbox",
"options": {
"icon": "check",
"color": "yellowBright"
}
},
{
"id": "fldCRwZg78blnLBKR",
"name": "Date",
"type": "date",
"options": {
"dateFormat": {
"name": "iso",
"format": "YYYY-MM-DD"
}
}
},
{
"id": "flduzins1JK2gMiic",
"name": "Phone",
"type": "phoneNumber"
},
{
"id": "fldnvhvU28VChSI9M",
"name": "Email",
"type": "email"
},
{
"id": "fldE6Gk8RkbFJJ7dl",
"name": "Link",
"type": "url"
}
],
"views": [
{
"id": "viwlQRgfIzFb70qMw",
"name": "Grid view",
"type": "grid"
}
]
}