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

# Update agent

`PATCH /v1/agents/{agent_id}`

Update an agent's configuration. Only provided fields are updated.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- AgentUpdate
  - `name` string
  - `description` string
  - `goal` string
  - `instructions` string

## Response `200`

Agent updated

- AgentDetailResponse — Full agent details returned by get/update endpoints
  - `id` string
  - `user_id` string
  - `name` string
  - `description` string, nullable
  - `data` object — Full agent definition including goal, instructions, and configuration
  - `triggers` object[]
  - `enabled` boolean
  - `stats` object, nullable
  - `created_at` string, nullable
  - `updated_at` string, nullable

## Other responses

- `401` — Invalid or revoked API key
- `404` — Resource not found

---

[API](https://skmtc.net/gigabraingg/apis/gigabrain-api.md) · [All operations](https://skmtc.net/gigabraingg/apis/gigabrain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gigabraingg/gigabrain-api/versions/bb4070b30d92/schema)
