Hide Table of Contents
PDM Pro API Web Service
Getapi/{vaultName}/files/{fileId}/transitions?version={version}
PDM Pro API Web Service > File Resource Group : api/{vaultName}/files/{fileId}/transitions?version={version} (Get)
Description
Get file transitions

 

Gets the state transitions for the specified file.

Parameters
NameDescriptionData Type
(URI parameter) Vault name (required)string
(URI parameter) File ID (required)integer
(URI parameter) Version (default value is -1)integer

(Response) Transition ID

 

Member of HistoryTransition model

integer

(Response) Version number

 

Member of HistoryTransition model

 

integer

(Response) Comment

 

Member of HistoryTransition model

 

string

(Response) Date

 

Member of HistoryTransition model

 

date

(Response) A StateInfo object; each StateInfo object consists of:

   StateId (integer)

   StateName (string)

   IgnorePreviousPermissions (integer)

 

Member of HistoryTransition model

 

StateInfo

(Response) A StateInfo object; each StateInfo object consists of:

   StateId (integer)

   StateName (string)

   IgnorePreviousPermissions (integer)

 

Member of HistoryTransition model

 

StateInfo

(Response) A UserInfo object; each UserInfo object consists of:

   UserName  (string)

   UserId (integer)

 

Member of HistoryTransition model

 

UserInfo
Response (application/json, text/json)

Sample Data

[
  {
    "TransitionId": 1,
    "VersionNo": 2,
    "Comment": "sample string 3",
    "Date": "2022-07-25T14:02:49.482406-04:00",
    "SourceState": {
      "StateId": 1,
      "StateName": "sample string 2",
      "IgnorePreviousPermissions": 3
    },
    "DestinationState": {
      "StateId": 1,
      "StateName": "sample string 2",
      "IgnorePreviousPermissions": 3
    },
    "User": {
      "UserName": "sample string 1",
      "UserId": 2
    }
  },
  {
    "TransitionId": 1,
    "VersionNo": 2,
    "Comment": "sample string 3",
    "Date": "2022-07-25T14:02:49.482406-04:00",
    "SourceState": {
      "StateId": 1,
      "StateName": "sample string 2",
      "IgnorePreviousPermissions": 3
    },
    "DestinationState": {
      "StateId": 1,
      "StateName": "sample string 2",
      "IgnorePreviousPermissions": 3
    },
    "User": {
      "UserName": "sample string 1",
      "UserId": 2
    }
  }
]
Response (application/xml, text/xml)

Sample Data

<ArrayOfHistoryTransition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWPDM.Models">
  <HistoryTransition>
    <Comment>sample string 3</Comment>
    <Date>2022-07-25T14:02:49.482406-04:00</Date>
    <DestinationState>
      <IgnorePreviousPermissions>3</IgnorePreviousPermissions>
      <StateId>1</StateId>
      <StateName>sample string 2</StateName>
    </DestinationState>
    <SourceState>
      <IgnorePreviousPermissions>3</IgnorePreviousPermissions>
      <StateId>1</StateId>
      <StateName>sample string 2</StateName>
    </SourceState>
    <TransitionId>1</TransitionId>
    <User>
      <UserId>2</UserId>
      <UserName>sample string 1</UserName>
    </User>
    <VersionNo>2</VersionNo>
  </HistoryTransition>
  <HistoryTransition>
    <Comment>sample string 3</Comment>
    <Date>2022-07-25T14:02:49.482406-04:00</Date>
    <DestinationState>
      <IgnorePreviousPermissions>3</IgnorePreviousPermissions>
      <StateId>1</StateId>
      <StateName>sample string 2</StateName>
    </DestinationState>
    <SourceState>
      <IgnorePreviousPermissions>3</IgnorePreviousPermissions>
      <StateId>1</StateId>
      <StateName>sample string 2</StateName>
    </SourceState>
    <TransitionId>1</TransitionId>
    <User>
      <UserId>2</UserId>
      <UserName>sample string 1</UserName>
    </User>
    <VersionNo>2</VersionNo>
  </HistoryTransition>
</ArrayOfHistoryTransition>
Remarks
This operation returns an array of HistoryTransition objects, one for each transition made by the file.
See Also


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   api/{vaultName}/files/{fileId}/transitions?version={version} (Get)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2024 SP03

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.