---
title: "PUT /api/v1/custom-oidc/{customOidcConfigurationId}"
method: PUT
path: "/api/v1/custom-oidc/{customOidcConfigurationId}"
tags: ["Custom OIDC Providers"]
---

# PUT /api/v1/custom-oidc/{customOidcConfigurationId}

`PUT /api/v1/custom-oidc/{customOidcConfigurationId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/custom-oidc/{customOidcConfigurationId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Update an OIDC provider configuration

## Path parameters

- `customOidcConfigurationId` string, required

## Request body

- object
  - `allowedEmailDomains` string[]
  - `clientId` string
  - `clientSecret` string, nullable
  - `createUnknownUsers` boolean
  - `customDomainId` string
  - `customerOrganizationId` string, nullable
  - `defaultUserRole` string
  - `enabled` boolean
  - `issuer` string
  - `name` string
  - `pkceEnabled` boolean, nullable
  - `scopes` string[]
  - `slug` string
  - `spInitiated` boolean

## Response `200`

OK

- ApiCustomOIDCConfiguration
  - `allowedEmailDomains` string[]
  - `callbackUrl` string
  - `clientId` string
  - `clientSecretSet` boolean
  - `createUnknownUsers` boolean
  - `createdAt` string, date-time
  - `customDomainId` string
  - `defaultUserRole` string
  - `enabled` boolean
  - `id` string
  - `issuer` string
  - `name` string
  - `pkceEnabled` boolean, nullable
  - `scopes` string[]
  - `slug` string
  - `spInitiated` boolean
  - `updatedAt` string, date-time

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
