---
title: "Update a playground endpoint"
method: PUT
path: "/v1/playground-endpoints/{id}"
tags: ["Playground Endpoints"]
---

# Update a playground endpoint

`PUT /v1/playground-endpoints/{id}`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/playground-endpoints/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/playground-endpoints/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing playground endpoint

## Path parameters

- `id` string, uuid, required

## Request body

- UpdatePlaygroundEndpoint (unresolved $ref)

## Response `200`

Endpoint updated successfully

- PlaygroundEndpoint (unresolved $ref)

## Other responses

- `404`: Endpoint not found

---

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