---
title: "Rotate annotation"
method: POST
path: "/api/v1/annotations/{annotationID}/rotate"
tags: ["Annotation"]
---

# Rotate annotation

`POST /api/v1/annotations/{annotationID}/rotate`

Rotate a document.

Status of the annotation is switched to `importing` and the extraction phase begins over again.
After the new extraction, the value from `rotation_deg` field is copied to pages rotation field `rotation_deg`.

<Callout type="info">
The original pages in the annotation are replaced by new pages after the extraction phase is done.
</Callout>

## Request body

- object
  - `rotation_deg` 0 | 90 | 180 | 270, required — States degrees by which the document shall be rotated.

## Response `204`

No Content

## Other responses

- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `413` — Payload too large (especially for files uploaded).
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

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