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

# Save style profile with custom tweets

`PUT /styles/{username}`

## Path parameters

- `username` 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
  - `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

---

[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/2e39c853db18/schema)
