Spenda.Services.LaunchDarkly

FeatureFlags

featureFlagUpdateSetting

Update feature flag for tenant

Update feature flag tenant


/FeatureFlags/FeatureFlag/{featureFlagKey}/setting

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/FeatureFlags/FeatureFlag/{featureFlagKey}/setting" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FeatureFlagsApi;

import java.io.File;
import java.util.*;

public class FeatureFlagsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        FeatureFlagsApi apiInstance = new FeatureFlagsApi();
        String featureFlagKey = featureFlagKey_example; // String | The feature flag key
        UpdateFlagSettingForTenantRequest updateFlagSettingForTenantRequest = {"value":true}; // UpdateFlagSettingForTenantRequest | 

        try {
            updateFlagSettingForUserResponse result = apiInstance.featureFlagUpdateSetting(featureFlagKey, updateFlagSettingForTenantRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FeatureFlagsApi#featureFlagUpdateSetting");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String featureFlagKey = new String(); // String | The feature flag key
final UpdateFlagSettingForTenantRequest updateFlagSettingForTenantRequest = new UpdateFlagSettingForTenantRequest(); // UpdateFlagSettingForTenantRequest | 

try {
    final result = await api_instance.featureFlagUpdateSetting(featureFlagKey, updateFlagSettingForTenantRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->featureFlagUpdateSetting: $e\n');
}

import org.openapitools.client.api.FeatureFlagsApi;

public class FeatureFlagsApiExample {
    public static void main(String[] args) {
        FeatureFlagsApi apiInstance = new FeatureFlagsApi();
        String featureFlagKey = featureFlagKey_example; // String | The feature flag key
        UpdateFlagSettingForTenantRequest updateFlagSettingForTenantRequest = {"value":true}; // UpdateFlagSettingForTenantRequest | 

        try {
            updateFlagSettingForUserResponse result = apiInstance.featureFlagUpdateSetting(featureFlagKey, updateFlagSettingForTenantRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FeatureFlagsApi#featureFlagUpdateSetting");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
FeatureFlagsApi *apiInstance = [[FeatureFlagsApi alloc] init];
String *featureFlagKey = featureFlagKey_example; // The feature flag key (default to null)
UpdateFlagSettingForTenantRequest *updateFlagSettingForTenantRequest = {"value":true}; //  (optional)

// Update feature flag for tenant
[apiInstance featureFlagUpdateSettingWith:featureFlagKey
    updateFlagSettingForTenantRequest:updateFlagSettingForTenantRequest
              completionHandler: ^(updateFlagSettingForUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLaunchDarkly = require('spenda_services_launch_darkly');

// Create an instance of the API class
var api = new SpendaServicesLaunchDarkly.FeatureFlagsApi()
var featureFlagKey = featureFlagKey_example; // {String} The feature flag key
var opts = {
  'updateFlagSettingForTenantRequest': {"value":true} // {UpdateFlagSettingForTenantRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.featureFlagUpdateSetting(featureFlagKey, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class featureFlagUpdateSettingExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new FeatureFlagsApi();
            var featureFlagKey = featureFlagKey_example;  // String | The feature flag key (default to null)
            var updateFlagSettingForTenantRequest = new UpdateFlagSettingForTenantRequest(); // UpdateFlagSettingForTenantRequest |  (optional) 

            try {
                // Update feature flag for tenant
                updateFlagSettingForUserResponse result = apiInstance.featureFlagUpdateSetting(featureFlagKey, updateFlagSettingForTenantRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FeatureFlagsApi.featureFlagUpdateSetting: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FeatureFlagsApi();
$featureFlagKey = featureFlagKey_example; // String | The feature flag key
$updateFlagSettingForTenantRequest = {"value":true}; // UpdateFlagSettingForTenantRequest | 

try {
    $result = $api_instance->featureFlagUpdateSetting($featureFlagKey, $updateFlagSettingForTenantRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FeatureFlagsApi->featureFlagUpdateSetting: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FeatureFlagsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FeatureFlagsApi->new();
my $featureFlagKey = featureFlagKey_example; # String | The feature flag key
my $updateFlagSettingForTenantRequest = WWW::OPenAPIClient::Object::UpdateFlagSettingForTenantRequest->new(); # UpdateFlagSettingForTenantRequest | 

eval {
    my $result = $api_instance->featureFlagUpdateSetting(featureFlagKey => $featureFlagKey, updateFlagSettingForTenantRequest => $updateFlagSettingForTenantRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FeatureFlagsApi->featureFlagUpdateSetting: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.FeatureFlagsApi()
featureFlagKey = featureFlagKey_example # String | The feature flag key (default to null)
updateFlagSettingForTenantRequest = {"value":true} # UpdateFlagSettingForTenantRequest |  (optional)

try:
    # Update feature flag for tenant
    api_response = api_instance.feature_flag_update_setting(featureFlagKey, updateFlagSettingForTenantRequest=updateFlagSettingForTenantRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FeatureFlagsApi->featureFlagUpdateSetting: %s\n" % e)
extern crate FeatureFlagsApi;

pub fn main() {
    let featureFlagKey = featureFlagKey_example; // String
    let updateFlagSettingForTenantRequest = {"value":true}; // UpdateFlagSettingForTenantRequest

    let mut context = FeatureFlagsApi::Context::default();
    let result = client.featureFlagUpdateSetting(featureFlagKey, updateFlagSettingForTenantRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
featureFlagKey*
String
The feature flag key
Required
Body parameters
Name Description
updateFlagSettingForTenantRequest

The feature flags setting

Responses


featureFlagsGet

Get a list of feature flags for tenant

Get a list of feature flags tenant


/FeatureFlags/FeatureFlags

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/FeatureFlags/FeatureFlags"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FeatureFlagsApi;

import java.io.File;
import java.util.*;

public class FeatureFlagsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        FeatureFlagsApi apiInstance = new FeatureFlagsApi();

        try {
            getFeatureFlagsResponse result = apiInstance.featureFlagsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FeatureFlagsApi#featureFlagsGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.featureFlagsGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->featureFlagsGet: $e\n');
}

import org.openapitools.client.api.FeatureFlagsApi;

public class FeatureFlagsApiExample {
    public static void main(String[] args) {
        FeatureFlagsApi apiInstance = new FeatureFlagsApi();

        try {
            getFeatureFlagsResponse result = apiInstance.featureFlagsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FeatureFlagsApi#featureFlagsGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
FeatureFlagsApi *apiInstance = [[FeatureFlagsApi alloc] init];

// Get a list of feature flags for tenant
[apiInstance featureFlagsGetWithCompletionHandler: 
              ^(getFeatureFlagsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLaunchDarkly = require('spenda_services_launch_darkly');

// Create an instance of the API class
var api = new SpendaServicesLaunchDarkly.FeatureFlagsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.featureFlagsGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class featureFlagsGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new FeatureFlagsApi();

            try {
                // Get a list of feature flags for tenant
                getFeatureFlagsResponse result = apiInstance.featureFlagsGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FeatureFlagsApi.featureFlagsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FeatureFlagsApi();

try {
    $result = $api_instance->featureFlagsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FeatureFlagsApi->featureFlagsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FeatureFlagsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FeatureFlagsApi->new();

eval {
    my $result = $api_instance->featureFlagsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FeatureFlagsApi->featureFlagsGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.FeatureFlagsApi()

try:
    # Get a list of feature flags for tenant
    api_response = api_instance.feature_flags_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FeatureFlagsApi->featureFlagsGet: %s\n" % e)
extern crate FeatureFlagsApi;

pub fn main() {

    let mut context = FeatureFlagsApi::Context::default();
    let result = client.featureFlagsGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


featureFlagsGetForSupplier

Get a list of feature flags for a connected supplier

Get a list of feature flags for a connected supplier


/FeatureFlags/FeatureFlags/Supplier/{supplierID}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/FeatureFlags/FeatureFlags/Supplier/{supplierID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FeatureFlagsApi;

import java.io.File;
import java.util.*;

public class FeatureFlagsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        FeatureFlagsApi apiInstance = new FeatureFlagsApi();
        Integer supplierID = 56; // Integer | The connected supplier ID

        try {
            getFeatureFlagsForSupplierResponse result = apiInstance.featureFlagsGetForSupplier(supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FeatureFlagsApi#featureFlagsGetForSupplier");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer supplierID = new Integer(); // Integer | The connected supplier ID

try {
    final result = await api_instance.featureFlagsGetForSupplier(supplierID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->featureFlagsGetForSupplier: $e\n');
}

import org.openapitools.client.api.FeatureFlagsApi;

public class FeatureFlagsApiExample {
    public static void main(String[] args) {
        FeatureFlagsApi apiInstance = new FeatureFlagsApi();
        Integer supplierID = 56; // Integer | The connected supplier ID

        try {
            getFeatureFlagsForSupplierResponse result = apiInstance.featureFlagsGetForSupplier(supplierID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FeatureFlagsApi#featureFlagsGetForSupplier");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
FeatureFlagsApi *apiInstance = [[FeatureFlagsApi alloc] init];
Integer *supplierID = 56; // The connected supplier ID (default to null)

// Get a list of feature flags for a connected supplier
[apiInstance featureFlagsGetForSupplierWith:supplierID
              completionHandler: ^(getFeatureFlagsForSupplierResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesLaunchDarkly = require('spenda_services_launch_darkly');

// Create an instance of the API class
var api = new SpendaServicesLaunchDarkly.FeatureFlagsApi()
var supplierID = 56; // {Integer} The connected supplier ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.featureFlagsGetForSupplier(supplierID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class featureFlagsGetForSupplierExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new FeatureFlagsApi();
            var supplierID = 56;  // Integer | The connected supplier ID (default to null)

            try {
                // Get a list of feature flags for a connected supplier
                getFeatureFlagsForSupplierResponse result = apiInstance.featureFlagsGetForSupplier(supplierID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FeatureFlagsApi.featureFlagsGetForSupplier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FeatureFlagsApi();
$supplierID = 56; // Integer | The connected supplier ID

try {
    $result = $api_instance->featureFlagsGetForSupplier($supplierID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FeatureFlagsApi->featureFlagsGetForSupplier: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FeatureFlagsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FeatureFlagsApi->new();
my $supplierID = 56; # Integer | The connected supplier ID

eval {
    my $result = $api_instance->featureFlagsGetForSupplier(supplierID => $supplierID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FeatureFlagsApi->featureFlagsGetForSupplier: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.FeatureFlagsApi()
supplierID = 56 # Integer | The connected supplier ID (default to null)

try:
    # Get a list of feature flags for a connected supplier
    api_response = api_instance.feature_flags_get_for_supplier(supplierID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FeatureFlagsApi->featureFlagsGetForSupplier: %s\n" % e)
extern crate FeatureFlagsApi;

pub fn main() {
    let supplierID = 56; // Integer

    let mut context = FeatureFlagsApi::Context::default();
    let result = client.featureFlagsGetForSupplier(supplierID, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
supplierID*
Integer (int32)
The connected supplier ID
Required

Responses