> ## Documentation Index
> Fetch the complete documentation index at: https://docs.timbrix.mx/llms.txt
> Use this file to discover all available pages before exploring further.

# Update OAuth application

> ⚠️ SECURITY: Only OWNERS and ADMINS can update OAuth applications. Allows updating name, scopes, redirect URIs, and status. Client ID and secret cannot be changed.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json put /oauth/apps/{clientId}
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /oauth/apps/{clientId}:
    put:
      tags:
        - oauth
      summary: Update OAuth application
      description: >-
        ⚠️ SECURITY: Only OWNERS and ADMINS can update OAuth applications.
        Allows updating name, scopes, redirect URIs, and status. Client ID and
        secret cannot be changed.
      operationId: OAuthController_updateApp
      parameters:
        - name: clientId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOAuthAppDto'
      responses:
        '200':
          description: Application updated successfully with new configuration.
        '400':
          description: Invalid input data. Check validation errors.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only owners and admins can update OAuth applications.
        '404':
          description: OAuth application not found with the provided client ID.
      security:
        - bearer: []
components:
  schemas:
    UpdateOAuthAppDto:
      type: object
      properties:
        name:
          type: string
          description: Application name
          example: My Integration
          maxLength: 100
        description:
          type: string
          description: Application description
          example: Integration for managing organization data
          maxLength: 500
        redirectUri:
          type: string
          description: Redirect URI for OAuth flow
          example: https://example.com/callback
        scopes:
          description: OAuth scopes requested
          example:
            - read:organization
            - write:organization
          type: array
          items:
            type: array
        isActive:
          type: boolean
          description: Whether the application is active
          example: true
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````