All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
createDocumentMasterInRootFolderWithTag | POST /workspaces/{workspaceId}/tags/{tagId}/documents | Create a new document master and its first revision with given tag |
createTag | POST /workspaces/{workspaceId}/tags | Create a new tag in workspace |
createTags | POST /workspaces/{workspaceId}/tags/multiple | Create new tags in workspace |
deleteTag | DELETE /workspaces/{workspaceId}/tags/{tagId} | Delete a tag in workspace |
getDocumentsWithGivenTagIdAndWorkspaceId | GET /workspaces/{workspaceId}/tags/{tagId}/documents | Get document revisions from given tag id |
getTagsInWorkspace | GET /workspaces/{workspaceId}/tags | Get tags in given workspace |
[DocumentRevisionDTO] createDocumentMasterInRootFolderWithTag(workspaceId, body, tagId)
Create a new document master and its first revision with given tag
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.TagsApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var body = new DocdokuPlmApi.DocumentCreationDTO(); // DocumentCreationDTO | Document to create
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.createDocumentMasterInRootFolderWithTag(workspaceId, body, tagId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
body | DocumentCreationDTO | Document to create | |
tagId | String | Tag id |
TagDTO createTag(workspaceId, body)
Create a new tag in workspace
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.TagsApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var body = new DocdokuPlmApi.TagDTO(); // TagDTO | Tag to create
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createTag(workspaceId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
body | TagDTO | Tag to create |
createTags(workspaceId, body)
Create new tags in workspace
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.TagsApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var body = new DocdokuPlmApi.TagListDTO(); // TagListDTO | Tag list to create
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.createTags(workspaceId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
body | TagListDTO | Tag list to create |
null (empty response body)
deleteTag(workspaceId, tagId)
Delete a tag in workspace
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.TagsApi();
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.');
}
};
apiInstance.deleteTag(workspaceId, tagId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
tagId | String | Tag id |
null (empty response body)
[DocumentRevisionDTO] getDocumentsWithGivenTagIdAndWorkspaceId(workspaceId, tagId)
Get document revisions from given tag 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.TagsApi();
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.getDocumentsWithGivenTagIdAndWorkspaceId(workspaceId, tagId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
tagId | String | Tag id |
[TagDTO] getTagsInWorkspace(workspaceId)
Get tags in given workspace
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.TagsApi();
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.getTagsInWorkspace(workspaceId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id |