Solution Update
Markdown for LLMsReplaces a document solution's name and description. Both are taken from the request: description left out is cleared, not kept, so send both.
Templates, data sources and configurations are changed through their own operations: attach or detach templates with documents-solution-template-add and documents-solution-template-remove, data sources with documents-solution-data-source-add and documents-solution-data-source-remove, and manage configurations with the documents-configuration-* operations. To change just the folder a document solution sits in, use documents-solution-move.
The response returns the whole solution as it now stands, including its linked templates, data sources and configurations. Identifiers, ownership and timestamps stay server-assigned; the id travels in the path, not in the body. A solution that has been deleted reads as not found.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the document solution to replace, as returned by documents-solution-create in result.data.documentSolution.id.
uuidRequest Body
application/json
The solution's new name and description, plus an optional externalContext.
TypeScript Definitions
Use the request body type in TypeScript.
Body for replacing a document solution, following the standard request envelope: the resource under its own name alongside an optional externalContext.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/documents/solution/d290f1ee-6c54-4b01-90e6-d701748f0851/update" \ -H "Content-Type: application/json" \ -d '{ "documentSolution": { "name": "Quarterly Invoicing", "description": "Invoice run for quarterly billing, extended to cover annual renewals." }, "externalContext": { "id": "789" } }'{ "result": { "statusCode": 200, "message": "OK", "data": { "documentSolution": { "id": "d290f1ee-6c54-4b01-90e6-d701748f0851", "subscriptionId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "ownerId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "name": "Quarterly Invoicing", "description": "Invoice run for quarterly billing, extended to cover annual renewals.", "templates": [ { "id": "2b7c9e14-5a63-4f08-9d21-7c4e0b8a3f52", "name": "Standard Invoice", "description": "Company standard invoice layout.", "fileFormat": "docx" } ], "dataSources": [ { "id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "name": "Q3 Sales Report Data", "description": "Account records used for quarterly reports." } ], "configurationDetails": [ { "id": "7f1b2c3d-4e5f-4a6b-9c8d-0e1f2a3b4c5d", "documentSolutionId": "d290f1ee-6c54-4b01-90e6-d701748f0851", "subscriptionId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "ownerId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "name": "Invoice - PDF to Storage", "description": "Quarterly invoice rendered as PDF and written to Storage.", "title": "Invoice", "fileFormat": "pdf", "deliveryMethod": "Storage", "path": "root", "language": "en", "locale": "en_IE_EURO", "timeZone": "(GMT+00:00) Greenwich Mean Time (Europe/Dublin)", "isDefault": true, "embeddedData": "{\"costCentre\":\"CC-4410\"}", "optionValues": { "fd4d6425-a871-4bcd-8f16-a088146bd924": "PdfA2b", "8d254f60-aa38-4509-87de-74fa14702764": "750" }, "createdDate": "2026-09-28T09:14:22.000Z", "lastModifiedDate": "2026-09-28T09:14:22.000Z" } ], "ownerName": "Jane Doe", "lastModifiedUserName": "Jane Doe", "generatedDocumentCount": 0, "lastRequests": [], "createdDate": "2026-09-18T12:15:53.000Z", "lastModifiedDate": "2026-09-24T02:05:18.000Z", "lastRequestDate": "" } } }, "origin": "PUT https://api.doctavian.com/v1/documents/solution/{documentSolutionId}/update", "dateTime": "2026-09-24T02:05:18.000Z", "externalContext": { "id": "789" }, "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "4d80f6b3c29e41a7b5e08c1d637a92f4"}{ "error": { "statusCode": 400, "message": "Name is required.", "innerErrors": [ { "code": "DOCUMENT_SOLUTION_NAME_REQUIRED", "message": "Name is required.", "userMessage": "Give the solution a name before saving it." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/solution/{documentSolutionId}/update", "dateTime": "2026-09-24T02:05:18.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "4d80f6b3c29e41a7b5e08c1d637a92f4"}{ "error": { "statusCode": 401, "message": "The request could not be authenticated.", "innerErrors": [ { "code": "UNAUTHORIZED", "message": "The request could not be authenticated.", "userMessage": "Your session has expired or is invalid. Please sign in again." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/solution/{documentSolutionId}/update", "dateTime": "2026-09-24T02:05:18.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "4d80f6b3c29e41a7b5e08c1d637a92f4"}{ "error": { "statusCode": 500, "message": "The document solution could not be updated.", "innerErrors": [ { "code": "UPDATE_DOCUMENT_SOLUTION_ERROR", "message": "The document solution could not be updated.", "userMessage": "Something went wrong. Please try again or contact support." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/solution/{documentSolutionId}/update", "dateTime": "2026-09-24T02:05:18.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "4d80f6b3c29e41a7b5e08c1d637a92f4"}