@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FeatureFlagsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters
Manage optional parameters to listFeatureFlagsEnvironments.
|
static class |
FeatureFlagsApi.ListFeatureFlagsOptionalParameters
Manage optional parameters to listFeatureFlags.
|
| Constructor and Description |
|---|
FeatureFlagsApi() |
FeatureFlagsApi(ApiClient apiClient) |
public FeatureFlagsApi()
public FeatureFlagsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic FeatureFlagResponse archiveFeatureFlag(UUID featureFlagId) throws ApiException
featureFlagId - The ID of the feature flag. (required)ApiException - if fails to make API callpublic CompletableFuture<FeatureFlagResponse> archiveFeatureFlagAsync(UUID featureFlagId)
featureFlagId - The ID of the feature flag. (required)public ApiResponse<FeatureFlagResponse> archiveFeatureFlagWithHttpInfo(UUID featureFlagId) throws ApiException
featureFlagId - The ID of the feature flag. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FeatureFlagResponse>> archiveFeatureFlagWithHttpInfoAsync(UUID featureFlagId)
featureFlagId - The ID of the feature flag. (required)public AllocationResponse createAllocationsForFeatureFlagInEnvironment(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<AllocationResponse> createAllocationsForFeatureFlagInEnvironmentAsync(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body)
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)public ApiResponse<AllocationResponse> createAllocationsForFeatureFlagInEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 202 | Accepted - Approval required for this change | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AllocationResponse>> createAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body)
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)public FeatureFlagResponse createFeatureFlag(CreateFeatureFlagRequest body) throws ApiException
See createFeatureFlagWithHttpInfo(com.datadog.api.client.v2.model.CreateFeatureFlagRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<FeatureFlagResponse> createFeatureFlagAsync(CreateFeatureFlagRequest body)
See createFeatureFlagWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateFeatureFlagRequest).
body - (required)public ApiResponse<FeatureFlagResponse> createFeatureFlagWithHttpInfo(CreateFeatureFlagRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FeatureFlagResponse>> createFeatureFlagWithHttpInfoAsync(CreateFeatureFlagRequest body)
See createFeatureFlagWithHttpInfo(com.datadog.api.client.v2.model.CreateFeatureFlagRequest).
body - (required)public EnvironmentResponse createFeatureFlagsEnvironment(CreateEnvironmentRequest body) throws ApiException
See createFeatureFlagsEnvironmentWithHttpInfo(com.datadog.api.client.v2.model.CreateEnvironmentRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<EnvironmentResponse> createFeatureFlagsEnvironmentAsync(CreateEnvironmentRequest body)
body - (required)public ApiResponse<EnvironmentResponse> createFeatureFlagsEnvironmentWithHttpInfo(CreateEnvironmentRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EnvironmentResponse>> createFeatureFlagsEnvironmentWithHttpInfoAsync(CreateEnvironmentRequest body)
See createFeatureFlagsEnvironmentWithHttpInfo(com.datadog.api.client.v2.model.CreateEnvironmentRequest).
body - (required)public Variant createVariantForFeatureFlag(UUID featureFlagId, CreateVariant body) throws ApiException
featureFlagId - The ID of the feature flag. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<Variant> createVariantForFeatureFlagAsync(UUID featureFlagId, CreateVariant body)
featureFlagId - The ID of the feature flag. (required)body - (required)public ApiResponse<Variant> createVariantForFeatureFlagWithHttpInfo(UUID featureFlagId, CreateVariant body) throws ApiException
key already exists on the flag is
rejected with 409 Conflict; a value whose type does not match the
flag's value_type is rejected with 400. The server generates the
variant UUID and returns it in the response body; callers (for example, the flag-migration
tool) need this UUID to reference the new variant in subsequent allocation syncs.featureFlagId - The ID of the feature flag. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict - A variant with this key already exists on the flag. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Variant>> createVariantForFeatureFlagWithHttpInfoAsync(UUID featureFlagId, CreateVariant body)
featureFlagId - The ID of the feature flag. (required)body - (required)public void deleteFeatureFlagsEnvironment(UUID environmentId) throws ApiException
See deleteFeatureFlagsEnvironmentWithHttpInfo(java.util.UUID).
environmentId - The ID of the environment. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteFeatureFlagsEnvironmentAsync(UUID environmentId)
See deleteFeatureFlagsEnvironmentWithHttpInfoAsync(java.util.UUID).
environmentId - The ID of the environment. (required)public ApiResponse<Void> deleteFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId) throws ApiException
environmentId - The ID of the environment. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId)
See deleteFeatureFlagsEnvironmentWithHttpInfo(java.util.UUID).
environmentId - The ID of the environment. (required)public void deleteVariantFromFeatureFlag(UUID featureFlagId, UUID variantId) throws ApiException
See deleteVariantFromFeatureFlagWithHttpInfo(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteVariantFromFeatureFlagAsync(UUID featureFlagId, UUID variantId)
See deleteVariantFromFeatureFlagWithHttpInfoAsync(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)public ApiResponse<Void> deleteVariantFromFeatureFlagWithHttpInfo(UUID featureFlagId, UUID variantId) throws ApiException
When backend approvals are enabled and the flag requires approval, this endpoint creates and
returns a FlagSuggestion with 201 Created instead of deleting the
variant immediately. If a pending suggestion already exists for this flag's variant property,
the endpoint returns 409 Conflict.
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict - A pending suggestion already exists for this property. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteVariantFromFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UUID variantId)
See deleteVariantFromFeatureFlagWithHttpInfo(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)public void disableFeatureFlagEnvironment(UUID featureFlagId, UUID environmentId) throws ApiException
See disableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> disableFeatureFlagEnvironmentAsync(UUID featureFlagId, UUID environmentId)
See disableFeatureFlagEnvironmentWithHttpInfoAsync(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)public ApiResponse<Void> disableFeatureFlagEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId) throws ApiException
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 202 | Accepted - Approval required for this change | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> disableFeatureFlagEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId)
See disableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)public void enableFeatureFlagEnvironment(UUID featureFlagId, UUID environmentId) throws ApiException
See enableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> enableFeatureFlagEnvironmentAsync(UUID featureFlagId, UUID environmentId)
See enableFeatureFlagEnvironmentWithHttpInfoAsync(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)public ApiResponse<Void> enableFeatureFlagEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId) throws ApiException
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 202 | Accepted - Approval required for this change | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> enableFeatureFlagEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId)
See enableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)public FeatureFlagResponse getFeatureFlag(UUID featureFlagId) throws ApiException
featureFlagId - The ID of the feature flag. (required)ApiException - if fails to make API callpublic CompletableFuture<FeatureFlagResponse> getFeatureFlagAsync(UUID featureFlagId)
featureFlagId - The ID of the feature flag. (required)public ApiResponse<FeatureFlagResponse> getFeatureFlagWithHttpInfo(UUID featureFlagId) throws ApiException
featureFlagId - The ID of the feature flag. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FeatureFlagResponse>> getFeatureFlagWithHttpInfoAsync(UUID featureFlagId)
featureFlagId - The ID of the feature flag. (required)public EnvironmentResponse getFeatureFlagsEnvironment(UUID environmentId) throws ApiException
environmentId - The ID of the environment. (required)ApiException - if fails to make API callpublic CompletableFuture<EnvironmentResponse> getFeatureFlagsEnvironmentAsync(UUID environmentId)
See getFeatureFlagsEnvironmentWithHttpInfoAsync(java.util.UUID).
environmentId - The ID of the environment. (required)public ApiResponse<EnvironmentResponse> getFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId) throws ApiException
environmentId - The ID of the environment. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EnvironmentResponse>> getFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId)
environmentId - The ID of the environment. (required)public ListFeatureFlagsResponse listFeatureFlags() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListFeatureFlagsResponse> listFeatureFlagsAsync()
public ListFeatureFlagsResponse listFeatureFlags(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListFeatureFlagsResponse> listFeatureFlagsAsync(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<ListFeatureFlagsResponse> listFeatureFlagsWithHttpInfo(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ListFeatureFlagsResponse>> listFeatureFlagsWithHttpInfoAsync(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters)
parameters - Optional parameters for the request.public ListEnvironmentsResponse listFeatureFlagsEnvironments() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListEnvironmentsResponse> listFeatureFlagsEnvironmentsAsync()
public ListEnvironmentsResponse listFeatureFlagsEnvironments(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListEnvironmentsResponse> listFeatureFlagsEnvironmentsAsync(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<ListEnvironmentsResponse> listFeatureFlagsEnvironmentsWithHttpInfo(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ListEnvironmentsResponse>> listFeatureFlagsEnvironmentsWithHttpInfoAsync(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters)
parameters - Optional parameters for the request.public AllocationExposureScheduleResponse pauseExposureSchedule(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API callpublic CompletableFuture<AllocationExposureScheduleResponse> pauseExposureScheduleAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public ApiResponse<AllocationExposureScheduleResponse> pauseExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> pauseExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public AllocationExposureScheduleResponse resumeExposureSchedule(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API callpublic CompletableFuture<AllocationExposureScheduleResponse> resumeExposureScheduleAsync(UUID exposureScheduleId)
See resumeExposureScheduleWithHttpInfoAsync(java.util.UUID).
exposureScheduleId - The ID of the exposure schedule. (required)public ApiResponse<AllocationExposureScheduleResponse> resumeExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> resumeExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public AllocationExposureScheduleResponse startExposureSchedule(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API callpublic CompletableFuture<AllocationExposureScheduleResponse> startExposureScheduleAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public ApiResponse<AllocationExposureScheduleResponse> startExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> startExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public AllocationExposureScheduleResponse stopExposureSchedule(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API callpublic CompletableFuture<AllocationExposureScheduleResponse> stopExposureScheduleAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public ApiResponse<AllocationExposureScheduleResponse> stopExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException
exposureScheduleId - The ID of the exposure schedule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> stopExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId)
exposureScheduleId - The ID of the exposure schedule. (required)public FeatureFlagResponse unarchiveFeatureFlag(UUID featureFlagId) throws ApiException
featureFlagId - The ID of the feature flag. (required)ApiException - if fails to make API callpublic CompletableFuture<FeatureFlagResponse> unarchiveFeatureFlagAsync(UUID featureFlagId)
featureFlagId - The ID of the feature flag. (required)public ApiResponse<FeatureFlagResponse> unarchiveFeatureFlagWithHttpInfo(UUID featureFlagId) throws ApiException
featureFlagId - The ID of the feature flag. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FeatureFlagResponse>> unarchiveFeatureFlagWithHttpInfoAsync(UUID featureFlagId)
featureFlagId - The ID of the feature flag. (required)public ListAllocationsResponse updateAllocationsForFeatureFlagInEnvironment(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<ListAllocationsResponse> updateAllocationsForFeatureFlagInEnvironmentAsync(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body)
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)public ApiResponse<ListAllocationsResponse> updateAllocationsForFeatureFlagInEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 202 | Accepted - Approval required for this change | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ListAllocationsResponse>> updateAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body)
featureFlagId - The ID of the feature flag. (required)environmentId - The ID of the environment. (required)body - (required)public FeatureFlagResponse updateFeatureFlag(UUID featureFlagId, UpdateFeatureFlagRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<FeatureFlagResponse> updateFeatureFlagAsync(UUID featureFlagId, UpdateFeatureFlagRequest body)
featureFlagId - The ID of the feature flag. (required)body - (required)public ApiResponse<FeatureFlagResponse> updateFeatureFlagWithHttpInfo(UUID featureFlagId, UpdateFeatureFlagRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<FeatureFlagResponse>> updateFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UpdateFeatureFlagRequest body)
featureFlagId - The ID of the feature flag. (required)body - (required)public EnvironmentResponse updateFeatureFlagsEnvironment(UUID environmentId, UpdateEnvironmentRequest body) throws ApiException
environmentId - The ID of the environment. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<EnvironmentResponse> updateFeatureFlagsEnvironmentAsync(UUID environmentId, UpdateEnvironmentRequest body)
environmentId - The ID of the environment. (required)body - (required)public ApiResponse<EnvironmentResponse> updateFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId, UpdateEnvironmentRequest body) throws ApiException
environmentId - The ID of the environment. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<EnvironmentResponse>> updateFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId, UpdateEnvironmentRequest body)
environmentId - The ID of the environment. (required)body - (required)public Variant updateVariantForFeatureFlag(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) throws ApiException
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<Variant> updateVariantForFeatureFlagAsync(UUID featureFlagId, UUID variantId, UpdateVariantRequest body)
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)body - (required)public ApiResponse<Variant> updateVariantForFeatureFlagWithHttpInfo(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) throws ApiException
When backend approvals are enabled and the flag requires approval, this endpoint creates and
returns a FlagSuggestion with 201 Created instead of applying the
change immediately. Use the returned suggestion id to approve or reject the
change. If a pending suggestion already exists for this flag's variant property, the endpoint
returns 409 Conflict.
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict - A pending suggestion already exists for this property. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Variant>> updateVariantForFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UUID variantId, UpdateVariantRequest body)
featureFlagId - The ID of the feature flag. (required)variantId - The ID of the variant. (required)body - (required)Copyright © 2026. All rights reserved.