---
title: "Update an agent profile"
method: PATCH
path: "/agents/{id}"
tags: ["agents"]
---

# Update an agent profile

`PATCH /agents/{id}`

## Request

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

Updates only the fields provided; pass address_id null to unbind, summary_prompt null to go back to the default summary prompt.

## Path parameters

- `id` string, required: agent ID

## Request body

- object
  - `name` string
  - `persona_prompt` string
  - `mode` string
  - `address_id` string, nullable
  - `allowed_senders` string[], nullable
  - `skills` object[]
    - `id` string, required
    - `name` string, required
    - `description` string, required
    - `instructions` string, required
    - `enabled` boolean, required
  - `summary_prompt` string, nullable: Summary prompt for evaluations, up to 4000 characters; null, blank, or a built-in default follows the workspace language

## Response `200`

Updated

- object
  - `success` boolean, required

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Agent not found

---

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