Skip to main content
Format Expression
curl --request POST \
  --url https://api.ionworks.com/variables/format-expression \
  --header 'Content-Type: application/json' \
  --data '
{
  "expression": "<string>"
}
'
{
  "expression": "<string>"
}

Body

application/json

Request body for formatting a PyBaMM expression with black.

expression
string
required

Response

Successful Response

Response body with the black-formatted expression string.

expression
string
required