---
title: "Update an endpoint"
method: PATCH
path: "/v1/endpoints/{id}"
---

# Update an endpoint

`PATCH /v1/endpoints/{id}`

## Request

- Base URL: `https://webhook-studio.com`
- URL: `https://webhook-studio.com/v1/endpoints/{id}`
- Auth: HTTP bearer

## Request body

- object
  - `name` string
  - `environment` 'production' | 'staging' | 'sandbox' | 'development'
  - `external_ref` string, nullable: null clears it.

## Response `200`

OK

## Other responses

- `400`: Error
- `401`: Error
- `404`: Error
- `409`: Error

---

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