All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
UsergroupmembershipCreateObjectV1 | POST /1/object/usergroupmembership | Create a new Usergroupmembership |
UsergroupmembershipDeleteObjectV1 | DELETE /1/object/usergroupmembership/{pkiUsergroupmembershipID} | Delete an existing Usergroupmembership |
UsergroupmembershipEditObjectV1 | PUT /1/object/usergroupmembership/{pkiUsergroupmembershipID} | Edit an existing Usergroupmembership |
UsergroupmembershipGetObjectV2 | GET /2/object/usergroupmembership/{pkiUsergroupmembershipID} | Retrieve an existing Usergroupmembership |
UsergroupmembershipCreateObjectV1Response UsergroupmembershipCreateObjectV1 (UsergroupmembershipCreateObjectV1Request usergroupmembershipCreateObjectV1Request)
Create a new Usergroupmembership
The endpoint allows to create one or many elements at once.
using System.Collections.Generic;
using System.Diagnostics;
using eZmaxApi.Api;
using eZmaxApi.Client;
using eZmaxApi.Model;
namespace Example
{
public class UsergroupmembershipCreateObjectV1Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://prod.api.appcluster01.ca-central-1.ezmax.com/rest";
// Configure API key authorization: Authorization
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ObjectUsergroupmembershipApi(config);
var usergroupmembershipCreateObjectV1Request = new UsergroupmembershipCreateObjectV1Request(); // UsergroupmembershipCreateObjectV1Request |
try
{
// Create a new Usergroupmembership
UsergroupmembershipCreateObjectV1Response result = apiInstance.UsergroupmembershipCreateObjectV1(usergroupmembershipCreateObjectV1Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipCreateObjectV1: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a new Usergroupmembership
ApiResponse<UsergroupmembershipCreateObjectV1Response> response = apiInstance.UsergroupmembershipCreateObjectV1WithHttpInfo(usergroupmembershipCreateObjectV1Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipCreateObjectV1WithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
usergroupmembershipCreateObjectV1Request | UsergroupmembershipCreateObjectV1Request |
UsergroupmembershipCreateObjectV1Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsergroupmembershipDeleteObjectV1Response UsergroupmembershipDeleteObjectV1 (int pkiUsergroupmembershipID)
Delete an existing Usergroupmembership
using System.Collections.Generic;
using System.Diagnostics;
using eZmaxApi.Api;
using eZmaxApi.Client;
using eZmaxApi.Model;
namespace Example
{
public class UsergroupmembershipDeleteObjectV1Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://prod.api.appcluster01.ca-central-1.ezmax.com/rest";
// Configure API key authorization: Authorization
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ObjectUsergroupmembershipApi(config);
var pkiUsergroupmembershipID = 56; // int |
try
{
// Delete an existing Usergroupmembership
UsergroupmembershipDeleteObjectV1Response result = apiInstance.UsergroupmembershipDeleteObjectV1(pkiUsergroupmembershipID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipDeleteObjectV1: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete an existing Usergroupmembership
ApiResponse<UsergroupmembershipDeleteObjectV1Response> response = apiInstance.UsergroupmembershipDeleteObjectV1WithHttpInfo(pkiUsergroupmembershipID);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipDeleteObjectV1WithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pkiUsergroupmembershipID | int |
UsergroupmembershipDeleteObjectV1Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
404 | The request failed. The element on which you were trying to work does not exists. Look for detail about the error in the body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsergroupmembershipEditObjectV1Response UsergroupmembershipEditObjectV1 (int pkiUsergroupmembershipID, UsergroupmembershipEditObjectV1Request usergroupmembershipEditObjectV1Request)
Edit an existing Usergroupmembership
using System.Collections.Generic;
using System.Diagnostics;
using eZmaxApi.Api;
using eZmaxApi.Client;
using eZmaxApi.Model;
namespace Example
{
public class UsergroupmembershipEditObjectV1Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://prod.api.appcluster01.ca-central-1.ezmax.com/rest";
// Configure API key authorization: Authorization
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ObjectUsergroupmembershipApi(config);
var pkiUsergroupmembershipID = 56; // int |
var usergroupmembershipEditObjectV1Request = new UsergroupmembershipEditObjectV1Request(); // UsergroupmembershipEditObjectV1Request |
try
{
// Edit an existing Usergroupmembership
UsergroupmembershipEditObjectV1Response result = apiInstance.UsergroupmembershipEditObjectV1(pkiUsergroupmembershipID, usergroupmembershipEditObjectV1Request);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipEditObjectV1: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Edit an existing Usergroupmembership
ApiResponse<UsergroupmembershipEditObjectV1Response> response = apiInstance.UsergroupmembershipEditObjectV1WithHttpInfo(pkiUsergroupmembershipID, usergroupmembershipEditObjectV1Request);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipEditObjectV1WithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pkiUsergroupmembershipID | int | ||
usergroupmembershipEditObjectV1Request | UsergroupmembershipEditObjectV1Request |
UsergroupmembershipEditObjectV1Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
404 | The request failed. The element on which you were trying to work does not exists. Look for detail about the error in the body | - |
422 | The request was syntactically valid but failed because of an interdependance condition. Look for detail about the error in the body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsergroupmembershipGetObjectV2Response UsergroupmembershipGetObjectV2 (int pkiUsergroupmembershipID)
Retrieve an existing Usergroupmembership
using System.Collections.Generic;
using System.Diagnostics;
using eZmaxApi.Api;
using eZmaxApi.Client;
using eZmaxApi.Model;
namespace Example
{
public class UsergroupmembershipGetObjectV2Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://prod.api.appcluster01.ca-central-1.ezmax.com/rest";
// Configure API key authorization: Authorization
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ObjectUsergroupmembershipApi(config);
var pkiUsergroupmembershipID = 56; // int |
try
{
// Retrieve an existing Usergroupmembership
UsergroupmembershipGetObjectV2Response result = apiInstance.UsergroupmembershipGetObjectV2(pkiUsergroupmembershipID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipGetObjectV2: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Retrieve an existing Usergroupmembership
ApiResponse<UsergroupmembershipGetObjectV2Response> response = apiInstance.UsergroupmembershipGetObjectV2WithHttpInfo(pkiUsergroupmembershipID);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ObjectUsergroupmembershipApi.UsergroupmembershipGetObjectV2WithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
pkiUsergroupmembershipID | int |
UsergroupmembershipGetObjectV2Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
404 | The request failed. The element on which you were trying to work does not exists. Look for detail about the error in the body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]