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

# Update webhook endpoint

> Update an existing webhook endpoint



## OpenAPI

````yaml /swagger.json patch /v1/apps/{app_id}/webhooks/{id}
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/apps/{app_id}/webhooks/{id}:
    parameters:
      - name: app_id
        in: path
        description: Application ID
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: Webhook endpoint ID
        required: true
        schema:
          type: string
    patch:
      tags:
        - Webhooks
      summary: Update webhook endpoint
      description: Update an existing webhook endpoint
      operationId: updateWebhookEndpoint
      parameters: []
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  webhook_endpoint:
                    $ref: '#/components/schemas/WebhookEndpoint'
      security:
        - apiSecret: []
          userAccess: []
components:
  schemas:
    WebhookEndpoint:
      type: object
      properties:
        id:
          type: string
          description: Webhook endpoint ID
        app_id:
          type: string
          description: Application ID
        url:
          type: string
          format: uri
          description: HTTPS URL to receive webhook notifications
          example: https://example.com/webhooks
        event_types:
          type: array
          items:
            type: string
          description: List of event types to subscribe to. Use '*' for all events
          example:
            - user.created
            - user.updated
            - '*'
        secret:
          type: string
          description: Secret key for HMAC signature verification
          example: whsec_1234567890abcdef
        retry_limit:
          type: integer
          minimum: 0
          maximum: 10
          description: Number of retry attempts for failed deliveries (0-10)
          example: 3
        enabled:
          type: boolean
          description: Whether the webhook endpoint is enabled
          example: true
        last_ping_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp of last ping/test
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
      required:
        - id
        - app_id
        - url
        - event_types
        - secret
        - retry_limit
        - enabled
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````