Class ApprovalsApi


  • public class ApprovalsApi
    extends java.lang.Object
    • Constructor Detail

      • ApprovalsApi

        public ApprovalsApi()
      • ApprovalsApi

        public ApprovalsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public java.lang.String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(java.lang.String customBaseUrl)
      • deleteApprovalRequestCall

        public okhttp3.Call deleteApprovalRequestCall​(@Nonnull
                                                      java.lang.String id,
                                                      ApiCallback _callback)
                                               throws ApiException
        Build call for deleteApprovalRequest
        Parameters:
        id - The approval request ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteApprovalRequest

        public void deleteApprovalRequest​(@Nonnull
                                          java.lang.String id)
                                   throws ApiException
        Delete approval request Delete an approval request.
        Parameters:
        id - The approval request ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteApprovalRequestWithHttpInfo

        public ApiResponse<java.lang.Void> deleteApprovalRequestWithHttpInfo​(@Nonnull
                                                                             java.lang.String id)
                                                                      throws ApiException
        Delete approval request Delete an approval request.
        Parameters:
        id - The approval request ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteApprovalRequestAsync

        public okhttp3.Call deleteApprovalRequestAsync​(@Nonnull
                                                       java.lang.String id,
                                                       ApiCallback<java.lang.Void> _callback)
                                                throws ApiException
        Delete approval request (asynchronously) Delete an approval request.
        Parameters:
        id - The approval request ID (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • deleteApprovalRequestForFlagCall

        public okhttp3.Call deleteApprovalRequestForFlagCall​(@Nonnull
                                                             java.lang.String projectKey,
                                                             @Nonnull
                                                             java.lang.String featureFlagKey,
                                                             @Nonnull
                                                             java.lang.String environmentKey,
                                                             @Nonnull
                                                             java.lang.String id,
                                                             ApiCallback _callback)
                                                      throws ApiException
        Build call for deleteApprovalRequestForFlag
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteApprovalRequestForFlag

        public void deleteApprovalRequestForFlag​(@Nonnull
                                                 java.lang.String projectKey,
                                                 @Nonnull
                                                 java.lang.String featureFlagKey,
                                                 @Nonnull
                                                 java.lang.String environmentKey,
                                                 @Nonnull
                                                 java.lang.String id)
                                          throws ApiException
        Delete approval request for a flag Delete an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteApprovalRequestForFlagWithHttpInfo

        public ApiResponse<java.lang.Void> deleteApprovalRequestForFlagWithHttpInfo​(@Nonnull
                                                                                    java.lang.String projectKey,
                                                                                    @Nonnull
                                                                                    java.lang.String featureFlagKey,
                                                                                    @Nonnull
                                                                                    java.lang.String environmentKey,
                                                                                    @Nonnull
                                                                                    java.lang.String id)
                                                                             throws ApiException
        Delete approval request for a flag Delete an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteApprovalRequestForFlagAsync

        public okhttp3.Call deleteApprovalRequestForFlagAsync​(@Nonnull
                                                              java.lang.String projectKey,
                                                              @Nonnull
                                                              java.lang.String featureFlagKey,
                                                              @Nonnull
                                                              java.lang.String environmentKey,
                                                              @Nonnull
                                                              java.lang.String id,
                                                              ApiCallback<java.lang.Void> _callback)
                                                       throws ApiException
        Delete approval request for a flag (asynchronously) Delete an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getApprovalForFlagCall

        public okhttp3.Call getApprovalForFlagCall​(@Nonnull
                                                   java.lang.String projectKey,
                                                   @Nonnull
                                                   java.lang.String featureFlagKey,
                                                   @Nonnull
                                                   java.lang.String environmentKey,
                                                   @Nonnull
                                                   java.lang.String id,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getApprovalForFlag
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getApprovalForFlag

        public FlagConfigApprovalRequestResponse getApprovalForFlag​(@Nonnull
                                                                    java.lang.String projectKey,
                                                                    @Nonnull
                                                                    java.lang.String featureFlagKey,
                                                                    @Nonnull
                                                                    java.lang.String environmentKey,
                                                                    @Nonnull
                                                                    java.lang.String id)
                                                             throws ApiException
        Get approval request for a flag Get a single approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalForFlagWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> getApprovalForFlagWithHttpInfo​(@Nonnull
                                                                                             java.lang.String projectKey,
                                                                                             @Nonnull
                                                                                             java.lang.String featureFlagKey,
                                                                                             @Nonnull
                                                                                             java.lang.String environmentKey,
                                                                                             @Nonnull
                                                                                             java.lang.String id)
                                                                                      throws ApiException
        Get approval request for a flag Get a single approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalForFlagAsync

        public okhttp3.Call getApprovalForFlagAsync​(@Nonnull
                                                    java.lang.String projectKey,
                                                    @Nonnull
                                                    java.lang.String featureFlagKey,
                                                    @Nonnull
                                                    java.lang.String environmentKey,
                                                    @Nonnull
                                                    java.lang.String id,
                                                    ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                             throws ApiException
        Get approval request for a flag (asynchronously) Get a single approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getApprovalRequestCall

        public okhttp3.Call getApprovalRequestCall​(@Nonnull
                                                   java.lang.String id,
                                                   @Nullable
                                                   java.lang.String expand,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getApprovalRequest
        Parameters:
        id - The approval request ID (required)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getApprovalRequest

        public ExpandableApprovalRequestResponse getApprovalRequest​(@Nonnull
                                                                    java.lang.String id,
                                                                    @Nullable
                                                                    java.lang.String expand)
                                                             throws ApiException
        Get approval request Get an approval request by approval request ID. ### Expanding approval response LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields: - `environments` includes the environments the approval request relates to - `flag` includes the flag the approval request belongs to - `project` includes the project the approval request belongs to - `resource` includes details on the resource (flag or segment) the approval request relates to For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
        Parameters:
        id - The approval request ID (required)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        Returns:
        ExpandableApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalRequestWithHttpInfo

        public ApiResponse<ExpandableApprovalRequestResponse> getApprovalRequestWithHttpInfo​(@Nonnull
                                                                                             java.lang.String id,
                                                                                             @Nullable
                                                                                             java.lang.String expand)
                                                                                      throws ApiException
        Get approval request Get an approval request by approval request ID. ### Expanding approval response LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields: - `environments` includes the environments the approval request relates to - `flag` includes the flag the approval request belongs to - `project` includes the project the approval request belongs to - `resource` includes details on the resource (flag or segment) the approval request relates to For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
        Parameters:
        id - The approval request ID (required)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        Returns:
        ApiResponse<ExpandableApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalRequestAsync

        public okhttp3.Call getApprovalRequestAsync​(@Nonnull
                                                    java.lang.String id,
                                                    @Nullable
                                                    java.lang.String expand,
                                                    ApiCallback<ExpandableApprovalRequestResponse> _callback)
                                             throws ApiException
        Get approval request (asynchronously) Get an approval request by approval request ID. ### Expanding approval response LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields: - `environments` includes the environments the approval request relates to - `flag` includes the flag the approval request belongs to - `project` includes the project the approval request belongs to - `resource` includes details on the resource (flag or segment) the approval request relates to For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
        Parameters:
        id - The approval request ID (required)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getApprovalRequestsCall

        public okhttp3.Call getApprovalRequestsCall​(@Nullable
                                                    java.lang.String filter,
                                                    @Nullable
                                                    java.lang.String expand,
                                                    @Nullable
                                                    java.lang.Long limit,
                                                    @Nullable
                                                    java.lang.Long offset,
                                                    ApiCallback _callback)
                                             throws ApiException
        Build call for getApprovalRequests
        Parameters:
        filter - A comma-separated list of filters. Each filter is of the form `field operator value`. Supported fields are explained above. (optional)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        limit - The number of approvals to return. Defaults to 20. Maximum limit is 200. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getApprovalRequests

        public ExpandableApprovalRequestsResponse getApprovalRequests​(@Nullable
                                                                      java.lang.String filter,
                                                                      @Nullable
                                                                      java.lang.String expand,
                                                                      @Nullable
                                                                      java.lang.Long limit,
                                                                      @Nullable
                                                                      java.lang.Long offset)
                                                               throws ApiException
        List approval requests Get all approval requests. ### Filtering approvals LaunchDarkly supports the `filter` query param for filtering, with the following fields: - `notifyMemberIds` filters for only approvals that are assigned to a member in the specified list. For example: `filter=notifyMemberIds anyOf [\"memberId1\", \"memberId2\"]`. - `requestorId` filters for only approvals that correspond to the ID of the member who requested the approval. For example: `filter=requestorId equals 457034721476302714390214`. - `resourceId` filters for only approvals that correspond to the the specified resource identifier. For example: `filter=resourceId equals proj/my-project:env/my-environment:flag/my-flag`. - `resourceKind` filters for only approvals that correspond to the specified resource kind. For example: `filter=resourceKind equals flag`. Currently, `flag`, `segment`, and `aiConfig` resource kinds are supported. - `reviewStatus` filters for only approvals which correspond to the review status in the specified list. The possible values are `approved`, `declined`, and `pending`. For example: `filter=reviewStatus anyOf [\"pending\", \"approved\"]`. - `status` filters for only approvals which correspond to the status in the specified list. The possible values are `pending`, `scheduled`, `failed`, and `completed`. For example: `filter=status anyOf [\"pending\", \"scheduled\"]`. You can also apply multiple filters at once. For example, setting `filter=projectKey equals my-project, reviewStatus anyOf [\"pending\",\"approved\"]` matches approval requests which correspond to the `my-project` project key, and a review status of either `pending` or `approved`. ### Expanding approval response LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields: - `flag` includes the flag the approval request belongs to - `project` includes the project the approval request belongs to - `environments` includes the environments the approval request relates to For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
        Parameters:
        filter - A comma-separated list of filters. Each filter is of the form `field operator value`. Supported fields are explained above. (optional)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        limit - The number of approvals to return. Defaults to 20. Maximum limit is 200. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        Returns:
        ExpandableApprovalRequestsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalRequestsWithHttpInfo

        public ApiResponse<ExpandableApprovalRequestsResponse> getApprovalRequestsWithHttpInfo​(@Nullable
                                                                                               java.lang.String filter,
                                                                                               @Nullable
                                                                                               java.lang.String expand,
                                                                                               @Nullable
                                                                                               java.lang.Long limit,
                                                                                               @Nullable
                                                                                               java.lang.Long offset)
                                                                                        throws ApiException
        List approval requests Get all approval requests. ### Filtering approvals LaunchDarkly supports the `filter` query param for filtering, with the following fields: - `notifyMemberIds` filters for only approvals that are assigned to a member in the specified list. For example: `filter=notifyMemberIds anyOf [\"memberId1\", \"memberId2\"]`. - `requestorId` filters for only approvals that correspond to the ID of the member who requested the approval. For example: `filter=requestorId equals 457034721476302714390214`. - `resourceId` filters for only approvals that correspond to the the specified resource identifier. For example: `filter=resourceId equals proj/my-project:env/my-environment:flag/my-flag`. - `resourceKind` filters for only approvals that correspond to the specified resource kind. For example: `filter=resourceKind equals flag`. Currently, `flag`, `segment`, and `aiConfig` resource kinds are supported. - `reviewStatus` filters for only approvals which correspond to the review status in the specified list. The possible values are `approved`, `declined`, and `pending`. For example: `filter=reviewStatus anyOf [\"pending\", \"approved\"]`. - `status` filters for only approvals which correspond to the status in the specified list. The possible values are `pending`, `scheduled`, `failed`, and `completed`. For example: `filter=status anyOf [\"pending\", \"scheduled\"]`. You can also apply multiple filters at once. For example, setting `filter=projectKey equals my-project, reviewStatus anyOf [\"pending\",\"approved\"]` matches approval requests which correspond to the `my-project` project key, and a review status of either `pending` or `approved`. ### Expanding approval response LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields: - `flag` includes the flag the approval request belongs to - `project` includes the project the approval request belongs to - `environments` includes the environments the approval request relates to For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
        Parameters:
        filter - A comma-separated list of filters. Each filter is of the form `field operator value`. Supported fields are explained above. (optional)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        limit - The number of approvals to return. Defaults to 20. Maximum limit is 200. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        Returns:
        ApiResponse<ExpandableApprovalRequestsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalRequestsAsync

        public okhttp3.Call getApprovalRequestsAsync​(@Nullable
                                                     java.lang.String filter,
                                                     @Nullable
                                                     java.lang.String expand,
                                                     @Nullable
                                                     java.lang.Long limit,
                                                     @Nullable
                                                     java.lang.Long offset,
                                                     ApiCallback<ExpandableApprovalRequestsResponse> _callback)
                                              throws ApiException
        List approval requests (asynchronously) Get all approval requests. ### Filtering approvals LaunchDarkly supports the `filter` query param for filtering, with the following fields: - `notifyMemberIds` filters for only approvals that are assigned to a member in the specified list. For example: `filter=notifyMemberIds anyOf [\"memberId1\", \"memberId2\"]`. - `requestorId` filters for only approvals that correspond to the ID of the member who requested the approval. For example: `filter=requestorId equals 457034721476302714390214`. - `resourceId` filters for only approvals that correspond to the the specified resource identifier. For example: `filter=resourceId equals proj/my-project:env/my-environment:flag/my-flag`. - `resourceKind` filters for only approvals that correspond to the specified resource kind. For example: `filter=resourceKind equals flag`. Currently, `flag`, `segment`, and `aiConfig` resource kinds are supported. - `reviewStatus` filters for only approvals which correspond to the review status in the specified list. The possible values are `approved`, `declined`, and `pending`. For example: `filter=reviewStatus anyOf [\"pending\", \"approved\"]`. - `status` filters for only approvals which correspond to the status in the specified list. The possible values are `pending`, `scheduled`, `failed`, and `completed`. For example: `filter=status anyOf [\"pending\", \"scheduled\"]`. You can also apply multiple filters at once. For example, setting `filter=projectKey equals my-project, reviewStatus anyOf [\"pending\",\"approved\"]` matches approval requests which correspond to the `my-project` project key, and a review status of either `pending` or `approved`. ### Expanding approval response LaunchDarkly supports the `expand` query param to include additional fields in the response, with the following fields: - `flag` includes the flag the approval request belongs to - `project` includes the project the approval request belongs to - `environments` includes the environments the approval request relates to For example, `expand=project,flag` includes the `project` and `flag` fields in the response.
        Parameters:
        filter - A comma-separated list of filters. Each filter is of the form `field operator value`. Supported fields are explained above. (optional)
        expand - A comma-separated list of fields to expand in the response. Supported fields are explained above. (optional)
        limit - The number of approvals to return. Defaults to 20. Maximum limit is 200. (optional)
        offset - Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`. (optional)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getApprovalsForFlagCall

        public okhttp3.Call getApprovalsForFlagCall​(@Nonnull
                                                    java.lang.String projectKey,
                                                    @Nonnull
                                                    java.lang.String featureFlagKey,
                                                    @Nonnull
                                                    java.lang.String environmentKey,
                                                    ApiCallback _callback)
                                             throws ApiException
        Build call for getApprovalsForFlag
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getApprovalsForFlag

        public FlagConfigApprovalRequestsResponse getApprovalsForFlag​(@Nonnull
                                                                      java.lang.String projectKey,
                                                                      @Nonnull
                                                                      java.lang.String featureFlagKey,
                                                                      @Nonnull
                                                                      java.lang.String environmentKey)
                                                               throws ApiException
        List approval requests for a flag Get all approval requests for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        Returns:
        FlagConfigApprovalRequestsResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalsForFlagWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestsResponse> getApprovalsForFlagWithHttpInfo​(@Nonnull
                                                                                               java.lang.String projectKey,
                                                                                               @Nonnull
                                                                                               java.lang.String featureFlagKey,
                                                                                               @Nonnull
                                                                                               java.lang.String environmentKey)
                                                                                        throws ApiException
        List approval requests for a flag Get all approval requests for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestsResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getApprovalsForFlagAsync

        public okhttp3.Call getApprovalsForFlagAsync​(@Nonnull
                                                     java.lang.String projectKey,
                                                     @Nonnull
                                                     java.lang.String featureFlagKey,
                                                     @Nonnull
                                                     java.lang.String environmentKey,
                                                     ApiCallback<FlagConfigApprovalRequestsResponse> _callback)
                                              throws ApiException
        List approval requests for a flag (asynchronously) Get all approval requests for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postApprovalRequestCall

        public okhttp3.Call postApprovalRequestCall​(@Nonnull
                                                    CreateApprovalRequestRequest createApprovalRequestRequest,
                                                    ApiCallback _callback)
                                             throws ApiException
        Build call for postApprovalRequest
        Parameters:
        createApprovalRequestRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequest

        public ApprovalRequestResponse postApprovalRequest​(@Nonnull
                                                           CreateApprovalRequestRequest createApprovalRequestRequest)
                                                    throws ApiException
        Create approval request Create an approval request. This endpoint requires a list of `instructions`, in semantic patch format, that will be applied when the approval request is approved and applied. ### Flags If you are creating an approval request for a flag, you can use the following `instructions`: - `addVariation` - `removeVariation` - `updateVariation` - `updateDefaultVariation` For details on using these instructions, read [Update feature flag](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag). To create an approval for a flag specific to an environment, use [Create approval request for a flag](https://launchdarkly.com/docs/api/approvals/post-approval-request-for-flag). ### AI Configs If you are creating an approval request for an AI Config, you can use the semantic patch instructions listed under [Update AI Config targeting](https://launchdarkly.com/docs/api/ai-configs/patch-ai-config-targeting). ### Segments If you are creating an approval request for a segment, you can use the semantic patch instructions listed under [Patch segment](https://launchdarkly.com/docs/api/segments/patch-segment).
        Parameters:
        createApprovalRequestRequest - (required)
        Returns:
        ApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestWithHttpInfo

        public ApiResponse<ApprovalRequestResponse> postApprovalRequestWithHttpInfo​(@Nonnull
                                                                                    CreateApprovalRequestRequest createApprovalRequestRequest)
                                                                             throws ApiException
        Create approval request Create an approval request. This endpoint requires a list of `instructions`, in semantic patch format, that will be applied when the approval request is approved and applied. ### Flags If you are creating an approval request for a flag, you can use the following `instructions`: - `addVariation` - `removeVariation` - `updateVariation` - `updateDefaultVariation` For details on using these instructions, read [Update feature flag](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag). To create an approval for a flag specific to an environment, use [Create approval request for a flag](https://launchdarkly.com/docs/api/approvals/post-approval-request-for-flag). ### AI Configs If you are creating an approval request for an AI Config, you can use the semantic patch instructions listed under [Update AI Config targeting](https://launchdarkly.com/docs/api/ai-configs/patch-ai-config-targeting). ### Segments If you are creating an approval request for a segment, you can use the semantic patch instructions listed under [Patch segment](https://launchdarkly.com/docs/api/segments/patch-segment).
        Parameters:
        createApprovalRequestRequest - (required)
        Returns:
        ApiResponse<ApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestAsync

        public okhttp3.Call postApprovalRequestAsync​(@Nonnull
                                                     CreateApprovalRequestRequest createApprovalRequestRequest,
                                                     ApiCallback<ApprovalRequestResponse> _callback)
                                              throws ApiException
        Create approval request (asynchronously) Create an approval request. This endpoint requires a list of `instructions`, in semantic patch format, that will be applied when the approval request is approved and applied. ### Flags If you are creating an approval request for a flag, you can use the following `instructions`: - `addVariation` - `removeVariation` - `updateVariation` - `updateDefaultVariation` For details on using these instructions, read [Update feature flag](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag). To create an approval for a flag specific to an environment, use [Create approval request for a flag](https://launchdarkly.com/docs/api/approvals/post-approval-request-for-flag). ### AI Configs If you are creating an approval request for an AI Config, you can use the semantic patch instructions listed under [Update AI Config targeting](https://launchdarkly.com/docs/api/ai-configs/patch-ai-config-targeting). ### Segments If you are creating an approval request for a segment, you can use the semantic patch instructions listed under [Patch segment](https://launchdarkly.com/docs/api/segments/patch-segment).
        Parameters:
        createApprovalRequestRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postApprovalRequestApplyCall

        public okhttp3.Call postApprovalRequestApplyCall​(@Nonnull
                                                         java.lang.String id,
                                                         @Nonnull
                                                         PostApprovalRequestApplyRequest postApprovalRequestApplyRequest,
                                                         ApiCallback _callback)
                                                  throws ApiException
        Build call for postApprovalRequestApply
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestApply

        public ApprovalRequestResponse postApprovalRequestApply​(@Nonnull
                                                                java.lang.String id,
                                                                @Nonnull
                                                                PostApprovalRequestApplyRequest postApprovalRequestApplyRequest)
                                                         throws ApiException
        Apply approval request Apply an approval request that has been approved. This endpoint works with any approval requests.
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        Returns:
        ApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestApplyWithHttpInfo

        public ApiResponse<ApprovalRequestResponse> postApprovalRequestApplyWithHttpInfo​(@Nonnull
                                                                                         java.lang.String id,
                                                                                         @Nonnull
                                                                                         PostApprovalRequestApplyRequest postApprovalRequestApplyRequest)
                                                                                  throws ApiException
        Apply approval request Apply an approval request that has been approved. This endpoint works with any approval requests.
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        Returns:
        ApiResponse<ApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestApplyAsync

        public okhttp3.Call postApprovalRequestApplyAsync​(@Nonnull
                                                          java.lang.String id,
                                                          @Nonnull
                                                          PostApprovalRequestApplyRequest postApprovalRequestApplyRequest,
                                                          ApiCallback<ApprovalRequestResponse> _callback)
                                                   throws ApiException
        Apply approval request (asynchronously) Apply an approval request that has been approved. This endpoint works with any approval requests.
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postApprovalRequestApplyForFlagCall

        public okhttp3.Call postApprovalRequestApplyForFlagCall​(@Nonnull
                                                                java.lang.String projectKey,
                                                                @Nonnull
                                                                java.lang.String featureFlagKey,
                                                                @Nonnull
                                                                java.lang.String environmentKey,
                                                                @Nonnull
                                                                java.lang.String id,
                                                                @Nonnull
                                                                PostApprovalRequestApplyRequest postApprovalRequestApplyRequest,
                                                                ApiCallback _callback)
                                                         throws ApiException
        Build call for postApprovalRequestApplyForFlag
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestApplyForFlag

        public FlagConfigApprovalRequestResponse postApprovalRequestApplyForFlag​(@Nonnull
                                                                                 java.lang.String projectKey,
                                                                                 @Nonnull
                                                                                 java.lang.String featureFlagKey,
                                                                                 @Nonnull
                                                                                 java.lang.String environmentKey,
                                                                                 @Nonnull
                                                                                 java.lang.String id,
                                                                                 @Nonnull
                                                                                 PostApprovalRequestApplyRequest postApprovalRequestApplyRequest)
                                                                          throws ApiException
        Apply approval request for a flag Apply an approval request that has been approved. This endpoint requires a feature flag key, and can only be used for applying approval requests on flags.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestApplyForFlagWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postApprovalRequestApplyForFlagWithHttpInfo​(@Nonnull
                                                                                                          java.lang.String projectKey,
                                                                                                          @Nonnull
                                                                                                          java.lang.String featureFlagKey,
                                                                                                          @Nonnull
                                                                                                          java.lang.String environmentKey,
                                                                                                          @Nonnull
                                                                                                          java.lang.String id,
                                                                                                          @Nonnull
                                                                                                          PostApprovalRequestApplyRequest postApprovalRequestApplyRequest)
                                                                                                   throws ApiException
        Apply approval request for a flag Apply an approval request that has been approved. This endpoint requires a feature flag key, and can only be used for applying approval requests on flags.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestApplyForFlagAsync

        public okhttp3.Call postApprovalRequestApplyForFlagAsync​(@Nonnull
                                                                 java.lang.String projectKey,
                                                                 @Nonnull
                                                                 java.lang.String featureFlagKey,
                                                                 @Nonnull
                                                                 java.lang.String environmentKey,
                                                                 @Nonnull
                                                                 java.lang.String id,
                                                                 @Nonnull
                                                                 PostApprovalRequestApplyRequest postApprovalRequestApplyRequest,
                                                                 ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                          throws ApiException
        Apply approval request for a flag (asynchronously) Apply an approval request that has been approved. This endpoint requires a feature flag key, and can only be used for applying approval requests on flags.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestApplyRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postApprovalRequestForFlagCall

        public okhttp3.Call postApprovalRequestForFlagCall​(@Nonnull
                                                           java.lang.String projectKey,
                                                           @Nonnull
                                                           java.lang.String featureFlagKey,
                                                           @Nonnull
                                                           java.lang.String environmentKey,
                                                           @Nonnull
                                                           CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest,
                                                           ApiCallback _callback)
                                                    throws ApiException
        Build call for postApprovalRequestForFlag
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestForFlag

        public FlagConfigApprovalRequestResponse postApprovalRequestForFlag​(@Nonnull
                                                                            java.lang.String projectKey,
                                                                            @Nonnull
                                                                            java.lang.String featureFlagKey,
                                                                            @Nonnull
                                                                            java.lang.String environmentKey,
                                                                            @Nonnull
                                                                            CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest)
                                                                     throws ApiException
        Create approval request for a flag Create an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestForFlagWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postApprovalRequestForFlagWithHttpInfo​(@Nonnull
                                                                                                     java.lang.String projectKey,
                                                                                                     @Nonnull
                                                                                                     java.lang.String featureFlagKey,
                                                                                                     @Nonnull
                                                                                                     java.lang.String environmentKey,
                                                                                                     @Nonnull
                                                                                                     CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest)
                                                                                              throws ApiException
        Create approval request for a flag Create an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestForFlagAsync

        public okhttp3.Call postApprovalRequestForFlagAsync​(@Nonnull
                                                            java.lang.String projectKey,
                                                            @Nonnull
                                                            java.lang.String featureFlagKey,
                                                            @Nonnull
                                                            java.lang.String environmentKey,
                                                            @Nonnull
                                                            CreateFlagConfigApprovalRequestRequest createFlagConfigApprovalRequestRequest,
                                                            ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                     throws ApiException
        Create approval request for a flag (asynchronously) Create an approval request for a feature flag.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        createFlagConfigApprovalRequestRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postApprovalRequestReviewCall

        public okhttp3.Call postApprovalRequestReviewCall​(@Nonnull
                                                          java.lang.String id,
                                                          @Nonnull
                                                          PostApprovalRequestReviewRequest postApprovalRequestReviewRequest,
                                                          ApiCallback _callback)
                                                   throws ApiException
        Build call for postApprovalRequestReview
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestReview

        public ApprovalRequestResponse postApprovalRequestReview​(@Nonnull
                                                                 java.lang.String id,
                                                                 @Nonnull
                                                                 PostApprovalRequestReviewRequest postApprovalRequestReviewRequest)
                                                          throws ApiException
        Review approval request Review an approval request by approving or denying changes.
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        Returns:
        ApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestReviewWithHttpInfo

        public ApiResponse<ApprovalRequestResponse> postApprovalRequestReviewWithHttpInfo​(@Nonnull
                                                                                          java.lang.String id,
                                                                                          @Nonnull
                                                                                          PostApprovalRequestReviewRequest postApprovalRequestReviewRequest)
                                                                                   throws ApiException
        Review approval request Review an approval request by approving or denying changes.
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        Returns:
        ApiResponse<ApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestReviewAsync

        public okhttp3.Call postApprovalRequestReviewAsync​(@Nonnull
                                                           java.lang.String id,
                                                           @Nonnull
                                                           PostApprovalRequestReviewRequest postApprovalRequestReviewRequest,
                                                           ApiCallback<ApprovalRequestResponse> _callback)
                                                    throws ApiException
        Review approval request (asynchronously) Review an approval request by approving or denying changes.
        Parameters:
        id - The approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postApprovalRequestReviewForFlagCall

        public okhttp3.Call postApprovalRequestReviewForFlagCall​(@Nonnull
                                                                 java.lang.String projectKey,
                                                                 @Nonnull
                                                                 java.lang.String featureFlagKey,
                                                                 @Nonnull
                                                                 java.lang.String environmentKey,
                                                                 @Nonnull
                                                                 java.lang.String id,
                                                                 @Nonnull
                                                                 PostApprovalRequestReviewRequest postApprovalRequestReviewRequest,
                                                                 ApiCallback _callback)
                                                          throws ApiException
        Build call for postApprovalRequestReviewForFlag
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postApprovalRequestReviewForFlag

        public FlagConfigApprovalRequestResponse postApprovalRequestReviewForFlag​(@Nonnull
                                                                                  java.lang.String projectKey,
                                                                                  @Nonnull
                                                                                  java.lang.String featureFlagKey,
                                                                                  @Nonnull
                                                                                  java.lang.String environmentKey,
                                                                                  @Nonnull
                                                                                  java.lang.String id,
                                                                                  @Nonnull
                                                                                  PostApprovalRequestReviewRequest postApprovalRequestReviewRequest)
                                                                           throws ApiException
        Review approval request for a flag Review an approval request by approving or denying changes.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestReviewForFlagWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postApprovalRequestReviewForFlagWithHttpInfo​(@Nonnull
                                                                                                           java.lang.String projectKey,
                                                                                                           @Nonnull
                                                                                                           java.lang.String featureFlagKey,
                                                                                                           @Nonnull
                                                                                                           java.lang.String environmentKey,
                                                                                                           @Nonnull
                                                                                                           java.lang.String id,
                                                                                                           @Nonnull
                                                                                                           PostApprovalRequestReviewRequest postApprovalRequestReviewRequest)
                                                                                                    throws ApiException
        Review approval request for a flag Review an approval request by approving or denying changes.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postApprovalRequestReviewForFlagAsync

        public okhttp3.Call postApprovalRequestReviewForFlagAsync​(@Nonnull
                                                                  java.lang.String projectKey,
                                                                  @Nonnull
                                                                  java.lang.String featureFlagKey,
                                                                  @Nonnull
                                                                  java.lang.String environmentKey,
                                                                  @Nonnull
                                                                  java.lang.String id,
                                                                  @Nonnull
                                                                  PostApprovalRequestReviewRequest postApprovalRequestReviewRequest,
                                                                  ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                           throws ApiException
        Review approval request for a flag (asynchronously) Review an approval request by approving or denying changes.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key (required)
        id - The feature flag approval request ID (required)
        postApprovalRequestReviewRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postFlagCopyConfigApprovalRequestCall

        public okhttp3.Call postFlagCopyConfigApprovalRequestCall​(@Nonnull
                                                                  java.lang.String projectKey,
                                                                  @Nonnull
                                                                  java.lang.String featureFlagKey,
                                                                  @Nonnull
                                                                  java.lang.String environmentKey,
                                                                  @Nonnull
                                                                  CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest,
                                                                  ApiCallback _callback)
                                                           throws ApiException
        Build call for postFlagCopyConfigApprovalRequest
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postFlagCopyConfigApprovalRequest

        public FlagConfigApprovalRequestResponse postFlagCopyConfigApprovalRequest​(@Nonnull
                                                                                   java.lang.String projectKey,
                                                                                   @Nonnull
                                                                                   java.lang.String featureFlagKey,
                                                                                   @Nonnull
                                                                                   java.lang.String environmentKey,
                                                                                   @Nonnull
                                                                                   CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest)
                                                                            throws ApiException
        Create approval request to copy flag configurations across environments Create an approval request to copy a feature flag's configuration across environments.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        Returns:
        FlagConfigApprovalRequestResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postFlagCopyConfigApprovalRequestWithHttpInfo

        public ApiResponse<FlagConfigApprovalRequestResponse> postFlagCopyConfigApprovalRequestWithHttpInfo​(@Nonnull
                                                                                                            java.lang.String projectKey,
                                                                                                            @Nonnull
                                                                                                            java.lang.String featureFlagKey,
                                                                                                            @Nonnull
                                                                                                            java.lang.String environmentKey,
                                                                                                            @Nonnull
                                                                                                            CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest)
                                                                                                     throws ApiException
        Create approval request to copy flag configurations across environments Create an approval request to copy a feature flag's configuration across environments.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        Returns:
        ApiResponse<FlagConfigApprovalRequestResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postFlagCopyConfigApprovalRequestAsync

        public okhttp3.Call postFlagCopyConfigApprovalRequestAsync​(@Nonnull
                                                                   java.lang.String projectKey,
                                                                   @Nonnull
                                                                   java.lang.String featureFlagKey,
                                                                   @Nonnull
                                                                   java.lang.String environmentKey,
                                                                   @Nonnull
                                                                   CreateCopyFlagConfigApprovalRequestRequest createCopyFlagConfigApprovalRequestRequest,
                                                                   ApiCallback<FlagConfigApprovalRequestResponse> _callback)
                                                            throws ApiException
        Create approval request to copy flag configurations across environments (asynchronously) Create an approval request to copy a feature flag's configuration across environments.
        Parameters:
        projectKey - The project key (required)
        featureFlagKey - The feature flag key (required)
        environmentKey - The environment key for the target environment (required)
        createCopyFlagConfigApprovalRequestRequest - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object