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

# Create Prompt Partial Version

> Create a new version for a prompt partial



## OpenAPI

````yaml /public-apis/openapi/prompt-partials.json post /v1/prompt-partials/versions
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - prompt-partials
  description: API documentation for Maxim SDK prompt-partials endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/prompt-partials/versions:
    post:
      tags:
        - Prompt Partial Version
      summary: Create Prompt Partial Version
      description: Create a new version for a prompt partial
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                promptPartialId:
                  type: string
                  description: Unique identifier for the prompt partial
                description:
                  type: string
                  description: Description of the prompt partial version
                content:
                  type: string
                  description: Content of the prompt partial version
              required:
                - workspaceId
                - promptPartialId
                - content
      responses:
        '201':
          description: Prompt partial version created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      promptPartialId:
                        type: string
                      version:
                        type: number
                      description:
                        type: string
                        nullable: true
                      content:
                        type: string
                        nullable: true
                      createdById:
                        type: string
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                      deletedAt:
                        type: string
                        nullable: true
                    required:
                      - id
                      - promptPartialId
                      - version
                      - description
                      - content
                      - createdById
                      - createdAt
                      - updatedAt
                      - deletedAt
                required:
                  - data
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '404':
          description: Prompt partial not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````