Api Portfolio Import Csv Commit
Commit a parsed M1 CSV preview to the user's default portfolio.
Phase 2 of the two-phase import flow (M1-1, 2026-05-27). Accepts the user-confirmed positions list (possibly a subset of what the preview returned — the M1-2 UI may strip rows before commit) and bulk-upserts via the existing upsert_portfolio_position helper.
Defensive re-validation at the boundary: the request payload is user-controlled, so we don't trust that it came verbatim from /api/portfolio/import-csv. Every position re-runs through positions_payload_to_commit's safety checks (ticker shape, range bounds) before any DB write.
Returns updated portfolio positions so the FE can re-render without a follow-up GET.
Request
- Base URL: https://www.oxfordledge.com (the document declares no server; this is the origin it was published from)
- URL: https://www.oxfordledge.com/api/portfolio/import-csv/commit
- Auth: none declared
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.