---
title: "Update an endpoint"
method: PUT
path: "/webhooks/{id}"
tags: ["Webhooks"]
---

# Update an endpoint

`PUT /webhooks/{id}`

## Request

- Base URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent`
- URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent/webhooks/{id}`
- Auth: HTTP bearer

Change an endpoint's url, subscribed events, description, or active flag. Only the fields you pass change, and the signing secret is neither returned nor rotated here.

## Path parameters

- `id` string, required

## Request body

- object
  - `url` string
  - `events` string[]
  - `description` string, nullable
  - `active` boolean

## Response `200`

Success.

- object

## Other responses

- `400`: Arguments failed validation.
- `401`: Missing or invalid agent key.
- `403`: Key does not hold the webhooks:manage scope.
- `429`: Rate limited.

---

[API](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway.md) · [All operations](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/rcs-campaigns/apis/rcs-campaigns-agent-gateway/revisions/acdbf292d9d6?raw)
