save_profile
Permanently save a validated espresso profile to the machine's internal storage, requiring complete schema with stages and exit triggers.
Instructions
Permanently save a profile to the machine's internal storage. Validates the schema before saving. Profile JSON must include: name (string), id (UUID v4), author (string), author_id (UUID v4), temperature (number, Celsius), final_weight (number, yield grams), previous_authors ([]), variables ([]), version (1), stages (array). Each stage needs: name, key, type ("flow"|"pressure"), dynamics.points ([[time,value],...] starting at [0,x]), dynamics.over ("time"), dynamics.interpolation ("linear"|"curve"), exit_triggers (array). Last stage must exit on {type:"weight", value:}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | Yes | Full profile JSON object to save permanently on the machine |