---
title: "Create block"
method: POST
path: "/space/{space_id}/block"
tags: ["block"]
---

# Create block

`POST /space/{space_id}/block`

Create a new block (supports all types: page, folder, text, sop, etc.). For page and folder types, parent_id is optional. For other types, parent_id is required.

## Path parameters

- `space_id` string, uuid, required

## Request body

- HandlerCreateBlockReq
  - `parent_id` string
  - `props` object
  - `title` string
  - `type` string, required

## Response `201`

Created

- object
  - `code` integer
  - `data` HttpclientInsertBlockResponse
    - `id` string
  - `error` string
  - `msg` string

## Changes

- **2025-11-12** `a1c1bcb0e2ee` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/space/:space_id/block/post.md)

---

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