Skip to content

Add Test Document

POST
/v1/extractors/{name}/test-documents
curl --request POST \
--url https://api.deskew.dev/v1/extractors/example/test-documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=binary \
--form job_id=example \
--form expected=example

Upload a sample (multipart file) or copy the original of an existing job (job_id). expected is an optional JSON object of the correct output data.

name
required
Name
string
Media typemultipart/form-data
Body_add_test_document_v1_extractors__name__test_documents_post
object
file
File
Any of:
string format: binary
job_id
Job Id
Any of:
string
expected
Expected
Any of:
string

Successful Response

Media typeapplication/json
Response Add Test Document V1 Extractors Name Test Documents Post
object
key
additional properties
any

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}