All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| addAttribute | POST /attributes | Add new attribute |
| deleteAttribute | DELETE /attributes/{key} | Delete attribute |
| getAttribute | GET /attributes/{key} | Get Attribute |
| getAttributeAllowedValues | GET /attributes/{key}/allowedValues | Get Attribute Allowed Values |
| getAttributes | GET /attributes | Get Attributes listing |
| updateAttribute | PATCH /attributes/{key} | Update existing attribute |
AddResponse addAttribute(addAttributeRequest, siteId)
Add new attribute
Creates a new attribute
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.AttributesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
AttributesApi apiInstance = new AttributesApi(defaultClient);
AddAttributeRequest addAttributeRequest = new AddAttributeRequest(); // AddAttributeRequest |
String siteId = "siteId_example"; // String | Site Identifier
try {
AddResponse result = apiInstance.addAttribute(addAttributeRequest, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#addAttribute");
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 |
|---|---|---|---|
| addAttributeRequest | AddAttributeRequest | ||
| siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | 201 CREATED | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
| 400 | 400 OK | - |
DeleteResponse deleteAttribute(key, siteId)
Delete attribute
Delete a attribute
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.AttributesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
AttributesApi apiInstance = new AttributesApi(defaultClient);
String key = "key_example"; // String | Key Identifier
String siteId = "siteId_example"; // String | Site Identifier
try {
DeleteResponse result = apiInstance.deleteAttribute(key, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#deleteAttribute");
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 |
|---|---|---|---|
| key | String | Key Identifier | |
| siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
| 400 | 400 OK | - |
GetAttributeResponse getAttribute(key, siteId)
Get Attribute
Returns a attribute
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.AttributesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
AttributesApi apiInstance = new AttributesApi(defaultClient);
String key = "key_example"; // String | Key Identifier
String siteId = "siteId_example"; // String | Site Identifier
try {
GetAttributeResponse result = apiInstance.getAttribute(key, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#getAttribute");
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 |
|---|---|---|---|
| key | String | Key Identifier | |
| siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
GetAttributeAllowedValuesResponse getAttributeAllowedValues(key, siteId)
Get Attribute Allowed Values
Returns an attribute's allowed values that spans across all classifications and site schema
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.AttributesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
AttributesApi apiInstance = new AttributesApi(defaultClient);
String key = "key_example"; // String | Key Identifier
String siteId = "siteId_example"; // String | Site Identifier
try {
GetAttributeAllowedValuesResponse result = apiInstance.getAttributeAllowedValues(key, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#getAttributeAllowedValues");
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 |
|---|---|---|---|
| key | String | Key Identifier | |
| siteId | String | Site Identifier | [optional] |
GetAttributeAllowedValuesResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
GetAttributesResponse getAttributes(siteId, next, limit)
Get Attributes listing
Returns a list of attributes
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.AttributesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
AttributesApi apiInstance = new AttributesApi(defaultClient);
String siteId = "siteId_example"; // String | Site Identifier
String next = "next_example"; // String | Next page of results token
String limit = "10"; // String | Limit Results
try {
GetAttributesResponse result = apiInstance.getAttributes(siteId, next, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#getAttributes");
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 |
|---|---|---|---|
| siteId | String | Site Identifier | [optional] |
| next | String | Next page of results token | [optional] |
| limit | String | Limit Results | [optional] [default to 10] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
UpdateResponse updateAttribute(key, updateAttributeRequest, siteId)
Update existing attribute
Updates existing attribute
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.AttributesApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
AttributesApi apiInstance = new AttributesApi(defaultClient);
String key = "key_example"; // String | Key Identifier
UpdateAttributeRequest updateAttributeRequest = new UpdateAttributeRequest(); // UpdateAttributeRequest |
String siteId = "siteId_example"; // String | Site Identifier
try {
UpdateResponse result = apiInstance.updateAttribute(key, updateAttributeRequest, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#updateAttribute");
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 |
|---|---|---|---|
| key | String | Key Identifier | |
| updateAttributeRequest | UpdateAttributeRequest | ||
| siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
| 400 | 400 OK | - |