Skip to Content
Documents

Correct a detected field (flywheel input)

Every key is optional; only the keys sent change. label, semanticType, bbox and fieldType correct the detection (each correction is kept as training input). help sets the box's help for the client, shown under its question when they fill it in (at most 160 characters after trimming, 422 beyond; null or blank removes it).

PATCH
/api/v1/documents/{id}/fields/{fieldId}

Every key is optional; only the keys sent change. label, semanticType, bbox and fieldType correct the detection (each correction is kept as training input). help sets the box's help for the client, shown under its question when they fill it in (at most 160 characters after trimming, 422 beyond; null or blank removes it).

Authorization

bearerAuth
headerAuthorizationBearer <token>

Workspace API key, e.g. "Authorization: Bearer aflo_live_<64 hex chars>". Keys are hashed at rest and shown only once at creation. A key has scopes: read (GET routes), draft (create or change documents, fields and templates) and send (send, void, remind and bulk send); a call outside them gets 403 insufficient_scope. A key may expire (401 api_key_expired). Keys made before scopes existed have full access.

Path Parameters

id*string

Document id.

fieldId*string

Field id.

Request Body

application/json
  1. body
label?|
Lengthlength <= 500
semanticType?string
Value in"date""phone""ssn""ein""currency""name""address""email""generic-text""checkbox""radio""signature""initials""comb"
bbox?array<number>
Items4 <= items <= 4
fieldType?string
Value in"text""checkbox""signature"
help?|

Help for the client under this box's question (0073): at most 160 characters after trimming; null or blank removes it.

Lengthlength <= 160

Response Body

Corrected field.

application/json
  1. response
success*boolean
data*

FieldSchema v2 (see architecture spec §2), snake_case wire keys.

Example Request
curl -X PATCH 'https://appliflo.com/api/v1/documents/string/fields/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "data": {    "id": "string",    "page": 0,    "bbox": [      0,      0,      0,      0    ],    "type": "string",    "label_text": "string",    "semantic_type": "date",    "format": "string",    "comb": {      "cells": 0    },    "multiline": true,    "confidence": 0,    "flagged": true,    "source": "acroform",    "recipient_id": "string",    "group_id": "string",    "option_value": "string",    "option_label": "string",    "section": "string",    "label_source": "page_text",    "role_hint": "string",    "help": "string"  }}