Windchill

PTC Windchill is the product lifecycle management system manufacturers use as the system of record for engineering data. Documents in Windchill are controlled objects: each one carries a number, a revision and iteration, a lifecycle state, folder placement, security labels, and a checkout status that decides who is allowed to change it right now.

This integration talks to Windchill REST Services (WRS) 2.7 over OData — the query protocol Windchill exposes its data through — using a Basic-authenticated service account. Point it at a complete versioned service root — https://your-host/Windchill/servlet/odata/v6 — and your agents can:

  • Find and read documents: list documents with an OData filter, sort order, field selection, page size, and a latest-version-only switch; fetch a single document by its object identifier (OID); and walk a document's structure through its usage links to see child documents with their versions and states.
  • Create and update: create one document or a batch of them in a container and optional folder, and patch editable attributes on one or many documents. Name, Number, and Organization are rejected here and have their own operation, because Windchill changes those through a separate action and refuses it while a document is checked out.
  • Run the version and lifecycle cycle: check documents out and back in with notes, undo a checkout, revise to the next revision, read the lifecycle states a document is actually allowed to move to, and transition it to one of them.
  • Move files: download a document's primary content, or a specific attachment by its OID, into a Sim file — and upload files as primary content or attachments. Sim handles Windchill's CSRF token and its multi-step upload handshake for you.

Bulk actions are atomic on Windchill's side: PTC documents that if the action fails for any object in the collection, the entire action is rolled back and nothing changes.

Two limits are worth knowing before you build. Windchill identifies everything by OID (OR:wt.doc.WTDocument:48796581), so most operations need an OID you got from a list or get call rather than a document number. And this integration supports Basic authentication only — Windchill deployments fronted by OAuth are not currently supported.

Usage Instructions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

On this page