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

# Update Tenant Thirdparty

`POST /supertokens/update-tenant-thirdparty`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/supertokens/update-tenant-thirdparty`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
