All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
downloadDocumentTemplateFile | GET /files/{workspaceId}/document-templates/{templateId}/{fileName} | Download document template file |
uploadDocumentTemplateFiles | POST /files/{workspaceId}/document-templates/{templateId} | Upload document template file |
File downloadDocumentTemplateFile(workspaceId, templateId, fileName, opts)
Download document template file
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.DocumentTemplateBinaryApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var fileName = "fileName_example"; // String | File name
var opts = {
'range': "range_example", // String | Range
'type': "type_example", // String | Type
'output': "output_example" // String | Output
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.downloadDocumentTemplateFile(workspaceId, templateId, fileName, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
fileName | String | File name | |
range | String | Range | [optional] |
type | String | Type | [optional] |
output | String | Output | [optional] |
File
uploadDocumentTemplateFiles(workspaceId, templateId, upload)
Upload document template file
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.DocumentTemplateBinaryApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var upload = "/path/to/file.txt"; // File |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.uploadDocumentTemplateFiles(workspaceId, templateId, upload, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
upload | File |
null (empty response body)