Annotations
Batch create annotations
Batch create annotations
post/v3/annotations/batch_create
Request body
Example request
[
{
"rectangles": [
{
"pageIndex": 1,
"x0": 2.43,
"y0": 4.55,
"x1": 4.56,
"y1": 6.32
}
],
"validationResults": [
{
"created": [
{
"id": 1,
"annotations": [
1,
2,
3
],
"passed": true,
"ruleSlug": "supplier-name-is-alphanumeric",
"message": "Expected 'ThisInputShouldMatch' to match regex pattern '[0-9]*"
}
],
"updated": [
{
"id": 1,
"annotations": [
1,
2,
3
],
"passed": true,
"ruleSlug": "supplier-name-is-alphanumeric",
"message": "Expected 'ThisInputShouldMatch' to match regex pattern '[0-9]*"
}
],
"deleted": [
{
"id": 1,
"annotations": [
1,
2,
3
],
"passed": true,
"ruleSlug": "supplier-name-is-alphanumeric",
"message": "Expected 'ThisInputShouldMatch' to match regex pattern '[0-9]*"
}
]
}
]
}
]Response
Successfully created annotations.
Example response
[
{
"id": 1,
"rectangle": {
"pageIndex": 1,
"x0": 2.43,
"y0": 4.55,
"x1": 4.56,
"y1": 6.32
},
"rectangles": [
{
"pageIndex": 1,
"x0": 2.43,
"y0": 4.55,
"x1": 4.56,
"y1": 6.32
}
],
"confidence": 0.86,
"classificationConfidence": 0.95,
"textExtractionConfidence": 0.9
}
]