PartStudio

Update multiple features in a Part Studio

Changed on

This API accepts a list of features (that must already exist in the Part Studio) to update. This call does not fully redefine the features; it updates only the parameters supplied in the top-level feature structure, and optionally can update feature suppression attributes. See the Features API Guide for additional information.

post/partstudios/d/{did}/w/{wid}/e/{eid}/features/updates

Request

  • Base URL
    https://api.onshape.com/api/v17
  • URL
    https://api.onshape.com/api/v17/partstudios/d/{did}/w/{wid}/e/{eid}/features/updates
  • Auth
    OAuth 2 and HTTP basic
    Authorization code: /oauth/authorize
    Token URL: /oauth/token scopes: OAuth2Write

Path parameters

didstring required

Document ID.

widstring required

Workspace ID.

eidstring required

Element ID.

Request body

btTypestring

Type of JSON object.

libraryVersioninteger

FeatureScript version used in the Part Studio. Do not modify.

microversionSkewboolean

On output, true indicates a microversion mismatch was encountered.

rejectMicroversionSkewboolean

If true, the call will refuse to make the addition if the current microversion for the document does not match the source microversion. If false, a best-effort attempt is made to re-interpret the feature addition in the context of a newer document microversion.

serializationVersionstring

Version of the structure serialization rules used to encode the output. This enables incompatibility detection during software updates.

sourceMicroversionstring

The state from which the result was extracted. Geometry ID interpretation is dependent on this document microversion.

updateSuppressionAttributesboolean

Response

default response

Changes

    • info

      added BTMSketch3D-2231 discriminator mapping keys to the / request property

    • info

      added BTMSketch3DEntity-5972 discriminator mapping keys to the ////// request property

    • info

      added BTMSketch3D-2231 discriminator mapping keys to the / response property for the response status

    • info

      added BTMSketch3DEntity-5972 discriminator mapping keys to the ////// response property for the response status