---
title: "Acknowledge download - Change document state"
method: POST
path: "/rest/state"
tags: ["sts-controller"]
---

# Acknowledge download - Change document state

`POST /rest/state`

Updates the state of a document (e.g., download, open, cancel). Consumes form data. This service is optional. When using `cookieAuth`, the `JSESSIONID` cookie from the `/api/login` response should be used.

## Response `200`

State change successful

- Result
  - `message` string
  - `result` unknown
  - `url` string
  - `documentId` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Document not found
- `409` — Conflict
- `500` — Internal Server Error

---

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