---
title: "Upsert Agent Theme Preference"
method: PUT
path: "/me/agents/{agent_id}/customizations/theme"
tags: ["User API"]
---

# Upsert Agent Theme Preference

`PUT /me/agents/{agent_id}/customizations/theme`

## Path parameters

- `agent_id` string, uuid, required

## Request body

- AgentThemePreferenceUpsertRequest
  - `theme_color` string, required

## Response `200`

Successfully updated agent theme preference

- AgentThemePreferenceResponse
  - `agent_id` string, uuid, required
  - `theme_color` string, required
  - `updated_at` string, date-time, required

## Other responses

- `400` — Invalid theme color format
- `403` — Not authorized to access this agent
- `404` — Agent not found
- `422` — Validation Error

---

[API](https://skmtc.net/toolhouse/apis/toolhouse-api.md) · [All operations](https://skmtc.net/toolhouse/apis/toolhouse-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/toolhouse/toolhouse-api/versions/6e3bad3564b3/schema)
