Class FeatureApi

java.lang.Object
com.okta.sdk.resource.api.FeatureApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class FeatureApi extends Object
  • Constructor Details

    • FeatureApi

      public FeatureApi()
    • FeatureApi

      public FeatureApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getFeature

      public Feature getFeature(String featureId) throws ApiException
      Retrieve a feature Retrieves a feature by ID
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • getFeature

      public Feature getFeature(String featureId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a feature Retrieves a feature by ID
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependencies

      public List<Feature> listFeatureDependencies(String featureId) throws ApiException
      List all dependencies Lists all feature dependencies for a specified feature. A feature's dependencies are the features that it requires to be enabled in order for itself to be enabled.
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependencies

      public List<Feature> listFeatureDependencies(String featureId, Map<String,String> additionalHeaders) throws ApiException
      List all dependencies Lists all feature dependencies for a specified feature. A feature's dependencies are the features that it requires to be enabled in order for itself to be enabled.
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependenciesPaged

      public Iterable<Feature> listFeatureDependenciesPaged(String featureId)
      List all dependencies (Paginated) Lists all feature dependencies for a specified feature. A feature's dependencies are the features that it requires to be enabled in order for itself to be enabled. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      Iterable<Feature> lazy iterable over all pages
    • listFeatureDependenciesPaged

      public Iterable<Feature> listFeatureDependenciesPaged(String featureId, Map<String,String> additionalHeaders)
      List all dependencies (Paginated with additional headers) Lists all feature dependencies for a specified feature. A feature's dependencies are the features that it requires to be enabled in order for itself to be enabled. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<Feature> lazy iterable over all pages
    • listFeatureDependents

      public List<Feature> listFeatureDependents(String featureId) throws ApiException
      List all dependents Lists all feature dependents for the specified feature. A feature's dependents are the features that need to be disabled in order for the feature itself to be disabled.
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependents

      public List<Feature> listFeatureDependents(String featureId, Map<String,String> additionalHeaders) throws ApiException
      List all dependents Lists all feature dependents for the specified feature. A feature's dependents are the features that need to be disabled in order for the feature itself to be disabled.
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependentsPaged

      public Iterable<Feature> listFeatureDependentsPaged(String featureId)
      List all dependents (Paginated) Lists all feature dependents for the specified feature. A feature's dependents are the features that need to be disabled in order for the feature itself to be disabled. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      Iterable<Feature> lazy iterable over all pages
    • listFeatureDependentsPaged

      public Iterable<Feature> listFeatureDependentsPaged(String featureId, Map<String,String> additionalHeaders)
      List all dependents (Paginated with additional headers) Lists all feature dependents for the specified feature. A feature's dependents are the features that need to be disabled in order for the feature itself to be disabled. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<Feature> lazy iterable over all pages
    • listFeatures

      public List<Feature> listFeatures() throws ApiException
      List all features Lists all self-service features for your org
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatures

      public List<Feature> listFeatures(Map<String,String> additionalHeaders) throws ApiException
      List all features Lists all self-service features for your org
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeaturesPaged

      public Iterable<Feature> listFeaturesPaged()
      List all features (Paginated) Lists all self-service features for your org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Returns:
      Iterable<Feature> lazy iterable over all pages
    • listFeaturesPaged

      public Iterable<Feature> listFeaturesPaged(Map<String,String> additionalHeaders)
      List all features (Paginated with additional headers) Lists all self-service features for your org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<Feature> lazy iterable over all pages
    • updateFeatureLifecycle

      public Feature updateFeatureLifecycle(String featureId, FeatureLifecycle lifecycle, String mode) throws ApiException
      Update a feature lifecycle Updates a feature's lifecycle status. Use this endpoint to enable or disable a feature for your org. Use the `mode=force` parameter to override dependency restrictions for a particular feature. Normally, you can't enable a feature if it has one or more dependencies that aren't enabled. When you use the `mode=force` parameter while enabling a feature, Okta first tries to enable any disabled features that this feature may have as dependencies. If you don't pass the `mode=force` parameter and the feature has dependencies that need to be enabled before the feature is enabled, a 400 error is returned. When you use the `mode=force` parameter while disabling a feature, Okta first tries to disable any enabled features that this feature may have as dependents. If you don't pass the `mode=force` parameter and the feature has dependents that need to be disabled before the feature is disabled, a 400 error is returned. The following chart shows the different state transitions for a feature. ![State transitions of a feature](../../../../../images/features/update-ssfeat-flowchart.png '#width=500px;')
      Parameters:
      featureId - `id` of the feature (required)
      lifecycle - Whether to `ENABLE` or `DISABLE` the feature (required)
      mode - Indicates if you want to force enable or disable a feature. Supported value is `force`. (optional)
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • updateFeatureLifecycle

      public Feature updateFeatureLifecycle(String featureId, FeatureLifecycle lifecycle, String mode, Map<String,String> additionalHeaders) throws ApiException
      Update a feature lifecycle Updates a feature's lifecycle status. Use this endpoint to enable or disable a feature for your org. Use the `mode=force` parameter to override dependency restrictions for a particular feature. Normally, you can't enable a feature if it has one or more dependencies that aren't enabled. When you use the `mode=force` parameter while enabling a feature, Okta first tries to enable any disabled features that this feature may have as dependencies. If you don't pass the `mode=force` parameter and the feature has dependencies that need to be enabled before the feature is enabled, a 400 error is returned. When you use the `mode=force` parameter while disabling a feature, Okta first tries to disable any enabled features that this feature may have as dependents. If you don't pass the `mode=force` parameter and the feature has dependents that need to be disabled before the feature is disabled, a 400 error is returned. The following chart shows the different state transitions for a feature. ![State transitions of a feature](../../../../../images/features/update-ssfeat-flowchart.png '#width=500px;')
      Parameters:
      featureId - `id` of the feature (required)
      lifecycle - Whether to `ENABLE` or `DISABLE` the feature (required)
      mode - Indicates if you want to force enable or disable a feature. Supported value is `force`. (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()