Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Onshape REST API works for some calls, but not others

robert_isacksen118robert_isacksen118 Member Posts: 3

I'm using the Onshape REST API Explorer to learn about the api calls. Some of the calls seem to work properly, but not others and I'm not sure why. On the explorer, when I call the get /assemblies/d/{did}/{wvm}/{wvmid}/e/{eid}, it correctly returns data about the assembly. When I call post /assemblies/d/{did}/{wv}/{wvid}/e/{eid}/export/step in an attempt to download the assembly, I get a 404 error in response. When I call get /assemblies/d/{did}/{wv}/{wvid}/e/{eid}/matevalues, it returns an empty array "mateValues": [], even though the mates are included in the output of the general data for the assembly. Why might this be happening? I allowed all permissions for my API keys, and let the explorer parse the same assembly URL for all three calls.

image.png

image.png image.png
Tagged:
Sign In or Register to comment.