---
title: "Update a user style (RD Pro template fields only)"
method: PATCH
path: "/styles/{style_id}"
tags: ["styles"]
---

# Update a user style (RD Pro template fields only)

`PATCH /styles/{style_id}`

## Request

- Base URL: `https://api.retrodiffusion.ai/v2`
- URL: `https://api.retrodiffusion.ai/v2/styles/{style_id}`
- Auth: none declared. Required headers: `X-RD-Token`

Updates a user-owned style created via /styles. Accepts only RD Pro editable fields. `style_id` can be either internal `id` or `prompt_style`.

## Path parameters

- `style_id` string, required: Internal style id or prompt_style/public_id.

## Headers

- `X-RD-Token` string, required

## Request body

- ExternalRDProStyleUpdate: Public API schema for updating styles created from the RD Pro user template. All fields are optional and limited to RD Pro editable fields.
  - `name` string
  - `description` string
  - `style_icon` string
  - `reference_images` string[]: Replace the style reference with exactly one base64-encoded image. Omit or use null to keep the current reference.
  - `reference_caption` string
  - `apply_prompt_fixer` boolean
  - `llm_instructions` string
  - `expanded_llm_instructions` string
  - `user_prompt_template` string
  - `force_palette` boolean
  - `force_bg_removal` boolean
  - `min_width` integer
  - `min_height` integer

## Response `200`

Successful Response

- ExternalStyleCreateResponse: Minimal response model for public API style creation.
  - `id` string, required
  - `prompt_style` string, required
  - `name` string, required
  - `description` string, required
  - `type` 'system' | 'user' | 'template' | 'experimental', required: Types of Neo Art Styles for differentiation and filtering
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `405`: Method not allowed.
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/retrodiffusion/apis/retrodiffusion-api.md) · [All operations](https://skmtc.dev/retrodiffusion/apis/retrodiffusion-api/llms.txt) · [OpenAPI document](https://skmtc.dev/retrodiffusion/apis/retrodiffusion-api/revisions/9c76250e8e2d?raw)
