---
title: "Create Page block"
method: POST
path: "/page-block"
tags: ["Page block"]
---

# Create Page block

`POST /page-block`

## Request

- Base URL: `https://sdukstudio.com/api`
- URL: `https://sdukstudio.com/api/page-block`
- Auth: HTTP bearer

## Request body

- PageBlockInput
  - `slot` string, required
  - `kind` 'text' | 'richtext' | 'image' | 'stat' | 'quote', required
  - `text` string
  - `rich` string
  - `image` integer: File reference (core_file id).
  - `sort` integer
  - `page_id` integer, required

## Response `201`

The created Page block

- PageBlock
  - `page_block_id` integer
  - `slot` string
  - `kind` 'text' | 'richtext' | 'image' | 'stat' | 'quote'
  - `text` string
  - `rich` string
  - `image` integer: File reference (core_file id).
  - `sort` integer
  - `page_id` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `deleted_at` string, date-time, nullable

## Other responses

- `400`: Validation error

---

[API](https://skmtc.dev/sdukstudio/apis/sduk-studio-info-site-api.md) · [All operations](https://skmtc.dev/sdukstudio/apis/sduk-studio-info-site-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sdukstudio/apis/sduk-studio-info-site-api/revisions/d7877b33dad3?raw)
