All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
createPartMasterTemplate | POST /workspaces/{workspaceId}/part-templates | Crate a new part master template |
deletePartMasterTemplate | DELETE /workspaces/{workspaceId}/part-templates/{templateId} | Delete part master template |
generatePartMasterTemplateId | GET /workspaces/{workspaceId}/part-templates/{templateId}/generate_id | Generate part master template id |
getPartMasterTemplate | GET /workspaces/{workspaceId}/part-templates/{templateId} | Get part master template |
getPartMasterTemplates | GET /workspaces/{workspaceId}/part-templates | Get part master templates |
removeAttachedFileFromPartTemplate | DELETE /workspaces/{workspaceId}/part-templates/{templateId}/files/{fileName} | Remove attached file from part master template |
renameAttachedFileInPartTemplate | PUT /workspaces/{workspaceId}/part-templates/{templateId}/files/{fileName} | Rename attached file in part master template |
updatePartMasterTemplate | PUT /workspaces/{workspaceId}/part-templates/{templateId} | Update part master template |
updatePartMasterTemplateACL | PUT /workspaces/{workspaceId}/part-templates/{templateId}/acl | Update part master template ACL |
PartMasterTemplateDTO createPartMasterTemplate(workspaceId, body)
Crate a new part master template
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var body = new DocdokuPlmApi.PartTemplateCreationDTO(); // PartTemplateCreationDTO | Part master template to create
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createPartMasterTemplate(workspaceId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
body | PartTemplateCreationDTO | Part master template to create |
deletePartMasterTemplate(workspaceId, templateId)
Delete part master template
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deletePartMasterTemplate(workspaceId, templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id |
null (empty response body)
TemplateGeneratedIdDTO generatePartMasterTemplateId(workspaceId, templateId)
Generate part master template id
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.generatePartMasterTemplateId(workspaceId, templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id |
PartMasterTemplateDTO getPartMasterTemplate(workspaceId, templateId)
Get part master template
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getPartMasterTemplate(workspaceId, templateId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id |
[PartMasterTemplateDTO] getPartMasterTemplates(workspaceId)
Get part master templates
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.PartTemplatesApi();
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.getPartMasterTemplates(workspaceId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id |
removeAttachedFileFromPartTemplate(workspaceId, templateId, fileName)
Remove attached file from part master template
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template 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.');
}
};
apiInstance.removeAttachedFileFromPartTemplate(workspaceId, templateId, fileName, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
fileName | String | File name |
null (empty response body)
FileDTO renameAttachedFileInPartTemplate(workspaceId, templateId, fileName, body)
Rename attached file in part master template
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
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. Returned data: ' + data);
}
};
apiInstance.renameAttachedFileInPartTemplate(workspaceId, templateId, fileName, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
fileName | String | File name | |
body | FileDTO | File to rename |
PartMasterTemplateDTO updatePartMasterTemplate(workspaceId, templateId, body)
Update part master template
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var body = new DocdokuPlmApi.PartMasterTemplateDTO(); // PartMasterTemplateDTO | Part master template to update
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updatePartMasterTemplate(workspaceId, templateId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
body | PartMasterTemplateDTO | Part master template to update |
updatePartMasterTemplateACL(workspaceId, templateId, body)
Update part master template ACL
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.PartTemplatesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
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.updatePartMasterTemplateACL(workspaceId, templateId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
body | ACLDTO | ACL rules to set |
null (empty response body)