---
title: "Update Agent Settings"
method: PATCH
path: "/settings/agent"
tags: ["settings"]
---

# Update Agent Settings

`PATCH /settings/agent`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/settings/agent`
- Auth: API key in cookie `fastapiusersauth`

## Request body

- AgentSettingsUpdate
  - `agent_default_model` string, nullable: The default AI model to use for agent operations.
  - `agent_fixed_args` string, nullable: Fixed arguments for agent tools as a JSON string. Format: {'tool_name': {'arg': 'value'}}
  - `agent_case_chat_prompt` string: Additional instructions for case chat agent; prepended to UI-provided instructions.
  - `agent_case_chat_inject_content` boolean: Whether to automatically inject case content into agent prompts when a case_id is available.

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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