request_assignment_upload
[Tier 2 — Direct Build intake] When: you have part-to-territory assignment rows or a legacy spreadsheet (e.g. Zip2Terr.csv with Postal Code + Territory/Region/Division) that you cannot inline in direct_build. Stage rows here, then call direct_build(assignments_handle=). FOUR WAYS TO STAGE (all return upload_handle): (A) MCP csv_file: pass the uploaded CSV as a ChatGPT/OpenAI file parameter. (B) MCP csv_text: pass csv_text= — preserve newlines; do NOT JSON-encode with PowerShell ConvertTo-Json (corrupts rows). (C) MCP assignments: pass assignments=; append with upload_handle. (D) HTTP POST /assignments/upload with assignments, csv_text, or csv_file. Legacy columns (Postal Code, Territory, Region, Division) auto-map to part_id + territory_path. Then: direct_build(assignments_handle=, part_layer=..., tal_label=..., map_session_id=...). Handle is single-use and expires (default 1h).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_file | No | ||
| csv_text | No | ||
| assignments | No | ||
| ttl_seconds | No | ||
| upload_handle | No | ||
| guidance_handle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||