Configuration Create
Markdown for LLMsCreates a document solution configuration: the settings one document solution uses to produce and deliver a document — the output format, where it goes, and how it is rendered.
A configuration belongs to exactly one solution, named by documentSolutionId, and a solution can hold several. A document request can name a configuration through documentSolutionConfigurationId; a request that names none runs without one, and the default configuration is not looked up.
documentSolutionId, name, fileFormat and deliveryMethod are mandatory. Delivery and save options are set through options, each naming its option definition by id — documents-option-definition-list returns the definitions with their keys, types and allowed values. The response echoes them back as options.
Identifiers, ownership and timestamps are server-assigned and returned in the response; sending them has no effect.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Request Body
application/json
The document solution configuration to create, wrapped in the standard request envelope. Mandatory — the request is rejected without it.
TypeScript Definitions
Use the request body type in TypeScript.
Body for creating 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 POST "https://example.com/documents/configuration/create" \ -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": 201, "message": "Created", "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": "POST https://api.doctavian.com/v1/documents/configuration/create", "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": "POST https://api.doctavian.com/v1/documents/configuration/create", "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": "POST https://api.doctavian.com/v1/documents/configuration/create", "dateTime": "2026-09-28T09:14:22.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "e9954e98a24941278d6742af639eddde"}{ "error": { "statusCode": 500, "message": "The document solution configuration could not be created.", "innerErrors": [ { "code": "CREATE_DOCUMENT_SOLUTION_CONFIGURATION_ERROR", "message": "The document solution configuration could not be created.", "userMessage": "Something went wrong. Please try again or contact support." } ] }, "origin": "POST https://api.doctavian.com/v1/documents/configuration/create", "dateTime": "2026-09-28T09:14:22.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "e9954e98a24941278d6742af639eddde"}