---
title: "Put Image"
method: PUT
path: "/admin/blog/posts/{slug}/images/{name}"
---

# Put Image

`PUT /admin/blog/posts/{slug}/images/{name}`

## 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}/images/{name}`
- Auth: none declared

Upload ONE rendered image of a post (flag AGENT_MDX_BLOG_AGENT_WRITE). Body: the JPEG bytes
(`Content-Type: image/jpeg`). Write-once and content-addressed: `name` is `<slug>.<sha10>.jpg` (og,
1200×630) or `<slug>.devto.<sha10>.jpg` (devto, 1000×420), `<sha10>` the sha256 of exactly these bytes;
no metadata segments; at most 1 MB. Stored under <data>/blog/post-images/ (safe_image_path + O_NOFOLLOW
verify). It is used once a draft's `syndication.image.files` names it.

## Path parameters

- `slug` string, required
- `name` 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)
