---
title: "Atualizar agente de IA"
method: PUT
path: "/api/management/ai/agents/{agent}"
tags: ["ai-agents", "agents"]
---

# Atualizar agente de IA

`PUT /api/management/ai/agents/{agent}`

Atualiza os dados de um agente de IA. Apenas os campos enviados são alterados, e `tools` substitui por inteiro a lista de ferramentas habilitadas — enviar uma lista vazia desabilita todas.

## Request body

- object
  - `base_prompt` string
  - `default_model` string
  - `default_provider` string
  - `description` string
  - `name` string
  - `tools` unknown[]
    - unknown

## Response `200`

Sucesso

- object
  - `response` boolean
  - `agent` object
    - `id` string
    - `name` string
    - `description` string
    - `default_provider` string
    - `default_model` string
    - `base_prompt` string
    - `status` string
    - `tools` string[]
    - `frame_id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `created_by` string

## Other responses

- `404` — Agente não encontrado
- `422` — Erro de validação

## Changes

- **2026-09-22** `b43a04f35145` — 2 warning
  - removed the optional property `agent/deleted_at` from the response with the `200` status
  - removed the optional property `agent/structured_output` from the response with the `200` status
- **2026-09-18** `3202abfa17f9` — 3 info
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `404`
  - added the non-success response with the status `422`

[Change history](https://skmtc.dev/olie-ai/apis/olie-api/changes/api/management/ai/agents/:agent/put.md)

---

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