---
title: "Update Identity Provider"
method: PATCH
path: "/v3/portals/{portalId}/identity-providers/{id}"
tags: ["Portal Auth Settings"]
---

# Update Identity Provider

`PATCH /v3/portals/{portalId}/identity-providers/{id}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/portals/{portalId}/identity-providers/{id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Updates the configuration of an existing identity provider. This operation allows modifications to be made
to an existing identity provider's configuration.

## Path parameters

- `portalId` string, uuid, required
- `id` string, uuid, required

## Request body

- PortalUpdateIdentityProvider: The identity provider that contains configuration data for updating an authentication integration.
  - `enabled` boolean: Indicates whether the identity provider is enabled. Only one identity provider can be active at a time, such as SAML or OIDC. When omitted, the current value is left unchanged.
  - `config` union: The configuration data to update for the authentication integration.
    - intersection
      - [`UpdateOIDCIdentityProviderConfig`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FUpdateOIDCIdentityProviderConfig)
    - intersection
      - [`UpdateSAMLIdentityProviderConfig`](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea/schema?at=%2Fcomponents%2Fschemas%2FUpdateSAMLIdentityProviderConfig)

## Response `200`

An identity provider configuration. This response represents the configuration of a specific identity provider, which can be either OIDC or SAML.

- PortalIdentityProvider: The identity provider that contains configuration data for authentication integration.
  - `id` string, uuid: Contains a unique identifier used for this resource.
  - `type` 'oidc' | 'saml': Specifies the type of identity provider.
  - `enabled` boolean: Indicates whether the identity provider is enabled. Only one identity provider can be active at a time, such as SAML or OIDC.
  - `config` union: The configuration data for the authentication integration.
    - PortalOIDCIdentityProviderConfig: The identity provider that contains configuration data for the OIDC authentication integration.
      - `issuer_url` string, uri, required: The issuer URI of the identity provider. This is the URL where the provider's metadata can be obtained.
      - `client_id` string, required: The client ID assigned to your application by the identity provider.
      - `client_secret` string: The Client Secret assigned to your application by the identity provider.
      - `scopes` string[]: The scopes requested by your application when authenticating with the identity provider.
      - `claim_mappings` OIDCIdentityProviderClaimMappings: Defines the mappings between OpenID Connect (OIDC) claims and local claims used by your application for authentication.
        - `name` string: The claim mapping for the user's name.
        - `email` string: The claim mapping for the user's email address.
        - `groups` string: The claim mapping for the user's group membership information.
      - `backchannel_logout` OIDCIdentityProviderBackChannelLogout: The back-channel logout settings for the OIDC identity provider. To receive logout notifications, set your identity provider's back-channel logout URL to your portal's URL followed by `/api/v3/developer/backchannel-logout`, for example `https://my-portal.example.com/api/v3/developer/backchannel-logout`.
        - `enabled` boolean: Indicates whether back-channel logout is enabled. When enabled, the identity provider can notify the portal to end a user's session when they log out of the identity provider. Configure your identity provider's back-channel logout URL as your portal's URL followed by `/api/v3/developer/backchannel-logout`, for example `https://my-portal.example.com/api/v3/developer/backchannel-logout`.
        - `supported` boolean, nullable: Indicates whether the OpenID Provider advertises support for back-channel logout (`backchannel_logout_supported` in its discovery metadata). Null when the discovery metadata could not be retrieved or validated, in which case support is unknown.
        - `session_supported` boolean, nullable: Indicates whether the OpenID Provider advertises that it includes the `sid` claim in logout tokens (`backchannel_logout_session_supported` in its discovery metadata). A provider that omits the value does not include it. Null when the discovery metadata could not be retrieved or validated, in which case support is unknown.
    - PortalSAMLIdentityProviderConfig: The identity provider that contains configuration data for the SAML authentication integration.
      - `idp_metadata_url` string, uri: The identity provider's metadata URL where the identity provider's metadata can be obtained.
      - `idp_metadata_xml` string: The identity provider's SAML metadata. If the identity provider supports a metadata URL, you can use the `idp_metadata_url` field instead.
      - `sp_metadata_url` string, path
      - `sp_entity_id` string: The entity ID of the service provider (SP).
      - `callback_url` string, path: The path URL where the SAML identity provider sends authentication responses after successful login attempts.
  - `created_at` string, date-time: An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time: An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

## Changes

- **2026-11-20** `757a21fb79f2`: 2 breaking, 1 warning, 4 info
  - the `config` request property type changed from `object` to no type
  - the `config` response's property type changed from `object` to no type for status `200`
  - changed the pattern of the request property `config/oneOf[subschema #2: Update SAML Identity Provider Config]/idp_metadata_url` from `^https?://\S+$` to `^(https?://\S+)?$`
  - added the new optional request property `config/oneOf[subschema #1: Update OIDC Identity Provider Config]/backchannel_logout`
  - …3 more
- **2026-10-23** `30af8b28f6ef`: 3 breaking, 2 warning, 3 info
  - removed `#/components/schemas/OIDCIdentityProviderConfig, #/components/schemas/PortalSAMLIdentityProviderConfig` from the `config` request property `oneOf` list
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added `#/components/schemas/PortalOIDCIdentityProviderConfig` to the `config` response property `oneOf` list for the response status `200`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - …4 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v3/portals/:portalId/identity-providers/:id/patch.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api/revisions/5da43f6209ea?raw)
