Create File Category
Create a new file category in the specified workspace, requiring at least one sample file and at least one field configuration.
Supports one-stop creation: you can pass the tables parameter to create tables with nested fields simultaneously.
Body
Workspace ID
"1234567890"
File category name
50"Invoice"
Extraction model
- Model 1: Fast speed with stable extraction results
- Model 2: Suitable for complex document understanding
- Model 3: VLM, suitable for simple extraction
Model 1, Model 2, Model 3 "Model 1"
Sample file list, at least one sample file must be uploaded, a category can have at most 20 sample files
1 - 10 elementsField configuration list, at least one field must be configured
1Prompt for classification
150"VAT invoice, including fields such as invoice code, invoice number, etc."
File category description
Optional, table configuration list (one-stop creation), supports nested fields
Whether to return full details. When true, the response includes complete category info (with fields, tables, samples). When not set or false, only category_id is returned.

