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

# PATCH /api/agents/{agent_id}/

`PATCH /api/agents/{agent_id}/`

## Request

- Base URL: `https://api.baserow.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.baserow.io/api/agents/{agent_id}/`
- Auth: HTTP bearer

Updates an existing agent.

## Path parameters

- `agent_id` integer, required

## Request body

- PatchedUpdateAgentRequest: Mixin to a DRF serializer class to raise an exception if data with unknown fields is provided to the serializer.
  - `name` string
  - `role_uid` string
  - `team_ids` integer[]

## Response `200`

- Agent
  - `id` integer, required
  - `workspace_id` integer, required
  - `name` string, required
  - `role_uid` string
  - `last_active` string, date-time, nullable
  - `created_on` string, date-time, required
  - `updated_on` string, date-time, required
  - `teams` AgentTeamSummary[], required
    - `id` integer, required
    - `name` string, required

## Other responses

- `400`

## Changes

- **2026-09-30** `e81714236040`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/baserow/apis/baserow-api-spec/changes/api/agents/:agent_id/patch.md)

---

[API](https://skmtc.dev/baserow/apis/baserow-api-spec.md) - [All operations](https://skmtc.dev/baserow/apis/baserow-api-spec/llms.txt) - [OpenAPI document](https://skmtc.dev/baserow/apis/baserow-api-spec/revisions/a3756c326fe1?raw)
