---
title: "Update a model profile"
method: PATCH
path: "/api/model-profiles/{name}"
tags: ["Models"]
---

# Update a model profile

`PATCH /api/model-profiles/{name}`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/model-profiles/{name}`
- Auth: HTTP bearer

Changes the model, effort, custom-model flag or description; the name and harness are fixed. Omit a field to keep it; `effort: null` clears it. Applies to tasks claimed after the change. Operator only (the shared API key).

## Path parameters

- `name` string, required

## Request body

- object
  - `model` string
  - `effort` 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'null', nullable
  - `allowCustomModel` boolean
  - `description` string, nullable

## Response `200`

Profile updated

- object
  - `id` string, required
  - `name` string, required
  - `harness` 'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'acp' | 'dsh' | 'amp' | 'cursor' | 'grok' | 'fx', required
  - `model` string, required
  - `effort` 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'null', nullable, required
  - `allowCustomModel` boolean, required
  - `description` string, nullable, required
  - `seededFrom` string, nullable, required
  - `createdAt` string, required
  - `lastUpdatedAt` string, required

## Other responses

- `400`: Validation error
- `403`: Forbidden
- `404`: No profile with that name

## Changes

- **2026-10-29** `305e33634408`: 1 warning
  - added the new `fx` enum value to the `harness` response property for the response status `200`
- **2026-10-16** `cccec5621359`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/model-profiles/:name/patch.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
