Rename Worksheets

PUT /api/spreadsheet/renameworksheet

Input example (JSON)

{
"id": "some_id",
"filename": "test",
"extension": "xls",
"index": 0,
"oldname": "Sheet1",
"newname": "NewSheet"
}

Description: Renames an existing worksheet.

JSON fields

  • id - an identifier of a session to which the document has been loaded. This parameter's value is returned by the request used to create or load the document.

  • filename - a string value that specifies the file name of the document to which the renamed worksheet belongs.

  • extension - a string value that specifies the file extension of the document to which the renamed worksheet belongs. The supported file extensions are: OPENXML (XLSX), XLS and CSV.

  • index - a zero-based index of the renamed worksheet.

  • oldname - a string value that specifies the old name of the renamed worksheet.

  • newname - a string value that specifies the new name of the renamed worksheet.