> ## Documentation Index
> Fetch the complete documentation index at: https://docs.poozle.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Block

> Create a block in a parent block



## OpenAPI

````yaml POST /v1/documentation/{parent_id}/blocks
openapi: 3.0.0
info:
  title: Poozle
  description: The poozle API description
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/documentation/{parent_id}/blocks:
    post:
      tags:
        - Documentation
      description: Create a block in a parent block
      operationId: BlockController_createBlocks
      parameters:
        - name: raw
          required: false
          in: query
          description: Include raw response. When you want more data from the source
          schema:
            type: boolean
        - name: parent_id
          required: true
          in: path
          description: This will be parent id of the block you want to create
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePageBody'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlocksResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiException'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiException'
components:
  schemas:
    CreatePageBody:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PageBody'
      required:
        - data
    BlocksResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Block'
        meta:
          type: object
      required:
        - data
    ApiException:
      type: object
      properties:
        statusCode:
          type: number
        message:
          type: string
        status:
          type: string
        error:
          type: string
        errors:
          type: object
        timestamp:
          type: string
        path:
          type: string
    PageBody:
      type: object
      properties:
        block_type:
          enum:
            - bookmark
            - breadcrumb
            - bulleted_list_item
            - callout
            - child_database
            - child_page
            - column
            - column_list
            - divider
            - embed
            - equation
            - file
            - heading_1
            - heading_2
            - heading_3
            - image
            - link_preview
            - link_to_page
            - numbered_list_item
            - paragraph
            - pdf
            - quote
            - synced_block
            - table
            - table_of_contents
            - table_row
            - template
            - to_do
            - toggle
            - unsupported
            - video
          type: string
          description: Type of the block
        content:
          description: Content of the block
          type: array
          items:
            $ref: '#/components/schemas/Content'
      required:
        - block_type
        - content
    Block:
      type: object
      properties:
        block_type:
          enum:
            - bookmark
            - breadcrumb
            - bulleted_list_item
            - callout
            - child_database
            - child_page
            - column
            - column_list
            - divider
            - embed
            - equation
            - file
            - heading_1
            - heading_2
            - heading_3
            - image
            - link_preview
            - link_to_page
            - numbered_list_item
            - paragraph
            - pdf
            - quote
            - synced_block
            - table
            - table_of_contents
            - table_row
            - template
            - to_do
            - toggle
            - unsupported
            - video
          type: string
          description: Type of the block
        id:
          type: string
          description: A unique identifier for the block.
        parent_id:
          type: string
          description: Id of the parent block
        content:
          description: Content of the block
          type: array
          items:
            $ref: '#/components/schemas/BlockContent'
      required:
        - block_type
        - id
        - content
        - children
    Content:
      type: object
      properties:
        annotations:
          $ref: '#/components/schemas/Annotations'
        plain_text:
          type: string
          description: Text for the block
        href:
          type: string
          description: 'Link for the block. Example blocks: Youtube, Bookmarks'
      required:
        - annotations
        - plain_text
        - href
    BlockContent:
      type: object
      properties:
        annotations:
          type: object
          properties:
            bold:
              type: string
            italic:
              type: string
            strikethrough:
              type: string
            underline:
              type: string
            code:
              type: string
            color:
              type: string
        plain_text:
          type: string
          description: The text in the block
        href:
          type: string
          description: All the properties about the text
      required:
        - annotations
        - plain_text
        - href
    Annotations:
      type: object
      properties:
        bold:
          type: string
        italic:
          type: string
        strikethrough:
          type: string
        underline:
          type: string
        code:
          type: string
        color:
          type: string
      required:
        - bold
        - italic
        - strikethrough
        - underline
        - code
        - color

````