---
title: "Save style profile with custom tweets"
method: PUT
path: "/styles/{id}"
tags: ["Composition"]
---

# Save style profile with custom tweets

`PUT /styles/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `label` string, required — Display label for the style
  - `tweets` object[], required — Array of tweet objects
    - `text` string, required

## Response `200`

Style profile saved

- StyleProfile — Full style profile with sampled tweets used for tone analysis.
  - `xUsername` string, required
  - `tweetCount` integer, required
  - `isOwnAccount` boolean, required
  - `fetchedAt` string, date-time, required
  - `tweets` object[], required
    - `id` string, required
    - `text` string, required
    - `createdAt` string
    - `authorUsername` string

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.

## Changes

- **2026-07-13** `83005363f122` — 4 breaking, 52 info
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `400`
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `401`
  - the `error` response's property type/format changed from `string`/`` to ``/`` for status `400`
  - the `error` response's property type/format changed from `string`/`` to ``/`` for status `401`
  - …52 more
- **2026-04-25** `2adc33156b4b` — 4 warning, 7 info
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `400`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `401`
  - added the new `no_credits` enum value to the `error` response property for the response status `400`
  - added the new `no_credits` enum value to the `error` response property for the response status `401`
  - …7 more

[Change history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/styles/:id/put.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/83005363f122/schema)
