---
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
  - `canonical_name` string, nullable
  - `about` string
  - `model` string
  - `instructions` union
    - string
    - string[]
  - `default_settings` DefaultChatSettings — Default settings for the chat session (also used by the agent)
    - `frequency_penalty` number, nullable
    - `presence_penalty` number, nullable
    - `temperature` number, nullable
    - `top_p` number, nullable
    - `repetition_penalty` number, nullable
    - `length_penalty` number, nullable
    - `min_p` number, nullable

## Response `200`

Successful Response

- ResourceUpdatedResponse
  - `id` string, uuid, required
  - `updated_at` string, date-time, required
  - `jobs` string[]

## Other responses

- `422` — Validation Error

---

[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/ea124be3fdbc/schema)
