Update Document
Updates a document using optimistic concurrency control: `revision` must match the document's current revision or the request fails with `409`.
Your personal API key — vw_ followed by 64 hex characters. The same key is also accepted
as Authorization: Bearer vw_....
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/documents/string" \ -H "Content-Type: application/json" \ -d '{ "title": "Updated Resume Title", "revision": 1 }'{ "success": true, "message": "string", "data": { "id": "string", "userId": "string", "type": "RESUME", "title": "string", "slug": "string", "tags": [ "string" ], "content": {}, "metadata": {}, "templateId": "modern", "schemaVersion": 0, "revision": 0, "visibility": "PRIVATE", "lastSyncedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z" }}Get DocumentGET
Previous Page
Delete DocumentDELETE
Soft-deletes a document by setting `deletedAt`. The document is immediately excluded from list/get responses. Hard delete and restore exist at the service layer but are not exposed through any public route. `data` is `null` on success — the deleted document is not echoed back.