createItemToScmAssociationsAsync
/items/associations/supplychainmaps
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json,text/json,application/*+json,application/xml,text/xml,application/*+xml"\
"//items/associations/supplychainmaps"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssociationApi;
import java.io.File;
import java.util.*;
public class AssociationApiExample {
public static void main(String[] args) {
AssociationApi apiInstance = new AssociationApi();
String accept = accept_example; // String |
String authorization = authorization_example; // String |
String contentType = contentType_example; // String |
Date costcoTimestamp = 2013-10-20T19:20:30+01:00; // Date |
String costcoSendingApplication = costcoSendingApplication_example; // String |
String costcoUserId = costcoUserId_example; // String |
UUID costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
array[MaintainAssociationRequest] body = ; // array[MaintainAssociationRequest] |
try {
apiInstance.createItemToScmAssociationsAsync(accept, authorization, contentType, costcoTimestamp, costcoSendingApplication, costcoUserId, costcoTrackingId, body);
} catch (ApiException e) {
System.err.println("Exception when calling AssociationApi#createItemToScmAssociationsAsync");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AssociationApi;
public class AssociationApiExample {
public static void main(String[] args) {
AssociationApi apiInstance = new AssociationApi();
String accept = accept_example; // String |
String authorization = authorization_example; // String |
String contentType = contentType_example; // String |
Date costcoTimestamp = 2013-10-20T19:20:30+01:00; // Date |
String costcoSendingApplication = costcoSendingApplication_example; // String |
String costcoUserId = costcoUserId_example; // String |
UUID costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
array[MaintainAssociationRequest] body = ; // array[MaintainAssociationRequest] |
try {
apiInstance.createItemToScmAssociationsAsync(accept, authorization, contentType, costcoTimestamp, costcoSendingApplication, costcoUserId, costcoTrackingId, body);
} catch (ApiException e) {
System.err.println("Exception when calling AssociationApi#createItemToScmAssociationsAsync");
e.printStackTrace();
}
}
}
String *accept = accept_example; //
String *authorization = authorization_example; //
String *contentType = contentType_example; //
Date *costcoTimestamp = 2013-10-20T19:20:30+01:00; //
String *costcoSendingApplication = costcoSendingApplication_example; //
String *costcoUserId = costcoUserId_example; //
UUID *costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //
array[MaintainAssociationRequest] *body = ; // (optional)
AssociationApi *apiInstance = [[AssociationApi alloc] init];
[apiInstance createItemToScmAssociationsAsyncWith:accept
authorization:authorization
contentType:contentType
costcoTimestamp:costcoTimestamp
costcoSendingApplication:costcoSendingApplication
costcoUserId:costcoUserId
costcoTrackingId:costcoTrackingId
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ItemMaintenanceDataApi = require('item_maintenance_data_api');
var api = new ItemMaintenanceDataApi.AssociationApi()
var accept = accept_example; // {{String}}
var authorization = authorization_example; // {{String}}
var contentType = contentType_example; // {{String}}
var costcoTimestamp = 2013-10-20T19:20:30+01:00; // {{Date}}
var costcoSendingApplication = costcoSendingApplication_example; // {{String}}
var costcoUserId = costcoUserId_example; // {{String}}
var costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}}
var opts = {
'body': // {{array[MaintainAssociationRequest]}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.createItemToScmAssociationsAsync(acceptauthorizationcontentTypecostcoTimestampcostcoSendingApplicationcostcoUserIdcostcoTrackingId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createItemToScmAssociationsAsyncExample
{
public void main()
{
var apiInstance = new AssociationApi();
var accept = accept_example; // String |
var authorization = authorization_example; // String |
var contentType = contentType_example; // String |
var costcoTimestamp = 2013-10-20T19:20:30+01:00; // Date |
var costcoSendingApplication = costcoSendingApplication_example; // String |
var costcoUserId = costcoUserId_example; // String |
var costcoTrackingId = new UUID(); // UUID |
var body = new array[MaintainAssociationRequest](); // array[MaintainAssociationRequest] | (optional)
try
{
apiInstance.createItemToScmAssociationsAsync(accept, authorization, contentType, costcoTimestamp, costcoSendingApplication, costcoUserId, costcoTrackingId, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling AssociationApi.createItemToScmAssociationsAsync: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAssociationApi();
$accept = accept_example; // String |
$authorization = authorization_example; // String |
$contentType = contentType_example; // String |
$costcoTimestamp = 2013-10-20T19:20:30+01:00; // Date |
$costcoSendingApplication = costcoSendingApplication_example; // String |
$costcoUserId = costcoUserId_example; // String |
$costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
$body = ; // array[MaintainAssociationRequest] |
try {
$api_instance->createItemToScmAssociationsAsync($accept, $authorization, $contentType, $costcoTimestamp, $costcoSendingApplication, $costcoUserId, $costcoTrackingId, $body);
} catch (Exception $e) {
echo 'Exception when calling AssociationApi->createItemToScmAssociationsAsync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssociationApi;
my $api_instance = WWW::SwaggerClient::AssociationApi->new();
my $accept = accept_example; # String |
my $authorization = authorization_example; # String |
my $contentType = contentType_example; # String |
my $costcoTimestamp = 2013-10-20T19:20:30+01:00; # Date |
my $costcoSendingApplication = costcoSendingApplication_example; # String |
my $costcoUserId = costcoUserId_example; # String |
my $costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID |
my $body = [WWW::SwaggerClient::Object::array[MaintainAssociationRequest]->new()]; # array[MaintainAssociationRequest] |
eval {
$api_instance->createItemToScmAssociationsAsync(accept => $accept, authorization => $authorization, contentType => $contentType, costcoTimestamp => $costcoTimestamp, costcoSendingApplication => $costcoSendingApplication, costcoUserId => $costcoUserId, costcoTrackingId => $costcoTrackingId, body => $body);
};
if ($@) {
warn "Exception when calling AssociationApi->createItemToScmAssociationsAsync: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AssociationApi()
accept = accept_example # String |
authorization = authorization_example # String |
contentType = contentType_example # String |
costcoTimestamp = 2013-10-20T19:20:30+01:00 # Date |
costcoSendingApplication = costcoSendingApplication_example # String |
costcoUserId = costcoUserId_example # String |
costcoTrackingId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |
body = # array[MaintainAssociationRequest] | (optional)
try:
api_instance.create_item_to_scm_associations_async(accept, authorization, contentType, costcoTimestamp, costcoSendingApplication, costcoUserId, costcoTrackingId, body=body)
except ApiException as e:
print("Exception when calling AssociationApi->createItemToScmAssociationsAsync: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
Accept* |
String
Required
|
Authorization* | |
Content-Type* |
String
Required
|
Costco-Timestamp* |
Date
(date-time)
Required
|
Costco-Sending-Application* |
String
Required
|
Costco-User-Id* |
String
Required
|
Costco-Tracking-Id* |
UUID
(uuid)
Required
|
Body parameters
Name | Description |
---|---|
body |