---
title: "Update Demo"
method: PUT
path: "/studio/v1/demos/{demo_id}"
---

# Update Demo

`PUT /studio/v1/demos/{demo_id}`

Update an existing demo.

## Path parameters

- `demo_id` string, required

## Request body

- DemoUpdate
  - `name` string — Name of the demo
  - `visibility` 'public' | 'private' — An enumeration.
  - `status` 'active' | 'inactive' — An enumeration.
  - `config` object — Demo configuration
  - `ui_component_name` string — Name of the UI component

## Response `200`

Successful Response

- Demo
  - `id` string, required — A unique ID for the request (not the message). Repeated identical requests get different IDs. However, for a streaming response, the ID will be the same for all responses in the stream.
  - `name` string, required — Name of the demo
  - `visibility` 'public' | 'private', required — An enumeration.
  - `status` 'active' | 'inactive', required — An enumeration.
  - `config` object — Demo configuration
  - `ui_component_name` string, required — Name of the UI component

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ai21/apis/ai21-studio-api.md) · [All operations](https://skmtc.net/ai21/apis/ai21-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ai21/ai21-studio-api/versions/4cf5219c90d1/schema)
