Change a data source's field mapping
update_data_source_mappingReplace the field mapping on a connected data source — for when the wrong field shows in a section (a blank price, the wrong heading). field_mapping REPLACES the old one, so include every row to keep; {} clears it. row_descriptor says which fields identify one item (idField and labelField required; imageField, linkField, subtitleField optional). The address, schedule and section are untouched. Republish or sync for it to show.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| field_mapping | Yes | { "<source field>": "<section field>" }; source keys may be dot-paths, targets are flat field names | |
| data_source_id | Yes | The source, from list_data_sources | |
| row_descriptor | No |