---
title: "Turn an image attachment a quarter turn"
method: POST
path: "/api/preview/attachments/{id}/rotate"
tags: ["attachment"]
---

# Turn an image attachment a quarter turn

`POST /api/preview/attachments/{id}/rotate`

## Path parameters

- `id` string, required — UUID v4 string

## Request body

- object
  - `direction` 'cw' | 'ccw', required — Quarter-turn direction: "cw" (clockwise) or "ccw" (anticlockwise).

## Response `200`

Successful response

- object
  - `attachment` object, nullable, required
    - `available` boolean
    - `capsule_id` string, nullable
    - `created_at` string
    - `deleted_at` string, nullable
    - `expires_at` string, nullable
    - `file_name` string
    - `id` string
    - `mime_type` string
    - `object_key` string
    - `retention` object
      - `days` integer, nullable, required
      - `expires_at` string, nullable, required
      - `note` string, required
      - `policy` 'expires' | 'permanent', required
    - `size` integer
    - `unavailable_at` string, nullable
    - `unavailable_reason` string, nullable
  - `capsule_updated_at` string, nullable, required
  - `success` boolean, required

---

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