---
title: "CreateDocumentPayload"
url: "https://nov18-dev.movespot.fyi/apis/internal-documenthub-admin-api-0/versions/eaee49c0-67ee-4e12-b121-f29cae48c1a7/schemas/CreateDocumentPayload"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/internal-documenthub-admin-api-0/versions/eaee49c0-67ee-4e12-b121-f29cae48c1a7.md

# CreateDocumentPayload

a document payload

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Internal DocumentHub admin Api
  version: 0.0.1
servers:
  - url: http://documenthub.documenthub.svc.cluster.local:4400/v0
    description: Konnect cluster
components:
  schemas:
    Slug:
      description: document slug
      type: string
      example: path-for-seo
      maxLength: 80
      pattern: ^[\w-]+$
    PublishStatus:
      type: string
      enum:
        - published
        - unpublished
    CreateDocumentPayload:
      description: a document payload
      type: object
      properties:
        parent_document_id:
          description: parent document id
          type: string
          format: uuid
          example: dd4e1b98-3629-4dd3-acc0-759a726ffee2
          nullable: true
        slug:
          $ref: "#/components/schemas/Slug"
        status:
          $ref: "#/components/schemas/PublishStatus"
        title:
          description: document title
          type: string
          example: How to create a document in Konnect DocumentHub
        raw_content:
          description: Must be a base64 encoded string. Either raw_content or
            str_mdr_content are required.
          type: string
          format: byte
          example: YmFzZTY0LWVuY29kZWQgdGV4dCBzdHJpbmc=
        str_md_content:
          description: Markdown content. Either raw_content or str_mdr_content are required.
          type: string
          example: "## My Markdown"
        metadata:
          description: metadata of the document
          type: object
          example:
            author: John Doe
          nullable: true
        filename:
          description: name of the uploaded file
          type: string
          example: my_doc.md
      required:
        - slug
        - status
        - title
        - filename
      title: CreateDocumentPayload
```
