Class FeatureFlagsApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listFeatureFlagsEnvironments.static classManage optional parameters to listFeatureFlags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchiveFeatureFlag(UUID featureFlagId) Archive a feature flag.archiveFeatureFlagAsync(UUID featureFlagId) Archive a feature flag.archiveFeatureFlagWithHttpInfo(UUID featureFlagId) Archives a feature flag.archiveFeatureFlagWithHttpInfoAsync(UUID featureFlagId) Archive a feature flag.createAllocationsForFeatureFlagInEnvironment(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) Create targeting rules for a flag env.createAllocationsForFeatureFlagInEnvironmentAsync(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) Create targeting rules for a flag env.createAllocationsForFeatureFlagInEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) Creates a new targeting rule (allocation) for a specific feature flag in a specific environment.createAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) Create targeting rules for a flag env.Create a feature flag.Create a feature flag.Create an environment.Create an environment.Creates a new environment for organizing feature flags.Create an environment.Creates a new feature flag with variants.Create a feature flag.createVariantForFeatureFlag(UUID featureFlagId, CreateVariant body) Add a variant to a feature flag.createVariantForFeatureFlagAsync(UUID featureFlagId, CreateVariant body) Add a variant to a feature flag.createVariantForFeatureFlagWithHttpInfo(UUID featureFlagId, CreateVariant body) Adds a single new variant to an existing feature flag.createVariantForFeatureFlagWithHttpInfoAsync(UUID featureFlagId, CreateVariant body) Add a variant to a feature flag.voiddeleteFeatureFlagsEnvironment(UUID environmentId) Delete an environment.deleteFeatureFlagsEnvironmentAsync(UUID environmentId) Delete an environment.deleteFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId) Deletes an environment.deleteFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId) Delete an environment.voiddeleteVariantFromFeatureFlag(UUID featureFlagId, UUID variantId) Delete a variant.deleteVariantFromFeatureFlagAsync(UUID featureFlagId, UUID variantId) Delete a variant.deleteVariantFromFeatureFlagWithHttpInfo(UUID featureFlagId, UUID variantId) Deletes a variant from a feature flag.deleteVariantFromFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UUID variantId) Delete a variant.voiddisableFeatureFlagEnvironment(UUID featureFlagId, UUID environmentId) Disable a feature flag in an environment.disableFeatureFlagEnvironmentAsync(UUID featureFlagId, UUID environmentId) Disable a feature flag in an environment.disableFeatureFlagEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId) Disable a feature flag in a specific environment.disableFeatureFlagEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId) Disable a feature flag in an environment.voidenableFeatureFlagEnvironment(UUID featureFlagId, UUID environmentId) Enable a feature flag in an environment.enableFeatureFlagEnvironmentAsync(UUID featureFlagId, UUID environmentId) Enable a feature flag in an environment.enableFeatureFlagEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId) Enable a feature flag in a specific environment.enableFeatureFlagEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId) Enable a feature flag in an environment.Get the API client.getFeatureFlag(UUID featureFlagId) Get a feature flag.getFeatureFlagAsync(UUID featureFlagId) Get a feature flag.getFeatureFlagsEnvironment(UUID environmentId) Get an environment.getFeatureFlagsEnvironmentAsync(UUID environmentId) Get an environment.getFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId) Returns the details of a specific environment.getFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId) Get an environment.getFeatureFlagWithHttpInfo(UUID featureFlagId) Returns the details of a specific feature flag including variants and environment status.getFeatureFlagWithHttpInfoAsync(UUID featureFlagId) Get a feature flag.List feature flags.List feature flags.List feature flags.List feature flags.List environments.listFeatureFlagsEnvironments(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) List environments.List environments.listFeatureFlagsEnvironmentsAsync(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) List environments.listFeatureFlagsEnvironmentsWithHttpInfo(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) Returns a list of environments for the organization.listFeatureFlagsEnvironmentsWithHttpInfoAsync(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) List environments.Returns a list of feature flags for the organization.List feature flags.pauseExposureSchedule(UUID exposureScheduleId) Pause a progressive rollout.pauseExposureScheduleAsync(UUID exposureScheduleId) Pause a progressive rollout.pauseExposureScheduleWithHttpInfo(UUID exposureScheduleId) Pauses a progressive rollout while preserving rollout state.pauseExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Pause a progressive rollout.resumeExposureSchedule(UUID exposureScheduleId) Resume a progressive rollout.resumeExposureScheduleAsync(UUID exposureScheduleId) Resume a progressive rollout.resumeExposureScheduleWithHttpInfo(UUID exposureScheduleId) Resumes progression for a previously paused progressive rollout.resumeExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Resume a progressive rollout.voidsetApiClient(ApiClient apiClient) Set the API client.startExposureSchedule(UUID exposureScheduleId) Start a progressive rollout.startExposureScheduleAsync(UUID exposureScheduleId) Start a progressive rollout.startExposureScheduleWithHttpInfo(UUID exposureScheduleId) Starts a progressive rollout and begins progression.startExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Start a progressive rollout.stopExposureSchedule(UUID exposureScheduleId) Stop a progressive rollout.stopExposureScheduleAsync(UUID exposureScheduleId) Stop a progressive rollout.stopExposureScheduleWithHttpInfo(UUID exposureScheduleId) Stops a progressive rollout and marks it as aborted.stopExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Stop a progressive rollout.unarchiveFeatureFlag(UUID featureFlagId) Unarchive a feature flag.unarchiveFeatureFlagAsync(UUID featureFlagId) Unarchive a feature flag.unarchiveFeatureFlagWithHttpInfo(UUID featureFlagId) Unarchives a previously archived feature flag, making it visible in the main list again.unarchiveFeatureFlagWithHttpInfoAsync(UUID featureFlagId) Unarchive a feature flag.updateAllocationsForFeatureFlagInEnvironment(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) Update targeting rules for a flag.updateAllocationsForFeatureFlagInEnvironmentAsync(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) Update targeting rules for a flag.updateAllocationsForFeatureFlagInEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) Updates targeting rules (allocations) for a specific feature flag in a specific environment.updateAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) Update targeting rules for a flag.updateFeatureFlag(UUID featureFlagId, UpdateFeatureFlagRequest body) Update a feature flag.updateFeatureFlagAsync(UUID featureFlagId, UpdateFeatureFlagRequest body) Update a feature flag.updateFeatureFlagsEnvironment(UUID environmentId, UpdateEnvironmentRequest body) Update an environment.updateFeatureFlagsEnvironmentAsync(UUID environmentId, UpdateEnvironmentRequest body) Update an environment.updateFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId, UpdateEnvironmentRequest body) Updates an existing environment's metadata such as name and description.updateFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId, UpdateEnvironmentRequest body) Update an environment.updateFeatureFlagWithHttpInfo(UUID featureFlagId, UpdateFeatureFlagRequest body) Updates an existing feature flag's metadata such as name and description.updateFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UpdateFeatureFlagRequest body) Update a feature flag.updateVariantForFeatureFlag(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) Update a variant.updateVariantForFeatureFlagAsync(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) Update a variant.updateVariantForFeatureFlagWithHttpInfo(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) Updates the name and value of an existing variant on a feature flag.updateVariantForFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) Update a variant.
-
Constructor Details
-
FeatureFlagsApi
public FeatureFlagsApi() -
FeatureFlagsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
archiveFeatureFlag
Archive a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- FeatureFlagResponse
- Throws:
ApiException- if fails to make API call
-
archiveFeatureFlagAsync
Archive a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- CompletableFuture<FeatureFlagResponse>
-
archiveFeatureFlagWithHttpInfo
public ApiResponse<FeatureFlagResponse> archiveFeatureFlagWithHttpInfo(UUID featureFlagId) throws ApiException Archives a feature flag. Archived flags are hidden from the main list but remain accessible and can be unarchived.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- ApiResponse<FeatureFlagResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
archiveFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<FeatureFlagResponse>> archiveFeatureFlagWithHttpInfoAsync(UUID featureFlagId) Archive a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- CompletableFuture<ApiResponse<FeatureFlagResponse>>
-
createAllocationsForFeatureFlagInEnvironment
public AllocationResponse createAllocationsForFeatureFlagInEnvironment(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) throws ApiException Create targeting rules for a flag env.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- AllocationResponse
- Throws:
ApiException- if fails to make API call
-
createAllocationsForFeatureFlagInEnvironmentAsync
public CompletableFuture<AllocationResponse> createAllocationsForFeatureFlagInEnvironmentAsync(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) Create targeting rules for a flag env.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- CompletableFuture<AllocationResponse>
-
createAllocationsForFeatureFlagInEnvironmentWithHttpInfo
public ApiResponse<AllocationResponse> createAllocationsForFeatureFlagInEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) throws ApiException Creates a new targeting rule (allocation) for a specific feature flag in a specific environment.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- ApiResponse<AllocationResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details 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 -
-
createAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<AllocationResponse>> createAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId, CreateAllocationsRequest body) Create targeting rules for a flag env.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<AllocationResponse>>
-
createFeatureFlag
Create a feature flag.See
createFeatureFlagWithHttpInfo(com.datadog.api.client.v2.model.CreateFeatureFlagRequest).- Parameters:
body- (required)- Returns:
- FeatureFlagResponse
- Throws:
ApiException- if fails to make API call
-
createFeatureFlagAsync
Create a feature flag.See
createFeatureFlagWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateFeatureFlagRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<FeatureFlagResponse>
-
createFeatureFlagWithHttpInfo
public ApiResponse<FeatureFlagResponse> createFeatureFlagWithHttpInfo(CreateFeatureFlagRequest body) throws ApiException Creates a new feature flag with variants.- Parameters:
body- (required)- Returns:
- ApiResponse<FeatureFlagResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 403 Forbidden - 409 Conflict - 429 Too many requests -
-
createFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<FeatureFlagResponse>> createFeatureFlagWithHttpInfoAsync(CreateFeatureFlagRequest body) Create a feature flag.See
createFeatureFlagWithHttpInfo(com.datadog.api.client.v2.model.CreateFeatureFlagRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<FeatureFlagResponse>>
-
createFeatureFlagsEnvironment
public EnvironmentResponse createFeatureFlagsEnvironment(CreateEnvironmentRequest body) throws ApiException Create an environment.See
createFeatureFlagsEnvironmentWithHttpInfo(com.datadog.api.client.v2.model.CreateEnvironmentRequest).- Parameters:
body- (required)- Returns:
- EnvironmentResponse
- Throws:
ApiException- if fails to make API call
-
createFeatureFlagsEnvironmentAsync
public CompletableFuture<EnvironmentResponse> createFeatureFlagsEnvironmentAsync(CreateEnvironmentRequest body) Create an environment.- Parameters:
body- (required)- Returns:
- CompletableFuture<EnvironmentResponse>
-
createFeatureFlagsEnvironmentWithHttpInfo
public ApiResponse<EnvironmentResponse> createFeatureFlagsEnvironmentWithHttpInfo(CreateEnvironmentRequest body) throws ApiException Creates a new environment for organizing feature flags.- Parameters:
body- (required)- Returns:
- ApiResponse<EnvironmentResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 403 Forbidden - 409 Conflict - 429 Too many requests -
-
createFeatureFlagsEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<EnvironmentResponse>> createFeatureFlagsEnvironmentWithHttpInfoAsync(CreateEnvironmentRequest body) Create an environment.See
createFeatureFlagsEnvironmentWithHttpInfo(com.datadog.api.client.v2.model.CreateEnvironmentRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<EnvironmentResponse>>
-
createVariantForFeatureFlag
public Variant createVariantForFeatureFlag(UUID featureFlagId, CreateVariant body) throws ApiException Add a variant to a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- Variant
- Throws:
ApiException- if fails to make API call
-
createVariantForFeatureFlagAsync
public CompletableFuture<Variant> createVariantForFeatureFlagAsync(UUID featureFlagId, CreateVariant body) Add a variant to a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- CompletableFuture<Variant>
-
createVariantForFeatureFlagWithHttpInfo
public ApiResponse<Variant> createVariantForFeatureFlagWithHttpInfo(UUID featureFlagId, CreateVariant body) throws ApiException Adds a single new variant to an existing feature flag. This endpoint is additive-only: it never modifies existing variants. A request whosekeyalready exists on the flag is rejected with409 Conflict; avaluewhose type does not match the flag'svalue_typeis rejected with400. 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.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- ApiResponse<Variant>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details 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 -
-
createVariantForFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<Variant>> createVariantForFeatureFlagWithHttpInfoAsync(UUID featureFlagId, CreateVariant body) Add a variant to a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Variant>>
-
deleteFeatureFlagsEnvironment
Delete an environment.See
deleteFeatureFlagsEnvironmentWithHttpInfo(java.util.UUID).- Parameters:
environmentId- The ID of the environment. (required)- Throws:
ApiException- if fails to make API call
-
deleteFeatureFlagsEnvironmentAsync
Delete an environment.See
deleteFeatureFlagsEnvironmentWithHttpInfoAsync(java.util.UUID).- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture
-
deleteFeatureFlagsEnvironmentWithHttpInfo
public ApiResponse<Void> deleteFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId) throws ApiException Deletes an environment. This operation cannot be undone.- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteFeatureFlagsEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId) Delete an environment.See
deleteFeatureFlagsEnvironmentWithHttpInfo(java.util.UUID).- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteVariantFromFeatureFlag
Delete a variant.See
deleteVariantFromFeatureFlagWithHttpInfo(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)- Throws:
ApiException- if fails to make API call
-
deleteVariantFromFeatureFlagAsync
public CompletableFuture<Void> deleteVariantFromFeatureFlagAsync(UUID featureFlagId, UUID variantId) Delete a variant.See
deleteVariantFromFeatureFlagWithHttpInfoAsync(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)- Returns:
- CompletableFuture
-
deleteVariantFromFeatureFlagWithHttpInfo
public ApiResponse<Void> deleteVariantFromFeatureFlagWithHttpInfo(UUID featureFlagId, UUID variantId) throws ApiException Deletes a variant from a feature flag.When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a
FlagSuggestionwith201 Createdinstead of deleting the variant immediately. If a pending suggestion already exists for this flag's variant property, the endpoint returns409 Conflict.- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details 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 -
-
deleteVariantFromFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteVariantFromFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UUID variantId) Delete a variant.See
deleteVariantFromFeatureFlagWithHttpInfo(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
disableFeatureFlagEnvironment
public void disableFeatureFlagEnvironment(UUID featureFlagId, UUID environmentId) throws ApiException Disable a feature flag in an environment.See
disableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Throws:
ApiException- if fails to make API call
-
disableFeatureFlagEnvironmentAsync
public CompletableFuture<Void> disableFeatureFlagEnvironmentAsync(UUID featureFlagId, UUID environmentId) Disable a feature flag in an environment.See
disableFeatureFlagEnvironmentWithHttpInfoAsync(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture
-
disableFeatureFlagEnvironmentWithHttpInfo
public ApiResponse<Void> disableFeatureFlagEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId) throws ApiException Disable a feature flag in a specific environment.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 202 Accepted - Approval required for this change - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
disableFeatureFlagEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> disableFeatureFlagEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId) Disable a feature flag in an environment.See
disableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
enableFeatureFlagEnvironment
public void enableFeatureFlagEnvironment(UUID featureFlagId, UUID environmentId) throws ApiException Enable a feature flag in an environment.See
enableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Throws:
ApiException- if fails to make API call
-
enableFeatureFlagEnvironmentAsync
public CompletableFuture<Void> enableFeatureFlagEnvironmentAsync(UUID featureFlagId, UUID environmentId) Enable a feature flag in an environment.See
enableFeatureFlagEnvironmentWithHttpInfoAsync(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture
-
enableFeatureFlagEnvironmentWithHttpInfo
public ApiResponse<Void> enableFeatureFlagEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId) throws ApiException Enable a feature flag in a specific environment.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 202 Accepted - Approval required for this change - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
enableFeatureFlagEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> enableFeatureFlagEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId) Enable a feature flag in an environment.See
enableFeatureFlagEnvironmentWithHttpInfo(java.util.UUID, java.util.UUID).- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getFeatureFlag
Get a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- FeatureFlagResponse
- Throws:
ApiException- if fails to make API call
-
getFeatureFlagAsync
Get a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- CompletableFuture<FeatureFlagResponse>
-
getFeatureFlagWithHttpInfo
public ApiResponse<FeatureFlagResponse> getFeatureFlagWithHttpInfo(UUID featureFlagId) throws ApiException Returns the details of a specific feature flag including variants and environment status.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- ApiResponse<FeatureFlagResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<FeatureFlagResponse>> getFeatureFlagWithHttpInfoAsync(UUID featureFlagId) Get a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- CompletableFuture<ApiResponse<FeatureFlagResponse>>
-
getFeatureFlagsEnvironment
Get an environment.- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- EnvironmentResponse
- Throws:
ApiException- if fails to make API call
-
getFeatureFlagsEnvironmentAsync
Get an environment.See
getFeatureFlagsEnvironmentWithHttpInfoAsync(java.util.UUID).- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture<EnvironmentResponse>
-
getFeatureFlagsEnvironmentWithHttpInfo
public ApiResponse<EnvironmentResponse> getFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId) throws ApiException Returns the details of a specific environment.- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- ApiResponse<EnvironmentResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getFeatureFlagsEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<EnvironmentResponse>> getFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId) Get an environment.- Parameters:
environmentId- The ID of the environment. (required)- Returns:
- CompletableFuture<ApiResponse<EnvironmentResponse>>
-
listFeatureFlags
List feature flags.- Returns:
- ListFeatureFlagsResponse
- Throws:
ApiException- if fails to make API call
-
listFeatureFlagsAsync
List feature flags.- Returns:
- CompletableFuture<ListFeatureFlagsResponse>
-
listFeatureFlags
public ListFeatureFlagsResponse listFeatureFlags(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters) throws ApiException List feature flags.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListFeatureFlagsResponse
- Throws:
ApiException- if fails to make API call
-
listFeatureFlagsAsync
public CompletableFuture<ListFeatureFlagsResponse> listFeatureFlagsAsync(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters) List feature flags.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListFeatureFlagsResponse>
-
listFeatureFlagsWithHttpInfo
public ApiResponse<ListFeatureFlagsResponse> listFeatureFlagsWithHttpInfo(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters) throws ApiException Returns a list of feature flags for the organization. Supports filtering by key and archived status.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListFeatureFlagsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listFeatureFlagsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListFeatureFlagsResponse>> listFeatureFlagsWithHttpInfoAsync(FeatureFlagsApi.ListFeatureFlagsOptionalParameters parameters) List feature flags.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListFeatureFlagsResponse>>
-
listFeatureFlagsEnvironments
List environments.- Returns:
- ListEnvironmentsResponse
- Throws:
ApiException- if fails to make API call
-
listFeatureFlagsEnvironmentsAsync
List environments.- Returns:
- CompletableFuture<ListEnvironmentsResponse>
-
listFeatureFlagsEnvironments
public ListEnvironmentsResponse listFeatureFlagsEnvironments(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) throws ApiException List environments.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListEnvironmentsResponse
- Throws:
ApiException- if fails to make API call
-
listFeatureFlagsEnvironmentsAsync
public CompletableFuture<ListEnvironmentsResponse> listFeatureFlagsEnvironmentsAsync(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) List environments.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListEnvironmentsResponse>
-
listFeatureFlagsEnvironmentsWithHttpInfo
public ApiResponse<ListEnvironmentsResponse> listFeatureFlagsEnvironmentsWithHttpInfo(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) throws ApiException Returns a list of environments for the organization. Supports filtering by name, key, and DD_ENV.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListEnvironmentsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listFeatureFlagsEnvironmentsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListEnvironmentsResponse>> listFeatureFlagsEnvironmentsWithHttpInfoAsync(FeatureFlagsApi.ListFeatureFlagsEnvironmentsOptionalParameters parameters) List environments.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListEnvironmentsResponse>>
-
pauseExposureSchedule
public AllocationExposureScheduleResponse pauseExposureSchedule(UUID exposureScheduleId) throws ApiException Pause a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- AllocationExposureScheduleResponse
- Throws:
ApiException- if fails to make API call
-
pauseExposureScheduleAsync
public CompletableFuture<AllocationExposureScheduleResponse> pauseExposureScheduleAsync(UUID exposureScheduleId) Pause a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<AllocationExposureScheduleResponse>
-
pauseExposureScheduleWithHttpInfo
public ApiResponse<AllocationExposureScheduleResponse> pauseExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException Pauses a progressive rollout while preserving rollout state.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- ApiResponse<AllocationExposureScheduleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
pauseExposureScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> pauseExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Pause a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>>
-
resumeExposureSchedule
public AllocationExposureScheduleResponse resumeExposureSchedule(UUID exposureScheduleId) throws ApiException Resume a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- AllocationExposureScheduleResponse
- Throws:
ApiException- if fails to make API call
-
resumeExposureScheduleAsync
public CompletableFuture<AllocationExposureScheduleResponse> resumeExposureScheduleAsync(UUID exposureScheduleId) Resume a progressive rollout.See
resumeExposureScheduleWithHttpInfoAsync(java.util.UUID).- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<AllocationExposureScheduleResponse>
-
resumeExposureScheduleWithHttpInfo
public ApiResponse<AllocationExposureScheduleResponse> resumeExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException Resumes progression for a previously paused progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- ApiResponse<AllocationExposureScheduleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
resumeExposureScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> resumeExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Resume a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>>
-
startExposureSchedule
public AllocationExposureScheduleResponse startExposureSchedule(UUID exposureScheduleId) throws ApiException Start a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- AllocationExposureScheduleResponse
- Throws:
ApiException- if fails to make API call
-
startExposureScheduleAsync
public CompletableFuture<AllocationExposureScheduleResponse> startExposureScheduleAsync(UUID exposureScheduleId) Start a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<AllocationExposureScheduleResponse>
-
startExposureScheduleWithHttpInfo
public ApiResponse<AllocationExposureScheduleResponse> startExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException Starts a progressive rollout and begins progression.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- ApiResponse<AllocationExposureScheduleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
startExposureScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> startExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Start a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>>
-
stopExposureSchedule
public AllocationExposureScheduleResponse stopExposureSchedule(UUID exposureScheduleId) throws ApiException Stop a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- AllocationExposureScheduleResponse
- Throws:
ApiException- if fails to make API call
-
stopExposureScheduleAsync
public CompletableFuture<AllocationExposureScheduleResponse> stopExposureScheduleAsync(UUID exposureScheduleId) Stop a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<AllocationExposureScheduleResponse>
-
stopExposureScheduleWithHttpInfo
public ApiResponse<AllocationExposureScheduleResponse> stopExposureScheduleWithHttpInfo(UUID exposureScheduleId) throws ApiException Stops a progressive rollout and marks it as aborted.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- ApiResponse<AllocationExposureScheduleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
stopExposureScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>> stopExposureScheduleWithHttpInfoAsync(UUID exposureScheduleId) Stop a progressive rollout.- Parameters:
exposureScheduleId- The ID of the exposure schedule. (required)- Returns:
- CompletableFuture<ApiResponse<AllocationExposureScheduleResponse>>
-
unarchiveFeatureFlag
Unarchive a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- FeatureFlagResponse
- Throws:
ApiException- if fails to make API call
-
unarchiveFeatureFlagAsync
Unarchive a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- CompletableFuture<FeatureFlagResponse>
-
unarchiveFeatureFlagWithHttpInfo
public ApiResponse<FeatureFlagResponse> unarchiveFeatureFlagWithHttpInfo(UUID featureFlagId) throws ApiException Unarchives a previously archived feature flag, making it visible in the main list again.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- ApiResponse<FeatureFlagResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
unarchiveFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<FeatureFlagResponse>> unarchiveFeatureFlagWithHttpInfoAsync(UUID featureFlagId) Unarchive a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)- Returns:
- CompletableFuture<ApiResponse<FeatureFlagResponse>>
-
updateAllocationsForFeatureFlagInEnvironment
public ListAllocationsResponse updateAllocationsForFeatureFlagInEnvironment(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) throws ApiException Update targeting rules for a flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- ListAllocationsResponse
- Throws:
ApiException- if fails to make API call
-
updateAllocationsForFeatureFlagInEnvironmentAsync
public CompletableFuture<ListAllocationsResponse> updateAllocationsForFeatureFlagInEnvironmentAsync(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) Update targeting rules for a flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- CompletableFuture<ListAllocationsResponse>
-
updateAllocationsForFeatureFlagInEnvironmentWithHttpInfo
public ApiResponse<ListAllocationsResponse> updateAllocationsForFeatureFlagInEnvironmentWithHttpInfo(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) throws ApiException Updates targeting rules (allocations) for a specific feature flag in a specific environment. This operation replaces the existing allocation set with the request payload.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- ApiResponse<ListAllocationsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details 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 -
-
updateAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListAllocationsResponse>> updateAllocationsForFeatureFlagInEnvironmentWithHttpInfoAsync(UUID featureFlagId, UUID environmentId, OverwriteAllocationsRequest body) Update targeting rules for a flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)environmentId- The ID of the environment. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ListAllocationsResponse>>
-
updateFeatureFlag
public FeatureFlagResponse updateFeatureFlag(UUID featureFlagId, UpdateFeatureFlagRequest body) throws ApiException Update a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- FeatureFlagResponse
- Throws:
ApiException- if fails to make API call
-
updateFeatureFlagAsync
public CompletableFuture<FeatureFlagResponse> updateFeatureFlagAsync(UUID featureFlagId, UpdateFeatureFlagRequest body) Update a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- CompletableFuture<FeatureFlagResponse>
-
updateFeatureFlagWithHttpInfo
public ApiResponse<FeatureFlagResponse> updateFeatureFlagWithHttpInfo(UUID featureFlagId, UpdateFeatureFlagRequest body) throws ApiException Updates an existing feature flag's metadata such as name and description. Does not modify targeting rules or allocations.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- ApiResponse<FeatureFlagResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<FeatureFlagResponse>> updateFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UpdateFeatureFlagRequest body) Update a feature flag.- Parameters:
featureFlagId- The ID of the feature flag. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<FeatureFlagResponse>>
-
updateFeatureFlagsEnvironment
public EnvironmentResponse updateFeatureFlagsEnvironment(UUID environmentId, UpdateEnvironmentRequest body) throws ApiException Update an environment.- Parameters:
environmentId- The ID of the environment. (required)body- (required)- Returns:
- EnvironmentResponse
- Throws:
ApiException- if fails to make API call
-
updateFeatureFlagsEnvironmentAsync
public CompletableFuture<EnvironmentResponse> updateFeatureFlagsEnvironmentAsync(UUID environmentId, UpdateEnvironmentRequest body) Update an environment.- Parameters:
environmentId- The ID of the environment. (required)body- (required)- Returns:
- CompletableFuture<EnvironmentResponse>
-
updateFeatureFlagsEnvironmentWithHttpInfo
public ApiResponse<EnvironmentResponse> updateFeatureFlagsEnvironmentWithHttpInfo(UUID environmentId, UpdateEnvironmentRequest body) throws ApiException Updates an existing environment's metadata such as name and description.- Parameters:
environmentId- The ID of the environment. (required)body- (required)- Returns:
- ApiResponse<EnvironmentResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateFeatureFlagsEnvironmentWithHttpInfoAsync
public CompletableFuture<ApiResponse<EnvironmentResponse>> updateFeatureFlagsEnvironmentWithHttpInfoAsync(UUID environmentId, UpdateEnvironmentRequest body) Update an environment.- Parameters:
environmentId- The ID of the environment. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<EnvironmentResponse>>
-
updateVariantForFeatureFlag
public Variant updateVariantForFeatureFlag(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) throws ApiException Update a variant.- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)body- (required)- Returns:
- Variant
- Throws:
ApiException- if fails to make API call
-
updateVariantForFeatureFlagAsync
public CompletableFuture<Variant> updateVariantForFeatureFlagAsync(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) Update a variant.- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)body- (required)- Returns:
- CompletableFuture<Variant>
-
updateVariantForFeatureFlagWithHttpInfo
public ApiResponse<Variant> updateVariantForFeatureFlagWithHttpInfo(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) throws ApiException Updates the name and value of an existing variant on a feature flag.When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a
FlagSuggestionwith201 Createdinstead of applying the change immediately. Use the returned suggestionidto approve or reject the change. If a pending suggestion already exists for this flag's variant property, the endpoint returns409 Conflict.- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)body- (required)- Returns:
- ApiResponse<Variant>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details 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 -
-
updateVariantForFeatureFlagWithHttpInfoAsync
public CompletableFuture<ApiResponse<Variant>> updateVariantForFeatureFlagWithHttpInfoAsync(UUID featureFlagId, UUID variantId, UpdateVariantRequest body) Update a variant.- Parameters:
featureFlagId- The ID of the feature flag. (required)variantId- The ID of the variant. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Variant>>
-