dELETEDataFeedsFeedNameTypesItemType
Deletes canonical items by type
/data-feeds/{feedName}/types/{itemType}
Usage and SDK Samples
curl -X DELETE\
-H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"https://{hostname}:{port}/{application}/{version}/data-feeds/{feedName}/types/{itemType}?rawFields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: Basic_Authentication
HttpBasicAuth Basic_Authentication = (HttpBasicAuth) defaultClient.getAuthentication("Basic_Authentication");
Basic_Authentication.setUsername("YOUR USERNAME");
Basic_Authentication.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
String itemType = itemType_example; // String | The type of raw items created through the data feed that will be operated on
String feedName = feedName_example; // String | Name of the data feed
String rawFields = rawFields_example; // String | JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
try {
result result = apiInstance.dELETEDataFeedsFeedNameTypesItemType(itemType, feedName, rawFields);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#dELETEDataFeedsFeedNameTypesItemType");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String itemType = itemType_example; // String | The type of raw items created through the data feed that will be operated on
String feedName = feedName_example; // String | Name of the data feed
String rawFields = rawFields_example; // String | JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
try {
result result = apiInstance.dELETEDataFeedsFeedNameTypesItemType(itemType, feedName, rawFields);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#dELETEDataFeedsFeedNameTypesItemType");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic_Authentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *itemType = itemType_example; // The type of raw items created through the data feed that will be operated on
String *feedName = feedName_example; // Name of the data feed
String *rawFields = rawFields_example; // JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance dELETEDataFeedsFeedNameTypesItemTypeWith:itemType
feedName:feedName
rawFields:rawFields
completionHandler: ^(result output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DataHub = require('data_hub');
var defaultClient = DataHub.ApiClient.instance;
// Configure HTTP basic authorization: Basic_Authentication
var Basic_Authentication = defaultClient.authentications['Basic_Authentication'];
Basic_Authentication.username = 'YOUR USERNAME'
Basic_Authentication.password = 'YOUR PASSWORD'
var api = new DataHub.DefaultApi()
var itemType = itemType_example; // {{String}} The type of raw items created through the data feed that will be operated on
var feedName = feedName_example; // {{String}} Name of the data feed
var rawFields = rawFields_example; // {{String}} JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.dELETEDataFeedsFeedNameTypesItemType(itemType, feedName, rawFields, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class dELETEDataFeedsFeedNameTypesItemTypeExample
{
public void main()
{
// Configure HTTP basic authorization: Basic_Authentication
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new DefaultApi();
var itemType = itemType_example; // String | The type of raw items created through the data feed that will be operated on
var feedName = feedName_example; // String | Name of the data feed
var rawFields = rawFields_example; // String | JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
try
{
result result = apiInstance.dELETEDataFeedsFeedNameTypesItemType(itemType, feedName, rawFields);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.dELETEDataFeedsFeedNameTypesItemType: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic_Authentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\ApiDefaultApi();
$itemType = itemType_example; // String | The type of raw items created through the data feed that will be operated on
$feedName = feedName_example; // String | Name of the data feed
$rawFields = rawFields_example; // String | JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
try {
$result = $api_instance->dELETEDataFeedsFeedNameTypesItemType($itemType, $feedName, $rawFields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->dELETEDataFeedsFeedNameTypesItemType: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: Basic_Authentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $itemType = itemType_example; # String | The type of raw items created through the data feed that will be operated on
my $feedName = feedName_example; # String | Name of the data feed
my $rawFields = rawFields_example; # String | JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
eval {
my $result = $api_instance->dELETEDataFeedsFeedNameTypesItemType(itemType => $itemType, feedName => $feedName, rawFields => $rawFields);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->dELETEDataFeedsFeedNameTypesItemType: $@\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: Basic_Authentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
itemType = itemType_example # String | The type of raw items created through the data feed that will be operated on
feedName = feedName_example # String | Name of the data feed
rawFields = rawFields_example # String | JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
try:
api_response = api_instance.d_elete_data_feeds_feed_name_types_item_type(itemType, feedName, rawFields)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->dELETEDataFeedsFeedNameTypesItemType: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| itemType* |
String
The type of raw items created through the data feed that will be operated on
Required
|
| feedName* |
String
Name of the data feed
Required
|
| Name | Description |
|---|---|
| rawFields* |
String
JSON formatted object of the names and values used to identify the raw item. This raw item is the source that the deleted items originated from.
Required
|