---
title: "Update an OAuth configuration."
method: PUT
path: "/hub/integrations/{integration_id}/oauth-config"
tags: ["Oauth"]
---

# Update an OAuth configuration.

`PUT /hub/integrations/{integration_id}/oauth-config`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/hub/integrations/{integration_id}/oauth-config`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/docs/hub/integrations/:integration_id/oauth-config/put.ts> (a function with typed inputs; its response is checked against the schema)

[quiva.ai admins only] Update the OAuth configuration for a specific integration - full configuration replacement

## Request body

- IntegrationOauthConfig
  - `integration_id` string, required: Unique identifier for the integration
  - `name` string, required: Name of the OAuth integration
  - `scopes` string, required: Comma-separated list of OAuth scopes
  - `client_id` string, required: OAuth client ID
  - `client_secret` string, required: OAuth client secret
  - `auth_url` string, uri, required: Authorization URL for the OAuth flow
  - `token_url` string, uri, required: Token URL to exchange authorization code for access token
  - `redirect_url` string, uri, required: Redirect URL used in the OAuth flow

## Response `200`

OAuth configuration

- SuccessResponse
  - `message` string: Success message

## Other responses

- `400`: Bad request
- `401`: Unauthorized

## Changes

- **2025-07-09** `945cf8329cbe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/changes/hub/integrations/:integration_id/oauth-config/put.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/revisions/f80cd5f3ac1c?raw)
