All URIs are relative to https://api.ordercloud.io/v1
Method | HTTP request | Description |
---|---|---|
Create | POST /buyers/{buyerID}/usergroups | |
Delete | DELETE /buyers/{buyerID}/usergroups/{userGroupID} | |
DeleteUserAssignment | DELETE /buyers/{buyerID}/usergroups/{userGroupID}/assignments/{userID} | |
Get | GET /buyers/{buyerID}/usergroups/{userGroupID} | |
List | GET /buyers/{buyerID}/usergroups | |
ListUserAssignments | GET /buyers/{buyerID}/usergroups/assignments | |
Patch | PATCH /buyers/{buyerID}/usergroups/{userGroupID} | |
Save | PUT /buyers/{buyerID}/usergroups/{userGroupID} | |
SaveUserAssignment | POST /buyers/{buyerID}/usergroups/assignments |
UserGroup Create(buyerID, userGroup)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroup = new OrderCloud.UserGroup(); // UserGroup |
apiInstance.Create(buyerID, userGroup).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroup | UserGroup |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
Delete(buyerID, userGroupID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroupID = "userGroupID_example"; // String | ID of the user group.
apiInstance.Delete(buyerID, userGroupID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupID | String | ID of the user group. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
DeleteUserAssignment(buyerID, userGroupID, userID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroupID = "userGroupID_example"; // String | ID of the user group.
var userID = "userID_example"; // String | ID of the user.
apiInstance.DeleteUserAssignment(buyerID, userGroupID, userID).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupID | String | ID of the user group. | |
userID | String | ID of the user. |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
UserGroup Get(buyerID, userGroupID)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroupID = "userGroupID_example"; // String | ID of the user group.
apiInstance.Get(buyerID, userGroupID).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupID | String | ID of the user group. |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListUserGroup List(buyerID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var opts = {
'search': "search_example", // String | Word or phrase to search for.
'searchOn': "searchOn_example", // String | Comma-delimited list of fields to search on.
'sortBy': "sortBy_example", // String | Comma-delimited list of fields to sort by.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56, // Number | Number of results to return per page. Default: 20, max: 100.
'filters': {key: "filters_example"} // {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
};
apiInstance.List(buyerID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
search | String | Word or phrase to search for. | [optional] |
searchOn | String | Comma-delimited list of fields to search on. | [optional] |
sortBy | String | Comma-delimited list of fields to sort by. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
filters | {String: String} | Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???' | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
ListUserGroupAssignment ListUserAssignments(buyerID, opts)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var opts = {
'userGroupID': "userGroupID_example", // String | ID of the user group.
'userID': "userID_example", // String | ID of the user.
'page': 56, // Number | Page of results to return. Default: 1
'pageSize': 56 // Number | Number of results to return per page. Default: 20, max: 100.
};
apiInstance.ListUserAssignments(buyerID, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupID | String | ID of the user group. | [optional] |
userID | String | ID of the user. | [optional] |
page | Number | Page of results to return. Default: 1 | [optional] |
pageSize | Number | Number of results to return per page. Default: 20, max: 100. | [optional] |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
UserGroup Patch(buyerID, userGroupID, partialUserGroup)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroupID = "userGroupID_example"; // String | ID of the user group.
var partialUserGroup = new OrderCloud.UserGroup(); // UserGroup |
apiInstance.Patch(buyerID, userGroupID, partialUserGroup).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupID | String | ID of the user group. | |
partialUserGroup | UserGroup |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
UserGroup Save(buyerID, userGroupID, userGroup)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroupID = "userGroupID_example"; // String | ID of the user group.
var userGroup = new OrderCloud.UserGroup(); // UserGroup |
apiInstance.Save(buyerID, userGroupID, userGroup).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupID | String | ID of the user group. | |
userGroup | UserGroup |
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json
SaveUserAssignment(buyerID, userGroupAssignment)
var OrderCloud = require('OrderCloud');
var defaultClient = OrderCloud.Sdk.default;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new OrderCloud.UserGroups();
var buyerID = "buyerID_example"; // String | ID of the buyer.
var userGroupAssignment = new OrderCloud.UserGroupAssignment(); // UserGroupAssignment |
apiInstance.SaveUserAssignment(buyerID, userGroupAssignment).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
buyerID | String | ID of the buyer. | |
userGroupAssignment | UserGroupAssignment |
null (empty response body)
- Content-Type: application/json, text/plain; charset=utf-8
- Accept: application/json