---
title: "Update Endpoint"
method: PATCH
path: "/api/endpoints/{endpoint_id}"
tags: ["endpoints"]
---

# Update Endpoint

`PATCH /api/endpoints/{endpoint_id}`

## Request

- Base URL: `https://api.modelwatch.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.modelwatch.app/api/endpoints/{endpoint_id}`
- Auth: HTTP bearer

## Path parameters

- `endpoint_id` string, uuid, required

## Request body

- EndpointUpdate
  - `name` string, nullable
  - `model` string, nullable
  - `system_prompt` string, nullable
  - `temperature` number, nullable
  - `max_tokens` integer, nullable
  - `extra_params` object, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- EndpointOut
  - `id` string, uuid, required
  - `workspace_id` string, uuid, required
  - `name` string, required
  - `provider` 'openai' | 'anthropic', required
  - `model` string, required
  - `system_prompt` string, nullable, required
  - `temperature` number, required
  - `max_tokens` integer, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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