---
title: "POST /v1/posts"
method: POST
path: "/v1/posts"
tags: ["MiniBlog"]
---

# POST /v1/posts

`POST /v1/posts`

创建文章

## Request body

- V1CreatePostRequest — CreatePostRequest 表示创建文章请求
  - `title` string
  - `content` string

## Response `200`

OK

- V1CreatePostResponse — CreatePostResponse 表示创建文章响应
  - `postID` string

## Changes

- **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/post.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/2cd7efbd4c2e/schema)
