Request Update
Markdown for LLMsReplaces the caller-supplied fields of a document request. This is a full replacement, not a patch: send every field you want to keep. An optional field left out is not kept — documentSolutionConfigurationId is cleared, and fileFormat, deliveryMethod, path, locale and timeZone are resolved again as on documents-request-create, from the configuration this update names and then the defaults. The mandatory fields are the same as on create. A fileFormat the template cannot produce fails with 500 REQUEST_FILE_FORMAT_UNSUPPORTED, and the request is left as it was.
An update changes the stored request only. It does not run generation again and does not change the document record or file a completed request produced. The request's status, documentId, errorMessage and completedDate are set by the server: leave them out of the request. A request can be updated in any status.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the document request to update, as returned by documents-request-create in result.data.documentRequest.id. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches no document request, or a deleted one, returns 500 DOCUMENT_REQUEST_NOT_FOUND.
uuidRequest Body
application/json
The document request's new values under documentRequest (DocumentRequestInput), alongside an optional externalContext. documentRequest is mandatory.
TypeScript Definitions
Use the request body type in TypeScript.
Body for updating a document request, following the standard request envelope: the resource under documentRequest alongside an optional externalContext.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/documents/request/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/update" \ -H "Content-Type: application/json" \ -d '{ "documentRequest": { "name": "Invoice INV-2026-000123 (reissued)", "title": "INV-2026-000123", "documentTemplateId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "dataSourceId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "documentSolutionConfigurationId": "a3bb189e-8bf9-3888-9912-ace4e6543002", "fileFormat": "pdf", "deliveryMethod": "Storage", "path": "root", "locale": "en_IE", "timeZone": "Europe/Dublin" }, "externalContext": { "id": "12345" } }'{ "result": { "statusCode": 200, "message": "OK", "data": { "documentRequest": { "id": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e", "subscriptionId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "documentTemplateId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "dataSourceId": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "documentId": "16fd2706-8baf-433b-82eb-8c7fada847da", "documentSolutionConfigurationId": "a3bb189e-8bf9-3888-9912-ace4e6543002", "documentSolutionId": "d290f1ee-6c54-4b01-90e6-d701748f0851", "ownerId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "ownerName": "Jane Doe", "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "documentTemplateName": "Standard Invoice", "documentSolutionConfigurationName": "Invoice - PDF to Storage", "documentSolutionName": "Invoicing", "dataSourceName": "Q3 Sales Report Data", "name": "Invoice INV-2026-000123 (reissued)", "title": "INV-2026-000123", "status": "Completed", "fileFormat": "pdf", "deliveryMethod": "Storage", "path": "root", "locale": "en_IE", "timeZone": "Europe/Dublin", "createdDate": "2026-10-13T09:12:04.000Z", "completedDate": "2026-10-13T09:12:19.000Z", "lastModifiedDate": "2026-10-13T10:02:47.000Z" } } }, "externalContext": { "id": "12345" }, "origin": "PUT https://api.doctavian.com/v1/documents/request/{documentRequestId}/update", "dateTime": "2026-10-13T09:12:04.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "5d9b3f7a1e0c46b8a2d6f0b4c8e2a6d0"}{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "REQUEST_FILE_FORMAT_INVALID", "message": "Request file format is invalid", "userMessage": "Request file format is invalid" } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/request/{documentRequestId}/update", "dateTime": "2026-10-13T09:12:04.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "0c4e8a2f6b1d49e3a7c5f9b3d7a1e5c9"}{ "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/request/{documentRequestId}/update", "dateTime": "2026-01-02T12:34:56.000Z", "operationId": "6dbe2c1d568ced61536e78ea44c4e717", "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "DOCUMENT_REQUEST_NOT_FOUND", "message": "The document request was not found.", "userMessage": "Something went wrong. Please try again or contact support." } ] }, "origin": "PUT https://api.doctavian.com/v1/documents/request/{documentRequestId}/update", "dateTime": "2026-10-13T09:12:04.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "7a1c5e9b3d0f42a8b6e0c4a8f2d6b0e4"}