Create a document version
onshape_create_versionCreate an immutable version snapshot of a workspace to preserve a recoverable state before restructuring a design and to provide a reference for drawings.
Instructions
Snapshot the workspace as an immutable version. Do this before restructuring an existing design: it is the only way back to the previous state, and drawings must reference a version.
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>. | |
| name | Yes | Version name, e.g. what is about to change. | |
| description | No | Why this snapshot was taken. |