Skip to main content

Change spreadsheet name

Changes the name of the existing spreadsheet

Function EditSpreadsheetTitle(Val Token, Val Spreadsheet, Val Name) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Spreadsheet--spreadsheetStringSpreadsheetID
Name--titleStringNew name

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token       = "ya29.a0ARW5m7702-Ib_bOq69krqD5iUx89SC2lxGPxRJoBjqvSBqE7uKghOyAjwrL7ebNf6xqPzwD4wQfZlFvBrb7QsWlw5PGW_SvkFr57Y8Js...";
Spreadsheet = "1DoHoA-PGU3xsThA9Uh_rb_oHNpCXhKH0DkirmHTIo9I";
Name = "Test table (changed.)";

Result = OPI_GoogleSheets.EditSpreadsheetTitle(Token, Spreadsheet, Name);
    oint gsheets EditSpreadsheetTitle \
--token "***" \
--spreadsheet "1hi4khP9WsocSCTV4SC2ZBjjFUQS15aF8hO_aXVhz3z4" \
--title "Test table (changed.)"
Result
{
"spreadsheetId": "1psqJkXdtlHOc7Qzr4ficNkFth5dWLl0HdmMDhSTM7ZQ",
"replies": [
{}
]
}