---
title: "Update a endpoint"
method: PUT
path: "/workspaces/{ws_id}/endpoints/{id}"
tags: ["Endpoint"]
---

# Update a endpoint

`PUT /workspaces/{ws_id}/endpoints/{id}`

## Path parameters

- `id` string, required

## Request body

- Endpoint
  - `id` string
  - `name` string, nullable
  - `description` string, nullable
  - `enabled` boolean
  - `request` object
    - `url` string, required
    - `method` 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
    - `headers` object, nullable
    - `timeout` integer
  - `retry` object
    - `strategy` 'fixed'
    - `config` object
      - `attempts` integer[]
  - `events` string[]
  - `metadata` Metadata
  - `rate_limit` RateLimit, nullable — The rate limit that uses GCRA algorithm (a variant of the leaky bucket algorithm that supports bursts).
    - `quota` integer, required — Rate limiting quota that allowed in every period.
    - `period` integer, required — Rate limiting period in seconds.
  - `created_at` integer
  - `updated_at` integer

## Response `200`

OK

- Endpoint
  - `id` string
  - `name` string, nullable
  - `description` string, nullable
  - `enabled` boolean
  - `request` object
    - `url` string, required
    - `method` 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
    - `headers` object, nullable
    - `timeout` integer
  - `retry` object
    - `strategy` 'fixed'
    - `config` object
      - `attempts` integer[]
  - `events` string[]
  - `metadata` Metadata
  - `rate_limit` RateLimit, nullable — The rate limit that uses GCRA algorithm (a variant of the leaky bucket algorithm that supports bursts).
    - `quota` integer, required — Rate limiting quota that allowed in every period.
    - `period` integer, required — Rate limiting period in seconds.
  - `created_at` integer
  - `updated_at` integer

---

[API](https://skmtc.net/webhookx-io/apis/webhookx-admin-api.md) · [All operations](https://skmtc.net/webhookx-io/apis/webhookx-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/webhookx-io/webhookx-admin-api/versions/af64d4e6c0c3/schema)
