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

# Update a webhook endpoint

Update a webhook endpoint's URL, description, enabled events, or status. Fields you don't include are left unchanged.

To temporarily stop delivery without losing the endpoint configuration, set `status` to `disabled`.


## OpenAPI

````yaml PATCH /v1/webhook-endpoints/{id}
openapi: 3.1.0
info:
  title: Selektable API
  version: 1.0.0
  description: >-
    Generate AI product visualizations from a customer photo. Two modes are
    supported: `virtual-try-on` (fashion) and `room-visualizer` (interior).
    Generations are asynchronous: subscribe a webhook endpoint (recommended) or
    poll the generation.
  contact:
    name: Selektable Support
    url: https://selektable.com
servers:
  - url: https://app.selektable.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Generations
    description: Create and retrieve AI visualizations
  - name: Webhook Endpoints
    description: Manage outgoing webhook destinations
paths:
  /v1/webhook-endpoints/{id}:
    patch:
      tags:
        - Webhook Endpoints
      summary: Update a webhook endpoint
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookEndpointRequest'
      responses:
        '200':
          description: The updated webhook endpoint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '404':
          $ref: '#/components/responses/Error'
components:
  schemas:
    UpdateWebhookEndpointRequest:
      type: object
      properties:
        url:
          type: string
          format: uri
        description:
          type:
            - string
            - 'null'
          maxLength: 200
        enabledEvents:
          type: array
          items:
            type: string
            enum:
              - '*'
              - generation.completed
              - generation.failed
        status:
          type: string
          enum:
            - enabled
            - disabled
    WebhookEndpoint:
      type: object
      properties:
        id:
          type: string
          example: whe_abc123
        object:
          type: string
          enum:
            - webhook_endpoint
        url:
          type: string
          format: uri
        description:
          type:
            - string
            - 'null'
        enabledEvents:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - enabled
            - disabled
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - authorization_error
                - invalid_request_error
                - rate_limit_error
                - not_found_error
                - conflict_error
                - api_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Selektable API key (`selektable_...`), sent as `Authorization:
        Bearer <key>`.

````