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

# Create Cost Sheet Version

> Create a new version from the current cost sheet.

**Path Parameters:**
- **costing_id**: Document ID of the cost sheet to version

**Request Body (camelCase):**
- **changeDescription**: Description for the new version
- **userId**: Optional ID of the user initiating the versioning operation

**Headers:**
- **X-User-Id**: Used when authentication context is missing



## OpenAPI

````yaml /api/openapi-cutmake.json post /costings/{costing_id}/versions
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /costings/{costing_id}/versions:
    post:
      tags:
        - Costing Management
      summary: Create Cost Sheet Version
      description: >-
        Create a new version from the current cost sheet.


        **Path Parameters:**

        - **costing_id**: Document ID of the cost sheet to version


        **Request Body (camelCase):**

        - **changeDescription**: Description for the new version

        - **userId**: Optional ID of the user initiating the versioning
        operation


        **Headers:**

        - **X-User-Id**: Used when authentication context is missing
      operationId: create_cost_sheet_version_costings__costing_id__versions_post
      parameters:
        - name: costing_id
          in: path
          required: true
          schema:
            type: string
            description: The costing document ID (e.g., CS-2024-001)
            title: Costing Id
          description: The costing document ID (e.g., CS-2024-001)
        - name: X-User-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-User-Id
        - name: X-Org-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Org-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostSheetVersionCreateInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostSheetVersionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    CostSheetVersionCreateInput:
      properties:
        changeDescription:
          anyOf:
            - type: string
            - type: 'null'
          title: Changedescription
        userId:
          anyOf:
            - type: string
            - type: 'null'
          title: Userid
        stageKey:
          anyOf:
            - type: string
            - type: 'null'
          title: Stagekey
      type: object
      title: CostSheetVersionCreateInput
      description: Input for creating a new version of a cost sheet
    CostSheetVersionResponse:
      properties:
        id:
          type: string
          title: Id
        version_number:
          type: integer
          title: Version Number
        change_description:
          type: string
          title: Change Description
        created_at:
          type: string
          format: date-time
          title: Created At
        status:
          type: string
          title: Status
        is_final:
          type: boolean
          title: Is Final
          default: false
      type: object
      required:
        - id
        - version_number
        - change_description
        - created_at
        - status
      title: CostSheetVersionResponse
      description: Cost sheet version details
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/login

````