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

# Mark Cost Sheet Version Final

> Mark a cost sheet version as the final true-cost version.



## OpenAPI

````yaml /api/openapi-cutmake.json put /api/v1/costings/{costing_id}/versions/{version_number}/mark-final
openapi: 3.1.0
info:
  title: VM App API
  version: 0.1.0
servers:
  - url: https://vinmake-erp.onrender.com
security: []
paths:
  /api/v1/costings/{costing_id}/versions/{version_number}/mark-final:
    put:
      tags:
        - Costing Management
      summary: Mark Cost Sheet Version Final
      description: Mark a cost sheet version as the final true-cost version.
      operationId: >-
        mark_cost_sheet_version_final_api_v1_costings__costing_id__versions__version_number__mark_final_put
      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: version_number
          in: path
          required: true
          schema:
            type: integer
            minimum: 1
            title: Version Number
        - 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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostSheetActionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    CostSheetActionResponse:
      properties:
        success:
          type: boolean
          title: Success
        message:
          type: string
          title: Message
        cost_sheet_id:
          type: string
          title: Cost Sheet Id
        document_id:
          type: string
          title: Document Id
        version_number:
          type: integer
          title: Version Number
        status:
          type: string
          title: Status
      type: object
      required:
        - success
        - message
        - cost_sheet_id
        - document_id
        - version_number
        - status
      title: CostSheetActionResponse
      description: Response shared by action endpoints (same structure as update response)
    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

````