---
title: "Update Model Spec"
method: PATCH
path: "/v1/workspaces/{workspace}/model-specs/{model_spec_id}"
tags: ["v1", "protected", "model-specs"]
---

# Update Model Spec

`PATCH /v1/workspaces/{workspace}/model-specs/{model_spec_id}`

Update a model specification.

## Path parameters

- `model_spec_id` string, uuid, required
- `workspace` string, required — Slug of the workspace the request acts in

## Request body

- ModelSpecUpdate
  - `context_window` integer, nullable
  - `default_context_strategy` string, nullable
  - `description` string, nullable
  - `display_name` string, nullable
  - `input_cost_per_token` union
    - number
    - string
  - `is_active` boolean, nullable
  - `max_output_tokens` integer, nullable
  - `output_cost_per_token` union
    - number
    - string

## Response `200`

Successful Response

- AgentareaApiApiV1ModelSpecsModelSpecResponse
  - `context_window` integer, required
  - `created_at` string, required
  - `default_context_strategy` string, nullable, required
  - `description` string, nullable, required
  - `display_name` string, required
  - `id` string, required
  - `input_cost_per_token` string, nullable
  - `is_active` boolean, required
  - `max_output_tokens` integer, nullable
  - `model_name` string, required
  - `output_cost_per_token` string, nullable
  - `provider_key` string, nullable
  - `provider_name` string, nullable
  - `provider_spec_id` string, required
  - `supports_function_calling` boolean, nullable
  - `supports_reasoning` boolean, nullable
  - `supports_vision` boolean, nullable
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `d3ad8e1a3681` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/model-specs/:model_spec_id/patch.md)

---

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