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.

API Post Feature Not Responding As Expected

Jonathan_HutchinsonJonathan_Hutchinson Member Posts: 91 PRO
I placed the below excerpt into glassworks for a workspace I have open. Given that this didn't successfully add a cube feature into the document, what could be the issue? Is the documentation out of date?

{
  "feature" : {
    "type": 134,
    "typeName": "BTMFeature",
      "message": {
        "featureType": "cube",
        "name": "Cube 1",
        "parameters": [
          {
             "type": 147,
             "typeName": "BTMParameterQuantity",
             "message": {
               "expression": "1*in",
               "parameterId": "sideLength"
             }
           }
        ]
      }
    }
}

Response was:

{
  "message": "An internal error has occurred; support code d34cf7608a927a211d1c9064",
  "moreInfoUrl": "",
  "supportCode": "d34cf7608a927a211d1c9064",
  "status": 500,
  "code": 0
}

and another time it was:

{
  "message": "Feature has invalid type",
  "moreInfoUrl": "",
  "status": 400,
  "code": 9999
}

Ultimately I want to try and edit some part studio variable features, but I am not having any success so trying to row back slightly more simply first. But that doesn't seem to be any more successful either.

Comments

Sign In or Register to comment.