---
title: "Patch Endpoint"
method: PATCH
path: "/endpoint/{endpoint_id}"
tags: ["Endpoint"]
---

# Patch Endpoint

`PATCH /endpoint/{endpoint_id}`

## Request

- Base URL: `https://api.sinay.ai/webhook/api/v1`
- URL: `https://api.sinay.ai/webhook/api/v1/endpoint/{endpoint_id}`
- Auth: API key in header `API_KEY`

Partially update an endpoint.

## Path parameters

- `endpoint_id` string, required: The ep's ID or UID

## Request body

- EndpointPatch
  - `description` string
  - `rateLimit` integer, nullable: Rate limit of your endpoint in messages per second. This is an advanced field. Be aware that setting a low rateLimit can lead to a congestion queue and create delay in webhooks.
  - `uid` string, nullable: The ep's UID
  - `url` string, uri: Public url in your services where you plan to receive our webhooks.
  - `version` integer
  - `disabled` boolean: When disabled is true, no messages will be sent to your endpoint. This can be used to deactivate a development or a testing endpoint when not in use.
  - `filterTypes` string[], nullable
  - `channels` string[], nullable: List of message channels this endpoint listens to (omit for all)
  - `secret` string, nullable: The endpoint's verification secret. If `null` is passed, a secret is automatically generated. Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24.
  - `metadata` object: Optional additional properties for your endpoint.

## Response `200`

- EndpointOut
  - `id` string, required: The ep's ID
  - `metadata` object, required: Optional additional properties for your endpoint.
  - `description` string, required: An example endpoint name
  - `rateLimit` integer, nullable: Rate limit of your endpoint in messages per second. This is an advanced field. Be aware that setting a low rateLimit can lead to a congestion queue and create delay in webhooks.
  - `uid` string, nullable: Optional unique identifier for the endpoint
  - `url` string, uri, required: Public url in your services where you plan to receive our webhooks. If you don't have a public url ready yet, you can use Svix play to test our webhooks https://www.svix.com/play/
  - `version` integer, required
  - `disabled` boolean: When disabled is true, no messages will be sent to your endpoint. This can be used to deactivate a development or a testing endpoint when not in use.
  - `filterTypes` string[], nullable
  - `channels` string[], nullable: List of message channels this endpoint listens to (omit for all)
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: Bad request
- `403`: Forbidden
- `404`: Not Found. The endpoint has not been found.
- `409`: Conflict. The endpoint id is already used.
- `422`: Validation Error. The payload does not have the necessary information or format.
- `429`: Too Many Requests
- `500`: Internal Error

---

[API](https://skmtc.dev/safecube/apis/webhook-api.md) - [All operations](https://skmtc.dev/safecube/apis/webhook-api/llms.txt) - [OpenAPI document](https://skmtc.dev/safecube/apis/webhook-api/revisions/86d07c02c618?raw)
