---
title: "Update Agent"
method: PATCH
path: "/agent/{agent_id}"
tags: ["agents"]
---

# Update Agent

`PATCH /agent/{agent_id}`

## Request

- Base URL: `https://api.overfit.de` (the document declares no server; this is the origin it was published from)
- URL: `https://api.overfit.de/agent/{agent_id}`
- Auth: one of:
  - OpenID Connect (`https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration`)
  - API key in header `X-API-Key`

Update a agent. Accepts AgentUpdate Schema as input.
Agent is identified by the id (agt_)

## Path parameters

- `agent_id` string, required

## Request body

- AgentUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `public` boolean, nullable

## Response `200`

Successful Response

- Agent
  - `id` string, required
  - `time_created` string, date-time, required
  - `name` string, required
  - `description` string, nullable
  - `public` boolean
  - `agent_type` 'DEFAULT' | 'PLAN' | 'PRIMED', required
  - `agent_steps` AgentStep[]
    - `id` string, required
    - `agent_id` string, required
    - `order` integer, required
    - `step_type` string, required
    - `step_message` string, required
  - `generative_model` string
  - `temperature` number
  - `tools` Tool[]
    - `name` string, required
    - `description` string, nullable
    - `public` boolean
    - `llm_selection_string` string, nullable
    - `id` string, required
    - `sub` string, uuid, required
    - `tool_type` string, required
  - `sub` string, uuid, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval.md) · [All operations](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/llms.txt) · [OpenAPI document](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/revisions/0055f7fe41e5?raw)
