All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
corsCreateObjectV1 | POST /1/object/cors | Create a new Cors |
corsDeleteObjectV1 | DELETE /1/object/cors/{pkiCorsID} | Delete an existing Cors |
corsEditObjectV1 | PUT /1/object/cors/{pkiCorsID} | Edit an existing Cors |
corsGetObjectV2 | GET /2/object/cors/{pkiCorsID} | Retrieve an existing Cors |
CorsCreateObjectV1Response corsCreateObjectV1(corsCreateObjectV1Request)
Create a new Cors
The endpoint allows to create one or many elements at once.
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectCorsApi()
val corsCreateObjectV1Request : CorsCreateObjectV1Request = // CorsCreateObjectV1Request |
try {
val result : CorsCreateObjectV1Response = apiInstance.corsCreateObjectV1(corsCreateObjectV1Request)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectCorsApi#corsCreateObjectV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectCorsApi#corsCreateObjectV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
corsCreateObjectV1Request | CorsCreateObjectV1Request |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
CorsDeleteObjectV1Response corsDeleteObjectV1(pkiCorsID)
Delete an existing Cors
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectCorsApi()
val pkiCorsID : kotlin.Int = 56 // kotlin.Int | The unique ID of the Cors
try {
val result : CorsDeleteObjectV1Response = apiInstance.corsDeleteObjectV1(pkiCorsID)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectCorsApi#corsDeleteObjectV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectCorsApi#corsDeleteObjectV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiCorsID | kotlin.Int | The unique ID of the Cors |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
CorsEditObjectV1Response corsEditObjectV1(pkiCorsID, corsEditObjectV1Request)
Edit an existing Cors
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectCorsApi()
val pkiCorsID : kotlin.Int = 56 // kotlin.Int | The unique ID of the Cors
val corsEditObjectV1Request : CorsEditObjectV1Request = // CorsEditObjectV1Request |
try {
val result : CorsEditObjectV1Response = apiInstance.corsEditObjectV1(pkiCorsID, corsEditObjectV1Request)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectCorsApi#corsEditObjectV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectCorsApi#corsEditObjectV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiCorsID | kotlin.Int | The unique ID of the Cors | |
corsEditObjectV1Request | CorsEditObjectV1Request |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
CorsGetObjectV2Response corsGetObjectV2(pkiCorsID)
Retrieve an existing Cors
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectCorsApi()
val pkiCorsID : kotlin.Int = 56 // kotlin.Int | The unique ID of the Cors
try {
val result : CorsGetObjectV2Response = apiInstance.corsGetObjectV2(pkiCorsID)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectCorsApi#corsGetObjectV2")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectCorsApi#corsGetObjectV2")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiCorsID | kotlin.Int | The unique ID of the Cors |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json