Set element or part metadata
onshape_set_metadataUpdate editable Onshape properties like part number, description, or material by supplying property IDs and new values. Use after reading metadata to get the correct property IDs.
Instructions
Write properties such as part number, description or material. Only editable properties are accepted; read onshape_get_metadata first to find the property ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| part | No | Part id, to set that part's properties instead of the element's. | |
| properties | Yes | Property ids and their new values. |