Documents

Configuration Update

Markdown for LLMs
PUT
/documents/configuration/{documentSolutionConfigurationId}/update

Replaces a document solution configuration with the one in the request body. This is a full replacement, not a partial patch: a field omitted from the body is cleared rather than left as it was, so send the whole record.

The configuration to update is named by the path parameter. documentSolutionId, name, fileFormat and deliveryMethod are mandatory, exactly as on create. Sending options replaces the option values on the configuration.

To move a configuration between solutions or perform another single-field command, note that this family has no /edit operation — /update is the only write path.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

documentSolutionConfigurationId*string

Id of the document solution configuration, as returned by documents-configuration-create in result.data.documentSolutionConfiguration.id.

Formatuuid

Request Body

application/json

The document solution configuration as it should now stand, wrapped in the standard request envelope. Mandatory — the request is rejected without it.

TypeScript Definitions

Use the request body type in TypeScript.

Body for updating a document solution configuration, 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/configuration/7f1b2c3d-4e5f-4a6b-9c8d-0e1f2a3b4c5d/update" \  -H "Content-Type: application/json" \  -d '{    "documentSolutionConfiguration": {      "documentSolutionId": "d290f1ee-6c54-4b01-90e6-d701748f0851",      "name": "Invoice - PDF to Storage",      "description": "Renders invoices as PDF and writes them 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": "{\\"companyName\\":\\"Contoso Ltd\\"}",      "options": [        {          "optionDefinitionId": "fd4d6425-a871-4bcd-8f16-a088146bd924",          "value": "PdfA2b"        },        {          "optionDefinitionId": "8d254f60-aa38-4509-87de-74fa14702764",          "value": "750"        }      ]    },    "externalContext": {      "requestId": "inv-2026-q3-001"    }  }'
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "documentSolutionConfiguration": {        "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": "Renders invoices as PDF and writes them 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": "{\"companyName\":\"Contoso Ltd\"}",        "createdDate": "2026-09-28T09:14:22.000Z",        "lastModifiedDate": "2026-09-28T09:14:22.000Z",        "options": [          {            "optionDefinitionId": "fd4d6425-a871-4bcd-8f16-a088146bd924",            "value": "PdfA2b"          },          {            "optionDefinitionId": "8d254f60-aa38-4509-87de-74fa14702764",            "value": "750"          }        ]      }    }  },  "externalContext": {    "requestId": "inv-2026-q3-001"  },  "origin": "PUT https://api.doctavian.com/v1/documents/configuration/{documentSolutionConfigurationId}/update",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}
{  "error": {    "statusCode": 400,    "message": "Name is required.",    "innerErrors": [      {        "code": "CONFIG_NAME_REQUIRED",        "message": "Name is required.",        "userMessage": "Give the configuration a name before saving it."      }    ]  },  "origin": "PUT https://api.doctavian.com/v1/documents/configuration/{documentSolutionConfigurationId}/update",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}
{  "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/configuration/{documentSolutionConfigurationId}/update",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}
Empty
{  "error": {    "statusCode": 500,    "message": "The document solution configuration could not be updated.",    "innerErrors": [      {        "code": "UPDATE_DOCUMENT_SOLUTION_CONFIGURATION_ERROR",        "message": "The document solution configuration could not be updated.",        "userMessage": "Something went wrong. Please try again or contact support."      }    ]  },  "origin": "PUT https://api.doctavian.com/v1/documents/configuration/{documentSolutionConfigurationId}/update",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}