Server SDKs
Build AI agents, control calls, send messages, and more
Update an existing document.
format: "uuid"
1{2 "id": "acaa5c49-be5e-4477-bce0-48f4b23b7720",3 "filename": "player_list.pdf",4 "status": "in_progress",5 "tags": [6 "sports",7 "football",8 "game"9 ],10 "chunking_strategy": "sentence",11 "max_sentences_per_chunk": 80,12 "split_newlines": true,13 "overlap_size": 10,14 "chunk_size": 50,15 "number_of_chunks": 2345,16 "chunks_uri": "/api/rest/datasphere/documents/acaa5c49-be5e-4477-bce0-48f4b23b7720/chunks",17 "created_at": "2024-05-06T12:20-12Z",18 "updated_at": "2024-05-06T12:20-12Z"19}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com"7});89const updated = await client.datasphere.documents.update("document-id", {10 tags: ["support", "updated"],11});12console.log(updated.tags);