All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
addMember | PUT /organizations/add-member | Add a member to the authenticated user's organization |
createOrganization | POST /organizations | Create authenticated user's organization |
deleteOrganization | DELETE /organizations | Delete authenticated user's organization |
getMembers | GET /organizations/members | Get members of the authenticated user's organization |
getOrganization | GET /organizations | Get organization for authenticated user |
moveMember | PUT /organizations/move-member | Move a member up or down in the authenticated user's organization |
removeMember | PUT /organizations/remove-member | Remove a member to the authenticated user's organization |
updateOrganization | PUT /organizations | Update authenticated user's organization |
addMember(body)
Add a member to the authenticated user's organization
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.OrganizationsApi();
var body = new DocdokuPlmApi.UserDTO(); // UserDTO | User to add
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addMember(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | UserDTO | User to add |
null (empty response body)
OrganizationDTO createOrganization(body)
Create authenticated user's organization
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.OrganizationsApi();
var body = new DocdokuPlmApi.OrganizationDTO(); // OrganizationDTO | Organization to create
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createOrganization(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | OrganizationDTO | Organization to create |
deleteOrganization()
Delete authenticated user's organization
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.OrganizationsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteOrganization(callback);
This endpoint does not need any parameter.
null (empty response body)
[AccountDTO] getMembers()
Get members of the authenticated user's organization
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.OrganizationsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getMembers(callback);
This endpoint does not need any parameter.
OrganizationDTO getOrganization()
Get organization for authenticated user
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.OrganizationsApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getOrganization(callback);
This endpoint does not need any parameter.
moveMember(body, direction)
Move a member up or down in the authenticated user's organization
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.OrganizationsApi();
var body = new DocdokuPlmApi.UserDTO(); // UserDTO | User to move up
var direction = "direction_example"; // String | Direction (up/down)
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.moveMember(body, direction, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | UserDTO | User to move up | |
direction | String | Direction (up/down) |
null (empty response body)
removeMember(body)
Remove a member to the authenticated user's organization
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.OrganizationsApi();
var body = new DocdokuPlmApi.UserDTO(); // UserDTO | User to remove
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.removeMember(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | UserDTO | User to remove |
null (empty response body)
OrganizationDTO updateOrganization(body)
Update authenticated user's organization
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.OrganizationsApi();
var body = new DocdokuPlmApi.OrganizationDTO(); // OrganizationDTO | Updated organization
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateOrganization(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | OrganizationDTO | Updated organization |