Smartedit Webservices

Configurations

getConfigurationByKey

Find a Configuration by Key

Endpoint to retrieve cms configuration data that matches the given key value


/v1/configurations/{key}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/configurations/{key}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigurationsApi;

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

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ConfigurationsApi apiInstance = new ConfigurationsApi();
        String key = key_example; // String | Configuration data identifier
        try {
            apiInstance.getConfigurationByKey(key);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#getConfigurationByKey");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigurationsApi;

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ConfigurationsApi apiInstance = new ConfigurationsApi();
        String key = key_example; // String | Configuration data identifier
        try {
            apiInstance.getConfigurationByKey(key);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#getConfigurationByKey");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *key = key_example; // Configuration data identifier

ConfigurationsApi *apiInstance = [[ConfigurationsApi alloc] init];

// Find a Configuration by Key
[apiInstance getConfigurationByKeyWith:key
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ConfigurationsApi()
var key = key_example; // {{String}} Configuration data identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getConfigurationByKey(key, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ConfigurationsApi();
            var key = key_example;  // String | Configuration data identifier

            try
            {
                // Find a Configuration by Key
                apiInstance.getConfigurationByKey(key);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigurationsApi.getConfigurationByKey: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiConfigurationsApi();
$key = key_example; // String | Configuration data identifier

try {
    $api_instance->getConfigurationByKey($key);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationsApi->getConfigurationByKey: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigurationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ConfigurationsApi->new();
my $key = key_example; # String | Configuration data identifier

eval { 
    $api_instance->getConfigurationByKey(key => $key);
};
if ($@) {
    warn "Exception when calling ConfigurationsApi->getConfigurationByKey: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ConfigurationsApi()
key = key_example # String | Configuration data identifier

try: 
    # Find a Configuration by Key
    api_instance.get_configuration_by_key(key)
except ApiException as e:
    print("Exception when calling ConfigurationsApi->getConfigurationByKey: %s\n" % e)

Parameters

Path parameters
Name Description
key*
String
Configuration data identifier
Required

Responses

Status: 401 - Must be authenticated as an Admin or CMS Manager to access this resource

Status: 403 - Forbidden

Status: 404 - Not Found


getConfigurations

Get All Configurations

Endpoint to retrieve all cms configuration data


/v1/configurations

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/configurations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigurationsApi;

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

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ConfigurationsApi apiInstance = new ConfigurationsApi();
        try {
            apiInstance.getConfigurations();
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#getConfigurations");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigurationsApi;

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ConfigurationsApi apiInstance = new ConfigurationsApi();
        try {
            apiInstance.getConfigurations();
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#getConfigurations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

ConfigurationsApi *apiInstance = [[ConfigurationsApi alloc] init];

// Get All Configurations
[apiInstance getConfigurationsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ConfigurationsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getConfigurations(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ConfigurationsApi();

            try
            {
                // Get All Configurations
                apiInstance.getConfigurations();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigurationsApi.getConfigurations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiConfigurationsApi();

try {
    $api_instance->getConfigurations();
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationsApi->getConfigurations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigurationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ConfigurationsApi->new();

eval { 
    $api_instance->getConfigurations();
};
if ($@) {
    warn "Exception when calling ConfigurationsApi->getConfigurations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ConfigurationsApi()

try: 
    # Get All Configurations
    api_instance.get_configurations()
except ApiException as e:
    print("Exception when calling ConfigurationsApi->getConfigurations: %s\n" % e)

Parameters

Responses

Status: 401 - Must be authenticated as an Admin or CMS Manager to access this resource

Status: 403 - Forbidden

Status: 404 - Not Found


removeConfiguration

Remove a Configuration

Endpoint to remove cms configuration data that matches the given key


/v1/configurations/{key}

Usage and SDK Samples

curl -X DELETE\
\
\
"http://localhost:9001/smarteditwebservices/v1/configurations/{key}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigurationsApi;

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

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ConfigurationsApi apiInstance = new ConfigurationsApi();
        String key = key_example; // String | Configuration data identifier
        try {
            apiInstance.removeConfiguration(key);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#removeConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigurationsApi;

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ConfigurationsApi apiInstance = new ConfigurationsApi();
        String key = key_example; // String | Configuration data identifier
        try {
            apiInstance.removeConfiguration(key);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#removeConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *key = key_example; // Configuration data identifier

ConfigurationsApi *apiInstance = [[ConfigurationsApi alloc] init];

// Remove a Configuration
[apiInstance removeConfigurationWith:key
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ConfigurationsApi()
var key = key_example; // {{String}} Configuration data identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.removeConfiguration(key, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ConfigurationsApi();
            var key = key_example;  // String | Configuration data identifier

            try
            {
                // Remove a Configuration
                apiInstance.removeConfiguration(key);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigurationsApi.removeConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiConfigurationsApi();
$key = key_example; // String | Configuration data identifier

try {
    $api_instance->removeConfiguration($key);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationsApi->removeConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigurationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ConfigurationsApi->new();
my $key = key_example; # String | Configuration data identifier

eval { 
    $api_instance->removeConfiguration(key => $key);
};
if ($@) {
    warn "Exception when calling ConfigurationsApi->removeConfiguration: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ConfigurationsApi()
key = key_example # String | Configuration data identifier

try: 
    # Remove a Configuration
    api_instance.remove_configuration(key)
except ApiException as e:
    print("Exception when calling ConfigurationsApi->removeConfiguration: %s\n" % e)

Parameters

Path parameters
Name Description
key*
String
Configuration data identifier
Required

Responses

Status: 401 - Must be authenticated as an Admin to access this resource

Status: 403 - Forbidden

Status: 404 - Not Found


saveConfiguration

Save a Configuration

Endpoint to create cms configuration data


/v1/configurations

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/xml,application/json"\
-H "Content-Type: application/json"\
"http://localhost:9001/smarteditwebservices/v1/configurations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigurationsApi;

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

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ConfigurationsApi apiInstance = new ConfigurationsApi();
        ConfigurationData body = ; // ConfigurationData | 
        try {
            apiInstance.saveConfiguration(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#saveConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigurationsApi;

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ConfigurationsApi apiInstance = new ConfigurationsApi();
        ConfigurationData body = ; // ConfigurationData | 
        try {
            apiInstance.saveConfiguration(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#saveConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ConfigurationData *body = ; // 

ConfigurationsApi *apiInstance = [[ConfigurationsApi alloc] init];

// Save a Configuration
[apiInstance saveConfigurationWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ConfigurationsApi()
var body = ; // {{ConfigurationData}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.saveConfiguration(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ConfigurationsApi();
            var body = new ConfigurationData(); // ConfigurationData | 

            try
            {
                // Save a Configuration
                apiInstance.saveConfiguration(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigurationsApi.saveConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiConfigurationsApi();
$body = ; // ConfigurationData | 

try {
    $api_instance->saveConfiguration($body);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationsApi->saveConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigurationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ConfigurationsApi->new();
my $body = WWW::SwaggerClient::Object::ConfigurationData->new(); # ConfigurationData | 

eval { 
    $api_instance->saveConfiguration(body => $body);
};
if ($@) {
    warn "Exception when calling ConfigurationsApi->saveConfiguration: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ConfigurationsApi()
body =  # ConfigurationData | 

try: 
    # Save a Configuration
    api_instance.save_configuration(body)
except ApiException as e:
    print("Exception when calling ConfigurationsApi->saveConfiguration: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 401 - Must be authenticated as an Admin to access this resource

Status: 403 - Forbidden

Status: 404 - Not Found


updateConfiguration

Update a Configuration

Endpoint to update cms configuration data


/v1/configurations/{key}

Usage and SDK Samples

curl -X PUT\
\
\
-H "Accept: application/xml,application/json"\
-H "Content-Type: application/json"\
"http://localhost:9001/smarteditwebservices/v1/configurations/{key}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ConfigurationsApi;

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

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ConfigurationsApi apiInstance = new ConfigurationsApi();
        ConfigurationData body = ; // ConfigurationData | 
        String key = key_example; // String | Configuration data identifier
        try {
            apiInstance.updateConfiguration(body, key);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#updateConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ConfigurationsApi;

public class ConfigurationsApiExample {

    public static void main(String[] args) {
        ConfigurationsApi apiInstance = new ConfigurationsApi();
        ConfigurationData body = ; // ConfigurationData | 
        String key = key_example; // String | Configuration data identifier
        try {
            apiInstance.updateConfiguration(body, key);
        } catch (ApiException e) {
            System.err.println("Exception when calling ConfigurationsApi#updateConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
ConfigurationData *body = ; // 
String *key = key_example; // Configuration data identifier

ConfigurationsApi *apiInstance = [[ConfigurationsApi alloc] init];

// Update a Configuration
[apiInstance updateConfigurationWith:body
    key:key
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ConfigurationsApi()
var body = ; // {{ConfigurationData}} 
var key = key_example; // {{String}} Configuration data identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateConfiguration(bodykey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ConfigurationsApi();
            var body = new ConfigurationData(); // ConfigurationData | 
            var key = key_example;  // String | Configuration data identifier

            try
            {
                // Update a Configuration
                apiInstance.updateConfiguration(body, key);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConfigurationsApi.updateConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiConfigurationsApi();
$body = ; // ConfigurationData | 
$key = key_example; // String | Configuration data identifier

try {
    $api_instance->updateConfiguration($body, $key);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationsApi->updateConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ConfigurationsApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ConfigurationsApi->new();
my $body = WWW::SwaggerClient::Object::ConfigurationData->new(); # ConfigurationData | 
my $key = key_example; # String | Configuration data identifier

eval { 
    $api_instance->updateConfiguration(body => $body, key => $key);
};
if ($@) {
    warn "Exception when calling ConfigurationsApi->updateConfiguration: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ConfigurationsApi()
body =  # ConfigurationData | 
key = key_example # String | Configuration data identifier

try: 
    # Update a Configuration
    api_instance.update_configuration(body, key)
except ApiException as e:
    print("Exception when calling ConfigurationsApi->updateConfiguration: %s\n" % e)

Parameters

Path parameters
Name Description
key*
String
Configuration data identifier
Required
Body parameters
Name Description
body *

Responses

Status: 400 - Configuration data input is invalid

Status: 401 - Must be authenticated as an Admin to access this resource

Status: 403 - Forbidden

Status: 404 - Not Found


Languages

getLanguages

Get Languages

Endpoint to retrieve list of supported languages


/v1/i18n/languages

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/i18n/languages"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LanguagesApi;

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

public class LanguagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        LanguagesApi apiInstance = new LanguagesApi();
        try {
            SmarteditLanguageListData result = apiInstance.getLanguages();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguagesApi#getLanguages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LanguagesApi;

public class LanguagesApiExample {

    public static void main(String[] args) {
        LanguagesApi apiInstance = new LanguagesApi();
        try {
            SmarteditLanguageListData result = apiInstance.getLanguages();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguagesApi#getLanguages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

LanguagesApi *apiInstance = [[LanguagesApi alloc] init];

// Get Languages
[apiInstance getLanguagesWithCompletionHandler: 
              ^(SmarteditLanguageListData output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.LanguagesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getLanguages(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LanguagesApi();

            try
            {
                // Get Languages
                SmarteditLanguageListData result = apiInstance.getLanguages();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LanguagesApi.getLanguages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLanguagesApi();

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LanguagesApi->new();

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LanguagesApi()

try: 
    # Get Languages
    api_response = api_instance.get_languages()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LanguagesApi->getLanguages: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getTranslationMap

Get a Translation Map

Endpoint to retrieve translated data using the specified locale value


/v1/i18n/translations/{locale}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/i18n/translations/{locale}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LanguagesApi;

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

public class LanguagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        LanguagesApi apiInstance = new LanguagesApi();
        String locale = locale_example; // String | Locale identifier consisting of a language and region
        try {
            languageMap result = apiInstance.getTranslationMap(locale);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguagesApi#getTranslationMap");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LanguagesApi;

public class LanguagesApiExample {

    public static void main(String[] args) {
        LanguagesApi apiInstance = new LanguagesApi();
        String locale = locale_example; // String | Locale identifier consisting of a language and region
        try {
            languageMap result = apiInstance.getTranslationMap(locale);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguagesApi#getTranslationMap");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *locale = locale_example; // Locale identifier consisting of a language and region

LanguagesApi *apiInstance = [[LanguagesApi alloc] init];

// Get a Translation Map
[apiInstance getTranslationMapWith:locale
              completionHandler: ^(languageMap output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.LanguagesApi()
var locale = locale_example; // {{String}} Locale identifier consisting of a language and region

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LanguagesApi();
            var locale = locale_example;  // String | Locale identifier consisting of a language and region

            try
            {
                // Get a Translation Map
                languageMap result = apiInstance.getTranslationMap(locale);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LanguagesApi.getTranslationMap: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiLanguagesApi();
$locale = locale_example; // String | Locale identifier consisting of a language and region

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::LanguagesApi->new();
my $locale = locale_example; # String | Locale identifier consisting of a language and region

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.LanguagesApi()
locale = locale_example # String | Locale identifier consisting of a language and region

try: 
    # Get a Translation Map
    api_response = api_instance.get_translation_map(locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LanguagesApi->getTranslationMap: %s\n" % e)

Parameters

Path parameters
Name Description
locale*
String
Locale identifier consisting of a language and region
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


Themes

getCurrentUserTheme

Get Current User Theme

Endpoint to retrieve current login user theme


/v1/themes/currentUser/theme

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/themes/currentUser/theme?langIsoCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ThemesApi;

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

public class ThemesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ThemesApi apiInstance = new ThemesApi();
        String langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language
        try {
            Theme result = apiInstance.getCurrentUserTheme(langIsoCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#getCurrentUserTheme");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ThemesApi;

public class ThemesApiExample {

    public static void main(String[] args) {
        ThemesApi apiInstance = new ThemesApi();
        String langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language
        try {
            Theme result = apiInstance.getCurrentUserTheme(langIsoCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#getCurrentUserTheme");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *langIsoCode = langIsoCode_example; // The language iso code is used to return the Themes in the desired language (optional)

ThemesApi *apiInstance = [[ThemesApi alloc] init];

// Get Current User Theme
[apiInstance getCurrentUserThemeWith:langIsoCode
              completionHandler: ^(Theme output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ThemesApi()
var opts = { 
  'langIsoCode': langIsoCode_example // {{String}} The language iso code is used to return the Themes in the desired language
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCurrentUserTheme(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ThemesApi();
            var langIsoCode = langIsoCode_example;  // String | The language iso code is used to return the Themes in the desired language (optional) 

            try
            {
                // Get Current User Theme
                Theme result = apiInstance.getCurrentUserTheme(langIsoCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ThemesApi.getCurrentUserTheme: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiThemesApi();
$langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ThemesApi->new();
my $langIsoCode = langIsoCode_example; # String | The language iso code is used to return the Themes in the desired language

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ThemesApi()
langIsoCode = langIsoCode_example # String | The language iso code is used to return the Themes in the desired language (optional)

try: 
    # Get Current User Theme
    api_response = api_instance.get_current_user_theme(langIsoCode=langIsoCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ThemesApi->getCurrentUserTheme: %s\n" % e)

Parameters

Query parameters
Name Description
langIsoCode
String
The language iso code is used to return the Themes in the desired language

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getThemeByCode

Get Theme by code

Endpoint to get theme by code


/v1/themes/{themeCode}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/themes/{themeCode}?langIsoCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ThemesApi;

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

public class ThemesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ThemesApi apiInstance = new ThemesApi();
        String themeCode = themeCode_example; // String | Theme data identifier
        String langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language
        try {
            Theme result = apiInstance.getThemeByCode(themeCode, langIsoCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#getThemeByCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ThemesApi;

public class ThemesApiExample {

    public static void main(String[] args) {
        ThemesApi apiInstance = new ThemesApi();
        String themeCode = themeCode_example; // String | Theme data identifier
        String langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language
        try {
            Theme result = apiInstance.getThemeByCode(themeCode, langIsoCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#getThemeByCode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *themeCode = themeCode_example; // Theme data identifier
String *langIsoCode = langIsoCode_example; // The language iso code is used to return the Themes in the desired language (optional)

ThemesApi *apiInstance = [[ThemesApi alloc] init];

// Get Theme by code
[apiInstance getThemeByCodeWith:themeCode
    langIsoCode:langIsoCode
              completionHandler: ^(Theme output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ThemesApi()
var themeCode = themeCode_example; // {{String}} Theme data identifier
var opts = { 
  'langIsoCode': langIsoCode_example // {{String}} The language iso code is used to return the Themes in the desired language
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getThemeByCode(themeCode, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ThemesApi();
            var themeCode = themeCode_example;  // String | Theme data identifier
            var langIsoCode = langIsoCode_example;  // String | The language iso code is used to return the Themes in the desired language (optional) 

            try
            {
                // Get Theme by code
                Theme result = apiInstance.getThemeByCode(themeCode, langIsoCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ThemesApi.getThemeByCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiThemesApi();
$themeCode = themeCode_example; // String | Theme data identifier
$langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language

try {
    $result = $api_instance->getThemeByCode($themeCode, $langIsoCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ThemesApi->getThemeByCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ThemesApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ThemesApi->new();
my $themeCode = themeCode_example; # String | Theme data identifier
my $langIsoCode = langIsoCode_example; # String | The language iso code is used to return the Themes in the desired language

eval { 
    my $result = $api_instance->getThemeByCode(themeCode => $themeCode, langIsoCode => $langIsoCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ThemesApi->getThemeByCode: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ThemesApi()
themeCode = themeCode_example # String | Theme data identifier
langIsoCode = langIsoCode_example # String | The language iso code is used to return the Themes in the desired language (optional)

try: 
    # Get Theme by code
    api_response = api_instance.get_theme_by_code(themeCode, langIsoCode=langIsoCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ThemesApi->getThemeByCode: %s\n" % e)

Parameters

Path parameters
Name Description
themeCode*
String
Theme data identifier
Required
Query parameters
Name Description
langIsoCode
String
The language iso code is used to return the Themes in the desired language

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getThemes

Get Themes

Endpoint to retrieve themes


/v1/themes

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/xml,application/json"\
"http://localhost:9001/smarteditwebservices/v1/themes?langIsoCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ThemesApi;

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

public class ThemesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ThemesApi apiInstance = new ThemesApi();
        String langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language
        try {
            ThemeList result = apiInstance.getThemes(langIsoCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#getThemes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ThemesApi;

public class ThemesApiExample {

    public static void main(String[] args) {
        ThemesApi apiInstance = new ThemesApi();
        String langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language
        try {
            ThemeList result = apiInstance.getThemes(langIsoCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#getThemes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *langIsoCode = langIsoCode_example; // The language iso code is used to return the Themes in the desired language (optional)

ThemesApi *apiInstance = [[ThemesApi alloc] init];

// Get Themes
[apiInstance getThemesWith:langIsoCode
              completionHandler: ^(ThemeList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ThemesApi()
var opts = { 
  'langIsoCode': langIsoCode_example // {{String}} The language iso code is used to return the Themes in the desired language
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getThemes(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ThemesApi();
            var langIsoCode = langIsoCode_example;  // String | The language iso code is used to return the Themes in the desired language (optional) 

            try
            {
                // Get Themes
                ThemeList result = apiInstance.getThemes(langIsoCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ThemesApi.getThemes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiThemesApi();
$langIsoCode = langIsoCode_example; // String | The language iso code is used to return the Themes in the desired language

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ThemesApi->new();
my $langIsoCode = langIsoCode_example; # String | The language iso code is used to return the Themes in the desired language

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ThemesApi()
langIsoCode = langIsoCode_example # String | The language iso code is used to return the Themes in the desired language (optional)

try: 
    # Get Themes
    api_response = api_instance.get_themes(langIsoCode=langIsoCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ThemesApi->getThemes: %s\n" % e)

Parameters

Query parameters
Name Description
langIsoCode
String
The language iso code is used to return the Themes in the desired language

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


updateCurrentUserTheme

Update Current User Theme

Endpoint to update current login user theme


/v1/themes/currentUser/theme/{themeCode}

Usage and SDK Samples

curl -X PUT\
\
\
"http://localhost:9001/smarteditwebservices/v1/themes/currentUser/theme/{themeCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ThemesApi;

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

public class ThemesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        ThemesApi apiInstance = new ThemesApi();
        String themeCode = themeCode_example; // String | Theme data identifier
        try {
            apiInstance.updateCurrentUserTheme(themeCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#updateCurrentUserTheme");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ThemesApi;

public class ThemesApiExample {

    public static void main(String[] args) {
        ThemesApi apiInstance = new ThemesApi();
        String themeCode = themeCode_example; // String | Theme data identifier
        try {
            apiInstance.updateCurrentUserTheme(themeCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling ThemesApi#updateCurrentUserTheme");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *themeCode = themeCode_example; // Theme data identifier

ThemesApi *apiInstance = [[ThemesApi alloc] init];

// Update Current User Theme
[apiInstance updateCurrentUserThemeWith:themeCode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmarteditWebservices = require('smartedit_webservices');
var defaultClient = SmarteditWebservices.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new SmarteditWebservices.ThemesApi()
var themeCode = themeCode_example; // {{String}} Theme data identifier

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateCurrentUserTheme(themeCode, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ThemesApi();
            var themeCode = themeCode_example;  // String | Theme data identifier

            try
            {
                // Update Current User Theme
                apiInstance.updateCurrentUserTheme(themeCode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ThemesApi.updateCurrentUserTheme: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiThemesApi();
$themeCode = themeCode_example; // String | Theme data identifier

try {
    $api_instance->updateCurrentUserTheme($themeCode);
} catch (Exception $e) {
    echo 'Exception when calling ThemesApi->updateCurrentUserTheme: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ThemesApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ThemesApi->new();
my $themeCode = themeCode_example; # String | Theme data identifier

eval { 
    $api_instance->updateCurrentUserTheme(themeCode => $themeCode);
};
if ($@) {
    warn "Exception when calling ThemesApi->updateCurrentUserTheme: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ThemesApi()
themeCode = themeCode_example # String | Theme data identifier

try: 
    # Update Current User Theme
    api_instance.update_current_user_theme(themeCode)
except ApiException as e:
    print("Exception when calling ThemesApi->updateCurrentUserTheme: %s\n" % e)

Parameters

Path parameters
Name Description
themeCode*
String
Theme data identifier
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found