Document Template Update
Updates an existing document template.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
GUID of the document template to update.
uuidRequest Body
application/json
The DocumentTemplateModel payload to update. Server-managed fields (ids, timestamps, links, isDeleted) are ignored.
TypeScript Definitions
Use the request body type in TypeScript.
A stored document template. Everything marked read-only here is server-assigned and ignored if sent on create or update.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/documents/template/7c9e6679-7425-40de-944b-e07fc1f90ae7/update" \ -H "Content-Type: application/json" \ -d '{ "name": "Standard Invoice", "description": "Company standard invoice layout.", "title": "Invoice", "urn": "9f86d081-884c-4d30-8934-9c1e6cbcb9f5", "url": "https://storage.example.com/templates/invoice-standard.docx", "fileFormat": "docx", "loadMethod": "Storage", "path": "templates/invoice-standard.docx" }'{ "result": { "data": { "documentTemplate": { "documentTemplateGuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "subscriptionGuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "ownerGuid": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "lastModifiedUserGuid": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "name": "Standard Invoice", "description": "Company standard invoice layout.", "title": "Invoice", "urn": "9f86d081-884c-4d30-8934-9c1e6cbcb9f5", "url": "https://storage.example.com/templates/invoice-standard.docx", "viewAnonymousLink": "", "editAnonymousLink": "", "viewUserLink": "", "editUserLink": "", "viewOrganizationLink": "", "editOrganizationLink": "", "fileFormat": "docx", "loadMethod": "Storage", "path": "templates/invoice-standard.docx", "createdDate": "2026-07-14T09:30:00.000Z", "lastModifiedDate": "2026-07-14T09:30:00.000Z", "isDeleted": false } }, "statusCode": 200, "message": "OK" }, "origin": "PUT https://api.doctavian.com/v1/documents/template/{documentTemplateGuid}/update", "dateTime": "2026-07-14T09:30:00.000Z", "operationId": "971e051a82998181068eb88ac632119f", "userId": "f47a5863-b953-4a51-9f84-c41a7414ef07"}{ "userId": "e5bacd6d-39aa-46ff-bd76-24ad6da8b6a3", "error": { "statusCode": 400, "message": "Name is required.", "innerErrors": [ { "code": "DATA_NAME_REQUIRED", "message": "Name is required.", "userMessage": "Name is required." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/template/{documentTemplateGuid}/update", "dateTime": "2026-01-02T12:34:56.000Z", "operationId": "d02f7e30644ad44f5d492e787556faae"}{ "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/template/{documentTemplateGuid}/update", "dateTime": "2026-01-02T12:34:56.000Z", "operationId": "53f97fd9ad3217a3c7e3d7b7d1d69b99", "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}{ "error": { "statusCode": 404, "message": "The requested resource was not found.", "innerErrors": [ { "code": "NOT_FOUND_BY_ID", "message": "The requested resource was not found.", "userMessage": "We couldn't find that resource. Check the id and try again." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/template/{documentTemplateGuid}/update", "dateTime": "2026-01-02T12:34:56.000Z", "operationId": "0fea796ed7baed277be338faba8df415", "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}{ "userId": "f0ef2024-8486-4a16-b86f-54a09684315b", "error": { "statusCode": 500, "message": "An unexpected error occurred.", "innerErrors": [ { "code": "GET_DATA_SOURCE_ERROR", "message": "An unexpected error occurred.", "userMessage": "An unexpected error occurred." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/template/{documentTemplateGuid}/update", "dateTime": "2026-01-02T12:34:56.000Z", "operationId": "84c29da640c4dfa67c2d841d5f5f8947"}