---
title: "Switch users active tenant in applications"
method: PUT
path: "/resources/applications/user-tenants/active/v1"
tags: ["User management (multi-app)"]
---

# Switch users active tenant in applications

`PUT /resources/applications/user-tenants/active/v1`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/applications/user-tenants/active/v1`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/applications/user-tenants/active/v1/put.ts> (a function with typed inputs; its response is checked against the schema)

This route updates the active user tenants for an application.

## Headers

- `frontegg-user-id` string, required

## Request body

- SwitchApplicationActiveUserTenantsRequestDto
  - `activeApplicationTenants` SwitchApplicationActiveUserTenantDto[], required: List of applications and tenants to set as active, for user
    - `applicationId` string, required: Desired application to set active tenant in
    - `tenantId` string, required: Desired tenant to set as active tenant for user in application

## Response `200`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
