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

# Build a parameter set from a cell spec

> Build the model's parameters for a cell spec; with ``save``, store them as a parameterized model.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /model_builders/{model_builder_id}/build
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /model_builders/{model_builder_id}/build:
    post:
      tags:
        - Model builders
      summary: Build a parameter set from a cell spec
      description: >-
        Build the model's parameters for a cell spec; with ``save``, store them
        as a parameterized model.
      operationId: build_model_model_builders__model_builder_id__build_post
      parameters:
        - name: model_builder_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Model Builder Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuildRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BuildRequest:
      properties:
        cell_spec_id:
          type: string
          title: Cell Spec Id
        save:
          type: boolean
          title: Save
          description: Save the result as a parameterized model on the cell spec.
          default: false
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Name for the saved parameterized model. Required with save.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        set_as_default:
          type: boolean
          title: Set As Default
          description: Make the saved model the cell spec's default parameterized model.
          default: false
      type: object
      required:
        - cell_spec_id
      title: BuildRequest
      description: Body for building a parameter set from a cell spec.
    BuildResult:
      properties:
        parameters:
          additionalProperties: true
          type: object
          title: Parameters
          description: Parameter values, in the parameterized-model storage format.
        missing:
          items:
            type: string
          type: array
          title: Missing
          description: Parameters the model needs that the builder did not produce.
        issues:
          items:
            $ref: '#/components/schemas/ReadinessIssueModel'
          type: array
          title: Issues
          description: Warnings from the readiness check.
        parameterized_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parameterized Model Id
          description: The saved parameterized model, when save was set.
      type: object
      required:
        - parameters
      title: BuildResult
      description: A built parameter set, plus what (if anything) is still missing.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ReadinessIssueModel:
      properties:
        severity:
          type: string
          enum:
            - error
            - warning
          title: Severity
        code:
          type: string
          enum:
            - missing
            - unit_mismatch
            - wrong_shape
            - ambiguous
            - unsatisfied_input
          title: Code
        message:
          type: string
          title: Message
        parameter:
          anyOf:
            - type: string
            - type: 'null'
          title: Parameter
          description: Model parameter the issue affects.
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
          description: Dotted path in the cell spec, as in a mapping.
        element:
          anyOf:
            - type: string
            - type: 'null'
          title: Element
          description: Recipe element name.
      type: object
      required:
        - severity
        - code
        - message
      title: ReadinessIssueModel
      description: One reason a cell spec cannot, or can only with assumptions, be built.
    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.