All URIs are relative to https://api.fireblocks.io/v1
Method | HTTP request | Description |
---|---|---|
setAdminQuorumThreshold | PUT /admin_quorum | Update admin quorum threshold |
setAdminQuorumThresholdWithHttpInfo | PUT /admin_quorum | Update admin quorum threshold |
CompletableFuture setAdminQuorumThreshold(setAdminQuorumThresholdRequest, idempotencyKey)
Update admin quorum threshold
Update admin quorum threshold
// Import classes:
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.Configuration;
import com.fireblocks.sdk.models.*;
import com.fireblocks.sdk.api.AdminQuorumApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.fireblocks.io/v1");
AdminQuorumApi apiInstance = new AdminQuorumApi(defaultClient);
SetAdminQuorumThresholdRequest setAdminQuorumThresholdRequest = new SetAdminQuorumThresholdRequest(); // SetAdminQuorumThresholdRequest |
String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
try {
CompletableFuture<Void> result = apiInstance.setAdminQuorumThreshold(setAdminQuorumThresholdRequest, idempotencyKey);
} catch (ApiException e) {
System.err.println("Exception when calling AdminQuorumApi#setAdminQuorumThreshold");
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 |
---|---|---|---|
setAdminQuorumThresholdRequest | SetAdminQuorumThresholdRequest | ||
idempotencyKey | String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] |
CompletableFuture (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | * X-Request-ID - |
0 | Error Response | * X-Request-ID - |
CompletableFuture<ApiResponse> setAdminQuorumThreshold setAdminQuorumThresholdWithHttpInfo(setAdminQuorumThresholdRequest, idempotencyKey)
Update admin quorum threshold
Update admin quorum threshold
// Import classes:
import com.fireblocks.sdk.ApiClient;
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
import com.fireblocks.sdk.Configuration;
import com.fireblocks.sdk.models.*;
import com.fireblocks.sdk.api.AdminQuorumApi;
import java.util.concurrent.CompletableFuture;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.fireblocks.io/v1");
AdminQuorumApi apiInstance = new AdminQuorumApi(defaultClient);
SetAdminQuorumThresholdRequest setAdminQuorumThresholdRequest = new SetAdminQuorumThresholdRequest(); // SetAdminQuorumThresholdRequest |
String idempotencyKey = "idempotencyKey_example"; // String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
try {
CompletableFuture<ApiResponse<Void>> response = apiInstance.setAdminQuorumThresholdWithHttpInfo(setAdminQuorumThresholdRequest, idempotencyKey);
System.out.println("Status code: " + response.get().getStatusCode());
System.out.println("Response headers: " + response.get().getHeaders());
} catch (InterruptedException | ExecutionException e) {
ApiException apiException = (ApiException)e.getCause();
System.err.println("Exception when calling AdminQuorumApi#setAdminQuorumThreshold");
System.err.println("Status code: " + apiException.getCode());
System.err.println("Response headers: " + apiException.getResponseHeaders());
System.err.println("Reason: " + apiException.getResponseBody());
e.printStackTrace();
} catch (ApiException e) {
System.err.println("Exception when calling AdminQuorumApi#setAdminQuorumThreshold");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
setAdminQuorumThresholdRequest | SetAdminQuorumThresholdRequest | ||
idempotencyKey | String | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] |
CompletableFuture<ApiResponse>
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | * X-Request-ID - |
0 | Error Response | * X-Request-ID - |