All URIs are relative to https://app.statflo.com
| Method | HTTP request | Description |
|---|---|---|
| consentCreate | POST /v4/api/consent | |
| consentDelete | DELETE /v4/api/consent/{id} | |
| consentGet | GET /v4/api/consent/{id} | |
| consentSearch | GET /v4/api/consent | |
| consentUpdate | PUT /v4/api/consent/{id} |
Consent consentCreate(body)
Create consent
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ConsentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
ConsentApi apiInstance = new ConsentApi();
ConsentCreate body = new ConsentCreate(); // ConsentCreate |
try {
Consent result = apiInstance.consentCreate(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConsentApi#consentCreate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | ConsentCreate | [optional] |
- Content-Type: application/json
- Accept: application/json
consentDelete(id)
Remove a consent
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ConsentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
ConsentApi apiInstance = new ConsentApi();
String id = "id_example"; // String |
try {
apiInstance.consentDelete(id);
} catch (ApiException e) {
System.err.println("Exception when calling ConsentApi#consentDelete");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Consent consentGet(id)
Retrieve an consent
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ConsentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
ConsentApi apiInstance = new ConsentApi();
String id = "id_example"; // String |
try {
Consent result = apiInstance.consentGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConsentApi#consentGet");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
ConsentPaginationResponse consentSearch(filter, query, page, perPage, sort)
Search consent
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ConsentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
ConsentApi apiInstance = new ConsentApi();
java.util.HashMap filter = new java.util.HashMap(); // java.util.HashMap |
String query = "query_example"; // String |
Integer page = 56; // Integer |
Integer perPage = 56; // Integer |
String sort = "sort_example"; // String |
try {
ConsentPaginationResponse result = apiInstance.consentSearch(filter, query, page, perPage, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConsentApi#consentSearch");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| filter | java.util.HashMap | [optional] | |
| query | String | [optional] | |
| page | Integer | [optional] | |
| perPage | Integer | [optional] | |
| sort | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
Consent consentUpdate(id, body)
Update a consent
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.ConsentApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
ConsentApi apiInstance = new ConsentApi();
String id = "id_example"; // String |
ConsentUpdate body = new ConsentUpdate(); // ConsentUpdate |
try {
Consent result = apiInstance.consentUpdate(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConsentApi#consentUpdate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| body | ConsentUpdate | [optional] |
- Content-Type: application/json
- Accept: application/json