> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an OAuth configuration.

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



## OpenAPI

````yaml /api-reference/endpoint/hub-flows/openapi.json put /hub/integrations/{integration_id}/oauth-config
openapi: 3.0.0
info:
  title: quiva.ai Gateway
  description: API for managing collections, nodes, and workflows in quiva.ai Hub
  version: 0.1.0
  contact:
    name: quiva.ai Support
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Collections
    description: Operations related to collections
  - name: Nodes
    description: Operations related to nodes
  - name: Workflows
    description: Operations related to workflows
  - name: Oauth
    description: Oauth configurations and connections
paths:
  /hub/integrations/{integration_id}/oauth-config:
    parameters:
      - $ref: '#/components/parameters/integrationId'
    put:
      tags:
        - Oauth
      summary: Update an OAuth configuration.
      description: >-
        [quiva.ai admins only] Update the OAuth configuration for a specific
        integration - full configuration replacement
      operationId: putIntegrationsOauthConfig
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationOauthConfig'
            examples:
              slack:
                summary: Slack OAuth configuration
                value:
                  integration_id: slack
                  name: Slack API
                  scopes: channels:read,chat:write,users:read,files:read
                  client_id: '123456789.987654321'
                  client_secret: abcdef1234567890abcdef
                  auth_url: https://slack.com/oauth/v2/authorize
                  token_url: https://slack.com/api/oauth.v2.access
                  redirect_url: https://api.quiva.ai/hub/integrations/oauth-callback
              github:
                summary: GitHub OAuth configuration
                value:
                  integration_id: github
                  name: GitHub API
                  scopes: repo,read:user,read:org
                  client_id: Iv1.a1b2c3d4e5f6g7h8
                  client_secret: secret123456789abcdef
                  auth_url: https://github.com/login/oauth/authorize
                  token_url: https://github.com/login/oauth/access_token
                  redirect_url: https://api.quiva.ai/hub/integrations/oauth-callback
      responses:
        '200':
          description: OAuth configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    integrationId:
      name: integration_id
      in: path
      required: true
      schema:
        type: string
      description: Integration identifier
      example: slack
  schemas:
    IntegrationOauthConfig:
      type: object
      required:
        - integration_id
        - name
        - scopes
        - client_id
        - client_secret
        - auth_url
        - token_url
        - redirect_url
      properties:
        integration_id:
          type: string
          description: Unique identifier for the integration
        name:
          type: string
          description: Name of the OAuth integration
        scopes:
          type: string
          description: Comma-separated list of OAuth scopes
          example: read,write,admin
        client_id:
          type: string
          description: OAuth client ID
        client_secret:
          type: string
          description: OAuth client secret
        auth_url:
          type: string
          format: uri
          description: Authorization URL for the OAuth flow
        token_url:
          type: string
          format: uri
          description: Token URL to exchange authorization code for access token
        redirect_url:
          type: string
          format: uri
          description: Redirect URL used in the OAuth flow
    SuccessResponse:
      type: object
      properties:
        message:
          type: string
          description: Success message
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Authorization header using the Bearer scheme
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````