DocdokuPlmApi.TagsApi

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

createDocumentMasterInRootFolderWithTag

[DocumentRevisionDTO] createDocumentMasterInRootFolderWithTag(workspaceId, body, tagId)

Create a new document master and its first revision with given tag

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.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);

Parameters

Name Type Description Notes
workspaceId String Workspace id
body DocumentCreationDTO Document to create
tagId String Tag id

Return type

[DocumentRevisionDTO]

Authorization

authorization

HTTP request headers

createTag

TagDTO createTag(workspaceId, body)

Create a new tag 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.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);

Parameters

Name Type Description Notes
workspaceId String Workspace id
body TagDTO Tag to create

Return type

TagDTO

Authorization

authorization

HTTP request headers

createTags

createTags(workspaceId, body)

Create new tags 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.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);

Parameters

Name Type Description Notes
workspaceId String Workspace id
body TagListDTO Tag list to create

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

deleteTag

deleteTag(workspaceId, tagId)

Delete a tag 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.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);

Parameters

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

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

getDocumentsWithGivenTagIdAndWorkspaceId

[DocumentRevisionDTO] getDocumentsWithGivenTagIdAndWorkspaceId(workspaceId, tagId)

Get document revisions from given tag 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.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);

Parameters

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

Return type

[DocumentRevisionDTO]

Authorization

authorization

HTTP request headers

getTagsInWorkspace

[TagDTO] getTagsInWorkspace(workspaceId)

Get tags 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.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);

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[TagDTO]

Authorization

authorization

HTTP request headers