---
title: "Update Tenant Thirdparty"
method: POST
path: "/supertokens/update-tenant-thirdparty"
tags: ["SUPERTOKENS"]
---

# Update Tenant Thirdparty

`POST /supertokens/update-tenant-thirdparty`

Updates the tenant with the third party config

This decides which identity provider is trusted to authenticate
`new_tenant`'s users, so `new_tenant` must be the tenant the caller addressed
(the SuperTokens tenant id is the host as-is).
:return: ok status and optional message.

## Query parameters

- `new_tenant` string, required
- `client_id` string, required
- `client_secret` string, required
- `oidc_discovery_endpoint` string, required
- `third_party_id` 'okta' | 'active-directory', required

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Invalid request data
- `403` — `new_tenant` is not the tenant the caller addressed
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
