1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-09 13:47:03 +02:00

50 lines
1.2 KiB
Markdown
Raw Normal View History

---
sidebar_position: 3
---
# Change spreadsheet name
Changes the name of the existing spreadsheet
2024-07-10 13:58:29 +03:00
`Function EditSpreadsheetTitle(Val Token, Val Spreadsheet, Val Name) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Spreadsheet | --spreadsheet | String | SpreadsheetID |
| Name | --title | String | New name |
Returns: Map Of KeyAndValue - serialized JSON response from Google
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-13 01:45:32 +03:00
Token = "ya29.a0AcM612w6SWzMf3Ti1dSiFdgdLdXxLBjzKdXoLGuGDHoSXzb0uAKe5hJ-HPz1Njyp7HuHE6NnMnevQwbo0AR-yPAwfrA1OsMFZ_Fac2ASn...";
Spreadsheet = "1byey4pYpbD_Bmh0c49QYSEfwkqTUwcTIqhMtrDyq7vQ";
2024-09-29 00:25:48 +03:00
Name = "Test table (changed.)";
Result = OPI_GoogleSheets.EditSpreadsheetTitle(Token, Spreadsheet, Name);
```
```sh title="CLI command example"
oint gsheets EditSpreadsheetTitle --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --title "Test table (changed.)"
```
```json title="Result"
2024-09-29 21:40:58 +03:00
{
2024-10-09 09:42:00 +03:00
"spreadsheetId": "1psqJkXdtlHOc7Qzr4ficNkFth5dWLl0HdmMDhSTM7ZQ",
2024-09-29 21:40:58 +03:00
"replies": [
{}
]
}
```