Write a Feature Studio
onshape_set_feature_studioReplace a Feature Studio's FeatureScript source with new code. Provide document, workspace, element, and contents to overwrite the file.
Instructions
Replace the FeatureScript source of a Feature Studio. The whole file is overwritten.
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. | |
| contents | Yes | The complete new FeatureScript source. |