---
title: "Set tenant mapping"
method: PUT
path: "/tenant/{env_id}/{tenant}/mapping"
---

# Set tenant mapping

`PUT /tenant/{env_id}/{tenant}/mapping`

Adds a mapping object to the `tenant-config.json`.

## Path parameters

- `env_id` string, required
- `tenant` string, required

## Request body

- object
  - `config` object
    - `mapping` object, required — Map of Flow ID → Table mappings
  - `entityType` 'taps' | 'connectors' — Optional. Use `taps` for one-way flows, and `connectors` for bi-directional flows.
  - `entityId` string — Optional. Identifier for the tap/connector (e.g., "salesforce").
  - `flow` string — Optional. Flow ID that this operation pertains to.

## Response `200`

200

- object

## Other responses

- `400` — 400

---

[API](https://skmtc.net/hotglue/apis/hotglue-api.md) · [All operations](https://skmtc.net/hotglue/apis/hotglue-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hotglue/hotglue-api/revisions/30ff54d01ec0/schema)
