---
title: "Update sub tenant hierarchy settings"
method: PUT
path: "/resources/sub-tenants/v1/{tenantId}/hierarchy-settings"
tags: ["Sub-Accounts"]
---

# Update sub tenant hierarchy settings

`PUT /resources/sub-tenants/v1/{tenantId}/hierarchy-settings`

## Request

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

Set the default behavior of sub-account access in a tenant. Set subAccountAccessType to defaultOff or defaultOn to allow sub-account access to be changed, or alwaysOn to force sub-account access on all users.

## Path parameters

- `tenantId` string, required

## Request body

- UpdateSubTenantHierarchySettingsRequest

## 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)
