All URIs are relative to https://api.configcat.com
| Method | HTTP request | Description |
|---|---|---|
| createProxyProfile | POST /v1/organizations/{organizationId}/proxy-profiles | Create Proxy Profile |
| deleteProxyProfile | DELETE /v1/proxy-profiles/{proxyProfileId} | Delete Proxy Profile |
| deselectProxyProfileSdkKeys | POST /v1/proxy-profiles/{proxyProfileId}/sdk-keys/deselect | Deselect SDK keys |
| generateProxyProfileSecret | POST /v1/proxy-profiles/{proxyProfileId}/secret | Generate Secret |
| getProxyProfile | GET /v1/proxy-profiles/{proxyProfileId} | Get Proxy Profile |
| getProxyProfileSdkKeys | GET /v1/proxy-profiles/{proxyProfileId}/sdk-keys | Get selected SDK keys |
| getProxyProfiles | GET /v1/organizations/{organizationId}/proxy-profiles | List Proxy Profiles |
| replaceProxyProfile | PUT /v1/proxy-profiles/{proxyProfileId} | Replace Proxy Profile |
| selectProxyProfileSdkKeys | POST /v1/proxy-profiles/{proxyProfileId}/sdk-keys/select | Select SDK keys |
| updateProxyProfile | PATCH /v1/proxy-profiles/{proxyProfileId} | Update Proxy Profile |
ProxyProfileModel createProxyProfile(organizationId, createOrUpdateProxyProfileRequest)
Create Proxy Profile
This endpoint creates a new Proxy Profile in the given Organization identified by the `organizationId` parameter, which can be obtained from the List Organizations endpoint.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID organizationId = UUID.randomUUID(); // UUID | The identifier of the Organization.
CreateOrUpdateProxyProfileRequest createOrUpdateProxyProfileRequest = new CreateOrUpdateProxyProfileRequest(); // CreateOrUpdateProxyProfileRequest |
try {
ProxyProfileModel result = apiInstance.createProxyProfile(organizationId, createOrUpdateProxyProfileRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#createProxyProfile");
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 |
|---|---|---|---|
| organizationId | UUID | The identifier of the Organization. | |
| createOrUpdateProxyProfileRequest | CreateOrUpdateProxyProfileRequest |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | When the creation was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
deleteProxyProfile(proxyProfileId)
Delete Proxy Profile
This endpoint removes a Proxy Profile identified by the `proxyProfileId` parameter.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
try {
apiInstance.deleteProxyProfile(proxyProfileId);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#deleteProxyProfile");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | When the delete was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileSdkKeysListModel deselectProxyProfileSdkKeys(proxyProfileId, proxyProfileSdkKeysRequest)
Deselect SDK keys
This endpoint removes the given list of Config / Environment pairs' SDK Keys from a Proxy Profile identified by the `proxyProfileId`.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
ProxyProfileSdkKeysRequest proxyProfileSdkKeysRequest = new ProxyProfileSdkKeysRequest(); // ProxyProfileSdkKeysRequest |
try {
ProxyProfileSdkKeysListModel result = apiInstance.deselectProxyProfileSdkKeys(proxyProfileId, proxyProfileSdkKeysRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#deselectProxyProfileSdkKeys");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. | |
| proxyProfileSdkKeysRequest | ProxyProfileSdkKeysRequest |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When the deselection was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 403 | Forbidden. When selection rules are applied to the Proxy Profile. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileSecretModel generateProxyProfileSecret(proxyProfileId)
Generate Secret
This endpoint (re)generates a secret token for a Proxy Profile identified by the `proxyProfileId` parameter.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
try {
ProxyProfileSecretModel result = apiInstance.generateProxyProfileSecret(proxyProfileId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#generateProxyProfileSecret");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When the generation was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileModel getProxyProfile(proxyProfileId)
Get Proxy Profile
This endpoint returns a Proxy Profile identified by the `proxyProfileId`.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
try {
ProxyProfileModel result = apiInstance.getProxyProfile(proxyProfileId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#getProxyProfile");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When everything is ok, the Proxy Profile is returned. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileSdkKeysListModel getProxyProfileSdkKeys(proxyProfileId)
Get selected SDK keys
This endpoint returns the list of SDK keys selected for a Proxy Profile identified by the `proxyProfileId`.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
try {
ProxyProfileSdkKeysListModel result = apiInstance.getProxyProfileSdkKeys(proxyProfileId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#getProxyProfileSdkKeys");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When everything is ok, the SDK keys selected for the Proxy Profile are returned. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileListModel getProxyProfiles(organizationId)
List Proxy Profiles
This endpoint returns the list of Proxy profiles for the given Organization identified by the `organizationId` parameter.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID organizationId = UUID.randomUUID(); // UUID | The identifier of the Organization.
try {
ProxyProfileListModel result = apiInstance.getProxyProfiles(organizationId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#getProxyProfiles");
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 |
|---|---|---|---|
| organizationId | UUID | The identifier of the Organization. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | - | |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileModel replaceProxyProfile(proxyProfileId, createOrUpdateProxyProfileRequest)
Replace Proxy Profile
This endpoint replaces a Proxy Profile identified by the `proxyProfileId` parameter. Important: As this endpoint is doing a complete replace, it's important to set every other attribute that you don't want to change in its original state. Not listing one means it will reset.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
CreateOrUpdateProxyProfileRequest createOrUpdateProxyProfileRequest = new CreateOrUpdateProxyProfileRequest(); // CreateOrUpdateProxyProfileRequest |
try {
ProxyProfileModel result = apiInstance.replaceProxyProfile(proxyProfileId, createOrUpdateProxyProfileRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#replaceProxyProfile");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. | |
| createOrUpdateProxyProfileRequest | CreateOrUpdateProxyProfileRequest |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When the replace was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileSdkKeysListModel selectProxyProfileSdkKeys(proxyProfileId, proxyProfileSdkKeysRequest)
Select SDK keys
This endpoint adds the given list of Config / Environment pairs' SDK Keys to a Proxy Profile identified by the `proxyProfileId`.
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
ProxyProfileSdkKeysRequest proxyProfileSdkKeysRequest = new ProxyProfileSdkKeysRequest(); // ProxyProfileSdkKeysRequest |
try {
ProxyProfileSdkKeysListModel result = apiInstance.selectProxyProfileSdkKeys(proxyProfileId, proxyProfileSdkKeysRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#selectProxyProfileSdkKeys");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. | |
| proxyProfileSdkKeysRequest | ProxyProfileSdkKeysRequest |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When the selection was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 403 | Forbidden. When selection rules are applied to the Proxy Profile. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |
ProxyProfileModel updateProxyProfile(proxyProfileId, jsonPatchOperation)
Update Proxy Profile
This endpoint updates a Proxy Profile identified by the `proxyProfileId` parameter with a collection of JSON Patch operations. The advantage of using JSON Patch is that you can describe individual update operations on a resource without touching attributes that you don't want to change. For example: We have the following resource. ```json { "proxyProfileId": "4ebe288d-6415-44a8-85c8-7b9f78316a86", "name": "production", "description": "profile for production environments", "lastAccessedAt": "2019-08-24T14:15:22Z", "connectionPreferences": { "sdkPollInterval": 60, "webhookNotification": null }, "sdkKeySelectionRules": [] } ``` If we send an update request body as below (it changes the `sdkPollInterval` field and adds a new Proxy Webhook URL): ```json [ { "op": "replace", "path": "/connectionPreferences/sdkPollInterval", "value": 120 }, { "op": "add", "path": "/connectionPreferences/webhookNotification", "value": { "webhookProxyUrl": "https://my-proxy-url.com" } } ] ``` Only the `sdkPollInterval` and `webhookProxyUrl` are updated and all the other attributes remain unchanged. So we get a response like this: ```json { "proxyProfileId": "4ebe288d-6415-44a8-85c8-7b9f78316a86", "name": "production", "description": "profile for production environments", "lastAccessedAt": "2019-08-24T14:15:22Z", "connectionPreferences": { "sdkPollInterval": 120, "webhookNotification": { "webhookProxyUrl": "https://my-proxy-url.com\", "signingKey1": "<generated-signing-key>", "signingKey2": null } }, "sdkKeySelectionRules": [] } ```
// Import classes:
import com.configcat.publicapi.java.client.ApiClient;
import com.configcat.publicapi.java.client.ApiException;
import com.configcat.publicapi.java.client.Configuration;
import com.configcat.publicapi.java.client.auth.*;
import com.configcat.publicapi.java.client.models.*;
import com.configcat.publicapi.java.client.api.ProxyProfilesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.configcat.com");
// Configure HTTP basic authorization: Basic
HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
Basic.setUsername("YOUR USERNAME");
Basic.setPassword("YOUR PASSWORD");
ProxyProfilesApi apiInstance = new ProxyProfilesApi(defaultClient);
UUID proxyProfileId = UUID.randomUUID(); // UUID | The identifier of the Proxy Profile.
List<JsonPatchOperation> jsonPatchOperation = Arrays.asList(); // List<JsonPatchOperation> |
try {
ProxyProfileModel result = apiInstance.updateProxyProfile(proxyProfileId, jsonPatchOperation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProxyProfilesApi#updateProxyProfile");
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 |
|---|---|---|---|
| proxyProfileId | UUID | The identifier of the Proxy Profile. | |
| jsonPatchOperation | List<JsonPatchOperation> |
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | When the update was successful. | - |
| 400 | Bad request. | - |
| 404 | Not found. | - |
| 429 | Too many requests. In case of the request rate exceeds the rate limits. | - |