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

# Create a new version of a parameterized model

> Save a copy of a parameterized model with some parameters changed.

Parameters cannot be edited in place, so this is how a model is revised: the
new version starts from the parent's parameters with ``parameters`` applied on
top, and records the parent it came from. The parent is left unchanged, so
simulations that ran on it still point at the parameters they used. Scoped like
:func:`update_parameterized_model`.

``summary=true`` returns metadata without parameter values or model config.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /parameterized_models/{parameterized_model_id}/versions
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /parameterized_models/{parameterized_model_id}/versions:
    post:
      tags:
        - parameterized_models
      summary: Create a new version of a parameterized model
      description: >-
        Save a copy of a parameterized model with some parameters changed.


        Parameters cannot be edited in place, so this is how a model is revised:
        the

        new version starts from the parent's parameters with ``parameters``
        applied on

        top, and records the parent it came from. The parent is left unchanged,
        so

        simulations that ran on it still point at the parameters they used.
        Scoped like

        :func:`update_parameterized_model`.


        ``summary=true`` returns metadata without parameter values or model
        config.
      operationId: >-
        create_parameterized_model_version_route_parameterized_models__parameterized_model_id__versions_post
      parameters:
        - name: parameterized_model_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Parameterized Model Id
        - name: cell_spec_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Cell Spec Id
        - name: summary
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Summary
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateParameterizedModelVersionBody'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateParameterizedModelVersionBody:
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Description of the new version. Defaults to the parent's.
        parameters:
          additionalProperties: true
          type: object
          title: Parameters
          description: >-
            Parameter values that differ from the parent's, keyed by parameter
            name. Parameters not listed keep the parent's value.
        simulation_settings:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Simulation Settings
          description: Simulation settings for the new version. Defaults to the parent's.
      type: object
      title: CreateParameterizedModelVersionBody
      description: >-
        Request body for creating a new version of a parameterized model.


        The new version keeps its parent's base model, cell specification,
        project and

        family, whose name it carries. Its parameters are the parent's with

        ``parameters`` applied on top.
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.