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

# Update a webhook endpoint

> Updates any of `name`, `url`, `description`, `status`, and `events`. Set `status` to `disabled` to stop deliveries without deleting the endpoint, and back to `active` to resume.

**Note:** `events` replaces the endpoint's entire subscription list — send the complete set you want, not just the additions.

Endpoints created by an app (via OAuth) can only be updated by that app; an API key request returns `403`.



## OpenAPI

````yaml /api-reference/v4.json patch /v4/webhook_endpoints/{id}
openapi: 3.0.3
info:
  title: Kit API
  version: '4.0'
servers:
  - url: https://api.kit.com
security: []
paths:
  /v4/webhook_endpoints/{id}:
    patch:
      tags:
        - Webhooks
      summary: Update a webhook endpoint
      description: >-
        Updates any of `name`, `url`, `description`, `status`, and `events`. Set
        `status` to `disabled` to stop deliveries without deleting the endpoint,
        and back to `active` to resume.


        **Note:** `events` replaces the endpoint's entire subscription list —
        send the complete set you want, not just the additions.


        Endpoints created by an app (via OAuth) can only be updated by that app;
        an API key request returns `403`.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          example: 48
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                url:
                  type: string
                description:
                  type: string
                status:
                  type: string
                  enum:
                    - active
                    - disabled
                  description: 'Endpoint status. One of: `active`, `disabled`.'
                events:
                  type: array
                  items:
                    type: string
                  description: >-
                    Event types this endpoint subscribes to (e.g.
                    `subscriber.created`). On update, the list supplied here
                    replaces the endpoint's full subscription list.
            example:
              name: Updated name
              url: https://hooks.example.com/v2
              description: Now with details
              status: active
              events:
                - subscriber.activated
      responses:
        '200':
          description: Updates the webhook endpoint
          content:
            application/json:
              schema:
                type: object
                properties:
                  webhook_endpoint:
                    type: object
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      url:
                        type: string
                      events:
                        type: array
                        items:
                          type: string
                      status:
                        type: string
                      source:
                        type: string
                      description:
                        type: string
                      created_by_app:
                        nullable: true
                      created_at:
                        type: string
                      previous_secret_expires_at:
                        nullable: true
                    required:
                      - id
                      - name
                      - url
                      - events
                      - status
                      - source
                      - description
                      - created_by_app
                      - created_at
                      - previous_secret_expires_at
                required:
                  - webhook_endpoint
              example:
                webhook_endpoint:
                  id: 29
                  name: Updated name
                  url: https://hooks.example.com/v2
                  events:
                    - subscriber.activated
                  status: active
                  source: creator
                  description: Now with details
                  created_by_app: null
                  created_at: '2023-02-17T11:43:55Z'
                  previous_secret_expires_at: null
        '404':
          description: Returns a 404 when the provided id does not exist
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: string
                required:
                  - errors
              example:
                errors:
                  - Not Found
      security:
        - API Key: []
        - OAuth2: []
components:
  securitySchemes:
    API Key:
      description: Authenticate API requests via an API Key
      type: apiKey
      in: header
      name: X-Kit-Api-Key
    OAuth2:
      description: Authenticate API requests via an OAuth token
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.kit.com/v4/oauth/authorize
          tokenUrl: https://api.kit.com/v4/oauth/token
          refreshUrl: https://api.kit.com/v4/oauth/token
          scopes:
            read: Read access to Kit API v4
            write: Write access to Kit API v4

````

## Related topics

- [Delete a webhook endpoint](/api-reference/webhooks/delete-a-webhook-endpoint.md)
- [Create a webhook endpoint](/api-reference/webhooks/create-a-webhook-endpoint.md)
- [Webhooks overview](/webhooks/overview.md)
- [Get a webhook endpoint](/api-reference/webhooks/get-a-webhook-endpoint.md)
- [List webhook endpoints](/api-reference/webhooks/list-webhook-endpoints.md)
