Update an account (tenant).
Provide the account (tenant) ID as a path parameter and the updated account (tenant) data in the request body.
An environment token is required for this route and can be obtained from the environment authentication route.
Frontegg is built with multi-tenancy in mind, allowing the creation and management of multiple accounts (tenants) within an environment. This section provides an overview of relevant API endpoints, organized into Management and Self-Service categories, supporting the creation of accounts, hierarchies, and sub-accounts.
Management Endpoints: Require environment-level authorization and offer full control over resources, including SSO (SAML and OIDC) configurations, account hierarchies, and sub-accounts.
Self-Service Endpoints: Accessible with a user token (JWT), enabling users with the appropriate permissions to create, update, and delete sub-accounts from ah hierarchy.
curl -i -X PUT \
'https://api.frontegg.com/tenants/resources/tenants/v2/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'curl -i -X GET \
'https://api.frontegg.com/tenants/resources/tenants/v1/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'curl -i -X PUT \
'https://api.frontegg.com/tenants/resources/tenants/v1/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'