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

# Promote a Tool Version

> Promotes version status: draft -> stable -> live.



## OpenAPI

````yaml /openapi.yaml post /v1/tools/{id}/versions/{version}/promote
openapi: 3.1.0
info:
  title: px0 API
  description: >
    px[0] is an open-source prompt infrastructure toolkit for managing prompts
    in production. It replaces hardcoded prompt strings with versioned
    templates, in-process caching, and OpenTelemetry observability, so teams can
    iterate on prompts without touching application code. This is the OpenAPI
    specification for all the public APIs of px0.
  version: 1.0.0
servers:
  - url: http://localhost:3000
    description: Local development server
security: []
paths:
  /v1/tools/{id}/versions/{version}/promote:
    post:
      tags:
        - Tool Versions
      summary: Promote a Tool Version
      description: 'Promotes version status: draft -> stable -> live.'
      operationId: promoteToolVersion
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The ID or slug of the tool.
        - name: version
          in: path
          required: true
          schema:
            type: integer
          description: The version number.
      responses:
        '200':
          description: Version promoted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  version:
                    $ref: '#/components/schemas/ToolVersion'
        '404':
          description: Version not found
      security:
        - BearerAuth: []
components:
  schemas:
    ToolVersion:
      type: object
      properties:
        id:
          type: string
          format: uuid
        tool_id:
          type: string
          format: uuid
        version:
          type: integer
        input_schema:
          type: object
          description: JSON Schema for tool inputs.
        output_schema:
          type: object
          description: JSON Schema for tool outputs.
        status:
          type: string
          enum:
            - draft
            - stable
            - live
            - archived
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - tool_id
        - version
        - input_schema
        - output_schema
        - status
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Use an access token retrieved from login (Bearer sess_...) or a
        programmatic API key (Bearer ak_...).

````