POST /v1/dms/document-types/{id}/rules/test
POST/v1/dms/document-types/{id}/rules/test
Test classification rules of a single document type against a sample context. Optionally pass rules to preview unsaved changes.
Request Body
| Name | Typ | Beschreibung |
|---|
ocrText | string | |
ocrPageTexts | string[] | |
fileName | string | |
mimeType | string | |
senderDomain | string | |
folderPath | string | |
rules | array | |
thresholdOverride | number | |
Pfad-Parameter
| Name | Typ | Beschreibung |
|---|
iderforderlich | string | |
Beispiel
curl -X POST https://api.codemeta-os.de/v1/dms/document-types/{id}/rules/test \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"ocrText": "string",
"ocrPageTexts": [],
"fileName": "string",
"mimeType": "string",
"senderDomain": "string",
"folderPath": "string",
"rules": [],
"thresholdOverride": 0
}'
const result = await cm.dms.post({
"ocrText": "string",
"ocrPageTexts": [],
"fileName": "string",
"mimeType": "string",
"senderDomain": "string",
"folderPath": "string",
"rules": [],
"thresholdOverride": 0
});
Antwortcodes
| HTTP |
Bedeutung |
200 |
Default Response |