--- sidebar_position: 2 description: Modify field and other functions to work with Airtable in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Airtable] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Modify field Changes the name and/or description of an existing table field `Function ModifyField(Val Token, Val Base, Val Table, Val Field, Val Name = "", Val Description = "") Export` | Parameter | CLI option | Type | Required | Description | |-|-|-|-|-| | Token | --token | String | ✔ | Token | | Base | --base | String | ✔ | Base identifier Base | | Table | --table | String | ✔ | Table identifier | | Field | --field | String | ✔ | Field identifier | | Name | --title | String | ✖ | New name | | Description | --description | String | ✖ | New description | Returns: Map Of KeyAndValue - serialized JSON response from Airtable
```bsl title="1C:Enterprise/OneScript code example" Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d..."; Base = "appTFxTxSGl5JIIYT"; Table = "tblm1MzAyPSjSsFXY"; Field = "fldYvzX2kFO679rvx"; Name = String(New UUID) + "(change.)"; Description = "New description"; Result = OPI_Airtable.ModifyField(Token, Base, Table, Field, Name, Description); ``` ```bash oint airtable ModifyField \ --token "***" \ --base "appQFQC69PgTWgYn4" \ --table "tblQcww7iFM3uuyCE" \ --field "fldqGSPeJZgi24DEm" \ --title "f343cd42-9830-434a-a185-59e6aa1b7fc4(change.)" \ --description "New description" ``` ```batch oint airtable ModifyField ^ --token "***" ^ --base "appQFQC69PgTWgYn4" ^ --table "tblQcww7iFM3uuyCE" ^ --field "fldqGSPeJZgi24DEm" ^ --title "f343cd42-9830-434a-a185-59e6aa1b7fc4(change.)" ^ --description "New description" ``` ```json title="Result" { "type": "number", "options": { "precision": 0 }, "id": "fldhZ4muaCvM9xCFW", "name": "401e2f24-135a-470e-96c7-9e979faeb1b6(change.)", "description": "New description" } ```