Method | HTTP request | Description |
---|---|---|
addPickListOptionToPickList | POST /picklists/{picklistId}/options | Create a new pick list option for the pick list with the specified ID |
getPickList | GET /picklists/{picklistId} | Get the pick list with the specified ID |
getPickListOptions | GET /picklists/{picklistId}/options | Get all pick list options for the pick list with the specified ID |
getPickLists | GET /picklists | Get all pick lists |
CreatedResponse addPickListOptionToPickList(body, picklistId)
Create a new pick list option for the pick list with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PicklistsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
PicklistsApi apiInstance = new PicklistsApi();
RequestPickListOption body = new RequestPickListOption(); // RequestPickListOption |
Integer picklistId = 56; // Integer |
try {
CreatedResponse result = apiInstance.addPickListOptionToPickList(body, picklistId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PicklistsApi#addPickListOptionToPickList");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestPickListOption | ||
picklistId | Integer |
- Content-Type: application/json
- Accept: application/json
PickListDataWrapper getPickList(picklistId, include)
Get the pick list with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PicklistsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
PicklistsApi apiInstance = new PicklistsApi();
Integer picklistId = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
PickListDataWrapper result = apiInstance.getPickList(picklistId, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PicklistsApi#getPickList");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
picklistId | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
PickListOptionDataListWrapper getPickListOptions(picklistId, startAt, maxResults, include)
Get all pick list options for the pick list with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PicklistsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
PicklistsApi apiInstance = new PicklistsApi();
Integer picklistId = 56; // Integer |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
PickListOptionDataListWrapper result = apiInstance.getPickListOptions(picklistId, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PicklistsApi#getPickListOptions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
picklistId | Integer | ||
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
PickListDataListWrapper getPickLists(startAt, maxResults, include)
Get all pick lists
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.PicklistsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
PicklistsApi apiInstance = new PicklistsApi();
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
PickListDataListWrapper result = apiInstance.getPickLists(startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PicklistsApi#getPickLists");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json