---
title: "POST /api/v1/documents/{docCode}/edit/discard"
method: POST
path: "/api/v1/documents/{docCode}/edit/discard"
tags: ["document-edit-controller"]
---

# POST /api/v1/documents/{docCode}/edit/discard

`POST /api/v1/documents/{docCode}/edit/discard`

## Request

- Base URL: `https://postmd.turink.com`
- URL: `https://postmd.turink.com/api/v1/documents/{docCode}/edit/discard`
- Auth: one of:
  - none
  - HTTP bearer

No credential needed. Called with an API key, the key needs scope `documents:write`.

## Path parameters

- `docCode` string, required

## Headers

- `X-Edit-Session` string

## Response `200`

OK

---

[API](https://skmtc.dev/turink/apis/postmd-api.md) · [All operations](https://skmtc.dev/turink/apis/postmd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/turink/apis/postmd-api/revisions/cec727bfd959?raw)
