1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-25 12:24:39 +02:00

117 lines
2.1 KiB
Plaintext
Raw Normal View History

2024-10-15 10:16:04 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
---
sidebar_position: 2
---
# 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 | 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
<br/>
```bsl title="Code example"
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appESy99HYCLbuWlV";
Table = "tbl5gZLQ8i5xKuVTy";
Name = "Test table 2 (change.)";
Description = "New table (change.)";
Result = OPI_Airtable.ModifyTable(Token, Base, Table, Name, Description);
```
```json title="Result"
{
"id": "tbl1ECxOLd4V6OM9T",
"name": "Test table 2 (change.)",
"description": "New table (change.)",
"primaryFieldId": "fldhWwOjg9UhvJ6A2",
"fields": [
{
"id": "fldhWwOjg9UhvJ6A2",
"name": "Number",
"type": "number",
"options": {
"precision": 0
}
},
{
"id": "fld8KaCe62SjwSYAk",
"name": "String",
"type": "richText"
},
{
"id": "fldSWB4hUUyP5Hx30",
"name": "Attachment",
"type": "multipleAttachments",
"options": {
"isReversed": false
}
},
{
"id": "fld7UipYF2w9FsoRm",
"name": "Checkbox",
"type": "checkbox",
"options": {
"icon": "check",
"color": "yellowBright"
}
},
{
"id": "fldHVbDsv6ndNp2XZ",
"name": "Date",
"type": "date",
"options": {
"dateFormat": {
"name": "iso",
"format": "YYYY-MM-DD"
}
}
},
{
"id": "fldYL0IFRMVQCO7gW",
"name": "Phone",
"type": "phoneNumber"
},
{
"id": "fldzsmOGCGjThDsUp",
"name": "Email",
"type": "email"
},
{
"id": "fldMWVcVuR9CmKBcD",
"name": "Link",
"type": "url"
}
],
"views": [
{
"id": "viwMlZ7T3KyjEufmW",
"name": "Grid view",
"type": "grid"
}
]
}
```