---
title: "Create a content block"
method: POST
path: "/stephen/content-blocks"
tags: ["stephen"]
---

# Create a content block

`POST /stephen/content-blocks`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/stephen/content-blocks`
- Auth: none required

## Request body

- CreateStephenContentBlock
  - `type` 'achievement' | 'about' | 'service' | 'stat' | 'skill', required
  - `title` string, required
  - `content` string, required
  - `icon` string
  - `date` string
  - `sortOrder` integer
  - `featured` boolean
  - `metadata` object

## Response `201`

Created

- StephenContentBlock
  - `id` integer, required
  - `type` 'achievement' | 'about' | 'service' | 'stat' | 'skill', required
  - `title` string, required
  - `content` string, required
  - `icon` string, nullable
  - `date` string, nullable
  - `sortOrder` integer, required
  - `featured` boolean, required
  - `metadata` object, nullable
  - `createdAt` string, date-time, required

## Other responses

- `401`: Unauthorized

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - added the non-success response with the status `401`
- **2026-03-26** `1ab145e07019`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/stephen/content-blocks/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
