All URIs are relative to https://api.irisnet.de
| Method | HTTP request | Description |
|---|---|---|
| deleteConfig | DELETE /v2/config/{configId} | Delete an AI configuration. |
| getAllConfigs | GET /v2/config | List all saved AI configurations. |
| getConfig | GET /v2/config/{configId} | Get a specific AI configuration. |
| setConfig | POST /v2/config | Create a new AI configuration. |
deleteConfig(configId)
Delete an AI configuration.
Deletes the AI configuration with the given id.
// Import classes:
//import de.irisnet.java.client.ConfigurationManagementApi;
ConfigurationManagementApi apiInstance = new ConfigurationManagementApi();
UUID configId = null; // UUID | The id of the configuration that should be deleted.
try {
apiInstance.deleteConfig(configId);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationManagementApi#deleteConfig");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| configId | UUID | The id of the configuration that should be deleted. | [default to null] |
null (empty response body)
- Content-Type: Not defined
- Accept: /
List<Config> getAllConfigs()
List all saved AI configurations.
Returns a list of all configurations with their ids and configured prototypes. There is a limit to the number of configurations that can be stored per license key. You can find this limit in the response of the info operation.
// Import classes:
//import de.irisnet.java.client.ConfigurationManagementApi;
ConfigurationManagementApi apiInstance = new ConfigurationManagementApi();
try {
List<Config> result = apiInstance.getAllConfigs();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationManagementApi#getAllConfigs");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Config getConfig(configId)
Get a specific AI configuration.
Returns a specific AI configuration for the requested id.
// Import classes:
//import de.irisnet.java.client.ConfigurationManagementApi;
ConfigurationManagementApi apiInstance = new ConfigurationManagementApi();
UUID configId = null; // UUID | The id of the configuration that is being requested.
try {
Config result = apiInstance.getConfig(configId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationManagementApi#getConfig");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| configId | UUID | The id of the configuration that is being requested. | [default to null] |
- Content-Type: Not defined
- Accept: application/json
Config setConfig(config)
Create a new AI configuration.
Create a new AI configuration with the desired prototypes.
// Import classes:
//import de.irisnet.java.client.ConfigurationManagementApi;
ConfigurationManagementApi apiInstance = new ConfigurationManagementApi();
Config config = {"name":"first attempt","prototypes":["nudityCheck","ageEstimation","illegalSymbols","attributesCheck","nippleCheck","textRecognition","bodyAttributes","unwantedSubstances","violenceCheck","selfieCheck"]}; // Config | Define the prototypes to use for an AI check operation. View the _Config_ schema to see the available prototypes.
try {
Config result = apiInstance.setConfig(config);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationManagementApi#setConfig");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| config | Config | Define the prototypes to use for an AI check operation. View the Config schema to see the available prototypes. |
- Content-Type: application/json
- Accept: application/json