---
title: "Replace enabled providers"
method: PUT
path: "/api/auth/settings/providers"
tags: ["Auth - Settings"]
---

# Replace enabled providers

`PUT /api/auth/settings/providers`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/auth/settings/providers`
- Auth: API key in header `X-AscendKit-Public-Key` and HTTP bearer

Replaces the set of enabled auth providers for an environment and normalizes feature flags to match provider constraints.

## Request body

- ProvidersUpdate
  - `providers` string[], required: Replacement list of enabled auth providers.

## Response `200`

Successful Response

- ApiResponse
  - `data` unknown
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
