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

# Upgrade Simulation To Ucp

> Explicitly upgrade a simulation to UCPSolution format.

This triggers a re-run of the simulation to generate and store the UCPSolution
file, enabling lazy variable evaluation for future requests.

Parameters
----------
simulation_id : str
    ID of the simulation to upgrade

Returns
-------
dict
    Status information about the upgrade
    - If already upgraded: returns current solution_storage_path
    - If upgrade triggered: returns 202 with job_id

Raises
------
HTTPException
    202 if re-run is triggered
    404 if simulation not found



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /simulations/{simulation_id}/upgrade
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /simulations/{simulation_id}/upgrade:
    post:
      tags:
        - Simulations
      summary: Upgrade Simulation To Ucp
      description: >-
        Explicitly upgrade a simulation to UCPSolution format.


        This triggers a re-run of the simulation to generate and store the
        UCPSolution

        file, enabling lazy variable evaluation for future requests.


        Parameters

        ----------

        simulation_id : str
            ID of the simulation to upgrade

        Returns

        -------

        dict
            Status information about the upgrade
            - If already upgraded: returns current solution_storage_path
            - If upgrade triggered: returns 202 with job_id

        Raises

        ------

        HTTPException
            202 if re-run is triggered
            404 if simulation not found
      operationId: upgrade_simulation_to_ucp_simulations__simulation_id__upgrade_post
      parameters:
        - name: simulation_id
          in: path
          required: true
          schema:
            type: string
            title: Simulation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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

````