Documents

Edit a whiteboard

POST
/documents/{document_id}/whiteboard/edit

Change a whiteboard in one atomic call of up to 200 ops: add, update, move and delete elements (post-its, cards, routine tiles, integration icons, connectors and more), add/update/delete items of list elements, add/rename/delete levels (a level is reached through its portal). Everyone viewing the board sees the change at once. Read documents.whiteboard_read first; read_docs("whiteboard") for element fields and placement. Before your first change to a whiteboard in this conversation, call documents.whiteboard_open and open its url in the user's browser so the user watches the board change live. Do not open it again if you already did earlier in the conversation.

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 POST "https://example.com/documents/123e4567-e89b-42d3-a456-426614174000/whiteboard/edit" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "ops": [      {        "op": "add"      }    ]  }'
{  "document_id": "123e4567-e89b-42d3-a456-426614174000",  "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b",  "changed": false,  "results": [    {      "index": 0    }  ]}