DocdokuPlmApi.WorkspaceMembershipsApi

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

Method HTTP request Description
getWorkspaceSpecificUserGroupMemberShips GET /workspaces/{workspaceId}/memberships/usergroups/me Get workspace's group membership for authenticated user
getWorkspaceSpecificUserMemberShips GET /workspaces/{workspaceId}/memberships/users/me Get workspace's user membership for authenticated user
getWorkspaceUserGroupMemberShips GET /workspaces/{workspaceId}/memberships/usergroups Get workspace's group membership for authenticated user
getWorkspaceUserMemberShips GET /workspaces/{workspaceId}/memberships/users Get workspace's user memberships

getWorkspaceSpecificUserGroupMemberShips

[WorkspaceUserGroupMemberShipDTO] getWorkspaceSpecificUserGroupMemberShips(workspaceId)

Get workspace's group membership for authenticated user

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

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

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[WorkspaceUserGroupMemberShipDTO]

Authorization

authorization

HTTP request headers

getWorkspaceSpecificUserMemberShips

WorkspaceUserMemberShipDTO getWorkspaceSpecificUserMemberShips(workspaceId)

Get workspace's user membership for authenticated user

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

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

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

WorkspaceUserMemberShipDTO

Authorization

authorization

HTTP request headers

getWorkspaceUserGroupMemberShips

[WorkspaceUserGroupMemberShipDTO] getWorkspaceUserGroupMemberShips(workspaceId)

Get workspace's group membership for authenticated user

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

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

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[WorkspaceUserGroupMemberShipDTO]

Authorization

authorization

HTTP request headers

getWorkspaceUserMemberShips

[WorkspaceUserMemberShipDTO] getWorkspaceUserMemberShips(workspaceId)

Get workspace's user memberships

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

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

Parameters

Name Type Description Notes
workspaceId String Workspace id

Return type

[WorkspaceUserMemberShipDTO]

Authorization

authorization

HTTP request headers