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.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
where's the folder id's listed
billy2
Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,068 PRO
Now that we have an updated API, I'm trying update my script to include folders.
How do I get a list of folders? I need fid, where is it defined?
BTW, nice job on the new API look and feel.
How do I get a list of folders? I need fid, where is it defined?
BTW, nice job on the new API look and feel.
0
Comments
API folders:
Expected procedures:
I thought I'd see a method for obtaining a list of folders.
A method for showing documents & folders contained inside a folder.
I have this document loader API I wrote and have been wondering when folders would become available. Not sure what to do with them either. I suspect they'll be some kind of filter.
Document loader:
Let me thank about it some more.....
This is one of the API requests that Onshape does when itloads:
https://cad.onshape.com/api/globaltreenodes/magic/1
It returns a list of folders and documents at the top level.
if getPathToRoot=true, it gives you a bread-crumb trail to My Onshape,
Then to get documents and folders in a folder, use
https://cad.onshape.com/api/globaltreenodes/folder/[fid]
It gives you the folders and documents on a folder
This is from the network tab in the dev panel in chrome (open it up, then refresh the page)
IR for AS/NZS 1100
IR for AS/NZS 1100
Thanks