Documents

Option Value Create

POST
/documents/option/{entityType}/{entityId}/create

Creates one option value for the entity named in the path. Provide EITHER optionDefinitionId (system option) OR customKey (custom option), never both.

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

entityType*string

Type of the owning entity, e.g. "DocumentSolutionConfiguration" or "DocumentTemplate".

entityId*string

GUID of the owning entity.

Formatuuid

Request Body

application/json

The option value to create.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/documents/option/DocumentSolutionConfiguration/a3bb189e-8bf9-3888-9912-ace4e6543002/create" \  -H "Content-Type: application/json" \  -d '{    "customKey": "watermark.text",    "customGroup": "rendering",    "value": "CONFIDENTIAL"  }'
{  "result": {    "data": {      "optionValue": {        "optionValueGuid": "c9bf9e57-1685-4c89-bafb-ff5af830be8a",        "entityType": "DocumentSolutionConfiguration",        "entityId": "a3bb189e-8bf9-3888-9912-ace4e6543002",        "optionDefinitionId": "",        "customKey": "watermark.text",        "customGroup": "rendering",        "value": "CONFIDENTIAL",        "effectiveKey": "watermark.text",        "effectiveGroup": "rendering",        "systemType": "string",        "createdDate": "2026-07-14T09:30:00.0000000+00:00",        "lastModifiedDate": "2026-07-14T09:30:00.0000000+00:00"      }    },    "statusCode": 200,    "message": "OK"  },  "origin": "https://app.example.com",  "dateTime": "2026-07-14T09:30:00.0000000+00:00",  "operationId": "0HN7GK9M4T2R5"}
{  "code": "OPTION_VALUE_MISSING_DEFINITION_OR_KEY",  "message": "Either optionDefinitionId or customKey must be supplied."}
Empty
Empty
{  "code": "GET_DATA_SOURCE_ERROR",  "message": "An unexpected error occurred.",  "eventId": "a1b2c3d4"}