update_mapping
Replace a data import mapping entirely by providing the full desired shape. Fetch the current mapping first, then send all fields to overwrite.
Instructions
Replaces an existing mapping in full. Fetch the current mapping with list_mappings first and send the whole desired shape — this is a PUT, not a patch. Returns the updated mapping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from list_companies. | |
| mappingId | Yes | Mapping id from list_mappings. | |
| title | Yes | Human-readable mapping name. | |
| entityName | Yes | Entity this mapping targets — must match list_entities output. | |
| fields | Yes | Field mappings (full replacement). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Mapping id. | |
| title | Yes | Mapping name. | |
| entityName | Yes | Entity this mapping targets. | |
| fields | Yes | Persisted field entries. | |
| createdAt | No | ISO timestamp. | |
| updatedAt | No | ISO timestamp. |