deleteBulkHdChart
Delete a list of charts
/service/charts
Usage and SDK Samples
curl -X DELETE\
\
"//localhost:80//service/charts?chartsId=&project="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AllChartControllerApi;
import java.io.File;
import java.util.*;
public class AllChartControllerApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2schema
OAuth oauth2schema = (OAuth) defaultClient.getAuthentication("oauth2schema");
oauth2schema.setAccessToken("YOUR ACCESS TOKEN");
AllChartControllerApi apiInstance = new AllChartControllerApi();
array[Long] chartsId = ; // array[Long] | Requested chart Ids
Long project = 789; // Long | Project id
try {
apiInstance.deleteBulkHdChart(chartsId, project);
} catch (ApiException e) {
System.err.println("Exception when calling AllChartControllerApi#deleteBulkHdChart");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AllChartControllerApi;
public class AllChartControllerApiExample {
public static void main(String[] args) {
AllChartControllerApi apiInstance = new AllChartControllerApi();
array[Long] chartsId = ; // array[Long] | Requested chart Ids
Long project = 789; // Long | Project id
try {
apiInstance.deleteBulkHdChart(chartsId, project);
} catch (ApiException e) {
System.err.println("Exception when calling AllChartControllerApi#deleteBulkHdChart");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2schema)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[Long] *chartsId = ; // Requested chart Ids
Long *project = 789; // Project id (optional)
AllChartControllerApi *apiInstance = [[AllChartControllerApi alloc] init];
// Delete a list of charts
[apiInstance deleteBulkHdChartWith:chartsId
project:project
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DatachainCoreApi = require('datachain_core_api');
var defaultClient = DatachainCoreApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2schema
var oauth2schema = defaultClient.authentications['oauth2schema'];
oauth2schema.accessToken = "YOUR ACCESS TOKEN"
var api = new DatachainCoreApi.AllChartControllerApi()
var chartsId = ; // {{array[Long]}} Requested chart Ids
var opts = {
'project': 789 // {{Long}} Project id
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteBulkHdChart(chartsId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class deleteBulkHdChartExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2schema
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new AllChartControllerApi();
var chartsId = new array[Long](); // array[Long] | Requested chart Ids
var project = 789; // Long | Project id (optional)
try
{
// Delete a list of charts
apiInstance.deleteBulkHdChart(chartsId, project);
}
catch (Exception e)
{
Debug.Print("Exception when calling AllChartControllerApi.deleteBulkHdChart: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2schema
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\ApiAllChartControllerApi();
$chartsId = ; // array[Long] | Requested chart Ids
$project = 789; // Long | Project id
try {
$api_instance->deleteBulkHdChart($chartsId, $project);
} catch (Exception $e) {
echo 'Exception when calling AllChartControllerApi->deleteBulkHdChart: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AllChartControllerApi;
# Configure OAuth2 access token for authorization: oauth2schema
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::AllChartControllerApi->new();
my $chartsId = []; # array[Long] | Requested chart Ids
my $project = 789; # Long | Project id
eval {
$api_instance->deleteBulkHdChart(chartsId => $chartsId, project => $project);
};
if ($@) {
warn "Exception when calling AllChartControllerApi->deleteBulkHdChart: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2schema
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.AllChartControllerApi()
chartsId = # array[Long] | Requested chart Ids
project = 789 # Long | Project id (optional)
try:
# Delete a list of charts
api_instance.delete_bulk_hd_chart(chartsId, project=project)
except ApiException as e:
print("Exception when calling AllChartControllerApi->deleteBulkHdChart: %s\n" % e)
Parameters
Name | Description |
---|---|
chartsId* |
array[Long]
(int64)
Requested chart Ids
Required
|
project |
Long
(int64)
Project id
|