---
title: "PUT /v1/posts/{postID}"
method: PUT
path: "/v1/posts/{postID}"
tags: ["MiniBlog"]
---

# PUT /v1/posts/{postID}

`PUT /v1/posts/{postID}`

UpdatePost 更新文章

## Path parameters

- `postID` string, required

## Request body

- V1UpdatePostRequest — UpdatePostRequest 表示更新文章请求
  - `postID` string — postID 表示要更新的文章 ID
  - `title` string — title 表示更新后的博客标题
  - `content` string — content 表示更新后的博客内容

## Response `200`

OK

- V1UpdatePostResponse — UpdatePostResponse 表示更新文章响应

## Changes

> 5 revisions in range; 1 could not be searched.

- **2024-12-10** `2cd7efbd4c2e` — 1 info
  - endpoint added
- **2024-04-03** `ae599f31f558` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/onexstack/apis/miniblog-api/changes/v1/posts/:postID/put.md)

---

[API](https://skmtc.dev/onexstack/apis/miniblog-api.md) · [All operations](https://skmtc.dev/onexstack/apis/miniblog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onexstack/miniblog-api/revisions/260806329592/schema)
