Update extraction application
Update the name, labels, fields, and extraction configuration of an extraction application, and create a new configuration version. To update a high-speed custom extraction application, reuse this endpoint and pass the app_id of the high-speed application. The request body does not need ai_function. High-speed custom extraction applications do not support setting parse_mode, enable_highlight, enable_pdf_parse, pdf_pic_second_parsing, enable_stamp_recognition, or enable_long_doc. An HTTP 200 response can still represent a business failure, so callers must check both the HTTP status and the response code.
Authorizations
Production API Key. You can find it under My API in the ADP platform. Make sure the API Key is active and belongs to the production environment.
Path Parameters
Tenant name. Default: laiye.
Body
- Update standard custom extraction application
- Update high-speed extraction application
Application ID.
Extraction field configuration list. Up to 20 fields.
20Parsing mode. Required for standard custom extraction applications. High-speed custom extraction applications do not support setting this parameter. Available parsing modes are:
- standard: Standard parsing for clear digital documents, balancing speed and accuracy.
- advance: Enhanced parsing 1.0 for documents with stamps, signatures, multiple tables, or moderately complex layouts.
- agentic: Smart parsing that combines standard and enhanced parsing and performs secondary parsing when conditions are met.
- fast_vlm: Enhanced parsing 2.0 for complex layouts, scanned documents, and documents with multiple tables, improving parsing stability.
- agentic_v2: Smart parsing 2.0 with two-stage layout analysis and content recognition for documents with complex layouts, tables, and formulas.
standard, advance, agentic, fast_vlm, agentic_v2 Application name. If omitted or passed as an empty string, the name is not updated.
Current configuration version. The update is saved as a new version.
Application labels. Up to 5 labels.
5Whether to include source locations. Pass 1 to enable or 0 to disable. Supported by standard, agentic, fast_vlm, and agentic_v2. Not supported by advance.
0, 1 Whether to prefer PDF text extraction. Use this for digital PDFs with selectable text to improve processing speed and text stability.
When PDF text extraction is enabled, whether to run secondary parsing on images inside the PDF.
Whether to enable stamp recognition. The service attempts to recognize stamp information in the document. Stamp recognition capability must be enabled.
Whether to enable extracted value translation. Disabled by default.
Whether to enable long document support. Standard custom extraction applications support this parameter. High-speed custom extraction applications do not support setting this parameter.
Long document configuration. Used only when enable_long_doc is true.
5