All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
discussionCreateObjectV1 | POST /1/object/discussion | Create a new Discussion |
discussionDeleteObjectV1 | DELETE /1/object/discussion/{pkiDiscussionID} | Delete an existing Discussion |
discussionGetObjectV2 | GET /2/object/discussion/{pkiDiscussionID} | Retrieve an existing Discussion |
discussionPatchObjectV1 | PATCH /1/object/discussion/{pkiDiscussionID} | Patch an existing Discussion |
discussionUpdateDiscussionreadstatusV1 | POST /1/object/discussion/{pkiDiscussionID}/updateDiscussionreadstatus | Update the read status of the discussion |
DiscussionCreateObjectV1Response discussionCreateObjectV1(discussionCreateObjectV1Request)
Create a new Discussion
The endpoint allows to create one or many elements at once.
// Import classes:
import eZmaxAPI.ApiClient;
import eZmaxAPI.ApiException;
import eZmaxAPI.Configuration;
import eZmaxAPI.auth.*;
import eZmaxAPI.models.*;
import com.ezmax.api.ObjectDiscussionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://prod.api.appcluster01.ca-central-1.ezmax.com/rest");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
ObjectDiscussionApi apiInstance = new ObjectDiscussionApi(defaultClient);
DiscussionCreateObjectV1Request discussionCreateObjectV1Request = new DiscussionCreateObjectV1Request(); // DiscussionCreateObjectV1Request |
try {
DiscussionCreateObjectV1Response result = apiInstance.discussionCreateObjectV1(discussionCreateObjectV1Request);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectDiscussionApi#discussionCreateObjectV1");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
discussionCreateObjectV1Request | DiscussionCreateObjectV1Request |
DiscussionCreateObjectV1Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Successful response | - |
DiscussionDeleteObjectV1Response discussionDeleteObjectV1(pkiDiscussionID)
Delete an existing Discussion
// Import classes:
import eZmaxAPI.ApiClient;
import eZmaxAPI.ApiException;
import eZmaxAPI.Configuration;
import eZmaxAPI.auth.*;
import eZmaxAPI.models.*;
import com.ezmax.api.ObjectDiscussionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://prod.api.appcluster01.ca-central-1.ezmax.com/rest");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
ObjectDiscussionApi apiInstance = new ObjectDiscussionApi(defaultClient);
Integer pkiDiscussionID = 56; // Integer | The unique ID of the Discussion
try {
DiscussionDeleteObjectV1Response result = apiInstance.discussionDeleteObjectV1(pkiDiscussionID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectDiscussionApi#discussionDeleteObjectV1");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pkiDiscussionID | Integer | The unique ID of the Discussion |
DiscussionDeleteObjectV1Response
- 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 | - |
DiscussionGetObjectV2Response discussionGetObjectV2(pkiDiscussionID)
Retrieve an existing Discussion
// Import classes:
import eZmaxAPI.ApiClient;
import eZmaxAPI.ApiException;
import eZmaxAPI.Configuration;
import eZmaxAPI.auth.*;
import eZmaxAPI.models.*;
import com.ezmax.api.ObjectDiscussionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://prod.api.appcluster01.ca-central-1.ezmax.com/rest");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
ObjectDiscussionApi apiInstance = new ObjectDiscussionApi(defaultClient);
Integer pkiDiscussionID = 56; // Integer | The unique ID of the Discussion
try {
DiscussionGetObjectV2Response result = apiInstance.discussionGetObjectV2(pkiDiscussionID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectDiscussionApi#discussionGetObjectV2");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pkiDiscussionID | Integer | The unique ID of the Discussion |
- 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 | - |
DiscussionPatchObjectV1Response discussionPatchObjectV1(pkiDiscussionID, discussionPatchObjectV1Request)
Patch an existing Discussion
// Import classes:
import eZmaxAPI.ApiClient;
import eZmaxAPI.ApiException;
import eZmaxAPI.Configuration;
import eZmaxAPI.auth.*;
import eZmaxAPI.models.*;
import com.ezmax.api.ObjectDiscussionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://prod.api.appcluster01.ca-central-1.ezmax.com/rest");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
ObjectDiscussionApi apiInstance = new ObjectDiscussionApi(defaultClient);
Integer pkiDiscussionID = 56; // Integer | The unique ID of the Discussion
DiscussionPatchObjectV1Request discussionPatchObjectV1Request = new DiscussionPatchObjectV1Request(); // DiscussionPatchObjectV1Request |
try {
DiscussionPatchObjectV1Response result = apiInstance.discussionPatchObjectV1(pkiDiscussionID, discussionPatchObjectV1Request);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectDiscussionApi#discussionPatchObjectV1");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pkiDiscussionID | Integer | The unique ID of the Discussion | |
discussionPatchObjectV1Request | DiscussionPatchObjectV1Request |
DiscussionPatchObjectV1Response
- 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 | - |
DiscussionUpdateDiscussionreadstatusV1Response discussionUpdateDiscussionreadstatusV1(pkiDiscussionID, discussionUpdateDiscussionreadstatusV1Request)
Update the read status of the discussion
// Import classes:
import eZmaxAPI.ApiClient;
import eZmaxAPI.ApiException;
import eZmaxAPI.Configuration;
import eZmaxAPI.auth.*;
import eZmaxAPI.models.*;
import com.ezmax.api.ObjectDiscussionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://prod.api.appcluster01.ca-central-1.ezmax.com/rest");
// Configure API key authorization: Authorization
ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
Authorization.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.setApiKeyPrefix("Token");
ObjectDiscussionApi apiInstance = new ObjectDiscussionApi(defaultClient);
Integer pkiDiscussionID = 56; // Integer |
DiscussionUpdateDiscussionreadstatusV1Request discussionUpdateDiscussionreadstatusV1Request = new DiscussionUpdateDiscussionreadstatusV1Request(); // DiscussionUpdateDiscussionreadstatusV1Request |
try {
DiscussionUpdateDiscussionreadstatusV1Response result = apiInstance.discussionUpdateDiscussionreadstatusV1(pkiDiscussionID, discussionUpdateDiscussionreadstatusV1Request);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ObjectDiscussionApi#discussionUpdateDiscussionreadstatusV1");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pkiDiscussionID | Integer | ||
discussionUpdateDiscussionreadstatusV1Request | DiscussionUpdateDiscussionreadstatusV1Request |
DiscussionUpdateDiscussionreadstatusV1Response
- 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 | - |