createProfileCOC
Create profile for contract object of contract.
/api/sdm/seprom/coc/{cocId}/create
Usage and SDK Samples
curl -X POST "https://localhost/sdm/services/rest/sdm/api/sdm/seprom/coc/{cocId}/create?distributorId=&eicPoD=&group=&productId=&dateFrom=&dateTo="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SdmApi;
import java.io.File;
import java.util.*;
public class SdmApiExample {
public static void main(String[] args) {
SdmApi apiInstance = new SdmApi();
Integer cocId = 56; // Integer | Contract object identifier
String eicPoD = eicPoD_example; // String | EIC for point of delivery
Boolean group = true; // Boolean |
Integer productId = 56; // Integer | Product identifier
Integer distributorId = 56; // Integer |
date dateFrom = 2013-10-20; // date |
date dateTo = 2013-10-20; // date |
try {
apiInstance.createProfileCOC(cocId, eicPoD, group, productId, distributorId, dateFrom, dateTo);
} catch (ApiException e) {
System.err.println("Exception when calling SdmApi#createProfileCOC");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SdmApi;
public class SdmApiExample {
public static void main(String[] args) {
SdmApi apiInstance = new SdmApi();
Integer cocId = 56; // Integer | Contract object identifier
String eicPoD = eicPoD_example; // String | EIC for point of delivery
Boolean group = true; // Boolean |
Integer productId = 56; // Integer | Product identifier
Integer distributorId = 56; // Integer |
date dateFrom = 2013-10-20; // date |
date dateTo = 2013-10-20; // date |
try {
apiInstance.createProfileCOC(cocId, eicPoD, group, productId, distributorId, dateFrom, dateTo);
} catch (ApiException e) {
System.err.println("Exception when calling SdmApi#createProfileCOC");
e.printStackTrace();
}
}
}
Integer *cocId = 56; // Contract object identifier
String *eicPoD = eicPoD_example; // EIC for point of delivery
Boolean *group = true; //
Integer *productId = 56; // Product identifier
Integer *distributorId = 56; // (optional)
date *dateFrom = 2013-10-20; // (optional)
date *dateTo = 2013-10-20; // (optional)
SdmApi *apiInstance = [[SdmApi alloc] init];
// Create profile for contract object of contract.
[apiInstance createProfileCOCWith:cocId
eicPoD:eicPoD
group:group
productId:productId
distributorId:distributorId
dateFrom:dateFrom
dateTo:dateTo
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EmpiricaSdmApi = require('empirica_sdm_api');
var api = new EmpiricaSdmApi.SdmApi()
var cocId = 56; // {Integer} Contract object identifier
var eicPoD = eicPoD_example; // {String} EIC for point of delivery
var group = true; // {Boolean}
var productId = 56; // {Integer} Product identifier
var opts = {
'distributorId': 56, // {Integer}
'dateFrom': 2013-10-20, // {date}
'dateTo': 2013-10-20 // {date}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.createProfileCOC(cocId, eicPoD, group, productId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createProfileCOCExample
{
public void main()
{
var apiInstance = new SdmApi();
var cocId = 56; // Integer | Contract object identifier
var eicPoD = eicPoD_example; // String | EIC for point of delivery
var group = true; // Boolean |
var productId = 56; // Integer | Product identifier
var distributorId = 56; // Integer | (optional)
var dateFrom = 2013-10-20; // date | (optional)
var dateTo = 2013-10-20; // date | (optional)
try
{
// Create profile for contract object of contract.
apiInstance.createProfileCOC(cocId, eicPoD, group, productId, distributorId, dateFrom, dateTo);
}
catch (Exception e)
{
Debug.Print("Exception when calling SdmApi.createProfileCOC: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\SdmApi();
$cocId = 56; // Integer | Contract object identifier
$eicPoD = eicPoD_example; // String | EIC for point of delivery
$group = true; // Boolean |
$productId = 56; // Integer | Product identifier
$distributorId = 56; // Integer |
$dateFrom = 2013-10-20; // date |
$dateTo = 2013-10-20; // date |
try {
$api_instance->createProfileCOC($cocId, $eicPoD, $group, $productId, $distributorId, $dateFrom, $dateTo);
} catch (Exception $e) {
echo 'Exception when calling SdmApi->createProfileCOC: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SdmApi;
my $api_instance = WWW::SwaggerClient::SdmApi->new();
my $cocId = 56; # Integer | Contract object identifier
my $eicPoD = eicPoD_example; # String | EIC for point of delivery
my $group = true; # Boolean |
my $productId = 56; # Integer | Product identifier
my $distributorId = 56; # Integer |
my $dateFrom = 2013-10-20; # date |
my $dateTo = 2013-10-20; # date |
eval {
$api_instance->createProfileCOC(cocId => $cocId, eicPoD => $eicPoD, group => $group, productId => $productId, distributorId => $distributorId, dateFrom => $dateFrom, dateTo => $dateTo);
};
if ($@) {
warn "Exception when calling SdmApi->createProfileCOC: $@\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.SdmApi()
cocId = 56 # Integer | Contract object identifier
eicPoD = eicPoD_example # String | EIC for point of delivery
group = true # Boolean |
productId = 56 # Integer | Product identifier
distributorId = 56 # Integer | (optional)
dateFrom = 2013-10-20 # date | (optional)
dateTo = 2013-10-20 # date | (optional)
try:
# Create profile for contract object of contract.
api_instance.create_profile_coc(cocId, eicPoD, group, productId, distributorId=distributorId, dateFrom=dateFrom, dateTo=dateTo)
except ApiException as e:
print("Exception when calling SdmApi->createProfileCOC: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
cocId* |
Integer
(int32)
Contract object identifier
Required
|
Query parameters
Name | Description |
---|---|
distributorId |
Integer
(int32)
|
eicPoD* |
String
EIC for point of delivery
Required
|
group* |
Boolean
Required
|
productId* |
Integer
(int32)
Product identifier
Required
|
dateFrom |
date
(date)
|
dateTo |
date
(date)
|