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

# Update a webhook endpoint

> Updates name, URL, event subscriptions, and active state. Requires the manage:organization permission. The URL is re-validated.



## OpenAPI

````yaml PUT /api/v1/organization/webhooks/{endpointId}
openapi: 3.1.0
info:
  title: Weelkit Publishing Integrations API
  description: >-
    Public endpoints for organization custom article fields, API webhook
    destinations, and WordPress.com site discovery. All requests require a
    bearer token and an X-Org-Id organization header.
  version: 1.0.0
servers:
  - url: https://api.weelkit.com
security:
  - bearerAuth: []
paths:
  /api/v1/organization/webhooks/{endpointId}:
    put:
      summary: Update a webhook endpoint
      description: >-
        Updates name, URL, event subscriptions, and active state. Requires the
        manage:organization permission. The URL is re-validated.
      operationId: updateWebhookEndpoint
      parameters:
        - name: X-Org-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: The organization the request acts on.
        - name: endpointId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - url
                - events
                - isActive
              properties:
                name:
                  type: string
                  maxLength: 120
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  items:
                    type: string
                isActive:
                  type: boolean
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpoint'
        '400':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid authentication, or no organization context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The caller lacks the manage:organization permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The resource was not found in this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WebhookEndpoint:
      type: object
      required:
        - id
        - name
        - url
        - events
        - isActive
        - secretVersion
        - successRate
        - createdAtUtc
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          maxLength: 120
        url:
          type: string
          format: uri
          description: >-
            HTTPS endpoint. Loopback, private, link-local, and metadata hosts
            are rejected.
        events:
          type: array
          items:
            type: string
            enum:
              - article.version.created
        isActive:
          type: boolean
        secretVersion:
          type: integer
          description: Monotonic signing-secret rotation counter.
        secretRotatedAtUtc:
          type:
            - string
            - 'null'
          format: date-time
        successRate:
          type:
            - number
            - 'null'
          description: >-
            Success percentage over the latest 100 recorded deliveries. Null
            until a delivery has been recorded; unsent queued events do not
            count.
        lastDeliveryAtUtc:
          type:
            - string
            - 'null'
          format: date-time
        createdAtUtc:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable error code, e.g. Validation, Conflict, NotFound, Forbidden.
        message:
          type: string
        errors:
          type:
            - array
            - 'null'
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
              message:
                type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Weelkit access token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.