Update import mapping
update_import_mappingCorrect an import's column mapping without re-uploading: {source_column: vepathos_field}, or {field, unit, format} for a column in another unit (lb, in, l) or date/number format. When the user corrects a unit ('those were cm3'), fix it here, never by converting the rows yourself. Returns the updated summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapping | Yes | Source column → vepathos field, null to ignore the column, or {field, unit, format} when its values are in another unit or format. | |
| import_id | Yes | The import to correct, from import_deliveries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| plan_id | No | The plan this lives in, in the user's Vepathos account (list_plans). | |
| summary | No | ||
| progress | No | ||
| import_id | No | ||
| dataset_id | No | ||
| expires_at | No | When dataset_id expires. The plan stays. | |
| account_url | No | Opens the plan in the user's Vepathos account. Requires signing in; private to the account. | |
| plan_replaced | No | Set when the library was full: this plan was removed to make room. Tell the user its name. | |
| plan_temporary | No | True when every library slot is kept or favorite: the plan lives outside the library and is deleted later. Tell the user. | |
| charged_because | No | Why the next run is charged: no_billed_run, stops_changed (a stop was added or moved), allowance_used, window_closed or no_allowance. | |
| poll_after_seconds | No | ||
| free_retries_allowed | No | How many other tries a charged run opens on this account plan (field name is historical; say 'other tries' / 'otros intentos', not that the run is free). | |
| next_optimize_charged | No | True: the next run of this plan charges its stops to the monthly allowance. False: it is another try (same stops or fewer, within the 24 h window) — no stops charged. When speaking to the user: English 'another try', Spanish 'otro intento'; never call a run free. | |
| free_retries_remaining | No | Other tries left in the open 24 h window. 0 when no window is open. Tell the user the count and the deadline (free_retry_window_ends_at); do not call the run free. | |
| free_retry_window_ends_at | No | When the other-try window closes (UTC). Null when no window is open. Always mention this deadline when next_optimize_charged is false. |