GET /api/workbook
Retrieve the current workbook’s name, the list of all sheet names, and which sheet is currently active. Use this to sync your client state before making structural changes.Response
The display name of the open workbook.
The name of the sheet that is currently active.
Ordered list of all sheet names in the workbook.
Example
POST /workbook/sheet
Create a new sheet in the workbook. If you omitname, GridOS generates one automatically (e.g. Sheet2). The new sheet is added to the end of the sheet list but does not become the active sheet automatically.
Request
The desired name for the new sheet. Must be unique within the workbook. If omitted, a name is auto-generated.
Response
The name of the newly created sheet.
Updated ordered list of all sheet names.
The sheet that is currently active (unchanged by this call).
Example
POST /workbook/sheet/rename
Rename an existing sheet. All internal references and chart associations follow the rename automatically.Request
The current name of the sheet to rename.
The replacement name. Must be unique within the workbook.
Response
The new name of the renamed sheet.
Updated ordered list of all sheet names.
The currently active sheet (updated to the new name if the active sheet was renamed).
Example
POST /workbook/sheet/activate
Switch the active sheet. Subsequent agent calls and grid reads that do not specify asheet parameter will target this sheet.
Request
The name of the sheet to make active. The sheet must already exist.
Response
The name of the now-active sheet.
Current ordered list of all sheet names.
The name of the active sheet (same as
sheet).Example
Activating a sheet does not modify any cell data. It only changes the default target for subsequent API calls that omit the
sheet parameter.POST /workbook/rename
Rename the workbook itself. The new name is reflected in file exports and the workbook UI header.Request
The new display name for the workbook. Must be a non-empty string.
Response
The updated workbook name.
Errors
| Status | Meaning |
|---|---|
400 | The provided name is invalid (e.g. empty string). |