---
title: "Update Style Endpoint"
method: PATCH
path: "/styles/{style_id}"
tags: ["styles"]
---

# Update Style Endpoint

`PATCH /styles/{style_id}`

## Request

- Base URL: `https://api.framesail.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.framesail.com/styles/{style_id}`
- Auth: HTTP bearer

## Path parameters

- `style_id` string, required

## Response `200`

Successful Response

- StyleResponse: Public style shape returned to the frontend. `fields` is included so the frontend can render content from a single query — no separate /analysis endpoint needed. "Analysis done" is `fields.art_style.value` non-empty; "in flight" is an ai_jobs row observed by useJobWatcher (keyed on style_id).
  - `id` string, required
  - `channel_id` string, required
  - `name` string, required
  - `inputs` object[]
  - `fields` object
  - `inputs_stale` boolean
  - `created_at` string, nullable
  - `updated_at` string, nullable

## Other responses

- `422`: Validation Error

---

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