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

# POST /v1/posts

`POST /v1/posts`

CreatePost 创建文章

## Request body

- V1CreatePostRequest — CreatePostRequest 表示创建文章请求
  - `title` string — title 表示博客标题
  - `content` string — content 表示博客内容

## Response `200`

OK

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

## 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/260806329592/schema)
