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
string
required
The target cell in A1 notation (e.g.
"B4" or "AA12"). The value is uppercased automatically.string
The value to write. Defaults to an empty string, which clears the cell. Formulas must start with
=.string
Name of the sheet to target. Defaults to the currently active sheet when omitted.
object
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
string
"Success" when the cell was written without errors.string
The A1 address that was written (uppercased).
string
The name of the sheet that received the write.
Errors
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
string
required
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.array of arrays
required
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.string
Name of the sheet to target. Defaults to the currently active sheet when omitted.
Response
string
"Success" when the entire range was written without errors.string
The anchor cell that was used (uppercased).
string
The name of the sheet that received the write.
Errors
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.