Welcome
Expand Getting StartedGetting Started
Expand SOLIDWORKS API HelpSOLIDWORKS API Help
Expand SOLIDWORKS Electrical API HelpSOLIDWORKS Electrical API Help
Expand SOLIDWORKS PDM Professional API HelpSOLIDWORKS PDM Professional API Help
Welcome
Getting Started
Release Notes
Collapse PDM Pro API Web ServicePDM Pro API Web Service
Overview
Collapse ResourceGroupsResourceGroups
Expand Authentication Resource GroupAuthentication Resource Group
Expand BOM Resource GroupBOM Resource Group
Expand Configuration Resource GroupConfiguration Resource Group
Expand Data Card Resource GroupData Card Resource Group
Expand Default Resource GroupDefault Resource Group
Collapse File Resource GroupFile Resource Group
Overview
Collapse OperationsOperations
api/{vaultName}/files/{fileId}/{version} (Get)
api/{vaultName}/files/{fileId}/{version}/ActiveConfig (Get)
api/{vaultName}/files/{fileId}/{version}/allreferences?configId={configId}-folderId={folderId}-includeSubParents={includeSubParents} (Get)
api/{vaultName}/files/{fileId}/{version}/configurations (Get)
api/{vaultName}/files/{fileId}/{version}/download (Get)
api/{vaultName}/files/{fileId}/{version}/info (Get)
api/{vaultName}/files/{fileId}/{version}/info/extended (Get)
api/{vaultName}/files/{fileId}/{version}/references?configId={configId}-folderId={folderId} (Get)
api/{vaultName}/files/{fileId}/{version}/thumbnails (Get)
api/{vaultName}/files/{fileId}/{version}/variables (Get)
api/{vaultName}/files/{fileId}/{version}/whereused?configId={configId}-folderId={folderId}-anyVersion={anyVersion} (Get)
api/{vaultName}/files/{fileId}/bominfo?folderId={folderId} (Get)
api/{vaultName}/files/{fileId}/info?version={version} (Get)
api/{vaultName}/files/{fileId}/transitions?version={version} (Get)
api/{vaultName}/files/{fileId}/versions?folderId={folderId} (Get)
api/{vaultName}/files/{fileId}?destroy={destroy} (Delete)
api/{vaultName}/files/{fileId}?version={version} (Get)
api/{vaultName}/files/buildtree/checkout (Post)
api/{vaultName}/files/buildtree/undo (Post)
api/{vaultName}/files/CheckOut (Post)
api/{vaultName}/files/info (Post)
api/{vaultName}/files/UndoCheckOut (Post)
Expand Folder Resource GroupFolder Resource Group
Expand Group Resource GroupGroup Resource Group
Expand Notification Resource GroupNotification Resource Group
Expand Progress Resource GroupProgress Resource Group
Expand Stage Resource GroupStage Resource Group
Expand State Transition Resource GroupState Transition Resource Group
Expand User Resource GroupUser Resource Group
Expand Vault Resource GroupVault Resource Group
Expand Version Resource GroupVersion Resource Group
Expand Workflow Resource GroupWorkflow Resource Group
Expand FeatureWorks API HelpFeatureWorks API Help
Expand SOLIDWORKS Costing API HelpSOLIDWORKS Costing API Help
Expand SOLIDWORKS Document Manager API HelpSOLIDWORKS Document Manager API Help
Expand SOLIDWORKS Inspection API HelpSOLIDWORKS Inspection API Help
Expand SOLIDWORKS Routing API HelpSOLIDWORKS Routing API Help
Expand SOLIDWORKS Simulation API HelpSOLIDWORKS Simulation API Help
Expand SOLIDWORKS Sustainability API HelpSOLIDWORKS Sustainability API Help
Expand SOLIDWORKS Toolbox API HelpSOLIDWORKS Toolbox API Help
Expand SOLIDWORKS Utilities API HelpSOLIDWORKS Utilities API Help
Expand eDrawings API HelpeDrawings API Help
Expand DraftSight API HelpDraftSight API Help
Expand Lisp Programming BasicsLisp Programming Basics
Expand Lisp Functions OverviewLisp Functions Overview
Expand Lisp Functions ReferenceLisp Functions Reference
Expand Visual Lisp Compatible FunctionsVisual Lisp Compatible Functions
Hide Table of Contents
PDM Pro API Web Service
Postapi/{vaultName}/files/info
PDM Pro API Web Service > File Resource Group : api/{vaultName}/files/info (Post)
Description
Get file info

 

Gets information about multiple files.

Parameters
NameDescriptionData Type
(URI parameter) Vault name (required)string

(Response) File ID

 

Member of ObjectInfo model; see Remarks

integer

(Response) File name

 

Member of ObjectInfo model; see Remarks

string

(Response) File size

 

Member of ObjectInfo model; see Remarks

integer

(Response) Modification date

 

Member of ObjectInfo model; see Remarks

date

 

(Response) Version

integer

(Response) Workflow state

 

Member of ObjectInfo model; see Remarks

string

(Response) State ID

 

Member of ObjectInfo model; see Remarks

integer

(Response) Parent folder ID

 

Member of ObjectInfo model; see Remarks

integer

(Response) Folder path

 

Member of ObjectInfo model; see Remarks

string

(Response) ObjectType model; one of:

   Folder = 0

   File = 1

   Bom = 3

 

Member of ObjectInfo model; see Remarks

ObjectType

(Response) Whether the file is checked out

 

Member of ObjectInfo model; see Remarks

integer

(Response) ID of user who checked out the file

 

Member of ObjectInfo model; see Remarks

integer

(Response) Whether the file is shared

 

Member of ObjectInfo model; see Remarks

integer

(Response) Whether the file is a toolbox item

 

Member of ObjectInfo model; see Remarks

integer

(Response) Whether the file is deleted

 

Member of ObjectInfo model; see Remarks

integer
Request (application/json, text/json)

Sample Data

[
  1,
  2
]
Request (application/xml, text/xml)

Sample Data

<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>
Request (application/x-www-form-urlencoded)

Response (application/json, text/json)

Sample Data

[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Size": 3,
    "ModifiedDate": "2022-05-27T09:24:08.9785077-04:00",
    "Version": 5,
    "State": "sample string 6",
    "StateId": 7,
    "ParentFolderId": 8,
    "Path": "sample string 9",
    "Type": 0,
    "IsLocked": 10,
    "LockedBy": 11,
    "IsShared": 12,
    "IsToolbox": 13,
    "IsDeleted": 14
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Size": 3,
    "ModifiedDate": "2022-05-27T09:24:08.9785077-04:00",
    "Version": 5,
    "State": "sample string 6",
    "StateId": 7,
    "ParentFolderId": 8,
    "Path": "sample string 9",
    "Type": 0,
    "IsLocked": 10,
    "LockedBy": 11,
    "IsShared": 12,
    "IsToolbox": 13,
    "IsDeleted": 14
  }
]
Response (application/xml, text/xml)

Sample Data

<ArrayOfObjectInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWPDM.Models">
  <ObjectInfo>
    <Id>1</Id>
    <IsDeleted>14</IsDeleted>
    <IsLocked>10</IsLocked>
    <IsShared>12</IsShared>
    <IsToolbox>13</IsToolbox>
    <LockedBy>11</LockedBy>
    <ModifiedDate>2022-05-27T09:24:08.9785077-04:00</ModifiedDate>
    <Name>sample string 2</Name>
    <ParentFolderId>8</ParentFolderId>
    <Path>sample string 9</Path>
    <Size>3</Size>
    <State>sample string 6</State>
    <StateId>7</StateId>
    <Type>Folder</Type>
    <Version>5</Version>
  </ObjectInfo>
  <ObjectInfo>
    <Id>1</Id>
    <IsDeleted>14</IsDeleted>
    <IsLocked>10</IsLocked>
    <IsShared>12</IsShared>
    <IsToolbox>13</IsToolbox>
    <LockedBy>11</LockedBy>
    <ModifiedDate>2022-05-27T09:24:08.9785077-04:00</ModifiedDate>
    <Name>sample string 2</Name>
    <ParentFolderId>8</ParentFolderId>
    <Path>sample string 9</Path>
    <Size>3</Size>
    <State>sample string 6</State>
    <StateId>7</StateId>
    <Type>Folder</Type>
    <Version>5</Version>
  </ObjectInfo>
</ArrayOfObjectInfo>
Remarks

This operation:

 

  • takes an array of body parameters that are IDs of files for which to get information.
  • returns an array of ObjectInfos, one for each file ID.

 

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/info (Post)
*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) 2022 SP04

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.