Revision

Get all revisions for a part number.

Changed on

You can also request elementType in addition to partNumber since companies may or may not allow drawings to share part numbers with their parts/assemblies. To perform search without elementType, use elementType = -1 (UNKNOWN). See API Guide: Release Management for more details.

get/revisions/companies/{cid}/partnumber/{pnum}

Request

  • Base URL
    https://api.onshape.com/api/v17
  • URL
    https://api.onshape.com/api/v17/revisions/companies/{cid}/partnumber/{pnum}
  • Auth
    OAuth 2 and HTTP basic
    Authorization code: /oauth/authorize
    Token URL: /oauth/token scopes: OAuth2Read

Path parameters

cidstring required

The company or enterprise ID that owns the resource.

pnumstring required

Part number.

Query parameters

elementTypestring required

Element Type. Must be one of: -1: Unknown, 0: Part Studio, 1: Assembly, 2: Drawing. 4 : Blob, 8: Variable Studio

fillApproversboolean

Set to true to return a list of approvers. Default is false and will return null.

fillExportPermissionboolean

Set to true to return a list of export permissions. Default is false and will return null.

supportChangeTypeboolean

Whether the revision can change object type. Used in reuse part number flow.

Response

default response

Changes

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property ///// to the response with the status