---
title: "Patch Agent"
method: PATCH
path: "/agents/{agent_id}"
tags: ["agents"]
---

# Patch Agent

`PATCH /agents/{agent_id}`

## Path parameters

- `agent_id` string, uuid, required

## Request body

- PatchAgentRequest — Payload for patching a agent
  - `metadata` object, nullable
  - `name` string, nullable
  - `project` string, nullable
  - `canonical_name` string, nullable
  - `about` string
  - `model` string
  - `instructions` union
    - string
    - string[]
  - `default_settings` object, nullable
  - `default_system_template` string

## Response `200`

Successful Response

- Agent
  - `id` string, uuid, required
  - `metadata` object, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `name` string, required
  - `project` string, nullable
  - `canonical_name` string, nullable
  - `about` string
  - `model` string
  - `instructions` union
    - string
    - string[]
  - `default_settings` object, nullable
  - `default_system_template` string

## Other responses

- `422` — Validation Error

## Changes

- **2025-05-12** `3b58badc86fa` — 2 info
  - added the new optional request property `project`
  - added the optional property `project` to the response with the `200` status
- **2025-02-18** `854c2437e2f6` — 2 info
  - added the new optional request property `default_system_template`
  - added the optional property `default_system_template` to the response with the `200` status
- **2025-02-05** `f98a166b9709` — 1 breaking, 3 info
  - removed `#/components/schemas/DefaultChatSettings` from the `default_settings` request property `anyOf` list
  - added `subschema #1` to the `default_settings` request property `anyOf` list
  - added `subschema #1` to the `default_settings` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/DefaultChatSettings` from the `default_settings` response property `anyOf` list for the response status `200`
- **2025-01-27** `f87931a479bd` — 1 warning, 9 info
  - removed the optional property `jobs` from the response with the `200` status
  - added the optional property `about` to the response with the `200` status
  - added the optional property `canonical_name` to the response with the `200` status
  - added the optional property `default_settings` to the response with the `200` status
  - …6 more

[Change history](https://skmtc.dev/julep-ai/apis/julep-agents-api/changes/agents/:agent_id/patch.md)

---

[API](https://skmtc.dev/julep-ai/apis/julep-agents-api.md) · [All operations](https://skmtc.dev/julep-ai/apis/julep-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/julep-ai/julep-agents-api/revisions/21c8182519ef/schema)
