---
title: "Save To Project"
method: POST
path: "/ecm/save-to-project"
tags: ["ecm-project"]
---

# Save To Project

`POST /ecm/save-to-project`

Create a Parameterized Model from ECM fit results.

Uses the system ECM model and stores the fitted interpolant parameters.

## Request body

- SaveToProjectRequest — Request body for saving ECM fit results as a Parameterized Model.
  - `name` string, required — Name for the model.
  - `description` string — Optional description.
  - `cell_spec_id` string, required — Cell specification ID.
  - `num_rcs` integer, required — Number of RC pairs.
  - `fit_results` FitResultsData, required — Fit results needed for saving (and re-simulating for validation).
    - `soc` number[], required
    - `ocv` number[], required
    - `r0` number[], required
    - `rc_pairs` RcPairFitData[]
      - `r` number[], required
      - `c` number[], required
      - `tau` number[], required
    - `capacity_Ah` number[], nullable — Cell capacity used to integrate SOC, one entry per measurement segment. An estimated or fitted capacity is a single cell-wide value repeated across segments (a separate capacity is not estimated per trace); entries differ only when a per-measurement ``capacity`` is supplied. Required for validation — it is the SOC reference the curves were fitted against and is never re-estimated from the held-out trace. Save/validate use one capacity per model/trace, so the per-segment values must agree.

## Response `200`

Successful Response

- SaveToProjectResponse — Response from save-to-project.
  - `model_id` string, required
  - `parameterized_model_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ionworks/fastapi/revisions/7337a3cbdaf2/schema)
