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.
Authorizations
Production OpenAPI Accessor access_key. You can find it in My API in the ADP platform. If the key is disabled, expired, or does not belong to the production environment, the API returns Accessor not found.
Path Parameters
Tenant name. Default: laiye.
Body
- Update standard custom extraction application
- Update high-speed extraction application
Application ID.
Current configuration version. The update is saved as a new version.
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. Mode capabilities match the Web parsing configuration:
- standard: Standard parsing for clear digital documents. Supports source locations, PDF text first, and stamp recognition.
- advance: Enhanced parsing 1.0 for documents with stamps, signatures, multiple tables, or moderately complex layouts. Source locations are not supported.
- fast_vlm: Enhanced parsing 2.0 for complex layouts, scanned files, and multi-table documents. Supports source locations, PDF text first, and stamp recognition.
- agentic: Smart parsing that combines multiple models for complex documents. Supports source locations, PDF text first, and stamp recognition.
standard, advance, fast_vlm, agentic Application name. If omitted or passed as an empty string, the name is not updated.
Application labels. Up to 5 labels.
5Whether to include source locations. Pass 1 to enable or 0 to disable. Supported by standard, fast_vlm, and agentic. 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