Update a feature
onshape_update_featureReplace an existing feature's payload in an Onshape document to modify parameters like dimensions. Provide the full feature JSON to update the specified feature by ID.
Instructions
Replace an existing feature's payload, e.g. to change a dimension. Post the whole feature JSON.
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. | |
| feature | Yes | The full replacement feature JSON. | |
| feature_id | Yes | Id of the feature to replace. |