---
title: "Update a webhook endpoint"
method: PATCH
path: "/api/webhooks/{id}"
tags: ["Webhooks"]
---

# Update a webhook endpoint

`PATCH /api/webhooks/{id}`

## Request

- Base URL: `https://keep.md`
- URL: `https://keep.md/api/webhooks/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `keep.session_token`

Update a webhook endpoint.

## Headers

- `Keep-API-Version` string

## Request body

- WebhookWriteRequest
  - `name` string
  - `url` string, uri
  - `eventTypes` string[]
  - `resourceScope` ResourceScope
    - `tagSlugs` string[]
    - `collectionIds` string[]
  - `status` 'active' | 'disabled'

## Response `200`

Updated webhook

- object
  - `webhook` Webhook, required
    - `id` string, required
    - `name` string
    - `url` string, uri, required
    - `eventTypes` string[], required
    - `resourceScope` ResourceScope
      - `tagSlugs` string[]
      - `collectionIds` string[]
    - `includeContent` false
    - `status` 'active' | 'disabled', required
    - `failureCount` integer, required
    - `lastSuccessAt` integer
    - `lastFailureAt` integer
    - `lastError` string
    - `createdAt` integer, required
    - `updatedAt` integer, required

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: The credential lacks access or the plan does not include the feature
- `404`: Resource not found

---

[API](https://skmtc.dev/keep/apis/keep-api.md) · [All operations](https://skmtc.dev/keep/apis/keep-api/llms.txt) · [OpenAPI document](https://skmtc.dev/keep/apis/keep-api/revisions/a338a455bd0f?raw)
