Upload a BOM file and read it into reviewable lines
Changed onMultipart upload (file, optional userPrompt of at most 500 characters) of an xlsx, csv, pdf or image file of at most 10 MiB. A client that scanned the file first (POST bom-scan) sends the scan's documentKind (and documentReason), plus acknowledgedNotProductBom when the user chose to continue with a file that is not a product BOM; without documentKind Core scans the file once itself. A file that is not a product BOM is imported with low confidence: a warning, and every line needs review. The AI gateway extracts the line items (name, quantity, unit, stage) and each line is matched against the PCF factor library; the call waits for both. The import is returned with status ready, or error when extraction failed (errorMessage says why; reanalyze retries). Nothing is written to the BOM until the import is applied. 503 AI_GATEWAY_UNAVAILABLE when the gateway is not configured. Requires org.write_data.
Request
- Base URLhttps://api.greentally.ai/v1
- AuthHTTP bearer
Path parameters
Request body multipart/form-data
Response
The import, read and matched
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
4 more changes in this revision
- info