Introduction to the Onshape API training course

section 03.Post Requests

exercise: Executing a POST Request slide 3 of 7

when I click execute I receive server response code 409 instead of 200

Answers

  • Matt_Shields
    Matt_Shields Member, Onshape Employees Posts: 1,006 PRO

    Make sure you are logged into Onshape in another tab in your browser.

    Make sure you are using the correct endpoint:
    https://cad.onshape.com/glassworks/explorer/#/Document/copyWorkspace

    Make sure you have the correct request body.

    {
         "isPublic": false,
         "newName": "Mailman Robot",
         "ownerId": "xxxxxxxxxxxxxx"
    }
    
  • james_anderson507
    james_anderson507 Member Posts: 6 ✭

    slide 3 points to the following:

    POST

     

    /documents/{did}/workspaces/{wid}/copy