Publish to the model library
edit_libraryPublish a piece's model, photos, measurements, and metadata as an immutable next asset-library version, with change notes and fidelity details.
Instructions
Publish to the asset library: action=publish keeps a piece's model file — with its companion files, reference pictures, measured sizes, unit, box, height above the floor, brand and source link — as the next version of name, with notes on what changed and fidelity (what was estimated). A version never changes after; library lists them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | publish: the piece whose model, photos, measurements and unit are kept, e.g. `f12` | |
| icon | No | publish: a small .png/.jpg for its catalog row; kept from the last version when left out | |
| name | Yes | publish: the entry, lowercase letters, digits, - and _ (e.g. `oak-armchair`) | |
| notes | No | publish: what changed in this version | |
| action | Yes | `publish`: the piece's model as the next version of `name` | |
| category | No | publish: the section the editor's catalog lists it under (`Bedroom`); kept from the last version when left out | |
| fidelity | No | publish: how far it can be trusted (what was estimated, what was measured) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| v | No | ||
| ok | Yes | ||
| ids | No | ||
| rev | No | ||
| text | Yes |