+
+
+
+
+ featuresetPresetPatch
+ +Load a preset in a feature set
+ ++
/sdrangel/featureset/{featureSetIndex}/preset
+ +
Usage and SDK Samples
+ + + +
+
+
+
+
+ curl -X PATCH "http://localhost/sdrangel/featureset/{featureSetIndex}/preset"
+
+
+
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.FeatureSetApi;
+
+import java.io.File;
+import java.util.*;
+
+public class FeatureSetApiExample {
+
+ public static void main(String[] args) {
+
+ FeatureSetApi apiInstance = new FeatureSetApi();
+ Integer featureSetIndex = 56; // Integer | Index of feature set in the feature set list
+ FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the feature set
+ try {
+ FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(featureSetIndex, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import SWGSDRangel.api.FeatureSetApi;
+
+public class FeatureSetApiExample {
+
+ public static void main(String[] args) {
+ FeatureSetApi apiInstance = new FeatureSetApi();
+ Integer featureSetIndex = 56; // Integer | Index of feature set in the feature set list
+ FeaturePresetIdentifier body = ; // FeaturePresetIdentifier | Load preset settings to the feature set
+ try {
+ FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(featureSetIndex, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FeatureSetApi#featuresetPresetPatch");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Integer *featureSetIndex = 56; // Index of feature set in the feature set list
+FeaturePresetIdentifier *body = ; // Load preset settings to the feature set
+
+FeatureSetApi *apiInstance = [[FeatureSetApi alloc] init];
+
+[apiInstance featuresetPresetPatchWith:featureSetIndex
+ body:body
+ completionHandler: ^(FeaturePresetIdentifier output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.FeatureSetApi()
+
+var featureSetIndex = 56; // {Integer} Index of feature set in the feature set list
+
+var body = ; // {FeaturePresetIdentifier} Load preset settings to the feature set
+
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.featuresetPresetPatch(featureSetIndex, body, callback);
+
+
+
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class featuresetPresetPatchExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new FeatureSetApi();
+ var featureSetIndex = 56; // Integer | Index of feature set in the feature set list
+ var body = new FeaturePresetIdentifier(); // FeaturePresetIdentifier | Load preset settings to the feature set
+
+ try
+ {
+ FeaturePresetIdentifier result = apiInstance.featuresetPresetPatch(featureSetIndex, body);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling FeatureSetApi.featuresetPresetPatch: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\FeatureSetApi();
+$featureSetIndex = 56; // Integer | Index of feature set in the feature set list
+$body = ; // FeaturePresetIdentifier | Load preset settings to the feature set
+
+try {
+ $result = $api_instance->featuresetPresetPatch($featureSetIndex, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling FeatureSetApi->featuresetPresetPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::FeatureSetApi;
+
+my $api_instance = SWGSDRangel::FeatureSetApi->new();
+my $featureSetIndex = 56; # Integer | Index of feature set in the feature set list
+my $body = SWGSDRangel::Object::FeaturePresetIdentifier->new(); # FeaturePresetIdentifier | Load preset settings to the feature set
+
+eval {
+ my $result = $api_instance->featuresetPresetPatch(featureSetIndex => $featureSetIndex, body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling FeatureSetApi->featuresetPresetPatch: $@\n";
+}
+
+
+ from __future__ import print_statement
+import time
+import swagger_sdrangel
+from swagger_sdrangel.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_sdrangel.FeatureSetApi()
+featureSetIndex = 56 # Integer | Index of feature set in the feature set list
+body = # FeaturePresetIdentifier | Load preset settings to the feature set
+
+try:
+ api_response = api_instance.featureset_preset_patch(featureSetIndex, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling FeatureSetApi->featuresetPresetPatch: %s\n" % e)
+ Parameters
+ +Path parameters
+ Name | +Description | +
---|---|
featureSetIndex* | +
+
+
+
+
+
+
+
+
+ Integer
+
+
+
+
+ Index of feature set in the feature set list
+
+
+ Required
+
+ |
+
Body parameters
+ Name | +Description | +
---|---|
body * | ++ + + + + | +
Responses
+Status: 202 - On successful sending of the message the selected preset identification is returned
+ + + +
+
+
+
+
+
+
+
+
+ Status: 400 - Invalid JSON request
+ + + +
+
+
+
+
+
+
+
+
+ Status: 404 - No preset or feature set found
+ + + +
+
+
+
+
+
+
+
+
+ Status: 500 - Error
+ + + +
+
+
+
+
+
+
+
+
+ Status: 501 - Function not implemented
+ + + +
+
+
+
+
+
+
+
+
+