Hide Table of Contents
PDM Pro API Web Service
Postapi/{vaultName}/files/{fileId}/datacard
PDM Pro API Web Service > Data Card Resource Group : api/{vaultName}/files/{fileId}/datacard (Post)
Description
Save file data card

 

Saves the data card for the specified file and vault.

Parameters
NameDescriptionData Type
(URI parameter) Vault name (required)string
(URI parameter) File ID (required)integer

(Body) Array of VariableInfo_DataCards; each VariableInfo_DataCard consists of:

   ReadOnly (boolean)

   Multiline (boolean)

   VarId (integer)

   VarName (string)

   VarValue (string)

   VarType (one of:

       VarTypeNone = 0

       VarTypeText = 1

       VarTypeInt = 2

       VarTypeFloat = 3

       VarTypeBool = 4

       VarTypeDate = 5

   Mandatory (boolean)

   VersionFree (boolean)

 

 

Member of ConfigInfo_DataCard model (see Remarks)

Collection of VariableInfo_DataCard

(Body) Configuration name

 

Member of ConfigInfo_DataCard model (see Remarks)

string

(Body) Configuration ID

 

Member of ConfigInfo_DataCard model (see Remarks)

integer
Request (application/json, text/json)

Sample Data

[
  {
    "Models": [
      {
        "ReadOnly": true,
        "Multiline": true,
        "VarId": 3,
        "VarName": "sample string 4",
        "VarValue": "sample string 5",
        "VarType": 0,
        "Mandatory": true,
        "VersionFree": true
      },
      {
        "ReadOnly": true,
        "Multiline": true,
        "VarId": 3,
        "VarName": "sample string 4",
        "VarValue": "sample string 5",
        "VarType": 0,
        "Mandatory": true,
        "VersionFree": true
      }
    ],
    "ConfigurationName": "sample string 1",
    "ConfigurationId": 2
  },
  {
    "Models": [
      {
        "ReadOnly": true,
        "Multiline": true,
        "VarId": 3,
        "VarName": "sample string 4",
        "VarValue": "sample string 5",
        "VarType": 0,
        "Mandatory": true,
        "VersionFree": true
      },
      {
        "ReadOnly": true,
        "Multiline": true,
        "VarId": 3,
        "VarName": "sample string 4",
        "VarValue": "sample string 5",
        "VarType": 0,
        "Mandatory": true,
        "VersionFree": true
      }
    ],
    "ConfigurationName": "sample string 1",
    "ConfigurationId": 2
  }
]
Request (application/xml, text/xml)

Body parameter contains multiple arrays, each consisting of variables to modify (Models), configuration name, and configuration ID.

Sample Data

<ArrayOfConfigInfo_DataCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWPDM.Models">
  <ConfigInfo_DataCard>
    <ConfigurationId>2</ConfigurationId>
    <ConfigurationName>sample string 1</ConfigurationName>
    <Models>
      <VariableInfo_DataCard>
        <Mandatory>true</Mandatory>
        <VarId>3</VarId>
        <VarName>sample string 4</VarName>
        <VarType>VarTypeNone</VarType>
        <VarValue>sample string 5</VarValue>
        <VersionFree>true</VersionFree>
        <Multiline>true</Multiline>
        <ReadOnly>true</ReadOnly>
      </VariableInfo_DataCard>
      <VariableInfo_DataCard>
        <Mandatory>true</Mandatory>
        <VarId>3</VarId>
        <VarName>sample string 4</VarName>
        <VarType>VarTypeNone</VarType>
        <VarValue>sample string 5</VarValue>
        <VersionFree>true</VersionFree>
        <Multiline>true</Multiline>
        <ReadOnly>true</ReadOnly>
      </VariableInfo_DataCard>
    </Models>
  </ConfigInfo_DataCard>
  <ConfigInfo_DataCard>
    <ConfigurationId>2</ConfigurationId>
    <ConfigurationName>sample string 1</ConfigurationName>
    <Models>
      <VariableInfo_DataCard>
        <Mandatory>true</Mandatory>
        <VarId>3</VarId>
        <VarName>sample string 4</VarName>
        <VarType>VarTypeNone</VarType>
        <VarValue>sample string 5</VarValue>
        <VersionFree>true</VersionFree>
        <Multiline>true</Multiline>
        <ReadOnly>true</ReadOnly>
      </VariableInfo_DataCard>
      <VariableInfo_DataCard>
        <Mandatory>true</Mandatory>
        <VarId>3</VarId>
        <VarName>sample string 4</VarName>
        <VarType>VarTypeNone</VarType>
        <VarValue>sample string 5</VarValue>
        <VersionFree>true</VersionFree>
        <Multiline>true</Multiline>
        <ReadOnly>true</ReadOnly>
      </VariableInfo_DataCard>
    </Models>
  </ConfigInfo_DataCard>
</ArrayOfConfigInfo_DataCard>
Request (application/x-www-form-urlencoded)

Body parameter contains multiple arrays, each consisting of variables to modify (Models), configuration name, and configuration ID.
Response (application/json, text/json)

Returns the status of the operation.

Sample Data

true
Response (application/xml, text/xml)

Returns the status of the operation.

Sample Data

<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>
Example
Remarks
Models, ConfigurationName, and ConfigurationId are all members of ConfigInfo_DataCard. This operation can return an array of ConfigInfo_DataCards. See the Request samples.
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}/datacard (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 SP05

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.