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
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
Example
POST /workbook/sheet/rename
Rename an existing sheet. All internal references and chart associations follow the rename automatically.Request
Response
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
Response
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.