Change spreadsheet name
Changes the name of the existing spreadsheet
Function EditSpreadsheetTitle(Val Token, Val Spreadsheet, Val Name) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Spreadsheet | --spreadsheet | String | ✔ | SpreadsheetID |
Name | --title | String | ✔ | New name |
Returns: Map Of KeyAndValue - serialized JSON response from Google
1C:Enterprise/OneScript code example
Token = "ya29.a0AW4XtxgOTUonqiJAYqYtxcBh8MI1VxhOH0B9hCii3RQaZlp1PVWulwBqV-y7CkKAad7Ofs4NlHXhJ3-Qe1lj4xEd-ubK_QpjEkbdCVoUW...";
Spreadsheet = "1mzZ4_JqvwJg8VmxpqhH2WZEZRxqn7cJEV4ytH9tTYqA";
Name = "Test table (changed.)";
Result = OPI_GoogleSheets.EditSpreadsheetTitle(Token, Spreadsheet, Name);
- Bash
- CMD/Bat
oint gsheets EditSpreadsheetTitle \
--token "***" \
--spreadsheet "10yVQ5s01O1MOj_uELg_EqlcA_gzcCsIgYaVSuUNh0Qo" \
--title "Test table (changed.)"
oint gsheets EditSpreadsheetTitle ^
--token "***" ^
--spreadsheet "10yVQ5s01O1MOj_uELg_EqlcA_gzcCsIgYaVSuUNh0Qo" ^
--title "Test table (changed.)"
Result
{
"spreadsheetId": "1psqJkXdtlHOc7Qzr4ficNkFth5dWLl0HdmMDhSTM7ZQ",
"replies": [
{}
]
}