DocdokuPlmApi.MilestonesApi

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

Method HTTP request Description
createMilestone POST /workspaces/{workspaceId}/changes/milestones Create a new milestone
getMilestone GET /workspaces/{workspaceId}/changes/milestones/{milestoneId} Get a milestone by id
getMilestones GET /workspaces/{workspaceId}/changes/milestones Get milestones for given parameters
getOrdersByMilestone GET /workspaces/{workspaceId}/changes/milestones/{milestoneId}/orders Get change orders for a given milestone
getRequestsByMilestone GET /workspaces/{workspaceId}/changes/milestones/{milestoneId}/requests Get change requests for a given milestone
removeMilestone DELETE /workspaces/{workspaceId}/changes/milestones/{milestoneId} Delete milestone
updateMilestone PUT /workspaces/{workspaceId}/changes/milestones/{milestoneId} Update milestone
updateMilestoneACL PUT /workspaces/{workspaceId}/changes/milestones/{milestoneId}/acl Update ACL of a milestone

createMilestone

MilestoneDTO createMilestone(workspaceId, body)

Create a new milestone

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

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

var body = new DocdokuPlmApi.MilestoneDTO(); // MilestoneDTO | Milestone to create


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

Parameters

Name Type Description Notes
workspaceId String Workspace id
body MilestoneDTO Milestone to create

Return type

MilestoneDTO

Authorization

authorization

HTTP request headers

getMilestone

MilestoneDTO getMilestone(workspaceId, milestoneId)

Get a milestone 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.MilestonesApi();

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

var milestoneId = 56; // Number | Milestone id


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

Parameters

Name Type Description Notes
workspaceId String Workspace id
milestoneId Number Milestone id

Return type

MilestoneDTO

Authorization

authorization

HTTP request headers

getMilestones

[MilestoneDTO] getMilestones(workspaceId)

Get milestones for given parameters

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

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.getMilestones(workspaceId, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[MilestoneDTO]

Authorization

authorization

HTTP request headers

getOrdersByMilestone

[ChangeOrderDTO] getOrdersByMilestone(workspaceId, milestoneId)

Get change orders for a given milestone

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

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

var milestoneId = 56; // Number | Milestone id


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

Parameters

Name Type Description Notes
workspaceId String Workspace id
milestoneId Number Milestone id

Return type

[ChangeOrderDTO]

Authorization

authorization

HTTP request headers

getRequestsByMilestone

[ChangeRequestDTO] getRequestsByMilestone(workspaceId, milestoneId)

Get change requests for a given milestone

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

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

var milestoneId = 56; // Number | Milestone id


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

Parameters

Name Type Description Notes
workspaceId String Workspace id
milestoneId Number Milestone id

Return type

[ChangeRequestDTO]

Authorization

authorization

HTTP request headers

removeMilestone

removeMilestone(workspaceId, milestoneId)

Delete milestone

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

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

var milestoneId = 56; // Number | Milestone id


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

Parameters

Name Type Description Notes
workspaceId String Workspace id
milestoneId Number Milestone id

Return type

null (empty response body)

Authorization

authorization

HTTP request headers

updateMilestone

MilestoneDTO updateMilestone(workspaceId, milestoneId, body)

Update milestone

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

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

var milestoneId = 56; // Number | Milestone id

var body = new DocdokuPlmApi.MilestoneDTO(); // MilestoneDTO | Milestone to update


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

Parameters

Name Type Description Notes
workspaceId String Workspace id
milestoneId Number Milestone id
body MilestoneDTO Milestone to update

Return type

MilestoneDTO

Authorization

authorization

HTTP request headers

updateMilestoneACL

updateMilestoneACL(workspaceId, milestoneId, body)

Update ACL of a milestone

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

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

var milestoneId = 56; // Number | Milestone 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.updateMilestoneACL(workspaceId, milestoneId, body, callback);

Parameters

Name Type Description Notes
workspaceId String Workspace id
milestoneId Number Milestone id
body ACLDTO ACL rules to set

Return type

null (empty response body)

Authorization

authorization

HTTP request headers