---
title: "Patch Portal Connected Apps configuration"
method: PATCH
path: "/v1/connected-apps/portals/{portalId}"
tags: ["Connected Apps"]
---

# Patch Portal Connected Apps configuration

`PATCH /v1/connected-apps/portals/{portalId}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/connected-apps/portals/{portalId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Partially updates the given portal's Connected Apps configuration. Only fields present in the request body are changed. Setting `enabled` enables or disables Connected Apps for this portal (same effect as POST /connected-apps; enabling for the first time requires default_url to also be set); omitting it patches dcr and/or default_url on the already-enabled auth server, which returns 404 if Connected Apps has not been enabled yet for this portal. The portal id is immutable and always taken from the path.

## Path parameters

- `portalId` string, uuid, required

## Request body

- object
  - `enabled` boolean: When present, enables or disables Connected Apps for this portal (same effect as POST /connected-apps). Enabling for the first time requires default_url to also be set.
  - `dcr` PatchDcrSettings: Dynamic Client Registration settings to patch
    - `default_access_token_duration` integer: The default access token duration, in seconds, applied to DCR clients registered against this auth server
  - `default_url` string, uri: The portal's default URL.

## Response `200`

Connected Apps reserved auth server details (when enabled)

- ConnectedAppsResponse: Explicitly lists the AuthServer fields it exposes, rather than inheriting AuthServer wholesale, so that adding a field to AuthServer is not automatically also a Connected Apps change.
  - `id` string, uuid, required: The ID of the auth server
  - `name` string, required: The name of the auth server
  - `description` string, required: The description of the auth server
  - `audience` string, required: The recipients that the tokens are intended for. This becomes the 'aud' claim in an access token
  - `signing_algorithm` 'RS256' | 'RS384' | 'RS512' | 'PS256' | 'PS384' | 'PS512', required: Algorithm used in the key signing process
  - `issuer` string, required: The complete URL for the custom authorization server. This becomes the 'iss' claim in an access token.
  - `metadata_uri` string, uri, required: The URI of the metadata document for the auth server
  - `jwks_uri` string, uri: The URI of the JWKS endpoint for the auth server
  - `labels` Labels, required: Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
  - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.
  - `trusted_origins` TrustedOrigin[]: A list or trusted origins to apply the CORS header on for the auth server
  - `dcr_default_access_token_duration` integer: The default access token duration, in seconds, applied to DCR clients registered against this auth server
  - `konnect_managed` boolean, required: Indicates this auth server is managed by Konnect
  - `domain` 'konnect' | 'portal', required: Domain of Connected Apps configuration
  - `portal` object: Portal configuration (only present when domain is 'portal')
    - `id` string, uuid, required: The ID of the portal
    - `default_url` string, uri, required: The default URL for the portal
  - `scopes` Scope[], required: Predefined scopes for API access
    - `id` string, uuid, required: The ID of the scope
    - `name` string, required: The name of the scope
    - `description` string, required: Description of the scope
    - `default` boolean, required: Specifies whether the scope is included by default in access tokens without being explicitly requested by the client. If the scope is not allowed by the client, it will not be included in the access token.
    - `include_in_metadata` boolean, required: Specifies whether to include the scope in the metadata document
    - `enabled` boolean, required: Specifies whether the scope is enabled. If the scope is not enabled, it cannot be requested by clients and will not be included in the access token.
    - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
    - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.

## Other responses

- `204`: Connected Apps disabled successfully
- `400`: Bad Request
- `404`: Not Found

## Changes

- **2026-11-02** `7e077577b247`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/connected-apps/portals/:portalId/patch.md)

---

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