---
title: "Update an organization OAuth app"
method: PUT
path: "/oauth-apps/{appId}"
tags: ["Connections"]
---

# Update an organization OAuth app

`PUT /oauth-apps/{appId}`

## Request

- Base URL: `https://api.superglue.cloud/v1`
- URL: `https://api.superglue.cloud/v1/oauth-apps/{appId}`
- Auth: HTTP bearer

Requires the app creator or an administrator. Changes affect future selections; existing connection configurations remain unchanged.

## Path parameters

- `appId` string, required

## Request body

- object
  - `name` string
  - `authentication` ConnectionAuthentication
    - `type` 'none' | 'api_key' | 'basic_auth' | 'oauth2' | 'connection_string', required
    - `oauthClientMode` 'managed' | 'dynamic' | 'custom'
    - `grantType` 'authorization_code' | 'client_credentials' | 'password' | 'service_account' | 'custom'
    - `clientId` string
    - `clientSecret` string
    - `authUrl` string
    - `tokenUrl` string
    - `scopes` string[]
    - `protocol` string
    - `config` object

## Response `200`

Updated OAuth app with secrets excluded

- object
  - `data` OAuthApp, required
    - `id` string, required
    - `name` string, required
    - `systemId` string, required
    - `source` 'superglue' | 'organization', required
    - `authentication` ConnectionAuthentication, required
      - `type` 'none' | 'api_key' | 'basic_auth' | 'oauth2' | 'connection_string', required
      - `oauthClientMode` 'managed' | 'dynamic' | 'custom'
      - `grantType` 'authorization_code' | 'client_credentials' | 'password' | 'service_account' | 'custom'
      - `clientId` string
      - `clientSecret` string
      - `authUrl` string
      - `tokenUrl` string
      - `scopes` string[]
      - `protocol` string
      - `config` object
    - `hasClientSecret` boolean, required
    - `createdByUserId` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

---

[API](https://skmtc.dev/superglue/apis/superglue-api.md) - [All operations](https://skmtc.dev/superglue/apis/superglue-api/llms.txt) - [OpenAPI document](https://skmtc.dev/superglue/apis/superglue-api/revisions/2d412a94bf09?raw)
