> ## 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 webhook

> Updates webhook configuration. Allows updating URL, events, and active status.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json put /organizations/{organizationId}/webhooks/{id}
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:
  /organizations/{organizationId}/webhooks/{id}:
    put:
      tags:
        - webhooks
      summary: Update webhook
      description: >-
        Updates webhook configuration. Allows updating URL, events, and active
        status.
      operationId: WebhooksController_update
      parameters:
        - name: organizationId
          required: true
          in: path
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookDto'
      responses:
        '200':
          description: Webhook updated successfully with new configuration.
        '400':
          description: Invalid input data. Check URL format and event types.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only owners and admins can update webhooks.
        '404':
          description: Webhook not found with the provided ID.
      security:
        - bearer: []
components:
  schemas:
    UpdateWebhookDto:
      type: object
      properties:
        url:
          type: string
          description: Webhook endpoint URL
          example: https://example.com/webhooks
        events:
          description: Events to subscribe to
          example:
            - organization.created
            - organization.updated
          type: array
          items:
            type: array
        isActive:
          type: boolean
          description: Whether the webhook is active
          example: true
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````