Documents

Edit a live sheet

PATCH
/documents/{document_id}/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
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

document_id*string

Resource identifier: document_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128
Idempotency-Key?string

A 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.

Length1 <= length <= 200

Request 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}