DocdokuPlmApi.PartsApi

All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api

Method HTTP request Description
addPartTag POST /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/tags Add tags to part revision
checkIn PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/checkin Checkin part revision
checkOut PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/checkout Checkout part revision
createEffectivity POST /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/effectivities Create an Effectivity for a given PartRevision
createNewPart POST /workspaces/{workspaceId}/parts Create a new part master and its first revision
createNewPartVersion PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/newVersion Create new part version
createSharedPart POST /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/share Create a new shared part from part revision
deleteEffectivity DELETE /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/effectivities/{effectivityId} Delete effectivity from given part revision
deleteImport DELETE /workspaces/{workspaceId}/parts/import/{importId} Delete import
deletePartRevision DELETE /workspaces/{workspaceId}/parts/{partNumber}-{partVersion} Delete part revision
deleteQuery DELETE /workspaces/{workspaceId}/parts/queries/{queryId} Delete custom query
exportCustomQuery POST /workspaces/{workspaceId}/parts/query-export Run and export a custom query
exportExistingQuery GET /workspaces/{workspaceId}/parts/queries/{queryId}/format/{export} Run and export an existing query
filterPartMasterInBaseline GET /workspaces/{workspaceId}/parts/{partNumber}/filter/{baselineId} Filter part master with in baseline : resolve part iteration
getAbortedWorkflowListInPart GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/aborted-workflows Get part revision's aborted workflow list
getBaselinesWherePartRevisionHasIterations GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/baselines Get product baselines where part revision is involved
getCheckedOutNumberOfItems GET /workspaces/{workspaceId}/parts/countCheckedOut Count checked out part revisions
getCheckedOutPartRevisions GET /workspaces/{workspaceId}/parts/checkedout Get checked out part revisions
getConversionStatus GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/iterations/{partIteration}/conversion Get part iteration conversion status
getCustomQueries GET /workspaces/{workspaceId}/parts/queries Get custom queries in workspace
getEffectivities GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/effectivities Get effectivities of a given PartRevision
getImport GET /workspaces/{workspaceId}/parts/import/{importId} Get import by id
getImportPreview POST /workspaces/{workspaceId}/parts/importPreview Get import preview
getImports GET /workspaces/{workspaceId}/parts/imports/{filename} Get imports currently running for given file
getInstancesUnderPart GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/instances Get instances under given part revision (latest checked-in view)
getLatestPartRevision GET /workspaces/{workspaceId}/parts/{partNumber}/latest-revision Get part master latest available revision
getPartRevision GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion} Get part revision
getPartRevisions GET /workspaces/{workspaceId}/parts Get part revisions in workspace
getPartRevisionsByTag GET /workspaces/{workspaceId}/parts/tags/{tagId} Get part revisions in workspace
getProductInstanceMasters GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/used-by-product-instance-masters Get product instance where part revision is in use
getTotalNumberOfParts GET /workspaces/{workspaceId}/parts/count Count part revisions in workspace
getUsedByAsComponent GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/used-by-as-component Get part revisions where given part revision is used as a component
getUsedByAsSubstitute GET /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/used-by-as-substitute Get part revisions where given part revision is used as a substitute
importPartAttributes POST /workspaces/{workspaceId}/parts/import Import part iteration attributes from file
markPartRevisionAsObsolete PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/obsolete Set part revision as obsolete
publishPartRevision PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/publish Publish part revision
releasePartRevision PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/release Release part revision
removeFile DELETE /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/iterations/{partIteration}/files/{subType}/{fileName} Remove file from part iteration
removePartTags DELETE /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/tags/{tagName} Delete tags from part revision
renameAttachedFileInPartIteration PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/iterations/{partIteration}/files/{subType}/{fileName} Rename attached file from part iteration
retryConversion PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/iterations/{partIteration}/conversion Retry part iteration conversion
runCustomQuery POST /workspaces/{workspaceId}/parts/queries Run custom query in workspace
savePartTags PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/tags Save part revision tags
searchPartNumbers GET /workspaces/{workspaceId}/parts/numbers Search for available part numbers in given workspace
searchPartRevisions GET /workspaces/{workspaceId}/parts/search Search part revisions in workspace
searchPartsLastIterationWithReferenceOrName GET /workspaces/{workspaceId}/parts/parts_last_iter Search documents last iteration to link
unPublishPartRevision PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/unpublish Un-publish part revision
undoCheckOut PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/undocheckout Undo checkout part revision
updatePartIteration PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/iterations/{partIteration} Update part iteration
updatePartRevisionACL PUT /workspaces/{workspaceId}/parts/{partNumber}-{partVersion}/acl Update part revision ACL

addPartTag

PartRevisionDTO addPartTag(workspaceId, partNumber, partVersion, body)

Add tags to part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var body = new DocdokuPlmApi.TagListDTO(); // TagListDTO | Tag list to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.addPartTag(workspaceId, partNumber, partVersion, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
body TagListDTO Tag list to add

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

checkIn

PartRevisionDTO checkIn(workspaceId, partNumber, partVersion)

Checkin part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.checkIn(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

checkOut

PartRevisionDTO checkOut(workspaceId, partNumber, partVersion)

Checkout part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.checkOut(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

createEffectivity

EffectivityDTO createEffectivity(body, workspaceId, partNumber, partVersion)

Create an Effectivity for a given PartRevision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var body = new DocdokuPlmApi.EffectivityDTO(); // EffectivityDTO | Effectivity to create

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part revision number

var partVersion = "partVersion_example"; // String | Part revision version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.createEffectivity(body, workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
body EffectivityDTO Effectivity to create
workspaceId String Workspace id
partNumber String Part revision number
partVersion String Part revision version

Return type

EffectivityDTO

Authorization

authorization

HTTP request headers

createNewPart

PartRevisionDTO createNewPart(workspaceId, body)

Create a new part master and its first revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var body = new DocdokuPlmApi.PartCreationDTO(); // PartCreationDTO | Part to create


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.createNewPart(workspaceId, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
body PartCreationDTO Part to create

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

createNewPartVersion

createNewPartVersion(workspaceId, partNumber, partVersion, body)

Create new part version

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var body = new DocdokuPlmApi.PartCreationDTO(); // PartCreationDTO | New version of part to create


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.createNewPartVersion(workspaceId, partNumber, partVersion, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
body PartCreationDTO New version of part to create

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

createSharedPart

SharedPartDTO createSharedPart(workspaceId, partNumber, partVersion, body)

Create a new shared part from part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var body = new DocdokuPlmApi.SharedPartDTO(); // SharedPartDTO | Shared part to create


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.createSharedPart(workspaceId, partNumber, partVersion, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
body SharedPartDTO Shared part to create

Return type

SharedPartDTO

Authorization

authorization

HTTP request headers

deleteEffectivity

deleteEffectivity(workspaceId, partNumber, partVersion, effectivityId)

Delete effectivity from given part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part revision number

var partVersion = "partVersion_example"; // String | Part revision version

var effectivityId = 56; // Number | Effectivity id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deleteEffectivity(workspaceId, partNumber, partVersion, effectivityId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part revision number
partVersion String Part revision version
effectivityId Number Effectivity id

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

deleteImport

deleteImport(workspaceId, importId)

Delete import

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var importId = "importId_example"; // String | Import id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deleteImport(workspaceId, importId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
importId String Import id

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

deletePartRevision

deletePartRevision(workspaceId, partNumber, partVersion)

Delete part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletePartRevision(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

deleteQuery

deleteQuery(workspaceId, queryId)

Delete custom query

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var queryId = 56; // Number | Query id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deleteQuery(workspaceId, queryId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
queryId Number Query id

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

exportCustomQuery

File exportCustomQuery(workspaceId, body, opts)

Run and export a custom query

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var body = new DocdokuPlmApi.QueryDTO(); // QueryDTO | Query to export

var opts = { 
  '_export': "JSON" // String | Choose export type
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.exportCustomQuery(workspaceId, body, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
body QueryDTO Query to export
_export String Choose export type [optional] [default to JSON]

Return type

File

Authorization

authorization

HTTP request headers

exportExistingQuery

File exportExistingQuery(workspaceId, queryId, _export)

Run and export an existing query

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var queryId = 56; // Number | Query id

var _export = "_export_example"; // String | Choose export type


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.exportExistingQuery(workspaceId, queryId, _export, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
queryId Number Query id
_export String Choose export type

Return type

File

Authorization

authorization

HTTP request headers

filterPartMasterInBaseline

PartIterationDTO filterPartMasterInBaseline(workspaceId, partNumber, baselineId)

Filter part master with in baseline : resolve part iteration

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var baselineId = 56; // Number | Baseline id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.filterPartMasterInBaseline(workspaceId, partNumber, baselineId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
baselineId Number Baseline id

Return type

PartIterationDTO

Authorization

authorization

HTTP request headers

getAbortedWorkflowListInPart

[WorkflowDTO] getAbortedWorkflowListInPart(workspaceId, partNumber, partVersion)

Get part revision's aborted workflow list

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getAbortedWorkflowListInPart(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

[WorkflowDTO]

Authorization

authorization

HTTP request headers

getBaselinesWherePartRevisionHasIterations

[ProductBaselineDTO] getBaselinesWherePartRevisionHasIterations(workspaceId, partNumber, partVersion)

Get product baselines where part revision is involved

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getBaselinesWherePartRevisionHasIterations(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

[ProductBaselineDTO]

Authorization

authorization

HTTP request headers

getCheckedOutNumberOfItems

CountDTO getCheckedOutNumberOfItems(workspaceId)

Count checked out part revisions

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCheckedOutNumberOfItems(workspaceId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

CountDTO

Authorization

authorization

HTTP request headers

getCheckedOutPartRevisions

[PartRevisionDTO] getCheckedOutPartRevisions(workspaceId)

Get checked out part revisions

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCheckedOutPartRevisions(workspaceId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[PartRevisionDTO]

Authorization

authorization

HTTP request headers

getConversionStatus

ConversionDTO getConversionStatus(workspaceId, partNumber, partVersion, partIteration)

Get part iteration conversion status

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var partIteration = 56; // Number | Part iteration


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getConversionStatus(workspaceId, partNumber, partVersion, partIteration, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
partIteration Number Part iteration

Return type

ConversionDTO

Authorization

authorization

HTTP request headers

getCustomQueries

[QueryDTO] getCustomQueries(workspaceId)

Get custom queries in workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCustomQueries(workspaceId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[QueryDTO]

Authorization

authorization

HTTP request headers

getEffectivities

[EffectivityDTO] getEffectivities(workspaceId, partNumber, partVersion)

Get effectivities of a given PartRevision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part revision number

var partVersion = "partVersion_example"; // String | Part revision version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getEffectivities(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part revision number
partVersion String Part revision version

Return type

[EffectivityDTO]

Authorization

authorization

HTTP request headers

getImport

ImportDTO getImport(workspaceId, importId)

Get import by id

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var importId = "importId_example"; // String | Import id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getImport(workspaceId, importId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
importId String Import id

Return type

ImportDTO

Authorization

authorization

HTTP request headers

getImportPreview

ImportPreviewDTO getImportPreview(workspaceId, importType, opts)

Get import preview

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var importType = "importType_example"; // String | Import type

var opts = { 
  'autoCheckout': true, // Boolean | Auto check out parts flag
  'autoCheckin': true, // Boolean | Auto check in parts flag
  'permissiveUpdate': true // Boolean | Permissive update flag
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getImportPreview(workspaceId, importType, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
importType String Import type
autoCheckout Boolean Auto check out parts flag [optional]
autoCheckin Boolean Auto check in parts flag [optional]
permissiveUpdate Boolean Permissive update flag [optional]

Return type

ImportPreviewDTO

Authorization

authorization

HTTP request headers

getImports

[ImportDTO] getImports(workspaceId, filename)

Get imports currently running for given file

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var filename = "filename_example"; // String | File name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getImports(workspaceId, filename, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
filename String File name

Return type

[ImportDTO]

Authorization

authorization

HTTP request headers

getInstancesUnderPart

[LeafDTO] getInstancesUnderPart(workspaceId, partNumber, partVersion)

Get instances under given part revision (latest checked-in view)

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getInstancesUnderPart(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

[LeafDTO]

Authorization

authorization

HTTP request headers

getLatestPartRevision

PartRevisionDTO getLatestPartRevision(workspaceId, partNumber)

Get part master latest available revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getLatestPartRevision(workspaceId, partNumber, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

getPartRevision

PartRevisionDTO getPartRevision(workspaceId, partNumber, partVersion)

Get part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getPartRevision(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

getPartRevisions

[PartRevisionDTO] getPartRevisions(workspaceId, opts)

Get part revisions in workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var opts = { 
  'start': 0, // Number | Start offset
  'length': 20 // Number | Max results
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getPartRevisions(workspaceId, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
start Number Start offset [optional] [default to 0]
length Number Max results [optional] [default to 20]

Return type

[PartRevisionDTO]

Authorization

authorization

HTTP request headers

getPartRevisionsByTag

[PartRevisionDTO] getPartRevisionsByTag(workspaceId, tagId)

Get part revisions in workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var tagId = "tagId_example"; // String | Tag id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getPartRevisionsByTag(workspaceId, tagId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
tagId String Tag id

Return type

[PartRevisionDTO]

Authorization

authorization

HTTP request headers

getProductInstanceMasters

[ProductInstanceMasterDTO] getProductInstanceMasters(workspaceId, partNumber, partVersion)

Get product instance where part revision is in use

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getProductInstanceMasters(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

[ProductInstanceMasterDTO]

Authorization

authorization

HTTP request headers

getTotalNumberOfParts

CountDTO getTotalNumberOfParts(workspaceId)

Count part revisions in workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getTotalNumberOfParts(workspaceId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

CountDTO

Authorization

authorization

HTTP request headers

getUsedByAsComponent

[PartRevisionDTO] getUsedByAsComponent(workspaceId, partNumber, partVersion)

Get part revisions where given part revision is used as a component

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getUsedByAsComponent(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

[PartRevisionDTO]

Authorization

authorization

HTTP request headers

getUsedByAsSubstitute

[PartRevisionDTO] getUsedByAsSubstitute(workspaceId, partNumber, partVersion)

Get part revisions where given part revision is used as a substitute

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getUsedByAsSubstitute(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

[PartRevisionDTO]

Authorization

authorization

HTTP request headers

importPartAttributes

importPartAttributes(workspaceId, importType, opts)

Import part iteration attributes from file

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var importType = "importType_example"; // String | Import type

var opts = { 
  'autoCheckout': true, // Boolean | Auto check out parts flag
  'autoCheckin': true, // Boolean | Auto check in parts flag
  'permissiveUpdate': true, // Boolean | Permissive update flag
  'revisionNote': "revisionNote_example" // String | Revision note to add
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.importPartAttributes(workspaceId, importType, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
importType String Import type
autoCheckout Boolean Auto check out parts flag [optional]
autoCheckin Boolean Auto check in parts flag [optional]
permissiveUpdate Boolean Permissive update flag [optional]
revisionNote String Revision note to add [optional]

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

markPartRevisionAsObsolete

PartRevisionDTO markPartRevisionAsObsolete(workspaceId, partNumber, partVersion)

Set part revision as obsolete

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.markPartRevisionAsObsolete(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

publishPartRevision

publishPartRevision(workspaceId, partNumber, partVersion)

Publish part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.publishPartRevision(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

releasePartRevision

PartRevisionDTO releasePartRevision(workspaceId, partNumber, partVersion)

Release part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.releasePartRevision(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

removeFile

removeFile(workspaceId, partNumber, partVersion, partIteration, subType, fileName)

Remove file from part iteration

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var partIteration = 56; // Number | Part iteration

var subType = "subType_example"; // String | Sub type

var fileName = "fileName_example"; // String | File name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.removeFile(workspaceId, partNumber, partVersion, partIteration, subType, fileName, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
partIteration Number Part iteration
subType String Sub type
fileName String File name

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

removePartTags

PartRevisionDTO removePartTags(workspaceId, partNumber, partVersion, tagName)

Delete tags from part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var tagName = "tagName_example"; // String | Tag name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.removePartTags(workspaceId, partNumber, partVersion, tagName, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
tagName String Tag name

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

renameAttachedFileInPartIteration

renameAttachedFileInPartIteration(workspaceId, partNumber, partVersion, partIteration, subType, fileName, body)

Rename attached file from part iteration

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var partIteration = 56; // Number | Part iteration

var subType = "subType_example"; // String | Sub type

var fileName = "fileName_example"; // String | File name

var body = new DocdokuPlmApi.FileDTO(); // FileDTO | File to rename


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.renameAttachedFileInPartIteration(workspaceId, partNumber, partVersion, partIteration, subType, fileName, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
partIteration Number Part iteration
subType String Sub type
fileName String File name
body FileDTO File to rename

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

retryConversion

retryConversion(workspaceId, partNumber, partVersion, partIteration)

Retry part iteration conversion

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var partIteration = 56; // Number | Part iteration


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.retryConversion(workspaceId, partNumber, partVersion, partIteration, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
partIteration Number Part iteration

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

runCustomQuery

File runCustomQuery(workspaceId, body, opts)

Run custom query in workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var body = new DocdokuPlmApi.QueryDTO(); // QueryDTO | Query to run

var opts = { 
  'save': false, // Boolean | Save the query flag
  '_export': "JSON" // String | Choose export type
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.runCustomQuery(workspaceId, body, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
body QueryDTO Query to run
save Boolean Save the query flag [optional] [default to false]
_export String Choose export type [optional] [default to JSON]

Return type

File

Authorization

authorization

HTTP request headers

savePartTags

PartRevisionDTO savePartTags(workspaceId, partNumber, partVersion, body)

Save part revision tags

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var body = new DocdokuPlmApi.TagListDTO(); // TagListDTO | Tag list to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.savePartTags(workspaceId, partNumber, partVersion, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
body TagListDTO Tag list to add

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

searchPartNumbers

[LightPartMasterDTO] searchPartNumbers(workspaceId, q)

Search for available part numbers in given workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var q = "q_example"; // String | Query


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.searchPartNumbers(workspaceId, q, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
q String Query

Return type

[LightPartMasterDTO]

Authorization

authorization

HTTP request headers

searchPartRevisions

[PartRevisionDTO] searchPartRevisions(workspaceId, opts)

Search part revisions in workspace

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var opts = { 
  'q': "q_example", // String | Query
  '_number': "_number_example", // String | Part number
  'name': "name_example", // String | Part name
  'version': "version_example", // String | Part version
  'author': "author_example", // String | Part author
  'type': "type_example", // String | Part type
  'createdFrom': "createdFrom_example", // String | Part created from date
  'createdTo': "createdTo_example", // String | Part created to date
  'modifiedFrom': "modifiedFrom_example", // String | Part modified from date
  'modifiedTo': "modifiedTo_example", // String | Part modified to date
  'tags': "tags_example", // String | Part tags
  'content': "content_example", // String | Part files content
  'attributes': "attributes_example", // String | Part files attributes
  'from': 0, // Number | Start offset
  'size': 10, // Number | Max results
  'fetchHeadOnly': true // Boolean | Search mode (false for history / true for head only)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.searchPartRevisions(workspaceId, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
q String Query [optional]
_number String Part number [optional]
name String Part name [optional]
version String Part version [optional]
author String Part author [optional]
type String Part type [optional]
createdFrom String Part created from date [optional]
createdTo String Part created to date [optional]
modifiedFrom String Part modified from date [optional]
modifiedTo String Part modified to date [optional]
tags String Part tags [optional]
content String Part files content [optional]
attributes String Part files attributes [optional]
from Number Start offset [optional] [default to 0]
size Number Max results [optional] [default to 10]
fetchHeadOnly Boolean Search mode (false for history / true for head only) [optional]

Return type

[PartRevisionDTO]

Authorization

authorization

HTTP request headers

searchPartsLastIterationWithReferenceOrName

[PartIterationDTO] searchPartsLastIterationWithReferenceOrName(workspaceId, q, opts)

Search documents last iteration to link

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var q = "q_example"; // String | Query

var opts = { 
  'l': 15 // Number | Max results
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.searchPartsLastIterationWithReferenceOrName(workspaceId, q, opts, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
q String Query
l Number Max results [optional] [default to 15]

Return type

[PartIterationDTO]

Authorization

authorization

HTTP request headers

unPublishPartRevision

unPublishPartRevision(workspaceId, partNumber, partVersion)

Un-publish part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.unPublishPartRevision(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

undoCheckOut

PartRevisionDTO undoCheckOut(workspaceId, partNumber, partVersion)

Undo checkout part revision

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.undoCheckOut(workspaceId, partNumber, partVersion, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

updatePartIteration

PartRevisionDTO updatePartIteration(workspaceId, partNumber, partVersion, partIteration, body)

Update part iteration

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var partIteration = 56; // Number | Part iteration

var body = new DocdokuPlmApi.PartIterationDTO(); // PartIterationDTO | Part iteration to update


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updatePartIteration(workspaceId, partNumber, partVersion, partIteration, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
partIteration Number Part iteration
body PartIterationDTO Part iteration to update

Return type

PartRevisionDTO

Authorization

authorization

HTTP request headers

updatePartRevisionACL

updatePartRevisionACL(workspaceId, partNumber, partVersion, body)

Update part revision ACL

Example

var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;

// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';

var apiInstance = new DocdokuPlmApi.PartsApi();

var workspaceId = "workspaceId_example"; // String | Workspace id

var partNumber = "partNumber_example"; // String | Part number

var partVersion = "partVersion_example"; // String | Part version

var body = new DocdokuPlmApi.ACLDTO(); // ACLDTO | ACL rules to set


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatePartRevisionACL(workspaceId, partNumber, partVersion, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
partNumber String Part number
partVersion String Part version
body ACLDTO ACL rules to set

Return type

null (empty response body)

Authorization

authorization

HTTP request headers