---
title: "Archive draft"
method: DELETE
path: "/v1/documents/{documentId}/draft"
tags: ["Documents"]
---

# Archive draft

`DELETE /v1/documents/{documentId}/draft`

Archive the current draft of the specified document. Archived drafts are placed in the [**Archived** section of the **Drafts** drawer](/content/develop/drafts#archiving-drafts) in the document's workbook and retained for 30 days.

If a branch is specified, the current draft on the branch is archived.

## Path parameters

- `documentId` string, required

## Request body

- object
  - `branchId` string, uuid — The UUID of the branch the draft is attached to. To retrieve branch IDs, use the [List models](/api/models/list-models) endpoint with `modelKind=BRANCH`.

## Response `200`

Draft archived successfully

- object
  - `message` string

## Other responses

- `404` — Not Found Possible error messages: - `Document with identifier <documentId> not found` - `Draft with id <documentId> does not exist`
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
