---
title: "Put Draft"
method: PUT
path: "/admin/blog/posts/{slug}/draft"
---

# Put Draft

`PUT /admin/blog/posts/{slug}/draft`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/admin/blog/posts/{slug}/draft`
- Auth: none declared

A new revision of an EXISTING post (PR-1; new posts come with PR-3). `base_sha` must be the head
(409 `stale_base`); structural problems — an image file name that is not `<slug>[.devto].<sha10>.jpg`
among them (#1528 review) — are 422 `invalid_post`; content problems are recorded on the revision.

## Path parameters

- `slug` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
