Skip to main content
Fit From File
curl --request POST \
  --url https://api.ionworks.com/ecm/fit-from-file \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>'
{}

Query Parameters

num_rcs
integer
default:2
Required range: 0 <= x <= 5
fit_ocv
boolean
default:true
initial_soc
number | null
Required range: 0 <= x <= 1
capacity
number | null
Required range: x > 0
ocv_soc_curve
string | null

JSON-encoded OcvSocCurve, e.g. {"soc": [...], "ocv": [...]}. When provided OCV-fitting is skipped and OCV is interpolated from the curve.

bounds_capacity
string | null

JSON-encoded CapacityBounds, e.g. {"lo": 0.5, "hi": 5.0}. Only used when ocv_soc_curve is provided and capacity is None.

num_knots
integer | null
Required range: 1 <= x <= 64
num_knots_r0
integer | null
Required range: 1 <= x <= 64
knot_schedule
string | null

JSON-encoded list[int], e.g. [2,4,8].

clamp_boundary_knots
boolean
default:true

Clamp boundary R0/alpha/beta knot values to interior neighbours. Set False when building R_rc symbolically downstream.

clamp_max_ratio
number
default:10

Body

multipart/form-data
file
string
required

Response

Successful Response

The response is of type Response Fit From File Ecm Fit From File Post · object.