---
title: "Update Workspace Model Endpoint"
method: PATCH
path: "/studio/v1/settings/models/{name}"
---

# Update Workspace Model Endpoint

`PATCH /studio/v1/settings/models/{name}`

## Path parameters

- `name` string, required

## Request body

- WorkspaceModelUpdate
  - `name` string
  - `model_type` string
  - `secret_id` string

## Response `200`

Successful Response

- WorkspaceModelResponse
  - `name` string, required
  - `model_type` string, required
  - `secret_id` string
  - `created_by` string
  - `created_at` string, date-time
  - `provider` string
  - `internal` boolean

## 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/4105747cd57d/schema)
