---
title: "Upgrade a document"
method: POST
path: "/v1/document/upgrade"
tags: ["File Commands"]
---

# Upgrade a document

`POST /v1/document/upgrade`

Change the processing type of a <<glossary:Document>> from Classify to Instant, or from Instant to Complete.

## Request body

- object
  - `doc_pk` string — The <<glossary:PK>> of the <<glossary:Document>> that will be upgraded. Mutually exclusive with `doc_uuid`.
  - `doc_uuid` string — The universal unique identifier of the <<glossary:Document>> that will be upgraded. Mutually exclusive with `doc_pk`.
  - `upgrade_type` string — The type of processing to upgrade the <<glossary:Document>> to. (INSTANT/COMPLETE)

## Response `200`

Success

- object
  - `status` integer — A numerical code that indicates the status of the request.
  - `response` object — An object received from the server that potentially contains data.
    - `pk` integer — The <<glossary:PK>> of the <<glossary:Document>> that will be upgraded.
    - `uuid` string — The universal unique identifier of the <<glossary:Document>> that will be upgraded.
    - `name` string — The name of the <<glossary:Document>> that will be upgraded.
    - `document_status` string — The verification status of the <<glossary:Document>>.
    - `book_pk` integer — The <<glossary:PK>> of the <<glossary:Book>> that this <<glossary:Document>> is uploaded to.
    - `processing_type` string — The type of processing to upgrade the <<glossary:Document>> to. (INSTANT/COMPLETE)

## Other responses

- `400` — Client Errors

---

[API](https://skmtc.net/ocrolus/apis/user-management.md) · [All operations](https://skmtc.net/ocrolus/apis/user-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ocrolus/user-management/revisions/3571ef602d13/schema)
