Updates an existing configuration according to the provided integration key. For more information about updates, see [Updating Outbound Sync Configurations](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/f54e7fd3374344c685c56aada1a2b496.html).
curl -X PATCH\
-H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://localhost:9002/odata2webservices/OutboundChannelConfig/OutboundChannelConfigurations(%27{integrationKey}%27)"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OutboundChannelConfigurationsApi;
import java.io.File;
import java.util.*;
public class OutboundChannelConfigurationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuthentication
HttpBasicAuth basicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("basicAuthentication");
basicAuthentication.setUsername("YOUR USERNAME");
basicAuthentication.setPassword("YOUR PASSWORD");
OutboundChannelConfigurationsApi apiInstance = new OutboundChannelConfigurationsApi();
OutboundChannelConfiguration body = ; // OutboundChannelConfiguration | Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
String integrationKey = integrationKey_example; // String | Unique identifier for an EDMX entity.
String prePersistHook = prePersistHook_example; // String | Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
String postPersistHook = postPersistHook_example; // String | Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
String integrationMessageId = integrationMessageId_example; // String | Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html).
try {
Wrapper_1 result = apiInstance.outboundChannelConfigurationsIntegrationKeyPatch(body, integrationKey, prePersistHook, postPersistHook, integrationMessageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OutboundChannelConfigurationsApi#outboundChannelConfigurationsIntegrationKeyPatch");
e.printStackTrace();
}
}
}
import io.swagger.client.api.OutboundChannelConfigurationsApi;
public class OutboundChannelConfigurationsApiExample {
public static void main(String[] args) {
OutboundChannelConfigurationsApi apiInstance = new OutboundChannelConfigurationsApi();
OutboundChannelConfiguration body = ; // OutboundChannelConfiguration | Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
String integrationKey = integrationKey_example; // String | Unique identifier for an EDMX entity.
String prePersistHook = prePersistHook_example; // String | Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
String postPersistHook = postPersistHook_example; // String | Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
String integrationMessageId = integrationMessageId_example; // String | Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html).
try {
Wrapper_1 result = apiInstance.outboundChannelConfigurationsIntegrationKeyPatch(body, integrationKey, prePersistHook, postPersistHook, integrationMessageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OutboundChannelConfigurationsApi#outboundChannelConfigurationsIntegrationKeyPatch");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
OutboundChannelConfiguration *body = ; // Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
String *integrationKey = integrationKey_example; // Unique identifier for an EDMX entity.
String *prePersistHook = prePersistHook_example; // Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html). (optional)
String *postPersistHook = postPersistHook_example; // Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html). (optional)
String *integrationMessageId = integrationMessageId_example; // Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html). (optional)
OutboundChannelConfigurationsApi *apiInstance = [[OutboundChannelConfigurationsApi alloc] init];
// Updates an outbound channel configuration.
[apiInstance outboundChannelConfigurationsIntegrationKeyPatchWith:body
integrationKey:integrationKey
prePersistHook:prePersistHook
postPersistHook:postPersistHook
integrationMessageId:integrationMessageId
completionHandler: ^(Wrapper_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OutboundChannelConfiguration = require('outbound_channel_configuration');
var defaultClient = OutboundChannelConfiguration.ApiClient.instance;
// Configure HTTP basic authorization: basicAuthentication
var basicAuthentication = defaultClient.authentications['basicAuthentication'];
basicAuthentication.username = 'YOUR USERNAME'
basicAuthentication.password = 'YOUR PASSWORD'
var api = new OutboundChannelConfiguration.OutboundChannelConfigurationsApi()
var body = ; // {{OutboundChannelConfiguration}} Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
var integrationKey = integrationKey_example; // {{String}} Unique identifier for an EDMX entity.
var opts = {
'prePersistHook': prePersistHook_example // {{String}} Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
'postPersistHook': postPersistHook_example // {{String}} Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
'integrationMessageId': integrationMessageId_example // {{String}} Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html).
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.outboundChannelConfigurationsIntegrationKeyPatch(bodyintegrationKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class outboundChannelConfigurationsIntegrationKeyPatchExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuthentication
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OutboundChannelConfigurationsApi();
var body = new OutboundChannelConfiguration(); // OutboundChannelConfiguration | Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
var integrationKey = integrationKey_example; // String | Unique identifier for an EDMX entity.
var prePersistHook = prePersistHook_example; // String | Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html). (optional)
var postPersistHook = postPersistHook_example; // String | Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html). (optional)
var integrationMessageId = integrationMessageId_example; // String | Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html). (optional)
try
{
// Updates an outbound channel configuration.
Wrapper_1 result = apiInstance.outboundChannelConfigurationsIntegrationKeyPatch(body, integrationKey, prePersistHook, postPersistHook, integrationMessageId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OutboundChannelConfigurationsApi.outboundChannelConfigurationsIntegrationKeyPatch: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\ApiOutboundChannelConfigurationsApi();
$body = ; // OutboundChannelConfiguration | Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
$integrationKey = integrationKey_example; // String | Unique identifier for an EDMX entity.
$prePersistHook = prePersistHook_example; // String | Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
$postPersistHook = postPersistHook_example; // String | Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
$integrationMessageId = integrationMessageId_example; // String | Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html).
try {
$result = $api_instance->outboundChannelConfigurationsIntegrationKeyPatch($body, $integrationKey, $prePersistHook, $postPersistHook, $integrationMessageId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OutboundChannelConfigurationsApi->outboundChannelConfigurationsIntegrationKeyPatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OutboundChannelConfigurationsApi;
# Configure HTTP basic authorization: basicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::OutboundChannelConfigurationsApi->new();
my $body = WWW::SwaggerClient::Object::OutboundChannelConfiguration->new(); # OutboundChannelConfiguration | Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
my $integrationKey = integrationKey_example; # String | Unique identifier for an EDMX entity.
my $prePersistHook = prePersistHook_example; # String | Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
my $postPersistHook = postPersistHook_example; # String | Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html).
my $integrationMessageId = integrationMessageId_example; # String | Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html).
eval {
my $result = $api_instance->outboundChannelConfigurationsIntegrationKeyPatch(body => $body, integrationKey => $integrationKey, prePersistHook => $prePersistHook, postPersistHook => $postPersistHook, integrationMessageId => $integrationMessageId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling OutboundChannelConfigurationsApi->outboundChannelConfigurationsIntegrationKeyPatch: $@\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: basicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.OutboundChannelConfigurationsApi()
body = # OutboundChannelConfiguration | Note: The `code` of the outbound channel configuration cannot be modified because it's the integration key. It can be included in the payload.
integrationKey = integrationKey_example # String | Unique identifier for an EDMX entity.
prePersistHook = prePersistHook_example # String | Name of the pre-persist-hook which is invoked right before the Integration Object sent in the POST or PATCH request persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html). (optional)
postPersistHook = postPersistHook_example # String | Name of the post-persist-hook which is invoked right after the item persists in the SAP Commerce Cloud system. For more details, see [Persistence Hooks](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/028a2af06880407cb4b1c0624693dadd.html). (optional)
integrationMessageId = integrationMessageId_example # String | Header that allows the user to trace any inbound request back to the original POST, PATCH, or DELETE request. For more details, see [inboundrequest](https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/bad9b0b66bac476f8a4a5c4a08e4ab6b/485b479c3b294d88916edea277e409a4.html). (optional)
try:
# Updates an outbound channel configuration.
api_response = api_instance.outbound_channel_configurations_integration_key_patch(body, integrationKey, prePersistHook=prePersistHook, postPersistHook=postPersistHook, integrationMessageId=integrationMessageId)
pprint(api_response)
except ApiException as e:
print("Exception when calling OutboundChannelConfigurationsApi->outboundChannelConfigurationsIntegrationKeyPatch: %s\n" % e)