---
title: "Update url, events, or active"
method: PATCH
path: "/api/agent/webhooks/{id}"
---

# Update url, events, or active

`PATCH /api/agent/webhooks/{id}`

## Request

- Base URL: `https://sesapp.fr`
- URL: `https://sesapp.fr/api/agent/webhooks/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `url` string, uri
  - `events` string[]
  - `active` boolean

## Response `200`

Updated

## Other responses

- `400`: INVALID_PARAMS
- `401`: UNAUTHORIZED — missing or invalid Bearer
- `402`: x402 payment required (expired plan or overage). Body is not ApiError.
- `403`: FORBIDDEN or QUOTA_EXCEEDED (host plans without overage)
- `404`: SHEET_NOT_FOUND, SHARE_NOT_FOUND or WEBHOOK_NOT_FOUND
- `429`: RATE_LIMITED. Headers X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After.

---

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