PUT
/
tenant
/
{env_id}
/
{tenant}
/
mapping
Set tenant mapping
curl --request PUT \
  --url https://client-api.hotglue.xyz/tenant/{env_id}/{tenant}/mapping \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "config": {
    "mapping": {}
  },
  "entityType": "taps",
  "entityId": "<string>",
  "flow": "<string>"
}'
{}
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
}

Authorizations

x-api-key
string
header
required

Path Parameters

env_id
string
required

ID of environment

tenant
string
required

ID of tenant

Body

application/json

Response

200
application/json

200

The response is of type object.