You can use the Set Tenant Mapping endpoint to apply a mapping without using the mapping widget.
If the Update Fields on Mapping widget setting is enabled, the optional entityType
, entityId
, and flow
params are required.
Below is an example body:
{
"config": {
"mapping": {
"<FlowId>": {
"<InternalTableName>/<RemoteTableName>": {
"<InternalField>": "<RemoteField>"
}
}
}
},
"entityType": "taps", // optional - `taps` or `connectors`
"entityId": "salesforce", // optional
"flow": "FElWoODnU" // optional
}
Optional. Use taps
for one-way flows, and connectors
for bi-directional flows.
Available options:
taps
,
connectors
Optional. Identifier for the tap/connector (e.g., "salesforce").
Optional. Flow ID that this operation pertains to.
The response is of type object
.