---
title: "Change a saved agent"
method: PATCH
path: "/saved-agents/{id}"
---

# Change a saved agent

`PATCH /saved-agents/{id}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/saved-agents/{id}`
- Auth: HTTP bearer

`connectionSupport` changes which channels and whether connectors the agent allows, as the My Agents card does; `accountSetup` (`{mode, values}`) replaces the setup of an agent on its own provider account, write-only.

## Path parameters

- `id` string, required

## Request body

- object
  - `connectionSupport` object
  - `accountSetup` object

## Response `200`

OK

- object

## Other responses

- `401`: Error — { error: { code, message } }
- `403`: Error — { error: { code, message } }
- `404`: Error — { error: { code, message } }
- `422`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/saved-agents/:id/patch.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
