Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
How to copy a version through the API?
I'd like to copy a version of my document into a new document for testing purposes. This functionality is available through the UI - just navigate to the desired version, go to the document menu and click "copy version." However, I don't see any way to do this through the API. The only endpoints that might make this work (that I see) are copy workspace and create workspace. I could create a workspace from a version, copy the workspace into a new document, then delete the workspace I created from the version in the original document. The issue with this is that the user needs write access to the document to make a copy of the version... Any other thoughts for how to accomplish the "copy version" functionality?