---
title: "Update an agent"
method: PUT
path: "/genai/{connection_id}/agent/{id}"
tags: ["genai", "agent"]
---

# Update an agent

`PUT /genai/{connection_id}/agent/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/genai/{connection_id}/agent/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- GenaiAgent
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string
  - `description` string
  - `instructions` string: The system prompt or stored procedure that the agent follows.
  - `model_id` string: The model that the agent runs on.
  - `is_active` boolean
  - `raw` unknown

## Response `200`

Successful

- GenaiAgent
  - `id` string
  - `created_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string
  - `description` string
  - `instructions` string: The system prompt or stored procedure that the agent follows.
  - `model_id` string: The model that the agent runs on.
  - `is_active` boolean
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
