Skip to content

Integrations

Windchill

Manage documents, revisions, and content in PTC Windchill

Use PTC Windchill REST Services (WRS) 2.7 to manage engineering documents. Documents have a number, revision and iteration, lifecycle state, folder, security labels, and checkout status.

Connection and identifiers

Connect with a Basic-authenticated account and a complete versioned OData service root, such as https://your-host/Windchill/servlet/odata/v6. OAuth-fronted deployments are not supported. Most actions require an object identifier (OID), such as OR:wt.doc.WTDocument:48796581, returned by a list or get action; a document number is not an OID.

Working with documents

List actions accept OData filters, sorting, field selection, page size, and latest-version filtering. Structure lookup follows usage links to child documents, including their versions and states.

Create one document or a batch in a container and optional folder. Update editable attributes separately from Update Common Properties, which changes Name, Number, and Organization and is refused while the document is checked out.

Check out and check in documents with notes, undo checkout, revise, inspect valid state transitions, or change lifecycle state. Bulk lifecycle and document actions use atomic provider requests: a rejected object rolls back the collection action.

Download primary content or an attachment by OID as a Sim file. Upload primary content to a document that has none, or add attachments. Sim handles the CSRF token and multi-step upload handshake.

Use the block

Integrate PTC Windchill REST Services 2.7 document management into your workflow using Basic authentication. Read and update document metadata, perform version and lifecycle actions, and transfer primary content and attachments. Windchill OAuth deployments are not currently supported.

Actions

Windchill List Documents

List documents with an OData query, sorting, and pagination

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
selectstringNoComma-separated normalized document properties to return
filterstringNoOData $filter expression
orderBystringNoOData $orderby expression
topnumberNoMaximum documents in the OData result set ($top), from 1 to 2000
skipnumberNoDocuments to skip
countbooleanNoAsk Windchill to include the total matching count
latestVersionbooleanNoReturn only the latest version of matching documents
nextLinkstringNoVerified @odata.nextLink from a previous list response

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
documentsarrayWindchill documents
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path
pageInfoobjectOData pagination information
↳ countnumberNumber of items returned in this page
↳ totalCountnumberTotal matching items
↳ nextLinkstringURL returned by Windchill for the next page

Windchill Get Document

Get a WT.Document by OID

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
selectstringNoComma-separated normalized document properties to return

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
documentobjectWindchill document
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Get Document Structure

Retrieve recursive document usage links and their parent and child documents

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
structureDepthnumberNoDocument structure expansion depth, from 1 to 3
nextLinkstringNoVerified @odata.nextLink from a previous structure response

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
structurearrayDocument usage links, including recursively expanded child links
↳ idstringDocument usage link OID
↳ parentobjectParent document
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path
↳ childobjectChild document
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path
↳ childrenarrayNested child usage links with the same recursive shape
pageInfoobjectOData pagination information
↳ countnumberNumber of items returned in this page
↳ totalCountnumberTotal matching items
↳ nextLinkstringURL returned by Windchill for the next page

Windchill Get Valid State Transitions

Get lifecycle states a document can transition to from its current state

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
statesarrayValid lifecycle transitions
↳ valuestringInternal state value
↳ displaystringDisplayed state value

Windchill Get Primary Content

Get primary-content metadata for a document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
contentobjectPrimary-content metadata
↳ idstringContent object identifier
↳ fileNamestringContent file name
↳ descriptionstringContent description
↳ formatstringWindchill content format
↳ mimeTypestringContent MIME type
↳ fileSizenumberContent size in bytes
↳ contentTypestringWindchill OData content entity type
↳ displayNamestringDisplayed content name
↳ urlLocationstringURL-data location
↳ externalLocationstringExternal-storage location

Windchill List Attachments

List attachment metadata for a document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
nextLinkstringNoVerified @odata.nextLink from a previous attachment response

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
attachmentsarrayDocument attachments
↳ idstringContent object identifier
↳ fileNamestringContent file name
↳ descriptionstringContent description
↳ formatstringWindchill content format
↳ mimeTypestringContent MIME type
↳ fileSizenumberContent size in bytes
↳ contentTypestringWindchill OData content entity type
↳ displayNamestringDisplayed content name
↳ urlLocationstringURL-data location
↳ externalLocationstringExternal-storage location
pageInfoobjectOData pagination information
↳ countnumberNumber of items returned in this page
↳ totalCountnumberTotal matching items
↳ nextLinkstringURL returned by Windchill for the next page

Windchill Create Document

Create one WT.Document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
namestringYesDocument name
containerOidstringYesContainer OID in which to create the document
numberstringNoOptional document number when manual numbering is enabled
titlestringNoDocument title
descriptionstringNoDocument description
folderOidstringNoOptional folder OID for the new document
attributesjsonNoOptional installed Windchill document attributes as a JSON object

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Create Documents

Create several documents in one atomic Windchill request

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentsarrayYesDocument inputs as a JSON array; each item requires name and containerOid

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Update Document

Update one document's editable attributes

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
attributesjsonYesEditable attributes as a JSON object. Name, Number, and Organization require the Update Common Properties operation and are not supported here.

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Update Common Properties

Update a document's Name, Number, and other common properties

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581. The document must not be checked out.
commonPropertiesjsonYesCommon properties as a JSON object, for example {"Name":"New name","Number":"NEW-001"}. Enumerated properties take a value/display pair.

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Update Documents

Update several documents' editable attributes in one atomic request

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentsarrayYesDocument updates as a JSON array; each item requires id and the editable attributes to set. Name, Number, and Organization are not supported.

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Delete Document

Delete one document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation

Windchill Delete Documents

Delete multiple documents atomically

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidsarrayYesWT.Document OIDs to process atomically

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation

Windchill Check Out Document

Check out one document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
checkOutNotestringNoCheckout note

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Check Out Documents

Check out multiple documents atomically

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidsarrayYesWT.Document OIDs to process atomically
checkOutNotestringNoCheckout note

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Check In Document

Check in one document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
checkInNotestringNoCheck-in note
keepCheckedOutbooleanNoKeep the document checked out after checking it in
checkOutNotestringNoCheckout note

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Check In Documents

Check in multiple documents atomically

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidsarrayYesWT.Document OIDs to process atomically
checkInNotestringNoCheck-in note
keepCheckedOutbooleanNoKeep the document checked out after checking it in
checkOutNotestringNoCheckout note

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Undo Check Out Document

Undo checkout for one document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Undo Check Out Documents

Undo checkout for multiple documents atomically

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidsarrayYesWT.Document OIDs to process atomically

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Revise Document

Create a new revision of one document

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
versionIdstringNoOptional target revision identifier when override-on-revise is enabled

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Revise Documents

Create new revisions of multiple documents atomically

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidsarrayYesWT.Document OIDs to process atomically

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Set Lifecycle State

Transition a document to a valid lifecycle state

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
stateValuestringYesInternal value of the target lifecycle state
stateDisplaystringYesDisplay value of the target lifecycle state

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentobjectDocument returned by Windchill when the operation returns one
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Update Document Security Labels

Update installed security-label attributes for one or more documents

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
securityLabelUpdatesarrayYesArray of document IDs and installed security-label values

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the operation
documentsarrayDocuments returned by Windchill when the operation returns them
↳ idstringWindchill object identifier
↳ namestringDocument name
↳ numberstringDocument number
↳ titlestringDocument title
↳ descriptionstringDocument description
↳ statestringInternal life cycle state value
↳ stateDisplaystringDisplayed life cycle state value
↳ versionIdstringVersion identifier
↳ revisionstringRevision identifier
↳ versionstringVersion and iteration
↳ latestbooleanWhether this is the latest version
↳ checkoutStatestringCheckout state
↳ folderNamestringFolder name
↳ folderLocationstringFolder path

Windchill Download Primary Content

Download primary content into a canonical UserFile

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
fileNamestringNoOptional downloaded file name override

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
filefileDownloaded content stored as a canonical UserFile
fileNamestringDownloaded file name
mimeTypestringDownloaded content MIME type

Windchill Upload Primary Content

Upload a primary-content file to a document that has none

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
primaryFilefileYesPrimary content file to upload

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the upload
uploadedFileNamesarrayNames of files accepted by Windchill

Windchill Download Attachment

Download a document attachment into a canonical UserFile

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
attachmentOidstringYesWindchill attachment content OID
fileNamestringNoOptional downloaded file name override

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
filefileDownloaded content stored as a canonical UserFile
fileNamestringDownloaded file name
mimeTypestringDownloaded content MIME type

Windchill Upload Attachments

Upload one or more files as document attachments

Inputs and outputs

Input

ParameterTypeRequiredDescription
baseUrlstringYesComplete WRS 2.7 versioned service root using Basic authentication, for example https://host/Windchill/servlet/odata/v6
usernamestringYesWindchill service-account username
passwordstringYesWindchill service-account password
documentOidstringYesWT.Document OID, for example OR:wt.doc.WTDocument:48796581
attachmentFilesfile[]YesAttachment files to upload

Output

ParameterTypeDescription
operationstringWindchill operation that was executed
affectedIdsarrayDocument identifiers affected by the upload
uploadedFileNamesarrayNames of files accepted by Windchill
Was this helpful?
Suggest an edit