Edit a live sheet
Change cells and/or the row order of one tab of a live sheet (tab_id from documents.sheet_read, default the first tab) and fan the change out to everyone currently editing it. With tab_name the tab tab_id is created at the end if missing or renamed, in the same call as its cells. delete_tab_ids removes tabs with their rows and styles, in a call of its own; one tab always stays. Pass expected_content_hash from documents.sheet_read to be rejected with live_edit_conflict instead of overwriting a concurrent change; the hash covers all tabs. formats patches the style of cells, rows or whole columns (style null clears it) and conditional_formats replaces the tab's conditional rules; neither changes the content_hash. Browser keystrokes reach the server with up to ~2s delay, so they can be invisible to the hash check; the CRDT still merges them conflict-free.
Authorization
bearerApiKey Create a scoped API key in the Adlass settings.
In: header
Path Parameters
Resource identifier: document_id.
uuidHeader Parameters
Optional correlation identifier.
length <= 128A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.
1 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PATCH "https://example.com/documents/123e4567-e89b-42d3-a456-426614174000/sheet" \ -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \ -H "Content-Type: application/json" \ -d '{}'{ "document_id": "123e4567-e89b-42d3-a456-426614174000", "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b", "changed": false}