Script Service API

Metadata

metadataGet

View the EDMX document for Script Service Integration Objects.

Requests for EDMX documents. The metadata is an Entity Data Model XML (EDMX) document that describes the entity types and their properties.


/$metadata

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/xml"\
"https://localhost:9002/odata2webservices/ScriptService/$metadata"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MetadataApi;

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

public class MetadataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

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

public class MetadataApiExample {

    public static void main(String[] args) {
        MetadataApi apiInstance = new MetadataApi();
        try {
            apiInstance.metadataGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling MetadataApi#metadataGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

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

// View the EDMX document for Script Service Integration Objects.
[apiInstance metadataGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class metadataGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new MetadataApi();

            try
            {
                // View the EDMX document for Script Service Integration Objects.
                apiInstance.metadataGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MetadataApi.metadataGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

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

try {
    $api_instance->metadataGet();
} catch (Exception $e) {
    echo 'Exception when calling MetadataApi->metadataGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MetadataApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    $api_instance->metadataGet();
};
if ($@) {
    warn "Exception when calling MetadataApi->metadataGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

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

try: 
    # View the EDMX document for Script Service Integration Objects.
    api_instance.metadata_get()
except ApiException as e:
    print("Exception when calling MetadataApi->metadataGet: %s\n" % e)

Parameters

Responses

Status: 200 - A valid EDMX schema.

Status: 401 - Unauthorized exception responses.

Status: 403 - Forbidden exception responses.


Scripts

scriptsGet

View Scripts.

Retrieves Scripts.


/Scripts

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts?$top=&$skip=&$filter=&$inlinecount=&$expand="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        ScriptsApi apiInstance = new ScriptsApi();
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        Integer $top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
        Integer $skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
        String $filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
        String $inlinecount = ; // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
        String $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
        try {
            Wrapper result = apiInstance.scriptsGet(acceptLanguage, $top, $skip, $filter, $inlinecount, $expand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScriptsApi;

public class ScriptsApiExample {

    public static void main(String[] args) {
        ScriptsApi apiInstance = new ScriptsApi();
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        Integer $top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
        Integer $skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
        String $filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
        String $inlinecount = ; // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
        String $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
        try {
            Wrapper result = apiInstance.scriptsGet(acceptLanguage, $top, $skip, $filter, $inlinecount, $expand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *acceptLanguage = acceptLanguage_example; // Accept-Language header specifying the language localized data will be returned in. (optional)
Integer *$top = 56; // The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
Integer *$skip = 56; // The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
String *$filter = $filter_example; // A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html) (optional)
String *$inlinecount = ; // Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html) (optional)
String *$expand = $expand_example; // Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)

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

// View Scripts.
[apiInstance scriptsGetWith:acceptLanguage
    $top:$top
    $skip:$skip
    $filter:$filter
    $inlinecount:$inlinecount
    $expand:$expand
              completionHandler: ^(Wrapper output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new ScriptServiceApi.ScriptsApi()
var opts = { 
  'acceptLanguage': acceptLanguage_example, // {{String}} Accept-Language header specifying the language localized data will be returned in.
  '$top': 56, // {{Integer}} The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
  '$skip': 56, // {{Integer}} The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
  '$filter': $filter_example, // {{String}} A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
  '$inlinecount': , // {{String}} Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
  '$expand': $expand_example // {{String}} Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.scriptsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scriptsGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ScriptsApi();
            var acceptLanguage = acceptLanguage_example;  // String | Accept-Language header specifying the language localized data will be returned in. (optional) 
            var $top = 56;  // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional) 
            var $skip = 56;  // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional) 
            var $filter = $filter_example;  // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html) (optional) 
            var $inlinecount = new String(); // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html) (optional) 
            var $expand = $expand_example;  // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional) 

            try
            {
                // View Scripts.
                Wrapper result = apiInstance.scriptsGet(acceptLanguage, $top, $skip, $filter, $inlinecount, $expand);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScriptsApi.scriptsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiScriptsApi();
$acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
$$top = 56; // Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
$$skip = 56; // Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
$$filter = $filter_example; // String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
$$inlinecount = ; // String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
$$expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)

try {
    $result = $api_instance->scriptsGet($acceptLanguage, $$top, $$skip, $$filter, $$inlinecount, $$expand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScriptsApi->scriptsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::ScriptsApi->new();
my $acceptLanguage = acceptLanguage_example; # String | Accept-Language header specifying the language localized data will be returned in.
my $$top = 56; # Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
my $$skip = 56; # Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
my $$filter = $filter_example; # String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
my $$inlinecount = ; # String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
my $$expand = $expand_example; # String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)

eval { 
    my $result = $api_instance->scriptsGet(acceptLanguage => $acceptLanguage, $top => $$top, $skip => $$skip, $filter => $$filter, $inlinecount => $$inlinecount, $expand => $$expand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScriptsApi->scriptsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.ScriptsApi()
acceptLanguage = acceptLanguage_example # String | Accept-Language header specifying the language localized data will be returned in. (optional)
$top = 56 # Integer | The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
$skip = 56 # Integer | The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html) (optional)
$filter = $filter_example # String | A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html) (optional)
$inlinecount =  # String | Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html) (optional)
$expand = $expand_example # String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)

try: 
    # View Scripts.
    api_response = api_instance.scripts_get(acceptLanguage=acceptLanguage, $top=$top, $skip=$skip, $filter=$filter, $inlinecount=$inlinecount, $expand=$expand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScriptsApi->scriptsGet: %s\n" % e)

Parameters

Header parameters
Name Description
Accept-Language
String
Accept-Language header specifying the language localized data will be returned in.
Query parameters
Name Description
$top
Integer
The maximum number of items to return. If it's greater than or equal to the number of matching items existing in the platform, then all items will be returned. If it's less than the number of matching items in the platform, a subset containing top number of items will be returned. See [$top](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
$skip
Integer
The number of matching items to skip over before returning the result set. If skip is larger than the number of matching items then no items will be returned. See [$skip](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/cf34b9bbd7d94e0c9eb37e5147d20da1.html)
$filter
String
A predicate expression for selecting a subset of the items identified by the resource path. See [$filter](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/eaaf8deda5b34842b6857ed1e5f0dab6.html)
$inlinecount
String
Specifies if the total number of items should be included in the response. See [$inlinecount](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/04feab0a91ee4763939eeafc95d8d386.html)
$expand
String
Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)

Responses

Status: 200 - Retrieved entities.

Status: 400 - Error responses that may occur due to an exception related to the filter query parameter.

Status: 401 - Unauthorized exception responses.

Status: 403 - Forbidden exception responses.

Status: 404 - An error response that may occur when the requested property is not defined on the Script EntityType.


scriptsIntegrationKeyDelete

Delete an Script.

Deletes the Script with the corresponding integrationKey.


/Scripts(%27{integrationKey}%27)

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts(%27{integrationKey}%27)"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        ScriptsApi apiInstance = new ScriptsApi();
        String integrationKey = integrationKey_example; // String | key: integrationKey
        String integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
        try {
            apiInstance.scriptsIntegrationKeyDelete(integrationKey, integrationMessageId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsIntegrationKeyDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScriptsApi;

public class ScriptsApiExample {

    public static void main(String[] args) {
        ScriptsApi apiInstance = new ScriptsApi();
        String integrationKey = integrationKey_example; // String | key: integrationKey
        String integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
        try {
            apiInstance.scriptsIntegrationKeyDelete(integrationKey, integrationMessageId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsIntegrationKeyDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *integrationKey = integrationKey_example; // key: integrationKey
String *integrationMessageId = integrationMessageId_example; // The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional)

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

// Delete an Script.
[apiInstance scriptsIntegrationKeyDeleteWith:integrationKey
    integrationMessageId:integrationMessageId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new ScriptServiceApi.ScriptsApi()
var integrationKey = integrationKey_example; // {{String}} key: integrationKey
var opts = { 
  'integrationMessageId': integrationMessageId_example // {{String}} The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.scriptsIntegrationKeyDelete(integrationKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scriptsIntegrationKeyDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ScriptsApi();
            var integrationKey = integrationKey_example;  // String | key: integrationKey
            var integrationMessageId = integrationMessageId_example;  // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional) 

            try
            {
                // Delete an Script.
                apiInstance.scriptsIntegrationKeyDelete(integrationKey, integrationMessageId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScriptsApi.scriptsIntegrationKeyDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiScriptsApi();
$integrationKey = integrationKey_example; // String | key: integrationKey
$integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

try {
    $api_instance->scriptsIntegrationKeyDelete($integrationKey, $integrationMessageId);
} catch (Exception $e) {
    echo 'Exception when calling ScriptsApi->scriptsIntegrationKeyDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::ScriptsApi->new();
my $integrationKey = integrationKey_example; # String | key: integrationKey
my $integrationMessageId = integrationMessageId_example; # String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

eval { 
    $api_instance->scriptsIntegrationKeyDelete(integrationKey => $integrationKey, integrationMessageId => $integrationMessageId);
};
if ($@) {
    warn "Exception when calling ScriptsApi->scriptsIntegrationKeyDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.ScriptsApi()
integrationKey = integrationKey_example # String | key: integrationKey
integrationMessageId = integrationMessageId_example # String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional)

try: 
    # Delete an Script.
    api_instance.scripts_integration_key_delete(integrationKey, integrationMessageId=integrationMessageId)
except ApiException as e:
    print("Exception when calling ScriptsApi->scriptsIntegrationKeyDelete: %s\n" % e)

Parameters

Path parameters
Name Description
integrationKey*
String
key: integrationKey
Required
Header parameters
Name Description
integrationMessageId
String
The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

Responses

Status: 200 - Indicates that the Script was successfully deleted.

Status: 400 - Error responses that may occur when a DELETE request is made in an attempt to delete an item.

Status: 401 - Unauthorized exception responses.

Status: 403 - Forbidden exception responses.

Status: 404 - Not Found exception responses for GET operations.


scriptsIntegrationKeyGet

View an individual Script.

Retrieves an Script by its integrationKey.


/Scripts(%27{integrationKey}%27)

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts(%27{integrationKey}%27)?$expand="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        ScriptsApi apiInstance = new ScriptsApi();
        String integrationKey = integrationKey_example; // String | key: integrationKey
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        String $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
        try {
            Script_1 result = apiInstance.scriptsIntegrationKeyGet(integrationKey, acceptLanguage, $expand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsIntegrationKeyGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScriptsApi;

public class ScriptsApiExample {

    public static void main(String[] args) {
        ScriptsApi apiInstance = new ScriptsApi();
        String integrationKey = integrationKey_example; // String | key: integrationKey
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        String $expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
        try {
            Script_1 result = apiInstance.scriptsIntegrationKeyGet(integrationKey, acceptLanguage, $expand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsIntegrationKeyGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *integrationKey = integrationKey_example; // key: integrationKey
String *acceptLanguage = acceptLanguage_example; // Accept-Language header specifying the language localized data will be returned in. (optional)
String *$expand = $expand_example; // Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)

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

// View an individual Script.
[apiInstance scriptsIntegrationKeyGetWith:integrationKey
    acceptLanguage:acceptLanguage
    $expand:$expand
              completionHandler: ^(Script_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new ScriptServiceApi.ScriptsApi()
var integrationKey = integrationKey_example; // {{String}} key: integrationKey
var opts = { 
  'acceptLanguage': acceptLanguage_example, // {{String}} Accept-Language header specifying the language localized data will be returned in.
  '$expand': $expand_example // {{String}} Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.scriptsIntegrationKeyGet(integrationKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scriptsIntegrationKeyGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ScriptsApi();
            var integrationKey = integrationKey_example;  // String | key: integrationKey
            var acceptLanguage = acceptLanguage_example;  // String | Accept-Language header specifying the language localized data will be returned in. (optional) 
            var $expand = $expand_example;  // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional) 

            try
            {
                // View an individual Script.
                Script_1 result = apiInstance.scriptsIntegrationKeyGet(integrationKey, acceptLanguage, $expand);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScriptsApi.scriptsIntegrationKeyGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiScriptsApi();
$integrationKey = integrationKey_example; // String | key: integrationKey
$acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
$$expand = $expand_example; // String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)

try {
    $result = $api_instance->scriptsIntegrationKeyGet($integrationKey, $acceptLanguage, $$expand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScriptsApi->scriptsIntegrationKeyGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::ScriptsApi->new();
my $integrationKey = integrationKey_example; # String | key: integrationKey
my $acceptLanguage = acceptLanguage_example; # String | Accept-Language header specifying the language localized data will be returned in.
my $$expand = $expand_example; # String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)

eval { 
    my $result = $api_instance->scriptsIntegrationKeyGet(integrationKey => $integrationKey, acceptLanguage => $acceptLanguage, $expand => $$expand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScriptsApi->scriptsIntegrationKeyGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.ScriptsApi()
integrationKey = integrationKey_example # String | key: integrationKey
acceptLanguage = acceptLanguage_example # String | Accept-Language header specifying the language localized data will be returned in. (optional)
$expand = $expand_example # String | Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html) (optional)

try: 
    # View an individual Script.
    api_response = api_instance.scripts_integration_key_get(integrationKey, acceptLanguage=acceptLanguage, $expand=$expand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScriptsApi->scriptsIntegrationKeyGet: %s\n" % e)

Parameters

Path parameters
Name Description
integrationKey*
String
key: integrationKey
Required
Header parameters
Name Description
Accept-Language
String
Accept-Language header specifying the language localized data will be returned in.
Query parameters
Name Description
$expand
String
Specifies navigation properties for associated entries that will be inlined in the response body. By default, these navigation properties are represented as deferred links pointing to the item resource. See [$expand](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/d990bd1fbc98479d97078aa3890f5bb3.html)

Responses

Status: 200 - Retrieved entity.

Status: 400 - An error occurred because the format of the integrationKey does not match the same format that the EntityType's integration key format is in.

Status: 401 - Unauthorized exception responses.

Status: 403 - Forbidden exception responses.

Status: 404 - Not Found exception responses for GET operations.


scriptsIntegrationKeyPatch

Update an existing Script.

Updates the Script with the corresponding integrationKey. For more information about the patch behavior see [Script Service Examples](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/06826d6c778b4fc5bf763dd3234e9bfa.html)


/Scripts(%27{integrationKey}%27)

Usage and SDK Samples

curl -X PATCH\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts(%27{integrationKey}%27)"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        ScriptsApi apiInstance = new ScriptsApi();
        Script body = ; // Script | 
        String integrationKey = integrationKey_example; // String | key: integrationKey
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        String contentLanguage = contentLanguage_example; // String | Content-Language header specifying the language localized data will be persisted in.
        String prePersistHook = prePersistHook_example; // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String postPersistHook = postPersistHook_example; // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
        try {
            Wrapper_1 result = apiInstance.scriptsIntegrationKeyPatch(body, integrationKey, acceptLanguage, contentLanguage, prePersistHook, postPersistHook, integrationMessageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsIntegrationKeyPatch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScriptsApi;

public class ScriptsApiExample {

    public static void main(String[] args) {
        ScriptsApi apiInstance = new ScriptsApi();
        Script body = ; // Script | 
        String integrationKey = integrationKey_example; // String | key: integrationKey
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        String contentLanguage = contentLanguage_example; // String | Content-Language header specifying the language localized data will be persisted in.
        String prePersistHook = prePersistHook_example; // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String postPersistHook = postPersistHook_example; // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
        try {
            Wrapper_1 result = apiInstance.scriptsIntegrationKeyPatch(body, integrationKey, acceptLanguage, contentLanguage, prePersistHook, postPersistHook, integrationMessageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsIntegrationKeyPatch");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Script *body = ; // 
String *integrationKey = integrationKey_example; // key: integrationKey
String *acceptLanguage = acceptLanguage_example; // Accept-Language header specifying the language localized data will be returned in. (optional)
String *contentLanguage = contentLanguage_example; // Content-Language header specifying the language localized data will be persisted in. (optional)
String *prePersistHook = prePersistHook_example; // The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
String *postPersistHook = postPersistHook_example; // The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
String *integrationMessageId = integrationMessageId_example; // The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional)

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

// Update an existing Script.
[apiInstance scriptsIntegrationKeyPatchWith:body
    integrationKey:integrationKey
    acceptLanguage:acceptLanguage
    contentLanguage:contentLanguage
    prePersistHook:prePersistHook
    postPersistHook:postPersistHook
    integrationMessageId:integrationMessageId
              completionHandler: ^(Wrapper_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new ScriptServiceApi.ScriptsApi()
var body = ; // {{Script}} 
var integrationKey = integrationKey_example; // {{String}} key: integrationKey
var opts = { 
  'acceptLanguage': acceptLanguage_example // {{String}} Accept-Language header specifying the language localized data will be returned in.
  'contentLanguage': contentLanguage_example // {{String}} Content-Language header specifying the language localized data will be persisted in.
  'prePersistHook': prePersistHook_example // {{String}} The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
  'postPersistHook': postPersistHook_example // {{String}} The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
  'integrationMessageId': integrationMessageId_example // {{String}} The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.scriptsIntegrationKeyPatch(bodyintegrationKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scriptsIntegrationKeyPatchExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ScriptsApi();
            var body = new Script(); // Script | 
            var integrationKey = integrationKey_example;  // String | key: integrationKey
            var acceptLanguage = acceptLanguage_example;  // String | Accept-Language header specifying the language localized data will be returned in. (optional) 
            var contentLanguage = contentLanguage_example;  // String | Content-Language header specifying the language localized data will be persisted in. (optional) 
            var prePersistHook = prePersistHook_example;  // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional) 
            var postPersistHook = postPersistHook_example;  // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional) 
            var integrationMessageId = integrationMessageId_example;  // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional) 

            try
            {
                // Update an existing Script.
                Wrapper_1 result = apiInstance.scriptsIntegrationKeyPatch(body, integrationKey, acceptLanguage, contentLanguage, prePersistHook, postPersistHook, integrationMessageId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScriptsApi.scriptsIntegrationKeyPatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiScriptsApi();
$body = ; // Script | 
$integrationKey = integrationKey_example; // String | key: integrationKey
$acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
$contentLanguage = contentLanguage_example; // String | Content-Language header specifying the language localized data will be persisted in.
$prePersistHook = prePersistHook_example; // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
$postPersistHook = postPersistHook_example; // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
$integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

try {
    $result = $api_instance->scriptsIntegrationKeyPatch($body, $integrationKey, $acceptLanguage, $contentLanguage, $prePersistHook, $postPersistHook, $integrationMessageId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScriptsApi->scriptsIntegrationKeyPatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::ScriptsApi->new();
my $body = WWW::SwaggerClient::Object::Script->new(); # Script | 
my $integrationKey = integrationKey_example; # String | key: integrationKey
my $acceptLanguage = acceptLanguage_example; # String | Accept-Language header specifying the language localized data will be returned in.
my $contentLanguage = contentLanguage_example; # String | Content-Language header specifying the language localized data will be persisted in.
my $prePersistHook = prePersistHook_example; # String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
my $postPersistHook = postPersistHook_example; # String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
my $integrationMessageId = integrationMessageId_example; # String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

eval { 
    my $result = $api_instance->scriptsIntegrationKeyPatch(body => $body, integrationKey => $integrationKey, acceptLanguage => $acceptLanguage, contentLanguage => $contentLanguage, prePersistHook => $prePersistHook, postPersistHook => $postPersistHook, integrationMessageId => $integrationMessageId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScriptsApi->scriptsIntegrationKeyPatch: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.ScriptsApi()
body =  # Script | 
integrationKey = integrationKey_example # String | key: integrationKey
acceptLanguage = acceptLanguage_example # String | Accept-Language header specifying the language localized data will be returned in. (optional)
contentLanguage = contentLanguage_example # String | Content-Language header specifying the language localized data will be persisted in. (optional)
prePersistHook = prePersistHook_example # String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
postPersistHook = postPersistHook_example # String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
integrationMessageId = integrationMessageId_example # String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional)

try: 
    # Update an existing Script.
    api_response = api_instance.scripts_integration_key_patch(body, integrationKey, acceptLanguage=acceptLanguage, contentLanguage=contentLanguage, prePersistHook=prePersistHook, postPersistHook=postPersistHook, integrationMessageId=integrationMessageId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScriptsApi->scriptsIntegrationKeyPatch: %s\n" % e)

Parameters

Path parameters
Name Description
integrationKey*
String
key: integrationKey
Required
Header parameters
Name Description
Accept-Language
String
Accept-Language header specifying the language localized data will be returned in.
Content-Language
String
Content-Language header specifying the language localized data will be persisted in.
Pre-Persist-Hook
String
The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
Post-Persist-Hook
String
The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
integrationMessageId
String
The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
Body parameters
Name Description
body *

Responses

Status: 200 - Indicates the Script has been successfully updated.

Status: 400 - Error responses that may occur during an attempt to update an existing Item.

Status: 401 - Unauthorized exception responses.

Status: 403 - Forbidden exception responses.

Status: 404 - Not Found exception responses for GET operations.

Status: 415 - Provided Media-Type is not supported


scriptsPost

Create/Update Scripts.

Creates a new Script or updates an existing Script if a corresponding one is found. For more information about the post behavior see [Script Service Examples](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/06826d6c778b4fc5bf763dd3234e9bfa.html)


/Scripts

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        ScriptsApi apiInstance = new ScriptsApi();
        Scripts_body body = ; // Scripts_body | 
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        String contentLanguage = contentLanguage_example; // String | Content-Language header specifying the language localized data will be persisted in.
        String prePersistHook = prePersistHook_example; // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String postPersistHook = postPersistHook_example; // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
        try {
            Wrapper_1 result = apiInstance.scriptsPost(body, acceptLanguage, contentLanguage, prePersistHook, postPersistHook, integrationMessageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScriptsApi;

public class ScriptsApiExample {

    public static void main(String[] args) {
        ScriptsApi apiInstance = new ScriptsApi();
        Scripts_body body = ; // Scripts_body | 
        String acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
        String contentLanguage = contentLanguage_example; // String | Content-Language header specifying the language localized data will be persisted in.
        String prePersistHook = prePersistHook_example; // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String postPersistHook = postPersistHook_example; // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
        String integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
        try {
            Wrapper_1 result = apiInstance.scriptsPost(body, acceptLanguage, contentLanguage, prePersistHook, postPersistHook, integrationMessageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Scripts_body *body = ; // 
String *acceptLanguage = acceptLanguage_example; // Accept-Language header specifying the language localized data will be returned in. (optional)
String *contentLanguage = contentLanguage_example; // Content-Language header specifying the language localized data will be persisted in. (optional)
String *prePersistHook = prePersistHook_example; // The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
String *postPersistHook = postPersistHook_example; // The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
String *integrationMessageId = integrationMessageId_example; // The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional)

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

// Create/Update Scripts.
[apiInstance scriptsPostWith:body
    acceptLanguage:acceptLanguage
    contentLanguage:contentLanguage
    prePersistHook:prePersistHook
    postPersistHook:postPersistHook
    integrationMessageId:integrationMessageId
              completionHandler: ^(Wrapper_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new ScriptServiceApi.ScriptsApi()
var body = ; // {{Scripts_body}} 
var opts = { 
  'acceptLanguage': acceptLanguage_example // {{String}} Accept-Language header specifying the language localized data will be returned in.
  'contentLanguage': contentLanguage_example // {{String}} Content-Language header specifying the language localized data will be persisted in.
  'prePersistHook': prePersistHook_example // {{String}} The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
  'postPersistHook': postPersistHook_example // {{String}} The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
  'integrationMessageId': integrationMessageId_example // {{String}} The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.scriptsPost(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class scriptsPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ScriptsApi();
            var body = new Scripts_body(); // Scripts_body | 
            var acceptLanguage = acceptLanguage_example;  // String | Accept-Language header specifying the language localized data will be returned in. (optional) 
            var contentLanguage = contentLanguage_example;  // String | Content-Language header specifying the language localized data will be persisted in. (optional) 
            var prePersistHook = prePersistHook_example;  // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional) 
            var postPersistHook = postPersistHook_example;  // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional) 
            var integrationMessageId = integrationMessageId_example;  // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional) 

            try
            {
                // Create/Update Scripts.
                Wrapper_1 result = apiInstance.scriptsPost(body, acceptLanguage, contentLanguage, prePersistHook, postPersistHook, integrationMessageId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScriptsApi.scriptsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiScriptsApi();
$body = ; // Scripts_body | 
$acceptLanguage = acceptLanguage_example; // String | Accept-Language header specifying the language localized data will be returned in.
$contentLanguage = contentLanguage_example; // String | Content-Language header specifying the language localized data will be persisted in.
$prePersistHook = prePersistHook_example; // String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
$postPersistHook = postPersistHook_example; // String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
$integrationMessageId = integrationMessageId_example; // String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

try {
    $result = $api_instance->scriptsPost($body, $acceptLanguage, $contentLanguage, $prePersistHook, $postPersistHook, $integrationMessageId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScriptsApi->scriptsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::ScriptsApi->new();
my $body = WWW::SwaggerClient::Object::Scripts_body->new(); # Scripts_body | 
my $acceptLanguage = acceptLanguage_example; # String | Accept-Language header specifying the language localized data will be returned in.
my $contentLanguage = contentLanguage_example; # String | Content-Language header specifying the language localized data will be persisted in.
my $prePersistHook = prePersistHook_example; # String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
my $postPersistHook = postPersistHook_example; # String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
my $integrationMessageId = integrationMessageId_example; # String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.

eval { 
    my $result = $api_instance->scriptsPost(body => $body, acceptLanguage => $acceptLanguage, contentLanguage => $contentLanguage, prePersistHook => $prePersistHook, postPersistHook => $postPersistHook, integrationMessageId => $integrationMessageId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScriptsApi->scriptsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.ScriptsApi()
body =  # Scripts_body | 
acceptLanguage = acceptLanguage_example # String | Accept-Language header specifying the language localized data will be returned in. (optional)
contentLanguage = contentLanguage_example # String | Content-Language header specifying the language localized data will be persisted in. (optional)
prePersistHook = prePersistHook_example # String | The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
postPersistHook = postPersistHook_example # String | The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html) (optional)
integrationMessageId = integrationMessageId_example # String | The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request. (optional)

try: 
    # Create/Update Scripts.
    api_response = api_instance.scripts_post(body, acceptLanguage=acceptLanguage, contentLanguage=contentLanguage, prePersistHook=prePersistHook, postPersistHook=postPersistHook, integrationMessageId=integrationMessageId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScriptsApi->scriptsPost: %s\n" % e)

Parameters

Header parameters
Name Description
Accept-Language
String
Accept-Language header specifying the language localized data will be returned in.
Content-Language
String
Content-Language header specifying the language localized data will be persisted in.
Pre-Persist-Hook
String
The execute method for the PrePersistHook invokes right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
Post-Persist-Hook
String
The execute method for the PostPersistHook invokes right after the item persists in the SAP Commerce platform. For more details see [Persistence Hooks](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/028a2af06880407cb4b1c0624693dadd.html)
integrationMessageId
String
The integrationMessageId header allows the user to trace any [InboundRequest](https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/latest/en-US/485b479c3b294d88916edea277e409a4.html) back to the original POST, PATCH or DELETE request.
Body parameters
Name Description
body *

Responses

Status: 201 - Indicates the Script has been successfully created/updated.

Status: 400 - Error occurring during an attempt to create a new Item.

Status: 401 - Unauthorized exception responses.

Status: 403 - Forbidden exception responses.

Status: 415 - Provided Media-Type is not supported


scriptscountGet

View count for of all Scripts.

Displays the total count of Scripts.


/Scripts/$count

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: text/plain"\
"https://localhost:9002/odata2webservices/ScriptService/Scripts/$count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScriptsApi;

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

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

public class ScriptsApiExample {

    public static void main(String[] args) {
        ScriptsApi apiInstance = new ScriptsApi();
        try {
            'String' result = apiInstance.scriptscountGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScriptsApi#scriptscountGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

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

// View count for of all Scripts.
[apiInstance scriptscountGetWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ScriptServiceApi = require('script_service_api');
var defaultClient = ScriptServiceApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class scriptscountGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ScriptsApi();

            try
            {
                // View count for of all Scripts.
                'String' result = apiInstance.scriptscountGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScriptsApi.scriptscountGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

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

try {
    $result = $api_instance->scriptscountGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ScriptsApi->scriptscountGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScriptsApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->scriptscountGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScriptsApi->scriptscountGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

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

try: 
    # View count for of all Scripts.
    api_response = api_instance.scriptscount_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScriptsApi->scriptscountGet: %s\n" % e)

Parameters

Responses

Status: 200 - A success response displaying the total count of Scripts.