> ## 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.

# Deploy Prompt Version

> Deploy a prompt version



## OpenAPI

````yaml /public-apis/openapi/prompts.json post /v1/prompts/deploy
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - prompts
  description: API documentation for Maxim SDK prompts endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/prompts/deploy:
    post:
      tags:
        - Prompt Deployment
      summary: Deploy Prompt Version
      description: Deploy a prompt version
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                promptId:
                  type: string
                  description: Unique identifier for the prompt
                versionId:
                  type: string
                  description: Unique identifier for the version
                version:
                  type: integer
                  description: Version number
                workspaceId:
                  type: string
                  description: Unique identifier for the workspace
                deploymentConditions:
                  type: array
                  items:
                    type: object
                    properties:
                      variable:
                        type: string
                        description: Variable name for deployment condition
                      operator:
                        type: string
                        enum:
                          - '>'
                          - <
                          - <=
                          - '>='
                          - '='
                        description: Comparison operator for the deployment condition
                      value:
                        type: string
                        description: Value to compare with
                    required:
                      - variable
                      - operator
                      - value
                  minItems: 1
                  description: Deployment conditions configuration
              required:
                - promptId
                - workspaceId
                - deploymentConditions
      responses:
        '200':
          description: Prompt version deployed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      promptId:
                        type: string
                      versionId:
                        type: string
                      status:
                        type: string
                        enum:
                          - active
                          - inactive
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                      - id
                      - promptId
                      - versionId
                      - status
                      - createdAt
                      - updatedAt
                required:
                  - data
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '404':
          description: Prompt or version not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````