400 error.
POST /grid/cell
Write a single cell value in A1 notation. The value can be a plain string, a number stored as a string, or a formula starting with=. If you omit value, the cell is cleared.
Request
The target cell in A1 notation (e.g.
"B4" or "AA12"). The value is uppercased automatically.The value to write. Defaults to an empty string, which clears the cell. Formulas must start with
=.Name of the sheet to target. Defaults to the currently active sheet when omitted.
Optional
{A1: int} map for optimistic-concurrency locking. Every cell carries a version counter that bumps on each commit. If the caller supplies an expected version that doesn’t match the stored version, the endpoint returns 409 Conflict with {cell, expected, actual} instead of overwriting. Useful in shared workbooks when you want to detect that someone else edited the cell since you loaded it.Response
"Success" when the cell was written without errors.The A1 address that was written (uppercased).
The name of the sheet that received the write.
Errors
| Status | Meaning |
|---|---|
400 | The target cell is locked. Unlock it before writing. |
409 | expected_versions was supplied and one of the cells has drifted. Response body is {message, cell, expected, actual}. Refetch and retry. |
Example
POST /grid/range
Write a rectangular 2-D block of values starting from a top-left anchor cell. Thevalues array maps directly onto the grid: each inner array is a row, and each element within that array is a column value.
Request
The top-left anchor cell in A1 notation (e.g.
"A1"). The range expands down and to the right based on the dimensions of values.A 2-D array where each inner array represents one row. Elements can be strings, numbers, booleans, or
null. Formulas must start with =. An empty inner array writes nothing for that row.Name of the sheet to target. Defaults to the currently active sheet when omitted.
Response
"Success" when the entire range was written without errors.The anchor cell that was used (uppercased).
The name of the sheet that received the write.
Errors
| Status | Meaning |
|---|---|
400 | One or more cells in the target range are locked. No partial writes are made. |
Example
Rows in
values can be of different lengths. Shorter rows simply write fewer columns; they do not clear cells to the right of the last element in that row.