POST AddLFTagsToResource
{{baseUrl}}/AddLFTagsToResource
BODY json

{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/AddLFTagsToResource");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/AddLFTagsToResource" {:content-type :json
                                                                :form-params {:CatalogId ""
                                                                              :Resource {:Catalog ""
                                                                                         :Database ""
                                                                                         :Table ""
                                                                                         :TableWithColumns ""
                                                                                         :DataLocation ""
                                                                                         :DataCellsFilter ""
                                                                                         :LFTag ""
                                                                                         :LFTagPolicy ""}
                                                                              :LFTags [{:CatalogId ""
                                                                                        :TagKey ""
                                                                                        :TagValues ""}]}})
require "http/client"

url = "{{baseUrl}}/AddLFTagsToResource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/AddLFTagsToResource"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/AddLFTagsToResource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/AddLFTagsToResource"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/AddLFTagsToResource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 312

{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/AddLFTagsToResource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/AddLFTagsToResource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/AddLFTagsToResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/AddLFTagsToResource")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  LFTags: [
    {
      CatalogId: '',
      TagKey: '',
      TagValues: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/AddLFTagsToResource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/AddLFTagsToResource',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/AddLFTagsToResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"LFTags":[{"CatalogId":"","TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/AddLFTagsToResource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "LFTags": [\n    {\n      "CatalogId": "",\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/AddLFTagsToResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/AddLFTagsToResource',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/AddLFTagsToResource',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/AddLFTagsToResource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  LFTags: [
    {
      CatalogId: '',
      TagKey: '',
      TagValues: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/AddLFTagsToResource',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/AddLFTagsToResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"LFTags":[{"CatalogId":"","TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Resource": @{ @"Catalog": @"", @"Database": @"", @"Table": @"", @"TableWithColumns": @"", @"DataLocation": @"", @"DataCellsFilter": @"", @"LFTag": @"", @"LFTagPolicy": @"" },
                              @"LFTags": @[ @{ @"CatalogId": @"", @"TagKey": @"", @"TagValues": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/AddLFTagsToResource"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/AddLFTagsToResource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/AddLFTagsToResource",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Resource' => [
        'Catalog' => '',
        'Database' => '',
        'Table' => '',
        'TableWithColumns' => '',
        'DataLocation' => '',
        'DataCellsFilter' => '',
        'LFTag' => '',
        'LFTagPolicy' => ''
    ],
    'LFTags' => [
        [
                'CatalogId' => '',
                'TagKey' => '',
                'TagValues' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/AddLFTagsToResource', [
  'body' => '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/AddLFTagsToResource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'LFTags' => [
    [
        'CatalogId' => '',
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'LFTags' => [
    [
        'CatalogId' => '',
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/AddLFTagsToResource');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/AddLFTagsToResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/AddLFTagsToResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/AddLFTagsToResource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/AddLFTagsToResource"

payload = {
    "CatalogId": "",
    "Resource": {
        "Catalog": "",
        "Database": "",
        "Table": "",
        "TableWithColumns": "",
        "DataLocation": "",
        "DataCellsFilter": "",
        "LFTag": "",
        "LFTagPolicy": ""
    },
    "LFTags": [
        {
            "CatalogId": "",
            "TagKey": "",
            "TagValues": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/AddLFTagsToResource"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/AddLFTagsToResource")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/AddLFTagsToResource') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/AddLFTagsToResource";

    let payload = json!({
        "CatalogId": "",
        "Resource": json!({
            "Catalog": "",
            "Database": "",
            "Table": "",
            "TableWithColumns": "",
            "DataLocation": "",
            "DataCellsFilter": "",
            "LFTag": "",
            "LFTagPolicy": ""
        }),
        "LFTags": (
            json!({
                "CatalogId": "",
                "TagKey": "",
                "TagValues": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/AddLFTagsToResource \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
echo '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/AddLFTagsToResource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "LFTags": [\n    {\n      "CatalogId": "",\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/AddLFTagsToResource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Resource": [
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  ],
  "LFTags": [
    [
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/AddLFTagsToResource")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST AssumeDecoratedRoleWithSAML
{{baseUrl}}/AssumeDecoratedRoleWithSAML
BODY json

{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/AssumeDecoratedRoleWithSAML");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/AssumeDecoratedRoleWithSAML" {:content-type :json
                                                                        :form-params {:SAMLAssertion ""
                                                                                      :RoleArn ""
                                                                                      :PrincipalArn ""
                                                                                      :DurationSeconds 0}})
require "http/client"

url = "{{baseUrl}}/AssumeDecoratedRoleWithSAML"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/AssumeDecoratedRoleWithSAML"),
    Content = new StringContent("{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/AssumeDecoratedRoleWithSAML");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/AssumeDecoratedRoleWithSAML"

	payload := strings.NewReader("{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/AssumeDecoratedRoleWithSAML HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 88

{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/AssumeDecoratedRoleWithSAML")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/AssumeDecoratedRoleWithSAML"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/AssumeDecoratedRoleWithSAML")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/AssumeDecoratedRoleWithSAML")
  .header("content-type", "application/json")
  .body("{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}")
  .asString();
const data = JSON.stringify({
  SAMLAssertion: '',
  RoleArn: '',
  PrincipalArn: '',
  DurationSeconds: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/AssumeDecoratedRoleWithSAML');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/AssumeDecoratedRoleWithSAML',
  headers: {'content-type': 'application/json'},
  data: {SAMLAssertion: '', RoleArn: '', PrincipalArn: '', DurationSeconds: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/AssumeDecoratedRoleWithSAML';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"SAMLAssertion":"","RoleArn":"","PrincipalArn":"","DurationSeconds":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/AssumeDecoratedRoleWithSAML',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "SAMLAssertion": "",\n  "RoleArn": "",\n  "PrincipalArn": "",\n  "DurationSeconds": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/AssumeDecoratedRoleWithSAML")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/AssumeDecoratedRoleWithSAML',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({SAMLAssertion: '', RoleArn: '', PrincipalArn: '', DurationSeconds: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/AssumeDecoratedRoleWithSAML',
  headers: {'content-type': 'application/json'},
  body: {SAMLAssertion: '', RoleArn: '', PrincipalArn: '', DurationSeconds: 0},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/AssumeDecoratedRoleWithSAML');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  SAMLAssertion: '',
  RoleArn: '',
  PrincipalArn: '',
  DurationSeconds: 0
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/AssumeDecoratedRoleWithSAML',
  headers: {'content-type': 'application/json'},
  data: {SAMLAssertion: '', RoleArn: '', PrincipalArn: '', DurationSeconds: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/AssumeDecoratedRoleWithSAML';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"SAMLAssertion":"","RoleArn":"","PrincipalArn":"","DurationSeconds":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"SAMLAssertion": @"",
                              @"RoleArn": @"",
                              @"PrincipalArn": @"",
                              @"DurationSeconds": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/AssumeDecoratedRoleWithSAML"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/AssumeDecoratedRoleWithSAML" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/AssumeDecoratedRoleWithSAML",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'SAMLAssertion' => '',
    'RoleArn' => '',
    'PrincipalArn' => '',
    'DurationSeconds' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/AssumeDecoratedRoleWithSAML', [
  'body' => '{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/AssumeDecoratedRoleWithSAML');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'SAMLAssertion' => '',
  'RoleArn' => '',
  'PrincipalArn' => '',
  'DurationSeconds' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'SAMLAssertion' => '',
  'RoleArn' => '',
  'PrincipalArn' => '',
  'DurationSeconds' => 0
]));
$request->setRequestUrl('{{baseUrl}}/AssumeDecoratedRoleWithSAML');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/AssumeDecoratedRoleWithSAML' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/AssumeDecoratedRoleWithSAML' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/AssumeDecoratedRoleWithSAML", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/AssumeDecoratedRoleWithSAML"

payload = {
    "SAMLAssertion": "",
    "RoleArn": "",
    "PrincipalArn": "",
    "DurationSeconds": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/AssumeDecoratedRoleWithSAML"

payload <- "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/AssumeDecoratedRoleWithSAML")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/AssumeDecoratedRoleWithSAML') do |req|
  req.body = "{\n  \"SAMLAssertion\": \"\",\n  \"RoleArn\": \"\",\n  \"PrincipalArn\": \"\",\n  \"DurationSeconds\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/AssumeDecoratedRoleWithSAML";

    let payload = json!({
        "SAMLAssertion": "",
        "RoleArn": "",
        "PrincipalArn": "",
        "DurationSeconds": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/AssumeDecoratedRoleWithSAML \
  --header 'content-type: application/json' \
  --data '{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}'
echo '{
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
}' |  \
  http POST {{baseUrl}}/AssumeDecoratedRoleWithSAML \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "SAMLAssertion": "",\n  "RoleArn": "",\n  "PrincipalArn": "",\n  "DurationSeconds": 0\n}' \
  --output-document \
  - {{baseUrl}}/AssumeDecoratedRoleWithSAML
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "SAMLAssertion": "",
  "RoleArn": "",
  "PrincipalArn": "",
  "DurationSeconds": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/AssumeDecoratedRoleWithSAML")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST BatchGrantPermissions
{{baseUrl}}/BatchGrantPermissions
BODY json

{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/BatchGrantPermissions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/BatchGrantPermissions" {:content-type :json
                                                                  :form-params {:CatalogId ""
                                                                                :Entries [{:Id ""
                                                                                           :Principal ""
                                                                                           :Resource ""
                                                                                           :Permissions ""
                                                                                           :PermissionsWithGrantOption ""}]}})
require "http/client"

url = "{{baseUrl}}/BatchGrantPermissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/BatchGrantPermissions"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/BatchGrantPermissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/BatchGrantPermissions"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/BatchGrantPermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 178

{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/BatchGrantPermissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/BatchGrantPermissions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/BatchGrantPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/BatchGrantPermissions")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Entries: [
    {
      Id: '',
      Principal: '',
      Resource: '',
      Permissions: '',
      PermissionsWithGrantOption: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/BatchGrantPermissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/BatchGrantPermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Entries: [
      {
        Id: '',
        Principal: '',
        Resource: '',
        Permissions: '',
        PermissionsWithGrantOption: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/BatchGrantPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Entries":[{"Id":"","Principal":"","Resource":"","Permissions":"","PermissionsWithGrantOption":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/BatchGrantPermissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Entries": [\n    {\n      "Id": "",\n      "Principal": "",\n      "Resource": "",\n      "Permissions": "",\n      "PermissionsWithGrantOption": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/BatchGrantPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/BatchGrantPermissions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Entries: [
    {
      Id: '',
      Principal: '',
      Resource: '',
      Permissions: '',
      PermissionsWithGrantOption: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/BatchGrantPermissions',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Entries: [
      {
        Id: '',
        Principal: '',
        Resource: '',
        Permissions: '',
        PermissionsWithGrantOption: ''
      }
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/BatchGrantPermissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Entries: [
    {
      Id: '',
      Principal: '',
      Resource: '',
      Permissions: '',
      PermissionsWithGrantOption: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/BatchGrantPermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Entries: [
      {
        Id: '',
        Principal: '',
        Resource: '',
        Permissions: '',
        PermissionsWithGrantOption: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/BatchGrantPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Entries":[{"Id":"","Principal":"","Resource":"","Permissions":"","PermissionsWithGrantOption":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Entries": @[ @{ @"Id": @"", @"Principal": @"", @"Resource": @"", @"Permissions": @"", @"PermissionsWithGrantOption": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/BatchGrantPermissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/BatchGrantPermissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/BatchGrantPermissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Entries' => [
        [
                'Id' => '',
                'Principal' => '',
                'Resource' => '',
                'Permissions' => '',
                'PermissionsWithGrantOption' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/BatchGrantPermissions', [
  'body' => '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/BatchGrantPermissions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Entries' => [
    [
        'Id' => '',
        'Principal' => '',
        'Resource' => '',
        'Permissions' => '',
        'PermissionsWithGrantOption' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Entries' => [
    [
        'Id' => '',
        'Principal' => '',
        'Resource' => '',
        'Permissions' => '',
        'PermissionsWithGrantOption' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/BatchGrantPermissions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/BatchGrantPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/BatchGrantPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/BatchGrantPermissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/BatchGrantPermissions"

payload = {
    "CatalogId": "",
    "Entries": [
        {
            "Id": "",
            "Principal": "",
            "Resource": "",
            "Permissions": "",
            "PermissionsWithGrantOption": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/BatchGrantPermissions"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/BatchGrantPermissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/BatchGrantPermissions') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/BatchGrantPermissions";

    let payload = json!({
        "CatalogId": "",
        "Entries": (
            json!({
                "Id": "",
                "Principal": "",
                "Resource": "",
                "Permissions": "",
                "PermissionsWithGrantOption": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/BatchGrantPermissions \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}'
echo '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/BatchGrantPermissions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Entries": [\n    {\n      "Id": "",\n      "Principal": "",\n      "Resource": "",\n      "Permissions": "",\n      "PermissionsWithGrantOption": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/BatchGrantPermissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Entries": [
    [
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/BatchGrantPermissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST BatchRevokePermissions
{{baseUrl}}/BatchRevokePermissions
BODY json

{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/BatchRevokePermissions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/BatchRevokePermissions" {:content-type :json
                                                                   :form-params {:CatalogId ""
                                                                                 :Entries [{:Id ""
                                                                                            :Principal ""
                                                                                            :Resource ""
                                                                                            :Permissions ""
                                                                                            :PermissionsWithGrantOption ""}]}})
require "http/client"

url = "{{baseUrl}}/BatchRevokePermissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/BatchRevokePermissions"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/BatchRevokePermissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/BatchRevokePermissions"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/BatchRevokePermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 178

{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/BatchRevokePermissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/BatchRevokePermissions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/BatchRevokePermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/BatchRevokePermissions")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Entries: [
    {
      Id: '',
      Principal: '',
      Resource: '',
      Permissions: '',
      PermissionsWithGrantOption: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/BatchRevokePermissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/BatchRevokePermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Entries: [
      {
        Id: '',
        Principal: '',
        Resource: '',
        Permissions: '',
        PermissionsWithGrantOption: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/BatchRevokePermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Entries":[{"Id":"","Principal":"","Resource":"","Permissions":"","PermissionsWithGrantOption":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/BatchRevokePermissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Entries": [\n    {\n      "Id": "",\n      "Principal": "",\n      "Resource": "",\n      "Permissions": "",\n      "PermissionsWithGrantOption": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/BatchRevokePermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/BatchRevokePermissions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Entries: [
    {
      Id: '',
      Principal: '',
      Resource: '',
      Permissions: '',
      PermissionsWithGrantOption: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/BatchRevokePermissions',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Entries: [
      {
        Id: '',
        Principal: '',
        Resource: '',
        Permissions: '',
        PermissionsWithGrantOption: ''
      }
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/BatchRevokePermissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Entries: [
    {
      Id: '',
      Principal: '',
      Resource: '',
      Permissions: '',
      PermissionsWithGrantOption: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/BatchRevokePermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Entries: [
      {
        Id: '',
        Principal: '',
        Resource: '',
        Permissions: '',
        PermissionsWithGrantOption: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/BatchRevokePermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Entries":[{"Id":"","Principal":"","Resource":"","Permissions":"","PermissionsWithGrantOption":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Entries": @[ @{ @"Id": @"", @"Principal": @"", @"Resource": @"", @"Permissions": @"", @"PermissionsWithGrantOption": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/BatchRevokePermissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/BatchRevokePermissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/BatchRevokePermissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Entries' => [
        [
                'Id' => '',
                'Principal' => '',
                'Resource' => '',
                'Permissions' => '',
                'PermissionsWithGrantOption' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/BatchRevokePermissions', [
  'body' => '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/BatchRevokePermissions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Entries' => [
    [
        'Id' => '',
        'Principal' => '',
        'Resource' => '',
        'Permissions' => '',
        'PermissionsWithGrantOption' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Entries' => [
    [
        'Id' => '',
        'Principal' => '',
        'Resource' => '',
        'Permissions' => '',
        'PermissionsWithGrantOption' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/BatchRevokePermissions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/BatchRevokePermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/BatchRevokePermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/BatchRevokePermissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/BatchRevokePermissions"

payload = {
    "CatalogId": "",
    "Entries": [
        {
            "Id": "",
            "Principal": "",
            "Resource": "",
            "Permissions": "",
            "PermissionsWithGrantOption": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/BatchRevokePermissions"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/BatchRevokePermissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/BatchRevokePermissions') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Entries\": [\n    {\n      \"Id\": \"\",\n      \"Principal\": \"\",\n      \"Resource\": \"\",\n      \"Permissions\": \"\",\n      \"PermissionsWithGrantOption\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/BatchRevokePermissions";

    let payload = json!({
        "CatalogId": "",
        "Entries": (
            json!({
                "Id": "",
                "Principal": "",
                "Resource": "",
                "Permissions": "",
                "PermissionsWithGrantOption": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/BatchRevokePermissions \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}'
echo '{
  "CatalogId": "",
  "Entries": [
    {
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/BatchRevokePermissions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Entries": [\n    {\n      "Id": "",\n      "Principal": "",\n      "Resource": "",\n      "Permissions": "",\n      "PermissionsWithGrantOption": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/BatchRevokePermissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Entries": [
    [
      "Id": "",
      "Principal": "",
      "Resource": "",
      "Permissions": "",
      "PermissionsWithGrantOption": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/BatchRevokePermissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CancelTransaction
{{baseUrl}}/CancelTransaction
BODY json

{
  "TransactionId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/CancelTransaction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TransactionId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/CancelTransaction" {:content-type :json
                                                              :form-params {:TransactionId ""}})
require "http/client"

url = "{{baseUrl}}/CancelTransaction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TransactionId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/CancelTransaction"),
    Content = new StringContent("{\n  \"TransactionId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/CancelTransaction");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TransactionId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/CancelTransaction"

	payload := strings.NewReader("{\n  \"TransactionId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/CancelTransaction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 25

{
  "TransactionId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/CancelTransaction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TransactionId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/CancelTransaction"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TransactionId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/CancelTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/CancelTransaction")
  .header("content-type", "application/json")
  .body("{\n  \"TransactionId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TransactionId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/CancelTransaction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CancelTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/CancelTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/CancelTransaction',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TransactionId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/CancelTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/CancelTransaction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TransactionId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CancelTransaction',
  headers: {'content-type': 'application/json'},
  body: {TransactionId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/CancelTransaction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TransactionId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CancelTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/CancelTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TransactionId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/CancelTransaction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/CancelTransaction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TransactionId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/CancelTransaction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TransactionId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/CancelTransaction', [
  'body' => '{
  "TransactionId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/CancelTransaction');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TransactionId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TransactionId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/CancelTransaction');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/CancelTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/CancelTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TransactionId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/CancelTransaction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/CancelTransaction"

payload = { "TransactionId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/CancelTransaction"

payload <- "{\n  \"TransactionId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/CancelTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TransactionId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/CancelTransaction') do |req|
  req.body = "{\n  \"TransactionId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/CancelTransaction";

    let payload = json!({"TransactionId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/CancelTransaction \
  --header 'content-type: application/json' \
  --data '{
  "TransactionId": ""
}'
echo '{
  "TransactionId": ""
}' |  \
  http POST {{baseUrl}}/CancelTransaction \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TransactionId": ""\n}' \
  --output-document \
  - {{baseUrl}}/CancelTransaction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TransactionId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/CancelTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CommitTransaction
{{baseUrl}}/CommitTransaction
BODY json

{
  "TransactionId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/CommitTransaction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TransactionId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/CommitTransaction" {:content-type :json
                                                              :form-params {:TransactionId ""}})
require "http/client"

url = "{{baseUrl}}/CommitTransaction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TransactionId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/CommitTransaction"),
    Content = new StringContent("{\n  \"TransactionId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/CommitTransaction");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TransactionId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/CommitTransaction"

	payload := strings.NewReader("{\n  \"TransactionId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/CommitTransaction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 25

{
  "TransactionId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/CommitTransaction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TransactionId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/CommitTransaction"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TransactionId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/CommitTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/CommitTransaction")
  .header("content-type", "application/json")
  .body("{\n  \"TransactionId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TransactionId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/CommitTransaction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CommitTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/CommitTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/CommitTransaction',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TransactionId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/CommitTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/CommitTransaction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TransactionId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CommitTransaction',
  headers: {'content-type': 'application/json'},
  body: {TransactionId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/CommitTransaction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TransactionId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CommitTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/CommitTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TransactionId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/CommitTransaction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/CommitTransaction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TransactionId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/CommitTransaction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TransactionId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/CommitTransaction', [
  'body' => '{
  "TransactionId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/CommitTransaction');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TransactionId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TransactionId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/CommitTransaction');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/CommitTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/CommitTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TransactionId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/CommitTransaction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/CommitTransaction"

payload = { "TransactionId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/CommitTransaction"

payload <- "{\n  \"TransactionId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/CommitTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TransactionId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/CommitTransaction') do |req|
  req.body = "{\n  \"TransactionId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/CommitTransaction";

    let payload = json!({"TransactionId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/CommitTransaction \
  --header 'content-type: application/json' \
  --data '{
  "TransactionId": ""
}'
echo '{
  "TransactionId": ""
}' |  \
  http POST {{baseUrl}}/CommitTransaction \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TransactionId": ""\n}' \
  --output-document \
  - {{baseUrl}}/CommitTransaction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TransactionId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/CommitTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateDataCellsFilter
{{baseUrl}}/CreateDataCellsFilter
BODY json

{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/CreateDataCellsFilter");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/CreateDataCellsFilter" {:content-type :json
                                                                  :form-params {:TableData {:TableCatalogId ""
                                                                                            :DatabaseName ""
                                                                                            :TableName ""
                                                                                            :Name ""
                                                                                            :RowFilter ""
                                                                                            :ColumnNames ""
                                                                                            :ColumnWildcard ""
                                                                                            :VersionId ""}}})
require "http/client"

url = "{{baseUrl}}/CreateDataCellsFilter"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/CreateDataCellsFilter"),
    Content = new StringContent("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/CreateDataCellsFilter");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/CreateDataCellsFilter"

	payload := strings.NewReader("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/CreateDataCellsFilter HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 201

{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/CreateDataCellsFilter")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/CreateDataCellsFilter"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/CreateDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/CreateDataCellsFilter")
  .header("content-type", "application/json")
  .body("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  TableData: {
    TableCatalogId: '',
    DatabaseName: '',
    TableName: '',
    Name: '',
    RowFilter: '',
    ColumnNames: '',
    ColumnWildcard: '',
    VersionId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/CreateDataCellsFilter');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CreateDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {
    TableData: {
      TableCatalogId: '',
      DatabaseName: '',
      TableName: '',
      Name: '',
      RowFilter: '',
      ColumnNames: '',
      ColumnWildcard: '',
      VersionId: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/CreateDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableData":{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":"","RowFilter":"","ColumnNames":"","ColumnWildcard":"","VersionId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/CreateDataCellsFilter',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TableData": {\n    "TableCatalogId": "",\n    "DatabaseName": "",\n    "TableName": "",\n    "Name": "",\n    "RowFilter": "",\n    "ColumnNames": "",\n    "ColumnWildcard": "",\n    "VersionId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/CreateDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/CreateDataCellsFilter',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  TableData: {
    TableCatalogId: '',
    DatabaseName: '',
    TableName: '',
    Name: '',
    RowFilter: '',
    ColumnNames: '',
    ColumnWildcard: '',
    VersionId: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CreateDataCellsFilter',
  headers: {'content-type': 'application/json'},
  body: {
    TableData: {
      TableCatalogId: '',
      DatabaseName: '',
      TableName: '',
      Name: '',
      RowFilter: '',
      ColumnNames: '',
      ColumnWildcard: '',
      VersionId: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/CreateDataCellsFilter');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TableData: {
    TableCatalogId: '',
    DatabaseName: '',
    TableName: '',
    Name: '',
    RowFilter: '',
    ColumnNames: '',
    ColumnWildcard: '',
    VersionId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CreateDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {
    TableData: {
      TableCatalogId: '',
      DatabaseName: '',
      TableName: '',
      Name: '',
      RowFilter: '',
      ColumnNames: '',
      ColumnWildcard: '',
      VersionId: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/CreateDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableData":{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":"","RowFilter":"","ColumnNames":"","ColumnWildcard":"","VersionId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TableData": @{ @"TableCatalogId": @"", @"DatabaseName": @"", @"TableName": @"", @"Name": @"", @"RowFilter": @"", @"ColumnNames": @"", @"ColumnWildcard": @"", @"VersionId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/CreateDataCellsFilter"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/CreateDataCellsFilter" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/CreateDataCellsFilter",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TableData' => [
        'TableCatalogId' => '',
        'DatabaseName' => '',
        'TableName' => '',
        'Name' => '',
        'RowFilter' => '',
        'ColumnNames' => '',
        'ColumnWildcard' => '',
        'VersionId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/CreateDataCellsFilter', [
  'body' => '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/CreateDataCellsFilter');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TableData' => [
    'TableCatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'Name' => '',
    'RowFilter' => '',
    'ColumnNames' => '',
    'ColumnWildcard' => '',
    'VersionId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TableData' => [
    'TableCatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'Name' => '',
    'RowFilter' => '',
    'ColumnNames' => '',
    'ColumnWildcard' => '',
    'VersionId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/CreateDataCellsFilter');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/CreateDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/CreateDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/CreateDataCellsFilter", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/CreateDataCellsFilter"

payload = { "TableData": {
        "TableCatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "Name": "",
        "RowFilter": "",
        "ColumnNames": "",
        "ColumnWildcard": "",
        "VersionId": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/CreateDataCellsFilter"

payload <- "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/CreateDataCellsFilter")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/CreateDataCellsFilter') do |req|
  req.body = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/CreateDataCellsFilter";

    let payload = json!({"TableData": json!({
            "TableCatalogId": "",
            "DatabaseName": "",
            "TableName": "",
            "Name": "",
            "RowFilter": "",
            "ColumnNames": "",
            "ColumnWildcard": "",
            "VersionId": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/CreateDataCellsFilter \
  --header 'content-type: application/json' \
  --data '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}'
echo '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}' |  \
  http POST {{baseUrl}}/CreateDataCellsFilter \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TableData": {\n    "TableCatalogId": "",\n    "DatabaseName": "",\n    "TableName": "",\n    "Name": "",\n    "RowFilter": "",\n    "ColumnNames": "",\n    "ColumnWildcard": "",\n    "VersionId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/CreateDataCellsFilter
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TableData": [
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/CreateDataCellsFilter")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateLFTag
{{baseUrl}}/CreateLFTag
BODY json

{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/CreateLFTag");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/CreateLFTag" {:content-type :json
                                                        :form-params {:CatalogId ""
                                                                      :TagKey ""
                                                                      :TagValues []}})
require "http/client"

url = "{{baseUrl}}/CreateLFTag"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/CreateLFTag"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/CreateLFTag");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/CreateLFTag"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/CreateLFTag HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 56

{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/CreateLFTag")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/CreateLFTag"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/CreateLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/CreateLFTag")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  TagKey: '',
  TagValues: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/CreateLFTag');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CreateLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: '', TagValues: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/CreateLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":"","TagValues":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/CreateLFTag',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "TagKey": "",\n  "TagValues": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/CreateLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/CreateLFTag',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', TagKey: '', TagValues: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CreateLFTag',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', TagKey: '', TagValues: []},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/CreateLFTag');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  TagKey: '',
  TagValues: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/CreateLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: '', TagValues: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/CreateLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":"","TagValues":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"TagKey": @"",
                              @"TagValues": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/CreateLFTag"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/CreateLFTag" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/CreateLFTag",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'TagKey' => '',
    'TagValues' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/CreateLFTag', [
  'body' => '{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/CreateLFTag');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'TagKey' => '',
  'TagValues' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'TagKey' => '',
  'TagValues' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/CreateLFTag');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/CreateLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/CreateLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/CreateLFTag", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/CreateLFTag"

payload = {
    "CatalogId": "",
    "TagKey": "",
    "TagValues": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/CreateLFTag"

payload <- "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/CreateLFTag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/CreateLFTag') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValues\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/CreateLFTag";

    let payload = json!({
        "CatalogId": "",
        "TagKey": "",
        "TagValues": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/CreateLFTag \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}'
echo '{
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
}' |  \
  http POST {{baseUrl}}/CreateLFTag \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "TagKey": "",\n  "TagValues": []\n}' \
  --output-document \
  - {{baseUrl}}/CreateLFTag
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "TagKey": "",
  "TagValues": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/CreateLFTag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST DeleteDataCellsFilter
{{baseUrl}}/DeleteDataCellsFilter
BODY json

{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/DeleteDataCellsFilter");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/DeleteDataCellsFilter" {:content-type :json
                                                                  :form-params {:TableCatalogId ""
                                                                                :DatabaseName ""
                                                                                :TableName ""
                                                                                :Name ""}})
require "http/client"

url = "{{baseUrl}}/DeleteDataCellsFilter"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/DeleteDataCellsFilter"),
    Content = new StringContent("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/DeleteDataCellsFilter");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/DeleteDataCellsFilter"

	payload := strings.NewReader("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/DeleteDataCellsFilter HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/DeleteDataCellsFilter")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/DeleteDataCellsFilter"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/DeleteDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/DeleteDataCellsFilter")
  .header("content-type", "application/json")
  .body("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TableCatalogId: '',
  DatabaseName: '',
  TableName: '',
  Name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/DeleteDataCellsFilter');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/DeleteDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/DeleteDataCellsFilter',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TableCatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "Name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/DeleteDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/DeleteDataCellsFilter',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteDataCellsFilter',
  headers: {'content-type': 'application/json'},
  body: {TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/DeleteDataCellsFilter');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TableCatalogId: '',
  DatabaseName: '',
  TableName: '',
  Name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/DeleteDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TableCatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"Name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/DeleteDataCellsFilter"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/DeleteDataCellsFilter" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/DeleteDataCellsFilter",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TableCatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'Name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/DeleteDataCellsFilter', [
  'body' => '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/DeleteDataCellsFilter');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TableCatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'Name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TableCatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'Name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/DeleteDataCellsFilter');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/DeleteDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/DeleteDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/DeleteDataCellsFilter", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/DeleteDataCellsFilter"

payload = {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/DeleteDataCellsFilter"

payload <- "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/DeleteDataCellsFilter")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/DeleteDataCellsFilter') do |req|
  req.body = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/DeleteDataCellsFilter";

    let payload = json!({
        "TableCatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "Name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/DeleteDataCellsFilter \
  --header 'content-type: application/json' \
  --data '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}'
echo '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}' |  \
  http POST {{baseUrl}}/DeleteDataCellsFilter \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TableCatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "Name": ""\n}' \
  --output-document \
  - {{baseUrl}}/DeleteDataCellsFilter
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/DeleteDataCellsFilter")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST DeleteLFTag
{{baseUrl}}/DeleteLFTag
BODY json

{
  "CatalogId": "",
  "TagKey": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/DeleteLFTag");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/DeleteLFTag" {:content-type :json
                                                        :form-params {:CatalogId ""
                                                                      :TagKey ""}})
require "http/client"

url = "{{baseUrl}}/DeleteLFTag"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/DeleteLFTag"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/DeleteLFTag");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/DeleteLFTag"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/DeleteLFTag HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 37

{
  "CatalogId": "",
  "TagKey": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/DeleteLFTag")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/DeleteLFTag"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/DeleteLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/DeleteLFTag")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  TagKey: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/DeleteLFTag');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/DeleteLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/DeleteLFTag',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "TagKey": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/DeleteLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/DeleteLFTag',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', TagKey: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteLFTag',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', TagKey: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/DeleteLFTag');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  TagKey: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/DeleteLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"TagKey": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/DeleteLFTag"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/DeleteLFTag" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/DeleteLFTag",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'TagKey' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/DeleteLFTag', [
  'body' => '{
  "CatalogId": "",
  "TagKey": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/DeleteLFTag');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'TagKey' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'TagKey' => ''
]));
$request->setRequestUrl('{{baseUrl}}/DeleteLFTag');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/DeleteLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/DeleteLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/DeleteLFTag", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/DeleteLFTag"

payload = {
    "CatalogId": "",
    "TagKey": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/DeleteLFTag"

payload <- "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/DeleteLFTag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/DeleteLFTag') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/DeleteLFTag";

    let payload = json!({
        "CatalogId": "",
        "TagKey": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/DeleteLFTag \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "TagKey": ""
}'
echo '{
  "CatalogId": "",
  "TagKey": ""
}' |  \
  http POST {{baseUrl}}/DeleteLFTag \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "TagKey": ""\n}' \
  --output-document \
  - {{baseUrl}}/DeleteLFTag
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "TagKey": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/DeleteLFTag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST DeleteObjectsOnCancel
{{baseUrl}}/DeleteObjectsOnCancel
BODY json

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/DeleteObjectsOnCancel");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/DeleteObjectsOnCancel" {:content-type :json
                                                                  :form-params {:CatalogId ""
                                                                                :DatabaseName ""
                                                                                :TableName ""
                                                                                :TransactionId ""
                                                                                :Objects [{:Uri ""
                                                                                           :ETag ""}]}})
require "http/client"

url = "{{baseUrl}}/DeleteObjectsOnCancel"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/DeleteObjectsOnCancel"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/DeleteObjectsOnCancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/DeleteObjectsOnCancel"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/DeleteObjectsOnCancel HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 151

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/DeleteObjectsOnCancel")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/DeleteObjectsOnCancel"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/DeleteObjectsOnCancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/DeleteObjectsOnCancel")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  Objects: [
    {
      Uri: '',
      ETag: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/DeleteObjectsOnCancel');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteObjectsOnCancel',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    Objects: [{Uri: '', ETag: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/DeleteObjectsOnCancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","TransactionId":"","Objects":[{"Uri":"","ETag":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/DeleteObjectsOnCancel',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "TransactionId": "",\n  "Objects": [\n    {\n      "Uri": "",\n      "ETag": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/DeleteObjectsOnCancel")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/DeleteObjectsOnCancel',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  Objects: [{Uri: '', ETag: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteObjectsOnCancel',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    Objects: [{Uri: '', ETag: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/DeleteObjectsOnCancel');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  Objects: [
    {
      Uri: '',
      ETag: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeleteObjectsOnCancel',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    Objects: [{Uri: '', ETag: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/DeleteObjectsOnCancel';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","TransactionId":"","Objects":[{"Uri":"","ETag":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"TransactionId": @"",
                              @"Objects": @[ @{ @"Uri": @"", @"ETag": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/DeleteObjectsOnCancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/DeleteObjectsOnCancel" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/DeleteObjectsOnCancel",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'TransactionId' => '',
    'Objects' => [
        [
                'Uri' => '',
                'ETag' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/DeleteObjectsOnCancel', [
  'body' => '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/DeleteObjectsOnCancel');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'TransactionId' => '',
  'Objects' => [
    [
        'Uri' => '',
        'ETag' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'TransactionId' => '',
  'Objects' => [
    [
        'Uri' => '',
        'ETag' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/DeleteObjectsOnCancel');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/DeleteObjectsOnCancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/DeleteObjectsOnCancel' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/DeleteObjectsOnCancel", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/DeleteObjectsOnCancel"

payload = {
    "CatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "TransactionId": "",
    "Objects": [
        {
            "Uri": "",
            "ETag": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/DeleteObjectsOnCancel"

payload <- "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/DeleteObjectsOnCancel")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/DeleteObjectsOnCancel') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"Objects\": [\n    {\n      \"Uri\": \"\",\n      \"ETag\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/DeleteObjectsOnCancel";

    let payload = json!({
        "CatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "TransactionId": "",
        "Objects": (
            json!({
                "Uri": "",
                "ETag": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/DeleteObjectsOnCancel \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}'
echo '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    {
      "Uri": "",
      "ETag": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/DeleteObjectsOnCancel \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "TransactionId": "",\n  "Objects": [\n    {\n      "Uri": "",\n      "ETag": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/DeleteObjectsOnCancel
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "Objects": [
    [
      "Uri": "",
      "ETag": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/DeleteObjectsOnCancel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST DeregisterResource
{{baseUrl}}/DeregisterResource
BODY json

{
  "ResourceArn": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/DeregisterResource");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"ResourceArn\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/DeregisterResource" {:content-type :json
                                                               :form-params {:ResourceArn ""}})
require "http/client"

url = "{{baseUrl}}/DeregisterResource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ResourceArn\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/DeregisterResource"),
    Content = new StringContent("{\n  \"ResourceArn\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/DeregisterResource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ResourceArn\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/DeregisterResource"

	payload := strings.NewReader("{\n  \"ResourceArn\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/DeregisterResource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

{
  "ResourceArn": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/DeregisterResource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ResourceArn\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/DeregisterResource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ResourceArn\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"ResourceArn\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/DeregisterResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/DeregisterResource")
  .header("content-type", "application/json")
  .body("{\n  \"ResourceArn\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  ResourceArn: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/DeregisterResource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeregisterResource',
  headers: {'content-type': 'application/json'},
  data: {ResourceArn: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/DeregisterResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ResourceArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/DeregisterResource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ResourceArn": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ResourceArn\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/DeregisterResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/DeregisterResource',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ResourceArn: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeregisterResource',
  headers: {'content-type': 'application/json'},
  body: {ResourceArn: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/DeregisterResource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ResourceArn: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DeregisterResource',
  headers: {'content-type': 'application/json'},
  data: {ResourceArn: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/DeregisterResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ResourceArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"ResourceArn": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/DeregisterResource"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/DeregisterResource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ResourceArn\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/DeregisterResource",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'ResourceArn' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/DeregisterResource', [
  'body' => '{
  "ResourceArn": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/DeregisterResource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ResourceArn' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ResourceArn' => ''
]));
$request->setRequestUrl('{{baseUrl}}/DeregisterResource');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/DeregisterResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ResourceArn": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/DeregisterResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ResourceArn": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ResourceArn\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/DeregisterResource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/DeregisterResource"

payload = { "ResourceArn": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/DeregisterResource"

payload <- "{\n  \"ResourceArn\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/DeregisterResource")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"ResourceArn\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/DeregisterResource') do |req|
  req.body = "{\n  \"ResourceArn\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/DeregisterResource";

    let payload = json!({"ResourceArn": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/DeregisterResource \
  --header 'content-type: application/json' \
  --data '{
  "ResourceArn": ""
}'
echo '{
  "ResourceArn": ""
}' |  \
  http POST {{baseUrl}}/DeregisterResource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ResourceArn": ""\n}' \
  --output-document \
  - {{baseUrl}}/DeregisterResource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["ResourceArn": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/DeregisterResource")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST DescribeResource
{{baseUrl}}/DescribeResource
BODY json

{
  "ResourceArn": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/DescribeResource");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"ResourceArn\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/DescribeResource" {:content-type :json
                                                             :form-params {:ResourceArn ""}})
require "http/client"

url = "{{baseUrl}}/DescribeResource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ResourceArn\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/DescribeResource"),
    Content = new StringContent("{\n  \"ResourceArn\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/DescribeResource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ResourceArn\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/DescribeResource"

	payload := strings.NewReader("{\n  \"ResourceArn\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/DescribeResource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

{
  "ResourceArn": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/DescribeResource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ResourceArn\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/DescribeResource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ResourceArn\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"ResourceArn\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/DescribeResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/DescribeResource")
  .header("content-type", "application/json")
  .body("{\n  \"ResourceArn\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  ResourceArn: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/DescribeResource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DescribeResource',
  headers: {'content-type': 'application/json'},
  data: {ResourceArn: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/DescribeResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ResourceArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/DescribeResource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ResourceArn": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ResourceArn\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/DescribeResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/DescribeResource',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ResourceArn: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DescribeResource',
  headers: {'content-type': 'application/json'},
  body: {ResourceArn: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/DescribeResource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ResourceArn: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DescribeResource',
  headers: {'content-type': 'application/json'},
  data: {ResourceArn: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/DescribeResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ResourceArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"ResourceArn": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/DescribeResource"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/DescribeResource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ResourceArn\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/DescribeResource",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'ResourceArn' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/DescribeResource', [
  'body' => '{
  "ResourceArn": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/DescribeResource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ResourceArn' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ResourceArn' => ''
]));
$request->setRequestUrl('{{baseUrl}}/DescribeResource');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/DescribeResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ResourceArn": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/DescribeResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ResourceArn": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ResourceArn\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/DescribeResource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/DescribeResource"

payload = { "ResourceArn": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/DescribeResource"

payload <- "{\n  \"ResourceArn\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/DescribeResource")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"ResourceArn\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/DescribeResource') do |req|
  req.body = "{\n  \"ResourceArn\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/DescribeResource";

    let payload = json!({"ResourceArn": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/DescribeResource \
  --header 'content-type: application/json' \
  --data '{
  "ResourceArn": ""
}'
echo '{
  "ResourceArn": ""
}' |  \
  http POST {{baseUrl}}/DescribeResource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ResourceArn": ""\n}' \
  --output-document \
  - {{baseUrl}}/DescribeResource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["ResourceArn": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/DescribeResource")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST DescribeTransaction
{{baseUrl}}/DescribeTransaction
BODY json

{
  "TransactionId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/DescribeTransaction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TransactionId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/DescribeTransaction" {:content-type :json
                                                                :form-params {:TransactionId ""}})
require "http/client"

url = "{{baseUrl}}/DescribeTransaction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TransactionId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/DescribeTransaction"),
    Content = new StringContent("{\n  \"TransactionId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/DescribeTransaction");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TransactionId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/DescribeTransaction"

	payload := strings.NewReader("{\n  \"TransactionId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/DescribeTransaction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 25

{
  "TransactionId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/DescribeTransaction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TransactionId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/DescribeTransaction"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TransactionId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/DescribeTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/DescribeTransaction")
  .header("content-type", "application/json")
  .body("{\n  \"TransactionId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TransactionId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/DescribeTransaction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DescribeTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/DescribeTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/DescribeTransaction',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TransactionId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/DescribeTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/DescribeTransaction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TransactionId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DescribeTransaction',
  headers: {'content-type': 'application/json'},
  body: {TransactionId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/DescribeTransaction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TransactionId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/DescribeTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/DescribeTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TransactionId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/DescribeTransaction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/DescribeTransaction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TransactionId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/DescribeTransaction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TransactionId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/DescribeTransaction', [
  'body' => '{
  "TransactionId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/DescribeTransaction');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TransactionId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TransactionId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/DescribeTransaction');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/DescribeTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/DescribeTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TransactionId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/DescribeTransaction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/DescribeTransaction"

payload = { "TransactionId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/DescribeTransaction"

payload <- "{\n  \"TransactionId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/DescribeTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TransactionId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/DescribeTransaction') do |req|
  req.body = "{\n  \"TransactionId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/DescribeTransaction";

    let payload = json!({"TransactionId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/DescribeTransaction \
  --header 'content-type: application/json' \
  --data '{
  "TransactionId": ""
}'
echo '{
  "TransactionId": ""
}' |  \
  http POST {{baseUrl}}/DescribeTransaction \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TransactionId": ""\n}' \
  --output-document \
  - {{baseUrl}}/DescribeTransaction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TransactionId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/DescribeTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ExtendTransaction
{{baseUrl}}/ExtendTransaction
BODY json

{
  "TransactionId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ExtendTransaction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TransactionId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ExtendTransaction" {:content-type :json
                                                              :form-params {:TransactionId ""}})
require "http/client"

url = "{{baseUrl}}/ExtendTransaction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TransactionId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ExtendTransaction"),
    Content = new StringContent("{\n  \"TransactionId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ExtendTransaction");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TransactionId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ExtendTransaction"

	payload := strings.NewReader("{\n  \"TransactionId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ExtendTransaction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 25

{
  "TransactionId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ExtendTransaction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TransactionId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ExtendTransaction"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TransactionId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ExtendTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ExtendTransaction")
  .header("content-type", "application/json")
  .body("{\n  \"TransactionId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TransactionId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ExtendTransaction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ExtendTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ExtendTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ExtendTransaction',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TransactionId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TransactionId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ExtendTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ExtendTransaction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TransactionId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ExtendTransaction',
  headers: {'content-type': 'application/json'},
  body: {TransactionId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ExtendTransaction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TransactionId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ExtendTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ExtendTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TransactionId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ExtendTransaction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ExtendTransaction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TransactionId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ExtendTransaction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TransactionId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ExtendTransaction', [
  'body' => '{
  "TransactionId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ExtendTransaction');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TransactionId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TransactionId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ExtendTransaction');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ExtendTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ExtendTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TransactionId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ExtendTransaction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ExtendTransaction"

payload = { "TransactionId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ExtendTransaction"

payload <- "{\n  \"TransactionId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ExtendTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TransactionId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ExtendTransaction') do |req|
  req.body = "{\n  \"TransactionId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ExtendTransaction";

    let payload = json!({"TransactionId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ExtendTransaction \
  --header 'content-type: application/json' \
  --data '{
  "TransactionId": ""
}'
echo '{
  "TransactionId": ""
}' |  \
  http POST {{baseUrl}}/ExtendTransaction \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TransactionId": ""\n}' \
  --output-document \
  - {{baseUrl}}/ExtendTransaction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TransactionId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ExtendTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetDataCellsFilter
{{baseUrl}}/GetDataCellsFilter
BODY json

{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetDataCellsFilter");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetDataCellsFilter" {:content-type :json
                                                               :form-params {:TableCatalogId ""
                                                                             :DatabaseName ""
                                                                             :TableName ""
                                                                             :Name ""}})
require "http/client"

url = "{{baseUrl}}/GetDataCellsFilter"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetDataCellsFilter"),
    Content = new StringContent("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetDataCellsFilter");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetDataCellsFilter"

	payload := strings.NewReader("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetDataCellsFilter HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetDataCellsFilter")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetDataCellsFilter"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetDataCellsFilter")
  .header("content-type", "application/json")
  .body("{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TableCatalogId: '',
  DatabaseName: '',
  TableName: '',
  Name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetDataCellsFilter');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetDataCellsFilter',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TableCatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "Name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetDataCellsFilter',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetDataCellsFilter',
  headers: {'content-type': 'application/json'},
  body: {TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetDataCellsFilter');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TableCatalogId: '',
  DatabaseName: '',
  TableName: '',
  Name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {TableCatalogId: '', DatabaseName: '', TableName: '', Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TableCatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"Name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetDataCellsFilter"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetDataCellsFilter" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetDataCellsFilter",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TableCatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'Name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetDataCellsFilter', [
  'body' => '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetDataCellsFilter');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TableCatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'Name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TableCatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'Name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetDataCellsFilter');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetDataCellsFilter", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetDataCellsFilter"

payload = {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetDataCellsFilter"

payload <- "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetDataCellsFilter")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetDataCellsFilter') do |req|
  req.body = "{\n  \"TableCatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"Name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetDataCellsFilter";

    let payload = json!({
        "TableCatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "Name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetDataCellsFilter \
  --header 'content-type: application/json' \
  --data '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}'
echo '{
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
}' |  \
  http POST {{baseUrl}}/GetDataCellsFilter \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TableCatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "Name": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetDataCellsFilter
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "TableCatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "Name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetDataCellsFilter")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetDataLakeSettings
{{baseUrl}}/GetDataLakeSettings
BODY json

{
  "CatalogId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetDataLakeSettings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetDataLakeSettings" {:content-type :json
                                                                :form-params {:CatalogId ""}})
require "http/client"

url = "{{baseUrl}}/GetDataLakeSettings"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetDataLakeSettings"),
    Content = new StringContent("{\n  \"CatalogId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetDataLakeSettings");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetDataLakeSettings"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetDataLakeSettings HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 21

{
  "CatalogId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetDataLakeSettings")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetDataLakeSettings"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetDataLakeSettings")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetDataLakeSettings")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetDataLakeSettings');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetDataLakeSettings',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetDataLakeSettings';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetDataLakeSettings',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetDataLakeSettings")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetDataLakeSettings',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetDataLakeSettings',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetDataLakeSettings');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetDataLakeSettings',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetDataLakeSettings';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetDataLakeSettings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetDataLakeSettings" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetDataLakeSettings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetDataLakeSettings', [
  'body' => '{
  "CatalogId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetDataLakeSettings');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetDataLakeSettings');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetDataLakeSettings' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetDataLakeSettings' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetDataLakeSettings", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetDataLakeSettings"

payload = { "CatalogId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetDataLakeSettings"

payload <- "{\n  \"CatalogId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetDataLakeSettings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetDataLakeSettings') do |req|
  req.body = "{\n  \"CatalogId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetDataLakeSettings";

    let payload = json!({"CatalogId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetDataLakeSettings \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": ""
}'
echo '{
  "CatalogId": ""
}' |  \
  http POST {{baseUrl}}/GetDataLakeSettings \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetDataLakeSettings
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["CatalogId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetDataLakeSettings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetEffectivePermissionsForPath
{{baseUrl}}/GetEffectivePermissionsForPath
BODY json

{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetEffectivePermissionsForPath");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetEffectivePermissionsForPath" {:content-type :json
                                                                           :form-params {:CatalogId ""
                                                                                         :ResourceArn ""
                                                                                         :NextToken ""
                                                                                         :MaxResults 0}})
require "http/client"

url = "{{baseUrl}}/GetEffectivePermissionsForPath"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetEffectivePermissionsForPath"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetEffectivePermissionsForPath");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetEffectivePermissionsForPath"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetEffectivePermissionsForPath HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 80

{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetEffectivePermissionsForPath")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetEffectivePermissionsForPath"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetEffectivePermissionsForPath")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetEffectivePermissionsForPath")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  ResourceArn: '',
  NextToken: '',
  MaxResults: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetEffectivePermissionsForPath');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetEffectivePermissionsForPath',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', ResourceArn: '', NextToken: '', MaxResults: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetEffectivePermissionsForPath';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","ResourceArn":"","NextToken":"","MaxResults":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetEffectivePermissionsForPath',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "ResourceArn": "",\n  "NextToken": "",\n  "MaxResults": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetEffectivePermissionsForPath")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetEffectivePermissionsForPath',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', ResourceArn: '', NextToken: '', MaxResults: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetEffectivePermissionsForPath',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', ResourceArn: '', NextToken: '', MaxResults: 0},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetEffectivePermissionsForPath');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  ResourceArn: '',
  NextToken: '',
  MaxResults: 0
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetEffectivePermissionsForPath',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', ResourceArn: '', NextToken: '', MaxResults: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetEffectivePermissionsForPath';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","ResourceArn":"","NextToken":"","MaxResults":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"ResourceArn": @"",
                              @"NextToken": @"",
                              @"MaxResults": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetEffectivePermissionsForPath"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetEffectivePermissionsForPath" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetEffectivePermissionsForPath",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'ResourceArn' => '',
    'NextToken' => '',
    'MaxResults' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetEffectivePermissionsForPath', [
  'body' => '{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetEffectivePermissionsForPath');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'ResourceArn' => '',
  'NextToken' => '',
  'MaxResults' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'ResourceArn' => '',
  'NextToken' => '',
  'MaxResults' => 0
]));
$request->setRequestUrl('{{baseUrl}}/GetEffectivePermissionsForPath');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetEffectivePermissionsForPath' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetEffectivePermissionsForPath' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetEffectivePermissionsForPath", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetEffectivePermissionsForPath"

payload = {
    "CatalogId": "",
    "ResourceArn": "",
    "NextToken": "",
    "MaxResults": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetEffectivePermissionsForPath"

payload <- "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetEffectivePermissionsForPath")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetEffectivePermissionsForPath') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"ResourceArn\": \"\",\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetEffectivePermissionsForPath";

    let payload = json!({
        "CatalogId": "",
        "ResourceArn": "",
        "NextToken": "",
        "MaxResults": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetEffectivePermissionsForPath \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}'
echo '{
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
}' |  \
  http POST {{baseUrl}}/GetEffectivePermissionsForPath \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "ResourceArn": "",\n  "NextToken": "",\n  "MaxResults": 0\n}' \
  --output-document \
  - {{baseUrl}}/GetEffectivePermissionsForPath
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "ResourceArn": "",
  "NextToken": "",
  "MaxResults": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetEffectivePermissionsForPath")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetLFTag
{{baseUrl}}/GetLFTag
BODY json

{
  "CatalogId": "",
  "TagKey": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetLFTag");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetLFTag" {:content-type :json
                                                     :form-params {:CatalogId ""
                                                                   :TagKey ""}})
require "http/client"

url = "{{baseUrl}}/GetLFTag"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetLFTag"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetLFTag");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetLFTag"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetLFTag HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 37

{
  "CatalogId": "",
  "TagKey": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetLFTag")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetLFTag"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetLFTag")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  TagKey: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetLFTag');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetLFTag',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "TagKey": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetLFTag',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', TagKey: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetLFTag',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', TagKey: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetLFTag');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  TagKey: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"TagKey": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetLFTag"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetLFTag" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetLFTag",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'TagKey' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetLFTag', [
  'body' => '{
  "CatalogId": "",
  "TagKey": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetLFTag');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'TagKey' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'TagKey' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetLFTag');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetLFTag", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetLFTag"

payload = {
    "CatalogId": "",
    "TagKey": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetLFTag"

payload <- "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetLFTag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetLFTag') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetLFTag";

    let payload = json!({
        "CatalogId": "",
        "TagKey": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetLFTag \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "TagKey": ""
}'
echo '{
  "CatalogId": "",
  "TagKey": ""
}' |  \
  http POST {{baseUrl}}/GetLFTag \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "TagKey": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetLFTag
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "TagKey": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetLFTag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetQueryState
{{baseUrl}}/GetQueryState
BODY json

{
  "QueryId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetQueryState");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"QueryId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetQueryState" {:content-type :json
                                                          :form-params {:QueryId ""}})
require "http/client"

url = "{{baseUrl}}/GetQueryState"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"QueryId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetQueryState"),
    Content = new StringContent("{\n  \"QueryId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetQueryState");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"QueryId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetQueryState"

	payload := strings.NewReader("{\n  \"QueryId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetQueryState HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "QueryId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetQueryState")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"QueryId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetQueryState"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"QueryId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"QueryId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetQueryState")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetQueryState")
  .header("content-type", "application/json")
  .body("{\n  \"QueryId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  QueryId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetQueryState');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetQueryState',
  headers: {'content-type': 'application/json'},
  data: {QueryId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetQueryState';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetQueryState',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "QueryId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"QueryId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetQueryState")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetQueryState',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({QueryId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetQueryState',
  headers: {'content-type': 'application/json'},
  body: {QueryId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetQueryState');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  QueryId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetQueryState',
  headers: {'content-type': 'application/json'},
  data: {QueryId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetQueryState';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"QueryId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetQueryState"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetQueryState" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"QueryId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetQueryState",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'QueryId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetQueryState', [
  'body' => '{
  "QueryId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetQueryState');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'QueryId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'QueryId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetQueryState');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetQueryState' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetQueryState' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"QueryId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetQueryState", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetQueryState"

payload = { "QueryId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetQueryState"

payload <- "{\n  \"QueryId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetQueryState")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"QueryId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetQueryState') do |req|
  req.body = "{\n  \"QueryId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetQueryState";

    let payload = json!({"QueryId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetQueryState \
  --header 'content-type: application/json' \
  --data '{
  "QueryId": ""
}'
echo '{
  "QueryId": ""
}' |  \
  http POST {{baseUrl}}/GetQueryState \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "QueryId": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetQueryState
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["QueryId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetQueryState")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetQueryStatistics
{{baseUrl}}/GetQueryStatistics
BODY json

{
  "QueryId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetQueryStatistics");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"QueryId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetQueryStatistics" {:content-type :json
                                                               :form-params {:QueryId ""}})
require "http/client"

url = "{{baseUrl}}/GetQueryStatistics"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"QueryId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetQueryStatistics"),
    Content = new StringContent("{\n  \"QueryId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetQueryStatistics");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"QueryId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetQueryStatistics"

	payload := strings.NewReader("{\n  \"QueryId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetQueryStatistics HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "QueryId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetQueryStatistics")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"QueryId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetQueryStatistics"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"QueryId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"QueryId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetQueryStatistics")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetQueryStatistics")
  .header("content-type", "application/json")
  .body("{\n  \"QueryId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  QueryId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetQueryStatistics');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetQueryStatistics',
  headers: {'content-type': 'application/json'},
  data: {QueryId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetQueryStatistics';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetQueryStatistics',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "QueryId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"QueryId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetQueryStatistics")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetQueryStatistics',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({QueryId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetQueryStatistics',
  headers: {'content-type': 'application/json'},
  body: {QueryId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetQueryStatistics');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  QueryId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetQueryStatistics',
  headers: {'content-type': 'application/json'},
  data: {QueryId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetQueryStatistics';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"QueryId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetQueryStatistics"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetQueryStatistics" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"QueryId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetQueryStatistics",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'QueryId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetQueryStatistics', [
  'body' => '{
  "QueryId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetQueryStatistics');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'QueryId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'QueryId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetQueryStatistics');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetQueryStatistics' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetQueryStatistics' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"QueryId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetQueryStatistics", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetQueryStatistics"

payload = { "QueryId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetQueryStatistics"

payload <- "{\n  \"QueryId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetQueryStatistics")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"QueryId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetQueryStatistics') do |req|
  req.body = "{\n  \"QueryId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetQueryStatistics";

    let payload = json!({"QueryId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetQueryStatistics \
  --header 'content-type: application/json' \
  --data '{
  "QueryId": ""
}'
echo '{
  "QueryId": ""
}' |  \
  http POST {{baseUrl}}/GetQueryStatistics \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "QueryId": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetQueryStatistics
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["QueryId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetQueryStatistics")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetResourceLFTags
{{baseUrl}}/GetResourceLFTags
BODY json

{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetResourceLFTags");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetResourceLFTags" {:content-type :json
                                                              :form-params {:CatalogId ""
                                                                            :Resource {:Catalog ""
                                                                                       :Database ""
                                                                                       :Table ""
                                                                                       :TableWithColumns ""
                                                                                       :DataLocation ""
                                                                                       :DataCellsFilter ""
                                                                                       :LFTag ""
                                                                                       :LFTagPolicy ""}
                                                                            :ShowAssignedLFTags false}})
require "http/client"

url = "{{baseUrl}}/GetResourceLFTags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetResourceLFTags"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetResourceLFTags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetResourceLFTags"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetResourceLFTags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 247

{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetResourceLFTags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetResourceLFTags"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetResourceLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetResourceLFTags")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  ShowAssignedLFTags: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetResourceLFTags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetResourceLFTags',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    ShowAssignedLFTags: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetResourceLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"ShowAssignedLFTags":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetResourceLFTags',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "ShowAssignedLFTags": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetResourceLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetResourceLFTags',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  ShowAssignedLFTags: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetResourceLFTags',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    ShowAssignedLFTags: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetResourceLFTags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  ShowAssignedLFTags: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetResourceLFTags',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    ShowAssignedLFTags: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetResourceLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"ShowAssignedLFTags":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Resource": @{ @"Catalog": @"", @"Database": @"", @"Table": @"", @"TableWithColumns": @"", @"DataLocation": @"", @"DataCellsFilter": @"", @"LFTag": @"", @"LFTagPolicy": @"" },
                              @"ShowAssignedLFTags": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetResourceLFTags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetResourceLFTags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetResourceLFTags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Resource' => [
        'Catalog' => '',
        'Database' => '',
        'Table' => '',
        'TableWithColumns' => '',
        'DataLocation' => '',
        'DataCellsFilter' => '',
        'LFTag' => '',
        'LFTagPolicy' => ''
    ],
    'ShowAssignedLFTags' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetResourceLFTags', [
  'body' => '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetResourceLFTags');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'ShowAssignedLFTags' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'ShowAssignedLFTags' => null
]));
$request->setRequestUrl('{{baseUrl}}/GetResourceLFTags');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetResourceLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetResourceLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetResourceLFTags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetResourceLFTags"

payload = {
    "CatalogId": "",
    "Resource": {
        "Catalog": "",
        "Database": "",
        "Table": "",
        "TableWithColumns": "",
        "DataLocation": "",
        "DataCellsFilter": "",
        "LFTag": "",
        "LFTagPolicy": ""
    },
    "ShowAssignedLFTags": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetResourceLFTags"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetResourceLFTags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetResourceLFTags') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"ShowAssignedLFTags\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetResourceLFTags";

    let payload = json!({
        "CatalogId": "",
        "Resource": json!({
            "Catalog": "",
            "Database": "",
            "Table": "",
            "TableWithColumns": "",
            "DataLocation": "",
            "DataCellsFilter": "",
            "LFTag": "",
            "LFTagPolicy": ""
        }),
        "ShowAssignedLFTags": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetResourceLFTags \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}'
echo '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "ShowAssignedLFTags": false
}' |  \
  http POST {{baseUrl}}/GetResourceLFTags \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "ShowAssignedLFTags": false\n}' \
  --output-document \
  - {{baseUrl}}/GetResourceLFTags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Resource": [
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  ],
  "ShowAssignedLFTags": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetResourceLFTags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetTableObjects
{{baseUrl}}/GetTableObjects
BODY json

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetTableObjects");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetTableObjects" {:content-type :json
                                                            :form-params {:CatalogId ""
                                                                          :DatabaseName ""
                                                                          :TableName ""
                                                                          :TransactionId ""
                                                                          :QueryAsOfTime ""
                                                                          :PartitionPredicate ""
                                                                          :MaxResults 0
                                                                          :NextToken ""}})
require "http/client"

url = "{{baseUrl}}/GetTableObjects"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetTableObjects"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetTableObjects");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetTableObjects"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetTableObjects HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 174

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetTableObjects")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetTableObjects"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetTableObjects")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetTableObjects")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  QueryAsOfTime: '',
  PartitionPredicate: '',
  MaxResults: 0,
  NextToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetTableObjects');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTableObjects',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    QueryAsOfTime: '',
    PartitionPredicate: '',
    MaxResults: 0,
    NextToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetTableObjects';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","TransactionId":"","QueryAsOfTime":"","PartitionPredicate":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetTableObjects',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "TransactionId": "",\n  "QueryAsOfTime": "",\n  "PartitionPredicate": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetTableObjects")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetTableObjects',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  QueryAsOfTime: '',
  PartitionPredicate: '',
  MaxResults: 0,
  NextToken: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTableObjects',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    QueryAsOfTime: '',
    PartitionPredicate: '',
    MaxResults: 0,
    NextToken: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetTableObjects');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  QueryAsOfTime: '',
  PartitionPredicate: '',
  MaxResults: 0,
  NextToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTableObjects',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    QueryAsOfTime: '',
    PartitionPredicate: '',
    MaxResults: 0,
    NextToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetTableObjects';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","TransactionId":"","QueryAsOfTime":"","PartitionPredicate":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"TransactionId": @"",
                              @"QueryAsOfTime": @"",
                              @"PartitionPredicate": @"",
                              @"MaxResults": @0,
                              @"NextToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetTableObjects"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetTableObjects" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetTableObjects",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'TransactionId' => '',
    'QueryAsOfTime' => '',
    'PartitionPredicate' => '',
    'MaxResults' => 0,
    'NextToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetTableObjects', [
  'body' => '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetTableObjects');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'TransactionId' => '',
  'QueryAsOfTime' => '',
  'PartitionPredicate' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'TransactionId' => '',
  'QueryAsOfTime' => '',
  'PartitionPredicate' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetTableObjects');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetTableObjects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetTableObjects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetTableObjects", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetTableObjects"

payload = {
    "CatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "TransactionId": "",
    "QueryAsOfTime": "",
    "PartitionPredicate": "",
    "MaxResults": 0,
    "NextToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetTableObjects"

payload <- "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetTableObjects")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetTableObjects') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"QueryAsOfTime\": \"\",\n  \"PartitionPredicate\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetTableObjects";

    let payload = json!({
        "CatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "TransactionId": "",
        "QueryAsOfTime": "",
        "PartitionPredicate": "",
        "MaxResults": 0,
        "NextToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetTableObjects \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}'
echo '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
}' |  \
  http POST {{baseUrl}}/GetTableObjects \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "TransactionId": "",\n  "QueryAsOfTime": "",\n  "PartitionPredicate": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetTableObjects
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "QueryAsOfTime": "",
  "PartitionPredicate": "",
  "MaxResults": 0,
  "NextToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetTableObjects")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetTemporaryGluePartitionCredentials
{{baseUrl}}/GetTemporaryGluePartitionCredentials
BODY json

{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetTemporaryGluePartitionCredentials");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetTemporaryGluePartitionCredentials" {:content-type :json
                                                                                 :form-params {:TableArn ""
                                                                                               :Partition {:Values ""}
                                                                                               :Permissions []
                                                                                               :DurationSeconds 0
                                                                                               :AuditContext {:AdditionalAuditContext ""}
                                                                                               :SupportedPermissionTypes []}})
require "http/client"

url = "{{baseUrl}}/GetTemporaryGluePartitionCredentials"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetTemporaryGluePartitionCredentials"),
    Content = new StringContent("{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetTemporaryGluePartitionCredentials");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetTemporaryGluePartitionCredentials"

	payload := strings.NewReader("{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetTemporaryGluePartitionCredentials HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 196

{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetTemporaryGluePartitionCredentials")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetTemporaryGluePartitionCredentials"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetTemporaryGluePartitionCredentials")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetTemporaryGluePartitionCredentials")
  .header("content-type", "application/json")
  .body("{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
  .asString();
const data = JSON.stringify({
  TableArn: '',
  Partition: {
    Values: ''
  },
  Permissions: [],
  DurationSeconds: 0,
  AuditContext: {
    AdditionalAuditContext: ''
  },
  SupportedPermissionTypes: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetTemporaryGluePartitionCredentials');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTemporaryGluePartitionCredentials',
  headers: {'content-type': 'application/json'},
  data: {
    TableArn: '',
    Partition: {Values: ''},
    Permissions: [],
    DurationSeconds: 0,
    AuditContext: {AdditionalAuditContext: ''},
    SupportedPermissionTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetTemporaryGluePartitionCredentials';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableArn":"","Partition":{"Values":""},"Permissions":[],"DurationSeconds":0,"AuditContext":{"AdditionalAuditContext":""},"SupportedPermissionTypes":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetTemporaryGluePartitionCredentials',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TableArn": "",\n  "Partition": {\n    "Values": ""\n  },\n  "Permissions": [],\n  "DurationSeconds": 0,\n  "AuditContext": {\n    "AdditionalAuditContext": ""\n  },\n  "SupportedPermissionTypes": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetTemporaryGluePartitionCredentials")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetTemporaryGluePartitionCredentials',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  TableArn: '',
  Partition: {Values: ''},
  Permissions: [],
  DurationSeconds: 0,
  AuditContext: {AdditionalAuditContext: ''},
  SupportedPermissionTypes: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTemporaryGluePartitionCredentials',
  headers: {'content-type': 'application/json'},
  body: {
    TableArn: '',
    Partition: {Values: ''},
    Permissions: [],
    DurationSeconds: 0,
    AuditContext: {AdditionalAuditContext: ''},
    SupportedPermissionTypes: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetTemporaryGluePartitionCredentials');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TableArn: '',
  Partition: {
    Values: ''
  },
  Permissions: [],
  DurationSeconds: 0,
  AuditContext: {
    AdditionalAuditContext: ''
  },
  SupportedPermissionTypes: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTemporaryGluePartitionCredentials',
  headers: {'content-type': 'application/json'},
  data: {
    TableArn: '',
    Partition: {Values: ''},
    Permissions: [],
    DurationSeconds: 0,
    AuditContext: {AdditionalAuditContext: ''},
    SupportedPermissionTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetTemporaryGluePartitionCredentials';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableArn":"","Partition":{"Values":""},"Permissions":[],"DurationSeconds":0,"AuditContext":{"AdditionalAuditContext":""},"SupportedPermissionTypes":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TableArn": @"",
                              @"Partition": @{ @"Values": @"" },
                              @"Permissions": @[  ],
                              @"DurationSeconds": @0,
                              @"AuditContext": @{ @"AdditionalAuditContext": @"" },
                              @"SupportedPermissionTypes": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetTemporaryGluePartitionCredentials"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetTemporaryGluePartitionCredentials" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetTemporaryGluePartitionCredentials",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TableArn' => '',
    'Partition' => [
        'Values' => ''
    ],
    'Permissions' => [
        
    ],
    'DurationSeconds' => 0,
    'AuditContext' => [
        'AdditionalAuditContext' => ''
    ],
    'SupportedPermissionTypes' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetTemporaryGluePartitionCredentials', [
  'body' => '{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetTemporaryGluePartitionCredentials');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TableArn' => '',
  'Partition' => [
    'Values' => ''
  ],
  'Permissions' => [
    
  ],
  'DurationSeconds' => 0,
  'AuditContext' => [
    'AdditionalAuditContext' => ''
  ],
  'SupportedPermissionTypes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TableArn' => '',
  'Partition' => [
    'Values' => ''
  ],
  'Permissions' => [
    
  ],
  'DurationSeconds' => 0,
  'AuditContext' => [
    'AdditionalAuditContext' => ''
  ],
  'SupportedPermissionTypes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/GetTemporaryGluePartitionCredentials');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetTemporaryGluePartitionCredentials' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetTemporaryGluePartitionCredentials' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetTemporaryGluePartitionCredentials", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetTemporaryGluePartitionCredentials"

payload = {
    "TableArn": "",
    "Partition": { "Values": "" },
    "Permissions": [],
    "DurationSeconds": 0,
    "AuditContext": { "AdditionalAuditContext": "" },
    "SupportedPermissionTypes": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetTemporaryGluePartitionCredentials"

payload <- "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetTemporaryGluePartitionCredentials")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetTemporaryGluePartitionCredentials') do |req|
  req.body = "{\n  \"TableArn\": \"\",\n  \"Partition\": {\n    \"Values\": \"\"\n  },\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetTemporaryGluePartitionCredentials";

    let payload = json!({
        "TableArn": "",
        "Partition": json!({"Values": ""}),
        "Permissions": (),
        "DurationSeconds": 0,
        "AuditContext": json!({"AdditionalAuditContext": ""}),
        "SupportedPermissionTypes": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetTemporaryGluePartitionCredentials \
  --header 'content-type: application/json' \
  --data '{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}'
echo '{
  "TableArn": "",
  "Partition": {
    "Values": ""
  },
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}' |  \
  http POST {{baseUrl}}/GetTemporaryGluePartitionCredentials \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TableArn": "",\n  "Partition": {\n    "Values": ""\n  },\n  "Permissions": [],\n  "DurationSeconds": 0,\n  "AuditContext": {\n    "AdditionalAuditContext": ""\n  },\n  "SupportedPermissionTypes": []\n}' \
  --output-document \
  - {{baseUrl}}/GetTemporaryGluePartitionCredentials
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "TableArn": "",
  "Partition": ["Values": ""],
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": ["AdditionalAuditContext": ""],
  "SupportedPermissionTypes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetTemporaryGluePartitionCredentials")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetTemporaryGlueTableCredentials
{{baseUrl}}/GetTemporaryGlueTableCredentials
BODY json

{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetTemporaryGlueTableCredentials");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetTemporaryGlueTableCredentials" {:content-type :json
                                                                             :form-params {:TableArn ""
                                                                                           :Permissions []
                                                                                           :DurationSeconds 0
                                                                                           :AuditContext {:AdditionalAuditContext ""}
                                                                                           :SupportedPermissionTypes []}})
require "http/client"

url = "{{baseUrl}}/GetTemporaryGlueTableCredentials"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetTemporaryGlueTableCredentials"),
    Content = new StringContent("{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetTemporaryGlueTableCredentials");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetTemporaryGlueTableCredentials"

	payload := strings.NewReader("{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetTemporaryGlueTableCredentials HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 157

{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetTemporaryGlueTableCredentials")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetTemporaryGlueTableCredentials"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetTemporaryGlueTableCredentials")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetTemporaryGlueTableCredentials")
  .header("content-type", "application/json")
  .body("{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
  .asString();
const data = JSON.stringify({
  TableArn: '',
  Permissions: [],
  DurationSeconds: 0,
  AuditContext: {
    AdditionalAuditContext: ''
  },
  SupportedPermissionTypes: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetTemporaryGlueTableCredentials');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTemporaryGlueTableCredentials',
  headers: {'content-type': 'application/json'},
  data: {
    TableArn: '',
    Permissions: [],
    DurationSeconds: 0,
    AuditContext: {AdditionalAuditContext: ''},
    SupportedPermissionTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetTemporaryGlueTableCredentials';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableArn":"","Permissions":[],"DurationSeconds":0,"AuditContext":{"AdditionalAuditContext":""},"SupportedPermissionTypes":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetTemporaryGlueTableCredentials',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TableArn": "",\n  "Permissions": [],\n  "DurationSeconds": 0,\n  "AuditContext": {\n    "AdditionalAuditContext": ""\n  },\n  "SupportedPermissionTypes": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetTemporaryGlueTableCredentials")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetTemporaryGlueTableCredentials',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  TableArn: '',
  Permissions: [],
  DurationSeconds: 0,
  AuditContext: {AdditionalAuditContext: ''},
  SupportedPermissionTypes: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTemporaryGlueTableCredentials',
  headers: {'content-type': 'application/json'},
  body: {
    TableArn: '',
    Permissions: [],
    DurationSeconds: 0,
    AuditContext: {AdditionalAuditContext: ''},
    SupportedPermissionTypes: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetTemporaryGlueTableCredentials');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TableArn: '',
  Permissions: [],
  DurationSeconds: 0,
  AuditContext: {
    AdditionalAuditContext: ''
  },
  SupportedPermissionTypes: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetTemporaryGlueTableCredentials',
  headers: {'content-type': 'application/json'},
  data: {
    TableArn: '',
    Permissions: [],
    DurationSeconds: 0,
    AuditContext: {AdditionalAuditContext: ''},
    SupportedPermissionTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetTemporaryGlueTableCredentials';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableArn":"","Permissions":[],"DurationSeconds":0,"AuditContext":{"AdditionalAuditContext":""},"SupportedPermissionTypes":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TableArn": @"",
                              @"Permissions": @[  ],
                              @"DurationSeconds": @0,
                              @"AuditContext": @{ @"AdditionalAuditContext": @"" },
                              @"SupportedPermissionTypes": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetTemporaryGlueTableCredentials"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetTemporaryGlueTableCredentials" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetTemporaryGlueTableCredentials",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TableArn' => '',
    'Permissions' => [
        
    ],
    'DurationSeconds' => 0,
    'AuditContext' => [
        'AdditionalAuditContext' => ''
    ],
    'SupportedPermissionTypes' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetTemporaryGlueTableCredentials', [
  'body' => '{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetTemporaryGlueTableCredentials');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TableArn' => '',
  'Permissions' => [
    
  ],
  'DurationSeconds' => 0,
  'AuditContext' => [
    'AdditionalAuditContext' => ''
  ],
  'SupportedPermissionTypes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TableArn' => '',
  'Permissions' => [
    
  ],
  'DurationSeconds' => 0,
  'AuditContext' => [
    'AdditionalAuditContext' => ''
  ],
  'SupportedPermissionTypes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/GetTemporaryGlueTableCredentials');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetTemporaryGlueTableCredentials' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetTemporaryGlueTableCredentials' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetTemporaryGlueTableCredentials", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetTemporaryGlueTableCredentials"

payload = {
    "TableArn": "",
    "Permissions": [],
    "DurationSeconds": 0,
    "AuditContext": { "AdditionalAuditContext": "" },
    "SupportedPermissionTypes": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetTemporaryGlueTableCredentials"

payload <- "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetTemporaryGlueTableCredentials")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetTemporaryGlueTableCredentials') do |req|
  req.body = "{\n  \"TableArn\": \"\",\n  \"Permissions\": [],\n  \"DurationSeconds\": 0,\n  \"AuditContext\": {\n    \"AdditionalAuditContext\": \"\"\n  },\n  \"SupportedPermissionTypes\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetTemporaryGlueTableCredentials";

    let payload = json!({
        "TableArn": "",
        "Permissions": (),
        "DurationSeconds": 0,
        "AuditContext": json!({"AdditionalAuditContext": ""}),
        "SupportedPermissionTypes": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetTemporaryGlueTableCredentials \
  --header 'content-type: application/json' \
  --data '{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}'
echo '{
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": {
    "AdditionalAuditContext": ""
  },
  "SupportedPermissionTypes": []
}' |  \
  http POST {{baseUrl}}/GetTemporaryGlueTableCredentials \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TableArn": "",\n  "Permissions": [],\n  "DurationSeconds": 0,\n  "AuditContext": {\n    "AdditionalAuditContext": ""\n  },\n  "SupportedPermissionTypes": []\n}' \
  --output-document \
  - {{baseUrl}}/GetTemporaryGlueTableCredentials
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "TableArn": "",
  "Permissions": [],
  "DurationSeconds": 0,
  "AuditContext": ["AdditionalAuditContext": ""],
  "SupportedPermissionTypes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetTemporaryGlueTableCredentials")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetWorkUnitResults
{{baseUrl}}/GetWorkUnitResults
BODY json

{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetWorkUnitResults");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetWorkUnitResults" {:content-type :json
                                                               :form-params {:QueryId ""
                                                                             :WorkUnitId 0
                                                                             :WorkUnitToken ""}})
require "http/client"

url = "{{baseUrl}}/GetWorkUnitResults"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetWorkUnitResults"),
    Content = new StringContent("{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetWorkUnitResults");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetWorkUnitResults"

	payload := strings.NewReader("{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetWorkUnitResults HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetWorkUnitResults")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetWorkUnitResults"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetWorkUnitResults")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetWorkUnitResults")
  .header("content-type", "application/json")
  .body("{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  QueryId: '',
  WorkUnitId: 0,
  WorkUnitToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetWorkUnitResults');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetWorkUnitResults',
  headers: {'content-type': 'application/json'},
  data: {QueryId: '', WorkUnitId: 0, WorkUnitToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetWorkUnitResults';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryId":"","WorkUnitId":0,"WorkUnitToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetWorkUnitResults',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "QueryId": "",\n  "WorkUnitId": 0,\n  "WorkUnitToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetWorkUnitResults")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetWorkUnitResults',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({QueryId: '', WorkUnitId: 0, WorkUnitToken: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetWorkUnitResults',
  headers: {'content-type': 'application/json'},
  body: {QueryId: '', WorkUnitId: 0, WorkUnitToken: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetWorkUnitResults');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  QueryId: '',
  WorkUnitId: 0,
  WorkUnitToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetWorkUnitResults',
  headers: {'content-type': 'application/json'},
  data: {QueryId: '', WorkUnitId: 0, WorkUnitToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetWorkUnitResults';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryId":"","WorkUnitId":0,"WorkUnitToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"QueryId": @"",
                              @"WorkUnitId": @0,
                              @"WorkUnitToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetWorkUnitResults"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetWorkUnitResults" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetWorkUnitResults",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'QueryId' => '',
    'WorkUnitId' => 0,
    'WorkUnitToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetWorkUnitResults', [
  'body' => '{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetWorkUnitResults');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'QueryId' => '',
  'WorkUnitId' => 0,
  'WorkUnitToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'QueryId' => '',
  'WorkUnitId' => 0,
  'WorkUnitToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetWorkUnitResults');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetWorkUnitResults' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetWorkUnitResults' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetWorkUnitResults", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetWorkUnitResults"

payload = {
    "QueryId": "",
    "WorkUnitId": 0,
    "WorkUnitToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetWorkUnitResults"

payload <- "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetWorkUnitResults")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetWorkUnitResults') do |req|
  req.body = "{\n  \"QueryId\": \"\",\n  \"WorkUnitId\": 0,\n  \"WorkUnitToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetWorkUnitResults";

    let payload = json!({
        "QueryId": "",
        "WorkUnitId": 0,
        "WorkUnitToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetWorkUnitResults \
  --header 'content-type: application/json' \
  --data '{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}'
echo '{
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
}' |  \
  http POST {{baseUrl}}/GetWorkUnitResults \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "QueryId": "",\n  "WorkUnitId": 0,\n  "WorkUnitToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetWorkUnitResults
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "QueryId": "",
  "WorkUnitId": 0,
  "WorkUnitToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetWorkUnitResults")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GetWorkUnits
{{baseUrl}}/GetWorkUnits
BODY json

{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GetWorkUnits");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GetWorkUnits" {:content-type :json
                                                         :form-params {:NextToken ""
                                                                       :PageSize 0
                                                                       :QueryId ""}})
require "http/client"

url = "{{baseUrl}}/GetWorkUnits"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GetWorkUnits"),
    Content = new StringContent("{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GetWorkUnits");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GetWorkUnits"

	payload := strings.NewReader("{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GetWorkUnits HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 55

{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GetWorkUnits")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GetWorkUnits"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GetWorkUnits")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GetWorkUnits")
  .header("content-type", "application/json")
  .body("{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  NextToken: '',
  PageSize: 0,
  QueryId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GetWorkUnits');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetWorkUnits',
  headers: {'content-type': 'application/json'},
  data: {NextToken: '', PageSize: 0, QueryId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GetWorkUnits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"NextToken":"","PageSize":0,"QueryId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GetWorkUnits',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "NextToken": "",\n  "PageSize": 0,\n  "QueryId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GetWorkUnits")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GetWorkUnits',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({NextToken: '', PageSize: 0, QueryId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetWorkUnits',
  headers: {'content-type': 'application/json'},
  body: {NextToken: '', PageSize: 0, QueryId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GetWorkUnits');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  NextToken: '',
  PageSize: 0,
  QueryId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GetWorkUnits',
  headers: {'content-type': 'application/json'},
  data: {NextToken: '', PageSize: 0, QueryId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GetWorkUnits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"NextToken":"","PageSize":0,"QueryId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"NextToken": @"",
                              @"PageSize": @0,
                              @"QueryId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GetWorkUnits"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GetWorkUnits" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GetWorkUnits",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'NextToken' => '',
    'PageSize' => 0,
    'QueryId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GetWorkUnits', [
  'body' => '{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GetWorkUnits');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'NextToken' => '',
  'PageSize' => 0,
  'QueryId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'NextToken' => '',
  'PageSize' => 0,
  'QueryId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/GetWorkUnits');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GetWorkUnits' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GetWorkUnits' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GetWorkUnits", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GetWorkUnits"

payload = {
    "NextToken": "",
    "PageSize": 0,
    "QueryId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GetWorkUnits"

payload <- "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GetWorkUnits")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GetWorkUnits') do |req|
  req.body = "{\n  \"NextToken\": \"\",\n  \"PageSize\": 0,\n  \"QueryId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GetWorkUnits";

    let payload = json!({
        "NextToken": "",
        "PageSize": 0,
        "QueryId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GetWorkUnits \
  --header 'content-type: application/json' \
  --data '{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}'
echo '{
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
}' |  \
  http POST {{baseUrl}}/GetWorkUnits \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "NextToken": "",\n  "PageSize": 0,\n  "QueryId": ""\n}' \
  --output-document \
  - {{baseUrl}}/GetWorkUnits
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "NextToken": "",
  "PageSize": 0,
  "QueryId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GetWorkUnits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GrantPermissions
{{baseUrl}}/GrantPermissions
BODY json

{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/GrantPermissions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/GrantPermissions" {:content-type :json
                                                             :form-params {:CatalogId ""
                                                                           :Principal {:DataLakePrincipalIdentifier ""}
                                                                           :Resource {:Catalog ""
                                                                                      :Database ""
                                                                                      :Table ""
                                                                                      :TableWithColumns ""
                                                                                      :DataLocation ""
                                                                                      :DataCellsFilter ""
                                                                                      :LFTag ""
                                                                                      :LFTagPolicy ""}
                                                                           :Permissions []
                                                                           :PermissionsWithGrantOption []}})
require "http/client"

url = "{{baseUrl}}/GrantPermissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/GrantPermissions"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/GrantPermissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/GrantPermissions"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/GrantPermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 333

{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/GrantPermissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/GrantPermissions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/GrantPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/GrantPermissions")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Principal: {
    DataLakePrincipalIdentifier: ''
  },
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  Permissions: [],
  PermissionsWithGrantOption: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/GrantPermissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GrantPermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    Permissions: [],
    PermissionsWithGrantOption: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/GrantPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Principal":{"DataLakePrincipalIdentifier":""},"Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"Permissions":[],"PermissionsWithGrantOption":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/GrantPermissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Principal": {\n    "DataLakePrincipalIdentifier": ""\n  },\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "Permissions": [],\n  "PermissionsWithGrantOption": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/GrantPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/GrantPermissions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Principal: {DataLakePrincipalIdentifier: ''},
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  Permissions: [],
  PermissionsWithGrantOption: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GrantPermissions',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    Permissions: [],
    PermissionsWithGrantOption: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/GrantPermissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Principal: {
    DataLakePrincipalIdentifier: ''
  },
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  Permissions: [],
  PermissionsWithGrantOption: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/GrantPermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    Permissions: [],
    PermissionsWithGrantOption: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/GrantPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Principal":{"DataLakePrincipalIdentifier":""},"Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"Permissions":[],"PermissionsWithGrantOption":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Principal": @{ @"DataLakePrincipalIdentifier": @"" },
                              @"Resource": @{ @"Catalog": @"", @"Database": @"", @"Table": @"", @"TableWithColumns": @"", @"DataLocation": @"", @"DataCellsFilter": @"", @"LFTag": @"", @"LFTagPolicy": @"" },
                              @"Permissions": @[  ],
                              @"PermissionsWithGrantOption": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/GrantPermissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/GrantPermissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/GrantPermissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Principal' => [
        'DataLakePrincipalIdentifier' => ''
    ],
    'Resource' => [
        'Catalog' => '',
        'Database' => '',
        'Table' => '',
        'TableWithColumns' => '',
        'DataLocation' => '',
        'DataCellsFilter' => '',
        'LFTag' => '',
        'LFTagPolicy' => ''
    ],
    'Permissions' => [
        
    ],
    'PermissionsWithGrantOption' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/GrantPermissions', [
  'body' => '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/GrantPermissions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Principal' => [
    'DataLakePrincipalIdentifier' => ''
  ],
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'Permissions' => [
    
  ],
  'PermissionsWithGrantOption' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Principal' => [
    'DataLakePrincipalIdentifier' => ''
  ],
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'Permissions' => [
    
  ],
  'PermissionsWithGrantOption' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/GrantPermissions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/GrantPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/GrantPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/GrantPermissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/GrantPermissions"

payload = {
    "CatalogId": "",
    "Principal": { "DataLakePrincipalIdentifier": "" },
    "Resource": {
        "Catalog": "",
        "Database": "",
        "Table": "",
        "TableWithColumns": "",
        "DataLocation": "",
        "DataCellsFilter": "",
        "LFTag": "",
        "LFTagPolicy": ""
    },
    "Permissions": [],
    "PermissionsWithGrantOption": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/GrantPermissions"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/GrantPermissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/GrantPermissions') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/GrantPermissions";

    let payload = json!({
        "CatalogId": "",
        "Principal": json!({"DataLakePrincipalIdentifier": ""}),
        "Resource": json!({
            "Catalog": "",
            "Database": "",
            "Table": "",
            "TableWithColumns": "",
            "DataLocation": "",
            "DataCellsFilter": "",
            "LFTag": "",
            "LFTagPolicy": ""
        }),
        "Permissions": (),
        "PermissionsWithGrantOption": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/GrantPermissions \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}'
echo '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}' |  \
  http POST {{baseUrl}}/GrantPermissions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Principal": {\n    "DataLakePrincipalIdentifier": ""\n  },\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "Permissions": [],\n  "PermissionsWithGrantOption": []\n}' \
  --output-document \
  - {{baseUrl}}/GrantPermissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Principal": ["DataLakePrincipalIdentifier": ""],
  "Resource": [
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  ],
  "Permissions": [],
  "PermissionsWithGrantOption": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/GrantPermissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ListDataCellsFilter
{{baseUrl}}/ListDataCellsFilter
BODY json

{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ListDataCellsFilter");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ListDataCellsFilter" {:content-type :json
                                                                :form-params {:Table {:CatalogId ""
                                                                                      :DatabaseName ""
                                                                                      :Name ""
                                                                                      :TableWildcard ""}
                                                                              :NextToken ""
                                                                              :MaxResults 0}})
require "http/client"

url = "{{baseUrl}}/ListDataCellsFilter"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ListDataCellsFilter"),
    Content = new StringContent("{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ListDataCellsFilter");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ListDataCellsFilter"

	payload := strings.NewReader("{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ListDataCellsFilter HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 143

{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ListDataCellsFilter")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ListDataCellsFilter"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ListDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ListDataCellsFilter")
  .header("content-type", "application/json")
  .body("{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
  .asString();
const data = JSON.stringify({
  Table: {
    CatalogId: '',
    DatabaseName: '',
    Name: '',
    TableWildcard: ''
  },
  NextToken: '',
  MaxResults: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ListDataCellsFilter');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {
    Table: {CatalogId: '', DatabaseName: '', Name: '', TableWildcard: ''},
    NextToken: '',
    MaxResults: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ListDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"Table":{"CatalogId":"","DatabaseName":"","Name":"","TableWildcard":""},"NextToken":"","MaxResults":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ListDataCellsFilter',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Table": {\n    "CatalogId": "",\n    "DatabaseName": "",\n    "Name": "",\n    "TableWildcard": ""\n  },\n  "NextToken": "",\n  "MaxResults": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ListDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ListDataCellsFilter',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  Table: {CatalogId: '', DatabaseName: '', Name: '', TableWildcard: ''},
  NextToken: '',
  MaxResults: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListDataCellsFilter',
  headers: {'content-type': 'application/json'},
  body: {
    Table: {CatalogId: '', DatabaseName: '', Name: '', TableWildcard: ''},
    NextToken: '',
    MaxResults: 0
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ListDataCellsFilter');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Table: {
    CatalogId: '',
    DatabaseName: '',
    Name: '',
    TableWildcard: ''
  },
  NextToken: '',
  MaxResults: 0
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {
    Table: {CatalogId: '', DatabaseName: '', Name: '', TableWildcard: ''},
    NextToken: '',
    MaxResults: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ListDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"Table":{"CatalogId":"","DatabaseName":"","Name":"","TableWildcard":""},"NextToken":"","MaxResults":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Table": @{ @"CatalogId": @"", @"DatabaseName": @"", @"Name": @"", @"TableWildcard": @"" },
                              @"NextToken": @"",
                              @"MaxResults": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ListDataCellsFilter"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ListDataCellsFilter" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ListDataCellsFilter",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'Table' => [
        'CatalogId' => '',
        'DatabaseName' => '',
        'Name' => '',
        'TableWildcard' => ''
    ],
    'NextToken' => '',
    'MaxResults' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ListDataCellsFilter', [
  'body' => '{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ListDataCellsFilter');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Table' => [
    'CatalogId' => '',
    'DatabaseName' => '',
    'Name' => '',
    'TableWildcard' => ''
  ],
  'NextToken' => '',
  'MaxResults' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Table' => [
    'CatalogId' => '',
    'DatabaseName' => '',
    'Name' => '',
    'TableWildcard' => ''
  ],
  'NextToken' => '',
  'MaxResults' => 0
]));
$request->setRequestUrl('{{baseUrl}}/ListDataCellsFilter');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ListDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ListDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ListDataCellsFilter", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ListDataCellsFilter"

payload = {
    "Table": {
        "CatalogId": "",
        "DatabaseName": "",
        "Name": "",
        "TableWildcard": ""
    },
    "NextToken": "",
    "MaxResults": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ListDataCellsFilter"

payload <- "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ListDataCellsFilter")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ListDataCellsFilter') do |req|
  req.body = "{\n  \"Table\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"Name\": \"\",\n    \"TableWildcard\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ListDataCellsFilter";

    let payload = json!({
        "Table": json!({
            "CatalogId": "",
            "DatabaseName": "",
            "Name": "",
            "TableWildcard": ""
        }),
        "NextToken": "",
        "MaxResults": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ListDataCellsFilter \
  --header 'content-type: application/json' \
  --data '{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}'
echo '{
  "Table": {
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  },
  "NextToken": "",
  "MaxResults": 0
}' |  \
  http POST {{baseUrl}}/ListDataCellsFilter \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "Table": {\n    "CatalogId": "",\n    "DatabaseName": "",\n    "Name": "",\n    "TableWildcard": ""\n  },\n  "NextToken": "",\n  "MaxResults": 0\n}' \
  --output-document \
  - {{baseUrl}}/ListDataCellsFilter
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "Table": [
    "CatalogId": "",
    "DatabaseName": "",
    "Name": "",
    "TableWildcard": ""
  ],
  "NextToken": "",
  "MaxResults": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ListDataCellsFilter")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ListLFTags
{{baseUrl}}/ListLFTags
BODY json

{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ListLFTags");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ListLFTags" {:content-type :json
                                                       :form-params {:CatalogId ""
                                                                     :ResourceShareType ""
                                                                     :MaxResults 0
                                                                     :NextToken ""}})
require "http/client"

url = "{{baseUrl}}/ListLFTags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ListLFTags"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ListLFTags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ListLFTags"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ListLFTags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 86

{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ListLFTags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ListLFTags"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ListLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ListLFTags")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  ResourceShareType: '',
  MaxResults: 0,
  NextToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ListLFTags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListLFTags',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', ResourceShareType: '', MaxResults: 0, NextToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ListLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","ResourceShareType":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ListLFTags',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "ResourceShareType": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ListLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ListLFTags',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', ResourceShareType: '', MaxResults: 0, NextToken: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListLFTags',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', ResourceShareType: '', MaxResults: 0, NextToken: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ListLFTags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  ResourceShareType: '',
  MaxResults: 0,
  NextToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListLFTags',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', ResourceShareType: '', MaxResults: 0, NextToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ListLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","ResourceShareType":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"ResourceShareType": @"",
                              @"MaxResults": @0,
                              @"NextToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ListLFTags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ListLFTags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ListLFTags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'ResourceShareType' => '',
    'MaxResults' => 0,
    'NextToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ListLFTags', [
  'body' => '{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ListLFTags');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'ResourceShareType' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'ResourceShareType' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ListLFTags');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ListLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ListLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ListLFTags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ListLFTags"

payload = {
    "CatalogId": "",
    "ResourceShareType": "",
    "MaxResults": 0,
    "NextToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ListLFTags"

payload <- "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ListLFTags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ListLFTags') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"ResourceShareType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ListLFTags";

    let payload = json!({
        "CatalogId": "",
        "ResourceShareType": "",
        "MaxResults": 0,
        "NextToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ListLFTags \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}'
echo '{
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
}' |  \
  http POST {{baseUrl}}/ListLFTags \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "ResourceShareType": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/ListLFTags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "ResourceShareType": "",
  "MaxResults": 0,
  "NextToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ListLFTags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ListPermissions
{{baseUrl}}/ListPermissions
BODY json

{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ListPermissions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ListPermissions" {:content-type :json
                                                            :form-params {:CatalogId ""
                                                                          :Principal {:DataLakePrincipalIdentifier ""}
                                                                          :ResourceType ""
                                                                          :Resource {:Catalog ""
                                                                                     :Database ""
                                                                                     :Table ""
                                                                                     :TableWithColumns ""
                                                                                     :DataLocation ""
                                                                                     :DataCellsFilter ""
                                                                                     :LFTag ""
                                                                                     :LFTagPolicy ""}
                                                                          :NextToken ""
                                                                          :MaxResults 0
                                                                          :IncludeRelated ""}})
require "http/client"

url = "{{baseUrl}}/ListPermissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ListPermissions"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ListPermissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ListPermissions"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ListPermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 360

{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ListPermissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ListPermissions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ListPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ListPermissions")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Principal: {
    DataLakePrincipalIdentifier: ''
  },
  ResourceType: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  NextToken: '',
  MaxResults: 0,
  IncludeRelated: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ListPermissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListPermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    ResourceType: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    NextToken: '',
    MaxResults: 0,
    IncludeRelated: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ListPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Principal":{"DataLakePrincipalIdentifier":""},"ResourceType":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"NextToken":"","MaxResults":0,"IncludeRelated":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ListPermissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Principal": {\n    "DataLakePrincipalIdentifier": ""\n  },\n  "ResourceType": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "NextToken": "",\n  "MaxResults": 0,\n  "IncludeRelated": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ListPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ListPermissions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Principal: {DataLakePrincipalIdentifier: ''},
  ResourceType: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  NextToken: '',
  MaxResults: 0,
  IncludeRelated: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListPermissions',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    ResourceType: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    NextToken: '',
    MaxResults: 0,
    IncludeRelated: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ListPermissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Principal: {
    DataLakePrincipalIdentifier: ''
  },
  ResourceType: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  NextToken: '',
  MaxResults: 0,
  IncludeRelated: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListPermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    ResourceType: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    NextToken: '',
    MaxResults: 0,
    IncludeRelated: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ListPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Principal":{"DataLakePrincipalIdentifier":""},"ResourceType":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"NextToken":"","MaxResults":0,"IncludeRelated":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Principal": @{ @"DataLakePrincipalIdentifier": @"" },
                              @"ResourceType": @"",
                              @"Resource": @{ @"Catalog": @"", @"Database": @"", @"Table": @"", @"TableWithColumns": @"", @"DataLocation": @"", @"DataCellsFilter": @"", @"LFTag": @"", @"LFTagPolicy": @"" },
                              @"NextToken": @"",
                              @"MaxResults": @0,
                              @"IncludeRelated": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ListPermissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ListPermissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ListPermissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Principal' => [
        'DataLakePrincipalIdentifier' => ''
    ],
    'ResourceType' => '',
    'Resource' => [
        'Catalog' => '',
        'Database' => '',
        'Table' => '',
        'TableWithColumns' => '',
        'DataLocation' => '',
        'DataCellsFilter' => '',
        'LFTag' => '',
        'LFTagPolicy' => ''
    ],
    'NextToken' => '',
    'MaxResults' => 0,
    'IncludeRelated' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ListPermissions', [
  'body' => '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ListPermissions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Principal' => [
    'DataLakePrincipalIdentifier' => ''
  ],
  'ResourceType' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'NextToken' => '',
  'MaxResults' => 0,
  'IncludeRelated' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Principal' => [
    'DataLakePrincipalIdentifier' => ''
  ],
  'ResourceType' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'NextToken' => '',
  'MaxResults' => 0,
  'IncludeRelated' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ListPermissions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ListPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ListPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ListPermissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ListPermissions"

payload = {
    "CatalogId": "",
    "Principal": { "DataLakePrincipalIdentifier": "" },
    "ResourceType": "",
    "Resource": {
        "Catalog": "",
        "Database": "",
        "Table": "",
        "TableWithColumns": "",
        "DataLocation": "",
        "DataCellsFilter": "",
        "LFTag": "",
        "LFTagPolicy": ""
    },
    "NextToken": "",
    "MaxResults": 0,
    "IncludeRelated": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ListPermissions"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ListPermissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ListPermissions') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"ResourceType\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"IncludeRelated\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ListPermissions";

    let payload = json!({
        "CatalogId": "",
        "Principal": json!({"DataLakePrincipalIdentifier": ""}),
        "ResourceType": "",
        "Resource": json!({
            "Catalog": "",
            "Database": "",
            "Table": "",
            "TableWithColumns": "",
            "DataLocation": "",
            "DataCellsFilter": "",
            "LFTag": "",
            "LFTagPolicy": ""
        }),
        "NextToken": "",
        "MaxResults": 0,
        "IncludeRelated": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ListPermissions \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}'
echo '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "ResourceType": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
}' |  \
  http POST {{baseUrl}}/ListPermissions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Principal": {\n    "DataLakePrincipalIdentifier": ""\n  },\n  "ResourceType": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "NextToken": "",\n  "MaxResults": 0,\n  "IncludeRelated": ""\n}' \
  --output-document \
  - {{baseUrl}}/ListPermissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Principal": ["DataLakePrincipalIdentifier": ""],
  "ResourceType": "",
  "Resource": [
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  ],
  "NextToken": "",
  "MaxResults": 0,
  "IncludeRelated": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ListPermissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ListResources
{{baseUrl}}/ListResources
BODY json

{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ListResources");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ListResources" {:content-type :json
                                                          :form-params {:FilterConditionList [{:Field ""
                                                                                               :ComparisonOperator ""
                                                                                               :StringValueList ""}]
                                                                        :MaxResults 0
                                                                        :NextToken ""}})
require "http/client"

url = "{{baseUrl}}/ListResources"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ListResources"),
    Content = new StringContent("{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ListResources");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ListResources"

	payload := strings.NewReader("{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ListResources HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 163

{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ListResources")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ListResources"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ListResources")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ListResources")
  .header("content-type", "application/json")
  .body("{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  FilterConditionList: [
    {
      Field: '',
      ComparisonOperator: '',
      StringValueList: ''
    }
  ],
  MaxResults: 0,
  NextToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ListResources');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListResources',
  headers: {'content-type': 'application/json'},
  data: {
    FilterConditionList: [{Field: '', ComparisonOperator: '', StringValueList: ''}],
    MaxResults: 0,
    NextToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ListResources';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"FilterConditionList":[{"Field":"","ComparisonOperator":"","StringValueList":""}],"MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ListResources',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "FilterConditionList": [\n    {\n      "Field": "",\n      "ComparisonOperator": "",\n      "StringValueList": ""\n    }\n  ],\n  "MaxResults": 0,\n  "NextToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ListResources")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ListResources',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  FilterConditionList: [{Field: '', ComparisonOperator: '', StringValueList: ''}],
  MaxResults: 0,
  NextToken: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListResources',
  headers: {'content-type': 'application/json'},
  body: {
    FilterConditionList: [{Field: '', ComparisonOperator: '', StringValueList: ''}],
    MaxResults: 0,
    NextToken: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ListResources');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  FilterConditionList: [
    {
      Field: '',
      ComparisonOperator: '',
      StringValueList: ''
    }
  ],
  MaxResults: 0,
  NextToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListResources',
  headers: {'content-type': 'application/json'},
  data: {
    FilterConditionList: [{Field: '', ComparisonOperator: '', StringValueList: ''}],
    MaxResults: 0,
    NextToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ListResources';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"FilterConditionList":[{"Field":"","ComparisonOperator":"","StringValueList":""}],"MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"FilterConditionList": @[ @{ @"Field": @"", @"ComparisonOperator": @"", @"StringValueList": @"" } ],
                              @"MaxResults": @0,
                              @"NextToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ListResources"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ListResources" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ListResources",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'FilterConditionList' => [
        [
                'Field' => '',
                'ComparisonOperator' => '',
                'StringValueList' => ''
        ]
    ],
    'MaxResults' => 0,
    'NextToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ListResources', [
  'body' => '{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ListResources');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'FilterConditionList' => [
    [
        'Field' => '',
        'ComparisonOperator' => '',
        'StringValueList' => ''
    ]
  ],
  'MaxResults' => 0,
  'NextToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'FilterConditionList' => [
    [
        'Field' => '',
        'ComparisonOperator' => '',
        'StringValueList' => ''
    ]
  ],
  'MaxResults' => 0,
  'NextToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ListResources');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ListResources' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ListResources' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ListResources", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ListResources"

payload = {
    "FilterConditionList": [
        {
            "Field": "",
            "ComparisonOperator": "",
            "StringValueList": ""
        }
    ],
    "MaxResults": 0,
    "NextToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ListResources"

payload <- "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ListResources")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ListResources') do |req|
  req.body = "{\n  \"FilterConditionList\": [\n    {\n      \"Field\": \"\",\n      \"ComparisonOperator\": \"\",\n      \"StringValueList\": \"\"\n    }\n  ],\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ListResources";

    let payload = json!({
        "FilterConditionList": (
            json!({
                "Field": "",
                "ComparisonOperator": "",
                "StringValueList": ""
            })
        ),
        "MaxResults": 0,
        "NextToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ListResources \
  --header 'content-type: application/json' \
  --data '{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}'
echo '{
  "FilterConditionList": [
    {
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    }
  ],
  "MaxResults": 0,
  "NextToken": ""
}' |  \
  http POST {{baseUrl}}/ListResources \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "FilterConditionList": [\n    {\n      "Field": "",\n      "ComparisonOperator": "",\n      "StringValueList": ""\n    }\n  ],\n  "MaxResults": 0,\n  "NextToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/ListResources
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "FilterConditionList": [
    [
      "Field": "",
      "ComparisonOperator": "",
      "StringValueList": ""
    ]
  ],
  "MaxResults": 0,
  "NextToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ListResources")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ListTableStorageOptimizers
{{baseUrl}}/ListTableStorageOptimizers
BODY json

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ListTableStorageOptimizers");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ListTableStorageOptimizers" {:content-type :json
                                                                       :form-params {:CatalogId ""
                                                                                     :DatabaseName ""
                                                                                     :TableName ""
                                                                                     :StorageOptimizerType ""
                                                                                     :MaxResults 0
                                                                                     :NextToken ""}})
require "http/client"

url = "{{baseUrl}}/ListTableStorageOptimizers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ListTableStorageOptimizers"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ListTableStorageOptimizers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ListTableStorageOptimizers"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ListTableStorageOptimizers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 130

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ListTableStorageOptimizers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ListTableStorageOptimizers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ListTableStorageOptimizers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ListTableStorageOptimizers")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  StorageOptimizerType: '',
  MaxResults: 0,
  NextToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ListTableStorageOptimizers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListTableStorageOptimizers',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    StorageOptimizerType: '',
    MaxResults: 0,
    NextToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ListTableStorageOptimizers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","StorageOptimizerType":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ListTableStorageOptimizers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "StorageOptimizerType": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ListTableStorageOptimizers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ListTableStorageOptimizers',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  StorageOptimizerType: '',
  MaxResults: 0,
  NextToken: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListTableStorageOptimizers',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    StorageOptimizerType: '',
    MaxResults: 0,
    NextToken: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ListTableStorageOptimizers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  StorageOptimizerType: '',
  MaxResults: 0,
  NextToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListTableStorageOptimizers',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    StorageOptimizerType: '',
    MaxResults: 0,
    NextToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ListTableStorageOptimizers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","StorageOptimizerType":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"StorageOptimizerType": @"",
                              @"MaxResults": @0,
                              @"NextToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ListTableStorageOptimizers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ListTableStorageOptimizers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ListTableStorageOptimizers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'StorageOptimizerType' => '',
    'MaxResults' => 0,
    'NextToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ListTableStorageOptimizers', [
  'body' => '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ListTableStorageOptimizers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'StorageOptimizerType' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'StorageOptimizerType' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ListTableStorageOptimizers');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ListTableStorageOptimizers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ListTableStorageOptimizers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ListTableStorageOptimizers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ListTableStorageOptimizers"

payload = {
    "CatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "StorageOptimizerType": "",
    "MaxResults": 0,
    "NextToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ListTableStorageOptimizers"

payload <- "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ListTableStorageOptimizers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ListTableStorageOptimizers') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerType\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ListTableStorageOptimizers";

    let payload = json!({
        "CatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "StorageOptimizerType": "",
        "MaxResults": 0,
        "NextToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ListTableStorageOptimizers \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}'
echo '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
}' |  \
  http POST {{baseUrl}}/ListTableStorageOptimizers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "StorageOptimizerType": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/ListTableStorageOptimizers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerType": "",
  "MaxResults": 0,
  "NextToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ListTableStorageOptimizers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST ListTransactions
{{baseUrl}}/ListTransactions
BODY json

{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/ListTransactions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/ListTransactions" {:content-type :json
                                                             :form-params {:CatalogId ""
                                                                           :StatusFilter ""
                                                                           :MaxResults 0
                                                                           :NextToken ""}})
require "http/client"

url = "{{baseUrl}}/ListTransactions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/ListTransactions"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/ListTransactions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/ListTransactions"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/ListTransactions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 81

{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ListTransactions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ListTransactions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ListTransactions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ListTransactions")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  StatusFilter: '',
  MaxResults: 0,
  NextToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/ListTransactions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListTransactions',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', StatusFilter: '', MaxResults: 0, NextToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ListTransactions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","StatusFilter":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/ListTransactions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "StatusFilter": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ListTransactions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/ListTransactions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', StatusFilter: '', MaxResults: 0, NextToken: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListTransactions',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', StatusFilter: '', MaxResults: 0, NextToken: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/ListTransactions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  StatusFilter: '',
  MaxResults: 0,
  NextToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ListTransactions',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', StatusFilter: '', MaxResults: 0, NextToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/ListTransactions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","StatusFilter":"","MaxResults":0,"NextToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"StatusFilter": @"",
                              @"MaxResults": @0,
                              @"NextToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ListTransactions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/ListTransactions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ListTransactions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'StatusFilter' => '',
    'MaxResults' => 0,
    'NextToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ListTransactions', [
  'body' => '{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/ListTransactions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'StatusFilter' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'StatusFilter' => '',
  'MaxResults' => 0,
  'NextToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ListTransactions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ListTransactions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ListTransactions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/ListTransactions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/ListTransactions"

payload = {
    "CatalogId": "",
    "StatusFilter": "",
    "MaxResults": 0,
    "NextToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/ListTransactions"

payload <- "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/ListTransactions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/ListTransactions') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"StatusFilter\": \"\",\n  \"MaxResults\": 0,\n  \"NextToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/ListTransactions";

    let payload = json!({
        "CatalogId": "",
        "StatusFilter": "",
        "MaxResults": 0,
        "NextToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/ListTransactions \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}'
echo '{
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
}' |  \
  http POST {{baseUrl}}/ListTransactions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "StatusFilter": "",\n  "MaxResults": 0,\n  "NextToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/ListTransactions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "StatusFilter": "",
  "MaxResults": 0,
  "NextToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/ListTransactions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST PutDataLakeSettings
{{baseUrl}}/PutDataLakeSettings
BODY json

{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PutDataLakeSettings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/PutDataLakeSettings" {:content-type :json
                                                                :form-params {:CatalogId ""
                                                                              :DataLakeSettings {:DataLakeAdmins ""
                                                                                                 :CreateDatabaseDefaultPermissions ""
                                                                                                 :CreateTableDefaultPermissions ""
                                                                                                 :Parameters ""
                                                                                                 :TrustedResourceOwners ""
                                                                                                 :AllowExternalDataFiltering ""
                                                                                                 :ExternalDataFilteringAllowList ""
                                                                                                 :AuthorizedSessionTagValueList ""}}})
require "http/client"

url = "{{baseUrl}}/PutDataLakeSettings"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/PutDataLakeSettings"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/PutDataLakeSettings");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/PutDataLakeSettings"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/PutDataLakeSettings HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 336

{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/PutDataLakeSettings")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PutDataLakeSettings"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/PutDataLakeSettings")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/PutDataLakeSettings")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  DataLakeSettings: {
    DataLakeAdmins: '',
    CreateDatabaseDefaultPermissions: '',
    CreateTableDefaultPermissions: '',
    Parameters: '',
    TrustedResourceOwners: '',
    AllowExternalDataFiltering: '',
    ExternalDataFilteringAllowList: '',
    AuthorizedSessionTagValueList: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/PutDataLakeSettings');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PutDataLakeSettings',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DataLakeSettings: {
      DataLakeAdmins: '',
      CreateDatabaseDefaultPermissions: '',
      CreateTableDefaultPermissions: '',
      Parameters: '',
      TrustedResourceOwners: '',
      AllowExternalDataFiltering: '',
      ExternalDataFilteringAllowList: '',
      AuthorizedSessionTagValueList: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PutDataLakeSettings';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DataLakeSettings":{"DataLakeAdmins":"","CreateDatabaseDefaultPermissions":"","CreateTableDefaultPermissions":"","Parameters":"","TrustedResourceOwners":"","AllowExternalDataFiltering":"","ExternalDataFilteringAllowList":"","AuthorizedSessionTagValueList":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/PutDataLakeSettings',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "DataLakeSettings": {\n    "DataLakeAdmins": "",\n    "CreateDatabaseDefaultPermissions": "",\n    "CreateTableDefaultPermissions": "",\n    "Parameters": "",\n    "TrustedResourceOwners": "",\n    "AllowExternalDataFiltering": "",\n    "ExternalDataFilteringAllowList": "",\n    "AuthorizedSessionTagValueList": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/PutDataLakeSettings")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/PutDataLakeSettings',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  DataLakeSettings: {
    DataLakeAdmins: '',
    CreateDatabaseDefaultPermissions: '',
    CreateTableDefaultPermissions: '',
    Parameters: '',
    TrustedResourceOwners: '',
    AllowExternalDataFiltering: '',
    ExternalDataFilteringAllowList: '',
    AuthorizedSessionTagValueList: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PutDataLakeSettings',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    DataLakeSettings: {
      DataLakeAdmins: '',
      CreateDatabaseDefaultPermissions: '',
      CreateTableDefaultPermissions: '',
      Parameters: '',
      TrustedResourceOwners: '',
      AllowExternalDataFiltering: '',
      ExternalDataFilteringAllowList: '',
      AuthorizedSessionTagValueList: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/PutDataLakeSettings');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  DataLakeSettings: {
    DataLakeAdmins: '',
    CreateDatabaseDefaultPermissions: '',
    CreateTableDefaultPermissions: '',
    Parameters: '',
    TrustedResourceOwners: '',
    AllowExternalDataFiltering: '',
    ExternalDataFilteringAllowList: '',
    AuthorizedSessionTagValueList: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PutDataLakeSettings',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DataLakeSettings: {
      DataLakeAdmins: '',
      CreateDatabaseDefaultPermissions: '',
      CreateTableDefaultPermissions: '',
      Parameters: '',
      TrustedResourceOwners: '',
      AllowExternalDataFiltering: '',
      ExternalDataFilteringAllowList: '',
      AuthorizedSessionTagValueList: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/PutDataLakeSettings';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DataLakeSettings":{"DataLakeAdmins":"","CreateDatabaseDefaultPermissions":"","CreateTableDefaultPermissions":"","Parameters":"","TrustedResourceOwners":"","AllowExternalDataFiltering":"","ExternalDataFilteringAllowList":"","AuthorizedSessionTagValueList":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"DataLakeSettings": @{ @"DataLakeAdmins": @"", @"CreateDatabaseDefaultPermissions": @"", @"CreateTableDefaultPermissions": @"", @"Parameters": @"", @"TrustedResourceOwners": @"", @"AllowExternalDataFiltering": @"", @"ExternalDataFilteringAllowList": @"", @"AuthorizedSessionTagValueList": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/PutDataLakeSettings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/PutDataLakeSettings" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PutDataLakeSettings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'DataLakeSettings' => [
        'DataLakeAdmins' => '',
        'CreateDatabaseDefaultPermissions' => '',
        'CreateTableDefaultPermissions' => '',
        'Parameters' => '',
        'TrustedResourceOwners' => '',
        'AllowExternalDataFiltering' => '',
        'ExternalDataFilteringAllowList' => '',
        'AuthorizedSessionTagValueList' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/PutDataLakeSettings', [
  'body' => '{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/PutDataLakeSettings');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'DataLakeSettings' => [
    'DataLakeAdmins' => '',
    'CreateDatabaseDefaultPermissions' => '',
    'CreateTableDefaultPermissions' => '',
    'Parameters' => '',
    'TrustedResourceOwners' => '',
    'AllowExternalDataFiltering' => '',
    'ExternalDataFilteringAllowList' => '',
    'AuthorizedSessionTagValueList' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'DataLakeSettings' => [
    'DataLakeAdmins' => '',
    'CreateDatabaseDefaultPermissions' => '',
    'CreateTableDefaultPermissions' => '',
    'Parameters' => '',
    'TrustedResourceOwners' => '',
    'AllowExternalDataFiltering' => '',
    'ExternalDataFilteringAllowList' => '',
    'AuthorizedSessionTagValueList' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/PutDataLakeSettings');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/PutDataLakeSettings' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PutDataLakeSettings' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/PutDataLakeSettings", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/PutDataLakeSettings"

payload = {
    "CatalogId": "",
    "DataLakeSettings": {
        "DataLakeAdmins": "",
        "CreateDatabaseDefaultPermissions": "",
        "CreateTableDefaultPermissions": "",
        "Parameters": "",
        "TrustedResourceOwners": "",
        "AllowExternalDataFiltering": "",
        "ExternalDataFilteringAllowList": "",
        "AuthorizedSessionTagValueList": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/PutDataLakeSettings"

payload <- "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/PutDataLakeSettings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/PutDataLakeSettings') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"DataLakeSettings\": {\n    \"DataLakeAdmins\": \"\",\n    \"CreateDatabaseDefaultPermissions\": \"\",\n    \"CreateTableDefaultPermissions\": \"\",\n    \"Parameters\": \"\",\n    \"TrustedResourceOwners\": \"\",\n    \"AllowExternalDataFiltering\": \"\",\n    \"ExternalDataFilteringAllowList\": \"\",\n    \"AuthorizedSessionTagValueList\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PutDataLakeSettings";

    let payload = json!({
        "CatalogId": "",
        "DataLakeSettings": json!({
            "DataLakeAdmins": "",
            "CreateDatabaseDefaultPermissions": "",
            "CreateTableDefaultPermissions": "",
            "Parameters": "",
            "TrustedResourceOwners": "",
            "AllowExternalDataFiltering": "",
            "ExternalDataFilteringAllowList": "",
            "AuthorizedSessionTagValueList": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/PutDataLakeSettings \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}'
echo '{
  "CatalogId": "",
  "DataLakeSettings": {
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  }
}' |  \
  http POST {{baseUrl}}/PutDataLakeSettings \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "DataLakeSettings": {\n    "DataLakeAdmins": "",\n    "CreateDatabaseDefaultPermissions": "",\n    "CreateTableDefaultPermissions": "",\n    "Parameters": "",\n    "TrustedResourceOwners": "",\n    "AllowExternalDataFiltering": "",\n    "ExternalDataFilteringAllowList": "",\n    "AuthorizedSessionTagValueList": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/PutDataLakeSettings
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "DataLakeSettings": [
    "DataLakeAdmins": "",
    "CreateDatabaseDefaultPermissions": "",
    "CreateTableDefaultPermissions": "",
    "Parameters": "",
    "TrustedResourceOwners": "",
    "AllowExternalDataFiltering": "",
    "ExternalDataFilteringAllowList": "",
    "AuthorizedSessionTagValueList": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PutDataLakeSettings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST RegisterResource
{{baseUrl}}/RegisterResource
BODY json

{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/RegisterResource");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/RegisterResource" {:content-type :json
                                                             :form-params {:ResourceArn ""
                                                                           :UseServiceLinkedRole false
                                                                           :RoleArn ""
                                                                           :WithFederation false}})
require "http/client"

url = "{{baseUrl}}/RegisterResource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/RegisterResource"),
    Content = new StringContent("{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/RegisterResource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/RegisterResource"

	payload := strings.NewReader("{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/RegisterResource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 100

{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/RegisterResource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/RegisterResource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/RegisterResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/RegisterResource")
  .header("content-type", "application/json")
  .body("{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}")
  .asString();
const data = JSON.stringify({
  ResourceArn: '',
  UseServiceLinkedRole: false,
  RoleArn: '',
  WithFederation: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/RegisterResource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RegisterResource',
  headers: {'content-type': 'application/json'},
  data: {
    ResourceArn: '',
    UseServiceLinkedRole: false,
    RoleArn: '',
    WithFederation: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/RegisterResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ResourceArn":"","UseServiceLinkedRole":false,"RoleArn":"","WithFederation":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/RegisterResource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ResourceArn": "",\n  "UseServiceLinkedRole": false,\n  "RoleArn": "",\n  "WithFederation": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/RegisterResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/RegisterResource',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  ResourceArn: '',
  UseServiceLinkedRole: false,
  RoleArn: '',
  WithFederation: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RegisterResource',
  headers: {'content-type': 'application/json'},
  body: {
    ResourceArn: '',
    UseServiceLinkedRole: false,
    RoleArn: '',
    WithFederation: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/RegisterResource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ResourceArn: '',
  UseServiceLinkedRole: false,
  RoleArn: '',
  WithFederation: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RegisterResource',
  headers: {'content-type': 'application/json'},
  data: {
    ResourceArn: '',
    UseServiceLinkedRole: false,
    RoleArn: '',
    WithFederation: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/RegisterResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ResourceArn":"","UseServiceLinkedRole":false,"RoleArn":"","WithFederation":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"ResourceArn": @"",
                              @"UseServiceLinkedRole": @NO,
                              @"RoleArn": @"",
                              @"WithFederation": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/RegisterResource"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/RegisterResource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/RegisterResource",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'ResourceArn' => '',
    'UseServiceLinkedRole' => null,
    'RoleArn' => '',
    'WithFederation' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/RegisterResource', [
  'body' => '{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/RegisterResource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ResourceArn' => '',
  'UseServiceLinkedRole' => null,
  'RoleArn' => '',
  'WithFederation' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ResourceArn' => '',
  'UseServiceLinkedRole' => null,
  'RoleArn' => '',
  'WithFederation' => null
]));
$request->setRequestUrl('{{baseUrl}}/RegisterResource');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/RegisterResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/RegisterResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/RegisterResource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/RegisterResource"

payload = {
    "ResourceArn": "",
    "UseServiceLinkedRole": False,
    "RoleArn": "",
    "WithFederation": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/RegisterResource"

payload <- "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/RegisterResource")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/RegisterResource') do |req|
  req.body = "{\n  \"ResourceArn\": \"\",\n  \"UseServiceLinkedRole\": false,\n  \"RoleArn\": \"\",\n  \"WithFederation\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/RegisterResource";

    let payload = json!({
        "ResourceArn": "",
        "UseServiceLinkedRole": false,
        "RoleArn": "",
        "WithFederation": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/RegisterResource \
  --header 'content-type: application/json' \
  --data '{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}'
echo '{
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
}' |  \
  http POST {{baseUrl}}/RegisterResource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ResourceArn": "",\n  "UseServiceLinkedRole": false,\n  "RoleArn": "",\n  "WithFederation": false\n}' \
  --output-document \
  - {{baseUrl}}/RegisterResource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "ResourceArn": "",
  "UseServiceLinkedRole": false,
  "RoleArn": "",
  "WithFederation": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/RegisterResource")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST RemoveLFTagsFromResource
{{baseUrl}}/RemoveLFTagsFromResource
BODY json

{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/RemoveLFTagsFromResource");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/RemoveLFTagsFromResource" {:content-type :json
                                                                     :form-params {:CatalogId ""
                                                                                   :Resource {:Catalog ""
                                                                                              :Database ""
                                                                                              :Table ""
                                                                                              :TableWithColumns ""
                                                                                              :DataLocation ""
                                                                                              :DataCellsFilter ""
                                                                                              :LFTag ""
                                                                                              :LFTagPolicy ""}
                                                                                   :LFTags [{:CatalogId ""
                                                                                             :TagKey ""
                                                                                             :TagValues ""}]}})
require "http/client"

url = "{{baseUrl}}/RemoveLFTagsFromResource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/RemoveLFTagsFromResource"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/RemoveLFTagsFromResource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/RemoveLFTagsFromResource"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/RemoveLFTagsFromResource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 312

{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/RemoveLFTagsFromResource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/RemoveLFTagsFromResource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/RemoveLFTagsFromResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/RemoveLFTagsFromResource")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  LFTags: [
    {
      CatalogId: '',
      TagKey: '',
      TagValues: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/RemoveLFTagsFromResource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RemoveLFTagsFromResource',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/RemoveLFTagsFromResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"LFTags":[{"CatalogId":"","TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/RemoveLFTagsFromResource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "LFTags": [\n    {\n      "CatalogId": "",\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/RemoveLFTagsFromResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/RemoveLFTagsFromResource',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RemoveLFTagsFromResource',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/RemoveLFTagsFromResource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  LFTags: [
    {
      CatalogId: '',
      TagKey: '',
      TagValues: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RemoveLFTagsFromResource',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    LFTags: [{CatalogId: '', TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/RemoveLFTagsFromResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"LFTags":[{"CatalogId":"","TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Resource": @{ @"Catalog": @"", @"Database": @"", @"Table": @"", @"TableWithColumns": @"", @"DataLocation": @"", @"DataCellsFilter": @"", @"LFTag": @"", @"LFTagPolicy": @"" },
                              @"LFTags": @[ @{ @"CatalogId": @"", @"TagKey": @"", @"TagValues": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/RemoveLFTagsFromResource"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/RemoveLFTagsFromResource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/RemoveLFTagsFromResource",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Resource' => [
        'Catalog' => '',
        'Database' => '',
        'Table' => '',
        'TableWithColumns' => '',
        'DataLocation' => '',
        'DataCellsFilter' => '',
        'LFTag' => '',
        'LFTagPolicy' => ''
    ],
    'LFTags' => [
        [
                'CatalogId' => '',
                'TagKey' => '',
                'TagValues' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/RemoveLFTagsFromResource', [
  'body' => '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/RemoveLFTagsFromResource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'LFTags' => [
    [
        'CatalogId' => '',
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'LFTags' => [
    [
        'CatalogId' => '',
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/RemoveLFTagsFromResource');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/RemoveLFTagsFromResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/RemoveLFTagsFromResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/RemoveLFTagsFromResource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/RemoveLFTagsFromResource"

payload = {
    "CatalogId": "",
    "Resource": {
        "Catalog": "",
        "Database": "",
        "Table": "",
        "TableWithColumns": "",
        "DataLocation": "",
        "DataCellsFilter": "",
        "LFTag": "",
        "LFTagPolicy": ""
    },
    "LFTags": [
        {
            "CatalogId": "",
            "TagKey": "",
            "TagValues": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/RemoveLFTagsFromResource"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/RemoveLFTagsFromResource")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/RemoveLFTagsFromResource') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"LFTags\": [\n    {\n      \"CatalogId\": \"\",\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/RemoveLFTagsFromResource";

    let payload = json!({
        "CatalogId": "",
        "Resource": json!({
            "Catalog": "",
            "Database": "",
            "Table": "",
            "TableWithColumns": "",
            "DataLocation": "",
            "DataCellsFilter": "",
            "LFTag": "",
            "LFTagPolicy": ""
        }),
        "LFTags": (
            json!({
                "CatalogId": "",
                "TagKey": "",
                "TagValues": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/RemoveLFTagsFromResource \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
echo '{
  "CatalogId": "",
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "LFTags": [
    {
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/RemoveLFTagsFromResource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "LFTags": [\n    {\n      "CatalogId": "",\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/RemoveLFTagsFromResource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Resource": [
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  ],
  "LFTags": [
    [
      "CatalogId": "",
      "TagKey": "",
      "TagValues": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/RemoveLFTagsFromResource")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST RevokePermissions
{{baseUrl}}/RevokePermissions
BODY json

{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/RevokePermissions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/RevokePermissions" {:content-type :json
                                                              :form-params {:CatalogId ""
                                                                            :Principal {:DataLakePrincipalIdentifier ""}
                                                                            :Resource {:Catalog ""
                                                                                       :Database ""
                                                                                       :Table ""
                                                                                       :TableWithColumns ""
                                                                                       :DataLocation ""
                                                                                       :DataCellsFilter ""
                                                                                       :LFTag ""
                                                                                       :LFTagPolicy ""}
                                                                            :Permissions []
                                                                            :PermissionsWithGrantOption []}})
require "http/client"

url = "{{baseUrl}}/RevokePermissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/RevokePermissions"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/RevokePermissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/RevokePermissions"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/RevokePermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 333

{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/RevokePermissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/RevokePermissions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/RevokePermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/RevokePermissions")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  Principal: {
    DataLakePrincipalIdentifier: ''
  },
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  Permissions: [],
  PermissionsWithGrantOption: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/RevokePermissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RevokePermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    Permissions: [],
    PermissionsWithGrantOption: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/RevokePermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Principal":{"DataLakePrincipalIdentifier":""},"Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"Permissions":[],"PermissionsWithGrantOption":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/RevokePermissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "Principal": {\n    "DataLakePrincipalIdentifier": ""\n  },\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "Permissions": [],\n  "PermissionsWithGrantOption": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/RevokePermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/RevokePermissions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  Principal: {DataLakePrincipalIdentifier: ''},
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  Permissions: [],
  PermissionsWithGrantOption: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RevokePermissions',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    Permissions: [],
    PermissionsWithGrantOption: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/RevokePermissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  Principal: {
    DataLakePrincipalIdentifier: ''
  },
  Resource: {
    Catalog: '',
    Database: '',
    Table: '',
    TableWithColumns: '',
    DataLocation: '',
    DataCellsFilter: '',
    LFTag: '',
    LFTagPolicy: ''
  },
  Permissions: [],
  PermissionsWithGrantOption: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/RevokePermissions',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    Principal: {DataLakePrincipalIdentifier: ''},
    Resource: {
      Catalog: '',
      Database: '',
      Table: '',
      TableWithColumns: '',
      DataLocation: '',
      DataCellsFilter: '',
      LFTag: '',
      LFTagPolicy: ''
    },
    Permissions: [],
    PermissionsWithGrantOption: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/RevokePermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","Principal":{"DataLakePrincipalIdentifier":""},"Resource":{"Catalog":"","Database":"","Table":"","TableWithColumns":"","DataLocation":"","DataCellsFilter":"","LFTag":"","LFTagPolicy":""},"Permissions":[],"PermissionsWithGrantOption":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"Principal": @{ @"DataLakePrincipalIdentifier": @"" },
                              @"Resource": @{ @"Catalog": @"", @"Database": @"", @"Table": @"", @"TableWithColumns": @"", @"DataLocation": @"", @"DataCellsFilter": @"", @"LFTag": @"", @"LFTagPolicy": @"" },
                              @"Permissions": @[  ],
                              @"PermissionsWithGrantOption": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/RevokePermissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/RevokePermissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/RevokePermissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'Principal' => [
        'DataLakePrincipalIdentifier' => ''
    ],
    'Resource' => [
        'Catalog' => '',
        'Database' => '',
        'Table' => '',
        'TableWithColumns' => '',
        'DataLocation' => '',
        'DataCellsFilter' => '',
        'LFTag' => '',
        'LFTagPolicy' => ''
    ],
    'Permissions' => [
        
    ],
    'PermissionsWithGrantOption' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/RevokePermissions', [
  'body' => '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/RevokePermissions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'Principal' => [
    'DataLakePrincipalIdentifier' => ''
  ],
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'Permissions' => [
    
  ],
  'PermissionsWithGrantOption' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'Principal' => [
    'DataLakePrincipalIdentifier' => ''
  ],
  'Resource' => [
    'Catalog' => '',
    'Database' => '',
    'Table' => '',
    'TableWithColumns' => '',
    'DataLocation' => '',
    'DataCellsFilter' => '',
    'LFTag' => '',
    'LFTagPolicy' => ''
  ],
  'Permissions' => [
    
  ],
  'PermissionsWithGrantOption' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/RevokePermissions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/RevokePermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/RevokePermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/RevokePermissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/RevokePermissions"

payload = {
    "CatalogId": "",
    "Principal": { "DataLakePrincipalIdentifier": "" },
    "Resource": {
        "Catalog": "",
        "Database": "",
        "Table": "",
        "TableWithColumns": "",
        "DataLocation": "",
        "DataCellsFilter": "",
        "LFTag": "",
        "LFTagPolicy": ""
    },
    "Permissions": [],
    "PermissionsWithGrantOption": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/RevokePermissions"

payload <- "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/RevokePermissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/RevokePermissions') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"Principal\": {\n    \"DataLakePrincipalIdentifier\": \"\"\n  },\n  \"Resource\": {\n    \"Catalog\": \"\",\n    \"Database\": \"\",\n    \"Table\": \"\",\n    \"TableWithColumns\": \"\",\n    \"DataLocation\": \"\",\n    \"DataCellsFilter\": \"\",\n    \"LFTag\": \"\",\n    \"LFTagPolicy\": \"\"\n  },\n  \"Permissions\": [],\n  \"PermissionsWithGrantOption\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/RevokePermissions";

    let payload = json!({
        "CatalogId": "",
        "Principal": json!({"DataLakePrincipalIdentifier": ""}),
        "Resource": json!({
            "Catalog": "",
            "Database": "",
            "Table": "",
            "TableWithColumns": "",
            "DataLocation": "",
            "DataCellsFilter": "",
            "LFTag": "",
            "LFTagPolicy": ""
        }),
        "Permissions": (),
        "PermissionsWithGrantOption": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/RevokePermissions \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}'
echo '{
  "CatalogId": "",
  "Principal": {
    "DataLakePrincipalIdentifier": ""
  },
  "Resource": {
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  },
  "Permissions": [],
  "PermissionsWithGrantOption": []
}' |  \
  http POST {{baseUrl}}/RevokePermissions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "Principal": {\n    "DataLakePrincipalIdentifier": ""\n  },\n  "Resource": {\n    "Catalog": "",\n    "Database": "",\n    "Table": "",\n    "TableWithColumns": "",\n    "DataLocation": "",\n    "DataCellsFilter": "",\n    "LFTag": "",\n    "LFTagPolicy": ""\n  },\n  "Permissions": [],\n  "PermissionsWithGrantOption": []\n}' \
  --output-document \
  - {{baseUrl}}/RevokePermissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "Principal": ["DataLakePrincipalIdentifier": ""],
  "Resource": [
    "Catalog": "",
    "Database": "",
    "Table": "",
    "TableWithColumns": "",
    "DataLocation": "",
    "DataCellsFilter": "",
    "LFTag": "",
    "LFTagPolicy": ""
  ],
  "Permissions": [],
  "PermissionsWithGrantOption": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/RevokePermissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST SearchDatabasesByLFTags
{{baseUrl}}/SearchDatabasesByLFTags
BODY json

{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/SearchDatabasesByLFTags");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/SearchDatabasesByLFTags" {:content-type :json
                                                                    :form-params {:NextToken ""
                                                                                  :MaxResults 0
                                                                                  :CatalogId ""
                                                                                  :Expression [{:TagKey ""
                                                                                                :TagValues ""}]}})
require "http/client"

url = "{{baseUrl}}/SearchDatabasesByLFTags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/SearchDatabasesByLFTags"),
    Content = new StringContent("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/SearchDatabasesByLFTags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/SearchDatabasesByLFTags"

	payload := strings.NewReader("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/SearchDatabasesByLFTags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 136

{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/SearchDatabasesByLFTags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/SearchDatabasesByLFTags"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/SearchDatabasesByLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/SearchDatabasesByLFTags")
  .header("content-type", "application/json")
  .body("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  NextToken: '',
  MaxResults: 0,
  CatalogId: '',
  Expression: [
    {
      TagKey: '',
      TagValues: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/SearchDatabasesByLFTags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/SearchDatabasesByLFTags',
  headers: {'content-type': 'application/json'},
  data: {
    NextToken: '',
    MaxResults: 0,
    CatalogId: '',
    Expression: [{TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/SearchDatabasesByLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"NextToken":"","MaxResults":0,"CatalogId":"","Expression":[{"TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/SearchDatabasesByLFTags',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "NextToken": "",\n  "MaxResults": 0,\n  "CatalogId": "",\n  "Expression": [\n    {\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/SearchDatabasesByLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/SearchDatabasesByLFTags',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  NextToken: '',
  MaxResults: 0,
  CatalogId: '',
  Expression: [{TagKey: '', TagValues: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/SearchDatabasesByLFTags',
  headers: {'content-type': 'application/json'},
  body: {
    NextToken: '',
    MaxResults: 0,
    CatalogId: '',
    Expression: [{TagKey: '', TagValues: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/SearchDatabasesByLFTags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  NextToken: '',
  MaxResults: 0,
  CatalogId: '',
  Expression: [
    {
      TagKey: '',
      TagValues: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/SearchDatabasesByLFTags',
  headers: {'content-type': 'application/json'},
  data: {
    NextToken: '',
    MaxResults: 0,
    CatalogId: '',
    Expression: [{TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/SearchDatabasesByLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"NextToken":"","MaxResults":0,"CatalogId":"","Expression":[{"TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"NextToken": @"",
                              @"MaxResults": @0,
                              @"CatalogId": @"",
                              @"Expression": @[ @{ @"TagKey": @"", @"TagValues": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/SearchDatabasesByLFTags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/SearchDatabasesByLFTags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/SearchDatabasesByLFTags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'NextToken' => '',
    'MaxResults' => 0,
    'CatalogId' => '',
    'Expression' => [
        [
                'TagKey' => '',
                'TagValues' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/SearchDatabasesByLFTags', [
  'body' => '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/SearchDatabasesByLFTags');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'NextToken' => '',
  'MaxResults' => 0,
  'CatalogId' => '',
  'Expression' => [
    [
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'NextToken' => '',
  'MaxResults' => 0,
  'CatalogId' => '',
  'Expression' => [
    [
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/SearchDatabasesByLFTags');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/SearchDatabasesByLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/SearchDatabasesByLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/SearchDatabasesByLFTags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/SearchDatabasesByLFTags"

payload = {
    "NextToken": "",
    "MaxResults": 0,
    "CatalogId": "",
    "Expression": [
        {
            "TagKey": "",
            "TagValues": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/SearchDatabasesByLFTags"

payload <- "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/SearchDatabasesByLFTags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/SearchDatabasesByLFTags') do |req|
  req.body = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/SearchDatabasesByLFTags";

    let payload = json!({
        "NextToken": "",
        "MaxResults": 0,
        "CatalogId": "",
        "Expression": (
            json!({
                "TagKey": "",
                "TagValues": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/SearchDatabasesByLFTags \
  --header 'content-type: application/json' \
  --data '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
echo '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/SearchDatabasesByLFTags \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "NextToken": "",\n  "MaxResults": 0,\n  "CatalogId": "",\n  "Expression": [\n    {\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/SearchDatabasesByLFTags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    [
      "TagKey": "",
      "TagValues": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/SearchDatabasesByLFTags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST SearchTablesByLFTags
{{baseUrl}}/SearchTablesByLFTags
BODY json

{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/SearchTablesByLFTags");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/SearchTablesByLFTags" {:content-type :json
                                                                 :form-params {:NextToken ""
                                                                               :MaxResults 0
                                                                               :CatalogId ""
                                                                               :Expression [{:TagKey ""
                                                                                             :TagValues ""}]}})
require "http/client"

url = "{{baseUrl}}/SearchTablesByLFTags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/SearchTablesByLFTags"),
    Content = new StringContent("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/SearchTablesByLFTags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/SearchTablesByLFTags"

	payload := strings.NewReader("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/SearchTablesByLFTags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 136

{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/SearchTablesByLFTags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/SearchTablesByLFTags"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/SearchTablesByLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/SearchTablesByLFTags")
  .header("content-type", "application/json")
  .body("{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  NextToken: '',
  MaxResults: 0,
  CatalogId: '',
  Expression: [
    {
      TagKey: '',
      TagValues: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/SearchTablesByLFTags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/SearchTablesByLFTags',
  headers: {'content-type': 'application/json'},
  data: {
    NextToken: '',
    MaxResults: 0,
    CatalogId: '',
    Expression: [{TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/SearchTablesByLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"NextToken":"","MaxResults":0,"CatalogId":"","Expression":[{"TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/SearchTablesByLFTags',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "NextToken": "",\n  "MaxResults": 0,\n  "CatalogId": "",\n  "Expression": [\n    {\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/SearchTablesByLFTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/SearchTablesByLFTags',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  NextToken: '',
  MaxResults: 0,
  CatalogId: '',
  Expression: [{TagKey: '', TagValues: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/SearchTablesByLFTags',
  headers: {'content-type': 'application/json'},
  body: {
    NextToken: '',
    MaxResults: 0,
    CatalogId: '',
    Expression: [{TagKey: '', TagValues: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/SearchTablesByLFTags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  NextToken: '',
  MaxResults: 0,
  CatalogId: '',
  Expression: [
    {
      TagKey: '',
      TagValues: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/SearchTablesByLFTags',
  headers: {'content-type': 'application/json'},
  data: {
    NextToken: '',
    MaxResults: 0,
    CatalogId: '',
    Expression: [{TagKey: '', TagValues: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/SearchTablesByLFTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"NextToken":"","MaxResults":0,"CatalogId":"","Expression":[{"TagKey":"","TagValues":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"NextToken": @"",
                              @"MaxResults": @0,
                              @"CatalogId": @"",
                              @"Expression": @[ @{ @"TagKey": @"", @"TagValues": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/SearchTablesByLFTags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/SearchTablesByLFTags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/SearchTablesByLFTags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'NextToken' => '',
    'MaxResults' => 0,
    'CatalogId' => '',
    'Expression' => [
        [
                'TagKey' => '',
                'TagValues' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/SearchTablesByLFTags', [
  'body' => '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/SearchTablesByLFTags');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'NextToken' => '',
  'MaxResults' => 0,
  'CatalogId' => '',
  'Expression' => [
    [
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'NextToken' => '',
  'MaxResults' => 0,
  'CatalogId' => '',
  'Expression' => [
    [
        'TagKey' => '',
        'TagValues' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/SearchTablesByLFTags');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/SearchTablesByLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/SearchTablesByLFTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/SearchTablesByLFTags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/SearchTablesByLFTags"

payload = {
    "NextToken": "",
    "MaxResults": 0,
    "CatalogId": "",
    "Expression": [
        {
            "TagKey": "",
            "TagValues": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/SearchTablesByLFTags"

payload <- "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/SearchTablesByLFTags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/SearchTablesByLFTags') do |req|
  req.body = "{\n  \"NextToken\": \"\",\n  \"MaxResults\": 0,\n  \"CatalogId\": \"\",\n  \"Expression\": [\n    {\n      \"TagKey\": \"\",\n      \"TagValues\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/SearchTablesByLFTags";

    let payload = json!({
        "NextToken": "",
        "MaxResults": 0,
        "CatalogId": "",
        "Expression": (
            json!({
                "TagKey": "",
                "TagValues": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/SearchTablesByLFTags \
  --header 'content-type: application/json' \
  --data '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}'
echo '{
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    {
      "TagKey": "",
      "TagValues": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/SearchTablesByLFTags \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "NextToken": "",\n  "MaxResults": 0,\n  "CatalogId": "",\n  "Expression": [\n    {\n      "TagKey": "",\n      "TagValues": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/SearchTablesByLFTags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "NextToken": "",
  "MaxResults": 0,
  "CatalogId": "",
  "Expression": [
    [
      "TagKey": "",
      "TagValues": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/SearchTablesByLFTags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST StartQueryPlanning
{{baseUrl}}/StartQueryPlanning
BODY json

{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/StartQueryPlanning");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/StartQueryPlanning" {:content-type :json
                                                               :form-params {:QueryPlanningContext {:CatalogId ""
                                                                                                    :DatabaseName ""
                                                                                                    :QueryAsOfTime ""
                                                                                                    :QueryParameters ""
                                                                                                    :TransactionId ""}
                                                                             :QueryString ""}})
require "http/client"

url = "{{baseUrl}}/StartQueryPlanning"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/StartQueryPlanning"),
    Content = new StringContent("{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/StartQueryPlanning");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/StartQueryPlanning"

	payload := strings.NewReader("{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/StartQueryPlanning HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 177

{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/StartQueryPlanning")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/StartQueryPlanning"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/StartQueryPlanning")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/StartQueryPlanning")
  .header("content-type", "application/json")
  .body("{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  QueryPlanningContext: {
    CatalogId: '',
    DatabaseName: '',
    QueryAsOfTime: '',
    QueryParameters: '',
    TransactionId: ''
  },
  QueryString: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/StartQueryPlanning');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/StartQueryPlanning',
  headers: {'content-type': 'application/json'},
  data: {
    QueryPlanningContext: {
      CatalogId: '',
      DatabaseName: '',
      QueryAsOfTime: '',
      QueryParameters: '',
      TransactionId: ''
    },
    QueryString: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/StartQueryPlanning';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryPlanningContext":{"CatalogId":"","DatabaseName":"","QueryAsOfTime":"","QueryParameters":"","TransactionId":""},"QueryString":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/StartQueryPlanning',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "QueryPlanningContext": {\n    "CatalogId": "",\n    "DatabaseName": "",\n    "QueryAsOfTime": "",\n    "QueryParameters": "",\n    "TransactionId": ""\n  },\n  "QueryString": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/StartQueryPlanning")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/StartQueryPlanning',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  QueryPlanningContext: {
    CatalogId: '',
    DatabaseName: '',
    QueryAsOfTime: '',
    QueryParameters: '',
    TransactionId: ''
  },
  QueryString: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/StartQueryPlanning',
  headers: {'content-type': 'application/json'},
  body: {
    QueryPlanningContext: {
      CatalogId: '',
      DatabaseName: '',
      QueryAsOfTime: '',
      QueryParameters: '',
      TransactionId: ''
    },
    QueryString: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/StartQueryPlanning');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  QueryPlanningContext: {
    CatalogId: '',
    DatabaseName: '',
    QueryAsOfTime: '',
    QueryParameters: '',
    TransactionId: ''
  },
  QueryString: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/StartQueryPlanning',
  headers: {'content-type': 'application/json'},
  data: {
    QueryPlanningContext: {
      CatalogId: '',
      DatabaseName: '',
      QueryAsOfTime: '',
      QueryParameters: '',
      TransactionId: ''
    },
    QueryString: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/StartQueryPlanning';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"QueryPlanningContext":{"CatalogId":"","DatabaseName":"","QueryAsOfTime":"","QueryParameters":"","TransactionId":""},"QueryString":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"QueryPlanningContext": @{ @"CatalogId": @"", @"DatabaseName": @"", @"QueryAsOfTime": @"", @"QueryParameters": @"", @"TransactionId": @"" },
                              @"QueryString": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/StartQueryPlanning"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/StartQueryPlanning" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/StartQueryPlanning",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'QueryPlanningContext' => [
        'CatalogId' => '',
        'DatabaseName' => '',
        'QueryAsOfTime' => '',
        'QueryParameters' => '',
        'TransactionId' => ''
    ],
    'QueryString' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/StartQueryPlanning', [
  'body' => '{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/StartQueryPlanning');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'QueryPlanningContext' => [
    'CatalogId' => '',
    'DatabaseName' => '',
    'QueryAsOfTime' => '',
    'QueryParameters' => '',
    'TransactionId' => ''
  ],
  'QueryString' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'QueryPlanningContext' => [
    'CatalogId' => '',
    'DatabaseName' => '',
    'QueryAsOfTime' => '',
    'QueryParameters' => '',
    'TransactionId' => ''
  ],
  'QueryString' => ''
]));
$request->setRequestUrl('{{baseUrl}}/StartQueryPlanning');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/StartQueryPlanning' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/StartQueryPlanning' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/StartQueryPlanning", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/StartQueryPlanning"

payload = {
    "QueryPlanningContext": {
        "CatalogId": "",
        "DatabaseName": "",
        "QueryAsOfTime": "",
        "QueryParameters": "",
        "TransactionId": ""
    },
    "QueryString": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/StartQueryPlanning"

payload <- "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/StartQueryPlanning")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/StartQueryPlanning') do |req|
  req.body = "{\n  \"QueryPlanningContext\": {\n    \"CatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"QueryAsOfTime\": \"\",\n    \"QueryParameters\": \"\",\n    \"TransactionId\": \"\"\n  },\n  \"QueryString\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/StartQueryPlanning";

    let payload = json!({
        "QueryPlanningContext": json!({
            "CatalogId": "",
            "DatabaseName": "",
            "QueryAsOfTime": "",
            "QueryParameters": "",
            "TransactionId": ""
        }),
        "QueryString": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/StartQueryPlanning \
  --header 'content-type: application/json' \
  --data '{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}'
echo '{
  "QueryPlanningContext": {
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  },
  "QueryString": ""
}' |  \
  http POST {{baseUrl}}/StartQueryPlanning \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "QueryPlanningContext": {\n    "CatalogId": "",\n    "DatabaseName": "",\n    "QueryAsOfTime": "",\n    "QueryParameters": "",\n    "TransactionId": ""\n  },\n  "QueryString": ""\n}' \
  --output-document \
  - {{baseUrl}}/StartQueryPlanning
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "QueryPlanningContext": [
    "CatalogId": "",
    "DatabaseName": "",
    "QueryAsOfTime": "",
    "QueryParameters": "",
    "TransactionId": ""
  ],
  "QueryString": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/StartQueryPlanning")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST StartTransaction
{{baseUrl}}/StartTransaction
BODY json

{
  "TransactionType": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/StartTransaction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TransactionType\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/StartTransaction" {:content-type :json
                                                             :form-params {:TransactionType ""}})
require "http/client"

url = "{{baseUrl}}/StartTransaction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TransactionType\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/StartTransaction"),
    Content = new StringContent("{\n  \"TransactionType\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/StartTransaction");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TransactionType\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/StartTransaction"

	payload := strings.NewReader("{\n  \"TransactionType\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/StartTransaction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 27

{
  "TransactionType": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/StartTransaction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TransactionType\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/StartTransaction"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TransactionType\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TransactionType\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/StartTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/StartTransaction")
  .header("content-type", "application/json")
  .body("{\n  \"TransactionType\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  TransactionType: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/StartTransaction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/StartTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionType: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/StartTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionType":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/StartTransaction',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TransactionType": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TransactionType\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/StartTransaction")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/StartTransaction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({TransactionType: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/StartTransaction',
  headers: {'content-type': 'application/json'},
  body: {TransactionType: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/StartTransaction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TransactionType: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/StartTransaction',
  headers: {'content-type': 'application/json'},
  data: {TransactionType: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/StartTransaction';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TransactionType":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TransactionType": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/StartTransaction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/StartTransaction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TransactionType\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/StartTransaction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TransactionType' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/StartTransaction', [
  'body' => '{
  "TransactionType": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/StartTransaction');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TransactionType' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TransactionType' => ''
]));
$request->setRequestUrl('{{baseUrl}}/StartTransaction');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/StartTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionType": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/StartTransaction' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TransactionType": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TransactionType\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/StartTransaction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/StartTransaction"

payload = { "TransactionType": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/StartTransaction"

payload <- "{\n  \"TransactionType\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/StartTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TransactionType\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/StartTransaction') do |req|
  req.body = "{\n  \"TransactionType\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/StartTransaction";

    let payload = json!({"TransactionType": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/StartTransaction \
  --header 'content-type: application/json' \
  --data '{
  "TransactionType": ""
}'
echo '{
  "TransactionType": ""
}' |  \
  http POST {{baseUrl}}/StartTransaction \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TransactionType": ""\n}' \
  --output-document \
  - {{baseUrl}}/StartTransaction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TransactionType": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/StartTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateDataCellsFilter
{{baseUrl}}/UpdateDataCellsFilter
BODY json

{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/UpdateDataCellsFilter");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/UpdateDataCellsFilter" {:content-type :json
                                                                  :form-params {:TableData {:TableCatalogId ""
                                                                                            :DatabaseName ""
                                                                                            :TableName ""
                                                                                            :Name ""
                                                                                            :RowFilter ""
                                                                                            :ColumnNames ""
                                                                                            :ColumnWildcard ""
                                                                                            :VersionId ""}}})
require "http/client"

url = "{{baseUrl}}/UpdateDataCellsFilter"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/UpdateDataCellsFilter"),
    Content = new StringContent("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/UpdateDataCellsFilter");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/UpdateDataCellsFilter"

	payload := strings.NewReader("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/UpdateDataCellsFilter HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 201

{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/UpdateDataCellsFilter")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/UpdateDataCellsFilter"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/UpdateDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/UpdateDataCellsFilter")
  .header("content-type", "application/json")
  .body("{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  TableData: {
    TableCatalogId: '',
    DatabaseName: '',
    TableName: '',
    Name: '',
    RowFilter: '',
    ColumnNames: '',
    ColumnWildcard: '',
    VersionId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/UpdateDataCellsFilter');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {
    TableData: {
      TableCatalogId: '',
      DatabaseName: '',
      TableName: '',
      Name: '',
      RowFilter: '',
      ColumnNames: '',
      ColumnWildcard: '',
      VersionId: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/UpdateDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableData":{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":"","RowFilter":"","ColumnNames":"","ColumnWildcard":"","VersionId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/UpdateDataCellsFilter',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "TableData": {\n    "TableCatalogId": "",\n    "DatabaseName": "",\n    "TableName": "",\n    "Name": "",\n    "RowFilter": "",\n    "ColumnNames": "",\n    "ColumnWildcard": "",\n    "VersionId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/UpdateDataCellsFilter")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/UpdateDataCellsFilter',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  TableData: {
    TableCatalogId: '',
    DatabaseName: '',
    TableName: '',
    Name: '',
    RowFilter: '',
    ColumnNames: '',
    ColumnWildcard: '',
    VersionId: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateDataCellsFilter',
  headers: {'content-type': 'application/json'},
  body: {
    TableData: {
      TableCatalogId: '',
      DatabaseName: '',
      TableName: '',
      Name: '',
      RowFilter: '',
      ColumnNames: '',
      ColumnWildcard: '',
      VersionId: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/UpdateDataCellsFilter');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  TableData: {
    TableCatalogId: '',
    DatabaseName: '',
    TableName: '',
    Name: '',
    RowFilter: '',
    ColumnNames: '',
    ColumnWildcard: '',
    VersionId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateDataCellsFilter',
  headers: {'content-type': 'application/json'},
  data: {
    TableData: {
      TableCatalogId: '',
      DatabaseName: '',
      TableName: '',
      Name: '',
      RowFilter: '',
      ColumnNames: '',
      ColumnWildcard: '',
      VersionId: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/UpdateDataCellsFilter';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"TableData":{"TableCatalogId":"","DatabaseName":"","TableName":"","Name":"","RowFilter":"","ColumnNames":"","ColumnWildcard":"","VersionId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"TableData": @{ @"TableCatalogId": @"", @"DatabaseName": @"", @"TableName": @"", @"Name": @"", @"RowFilter": @"", @"ColumnNames": @"", @"ColumnWildcard": @"", @"VersionId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/UpdateDataCellsFilter"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/UpdateDataCellsFilter" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/UpdateDataCellsFilter",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'TableData' => [
        'TableCatalogId' => '',
        'DatabaseName' => '',
        'TableName' => '',
        'Name' => '',
        'RowFilter' => '',
        'ColumnNames' => '',
        'ColumnWildcard' => '',
        'VersionId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/UpdateDataCellsFilter', [
  'body' => '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/UpdateDataCellsFilter');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'TableData' => [
    'TableCatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'Name' => '',
    'RowFilter' => '',
    'ColumnNames' => '',
    'ColumnWildcard' => '',
    'VersionId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'TableData' => [
    'TableCatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'Name' => '',
    'RowFilter' => '',
    'ColumnNames' => '',
    'ColumnWildcard' => '',
    'VersionId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/UpdateDataCellsFilter');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/UpdateDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/UpdateDataCellsFilter' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/UpdateDataCellsFilter", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/UpdateDataCellsFilter"

payload = { "TableData": {
        "TableCatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "Name": "",
        "RowFilter": "",
        "ColumnNames": "",
        "ColumnWildcard": "",
        "VersionId": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/UpdateDataCellsFilter"

payload <- "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/UpdateDataCellsFilter")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/UpdateDataCellsFilter') do |req|
  req.body = "{\n  \"TableData\": {\n    \"TableCatalogId\": \"\",\n    \"DatabaseName\": \"\",\n    \"TableName\": \"\",\n    \"Name\": \"\",\n    \"RowFilter\": \"\",\n    \"ColumnNames\": \"\",\n    \"ColumnWildcard\": \"\",\n    \"VersionId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/UpdateDataCellsFilter";

    let payload = json!({"TableData": json!({
            "TableCatalogId": "",
            "DatabaseName": "",
            "TableName": "",
            "Name": "",
            "RowFilter": "",
            "ColumnNames": "",
            "ColumnWildcard": "",
            "VersionId": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/UpdateDataCellsFilter \
  --header 'content-type: application/json' \
  --data '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}'
echo '{
  "TableData": {
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  }
}' |  \
  http POST {{baseUrl}}/UpdateDataCellsFilter \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "TableData": {\n    "TableCatalogId": "",\n    "DatabaseName": "",\n    "TableName": "",\n    "Name": "",\n    "RowFilter": "",\n    "ColumnNames": "",\n    "ColumnWildcard": "",\n    "VersionId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/UpdateDataCellsFilter
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["TableData": [
    "TableCatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "Name": "",
    "RowFilter": "",
    "ColumnNames": "",
    "ColumnWildcard": "",
    "VersionId": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/UpdateDataCellsFilter")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateLFTag
{{baseUrl}}/UpdateLFTag
BODY json

{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/UpdateLFTag");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/UpdateLFTag" {:content-type :json
                                                        :form-params {:CatalogId ""
                                                                      :TagKey ""
                                                                      :TagValuesToDelete []
                                                                      :TagValuesToAdd []}})
require "http/client"

url = "{{baseUrl}}/UpdateLFTag"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/UpdateLFTag"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/UpdateLFTag");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/UpdateLFTag"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/UpdateLFTag HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 88

{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/UpdateLFTag")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/UpdateLFTag"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/UpdateLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/UpdateLFTag")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  TagKey: '',
  TagValuesToDelete: [],
  TagValuesToAdd: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/UpdateLFTag');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: '', TagValuesToDelete: [], TagValuesToAdd: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/UpdateLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":"","TagValuesToDelete":[],"TagValuesToAdd":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/UpdateLFTag',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "TagKey": "",\n  "TagValuesToDelete": [],\n  "TagValuesToAdd": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/UpdateLFTag")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/UpdateLFTag',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', TagKey: '', TagValuesToDelete: [], TagValuesToAdd: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateLFTag',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', TagKey: '', TagValuesToDelete: [], TagValuesToAdd: []},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/UpdateLFTag');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  TagKey: '',
  TagValuesToDelete: [],
  TagValuesToAdd: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateLFTag',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', TagKey: '', TagValuesToDelete: [], TagValuesToAdd: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/UpdateLFTag';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","TagKey":"","TagValuesToDelete":[],"TagValuesToAdd":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"TagKey": @"",
                              @"TagValuesToDelete": @[  ],
                              @"TagValuesToAdd": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/UpdateLFTag"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/UpdateLFTag" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/UpdateLFTag",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'TagKey' => '',
    'TagValuesToDelete' => [
        
    ],
    'TagValuesToAdd' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/UpdateLFTag', [
  'body' => '{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/UpdateLFTag');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'TagKey' => '',
  'TagValuesToDelete' => [
    
  ],
  'TagValuesToAdd' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'TagKey' => '',
  'TagValuesToDelete' => [
    
  ],
  'TagValuesToAdd' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/UpdateLFTag');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/UpdateLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/UpdateLFTag' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/UpdateLFTag", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/UpdateLFTag"

payload = {
    "CatalogId": "",
    "TagKey": "",
    "TagValuesToDelete": [],
    "TagValuesToAdd": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/UpdateLFTag"

payload <- "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/UpdateLFTag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/UpdateLFTag') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"TagKey\": \"\",\n  \"TagValuesToDelete\": [],\n  \"TagValuesToAdd\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/UpdateLFTag";

    let payload = json!({
        "CatalogId": "",
        "TagKey": "",
        "TagValuesToDelete": (),
        "TagValuesToAdd": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/UpdateLFTag \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}'
echo '{
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
}' |  \
  http POST {{baseUrl}}/UpdateLFTag \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "TagKey": "",\n  "TagValuesToDelete": [],\n  "TagValuesToAdd": []\n}' \
  --output-document \
  - {{baseUrl}}/UpdateLFTag
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "TagKey": "",
  "TagValuesToDelete": [],
  "TagValuesToAdd": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/UpdateLFTag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateResource
{{baseUrl}}/UpdateResource
BODY json

{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/UpdateResource");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/UpdateResource" {:content-type :json
                                                           :form-params {:RoleArn ""
                                                                         :ResourceArn ""
                                                                         :WithFederation false}})
require "http/client"

url = "{{baseUrl}}/UpdateResource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/UpdateResource"),
    Content = new StringContent("{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/UpdateResource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/UpdateResource"

	payload := strings.NewReader("{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/UpdateResource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 67

{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/UpdateResource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/UpdateResource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/UpdateResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/UpdateResource")
  .header("content-type", "application/json")
  .body("{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}")
  .asString();
const data = JSON.stringify({
  RoleArn: '',
  ResourceArn: '',
  WithFederation: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/UpdateResource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateResource',
  headers: {'content-type': 'application/json'},
  data: {RoleArn: '', ResourceArn: '', WithFederation: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/UpdateResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"RoleArn":"","ResourceArn":"","WithFederation":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/UpdateResource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "RoleArn": "",\n  "ResourceArn": "",\n  "WithFederation": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/UpdateResource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/UpdateResource',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({RoleArn: '', ResourceArn: '', WithFederation: false}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateResource',
  headers: {'content-type': 'application/json'},
  body: {RoleArn: '', ResourceArn: '', WithFederation: false},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/UpdateResource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  RoleArn: '',
  ResourceArn: '',
  WithFederation: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateResource',
  headers: {'content-type': 'application/json'},
  data: {RoleArn: '', ResourceArn: '', WithFederation: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/UpdateResource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"RoleArn":"","ResourceArn":"","WithFederation":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"RoleArn": @"",
                              @"ResourceArn": @"",
                              @"WithFederation": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/UpdateResource"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/UpdateResource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/UpdateResource",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'RoleArn' => '',
    'ResourceArn' => '',
    'WithFederation' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/UpdateResource', [
  'body' => '{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/UpdateResource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'RoleArn' => '',
  'ResourceArn' => '',
  'WithFederation' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'RoleArn' => '',
  'ResourceArn' => '',
  'WithFederation' => null
]));
$request->setRequestUrl('{{baseUrl}}/UpdateResource');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/UpdateResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/UpdateResource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/UpdateResource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/UpdateResource"

payload = {
    "RoleArn": "",
    "ResourceArn": "",
    "WithFederation": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/UpdateResource"

payload <- "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/UpdateResource")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/UpdateResource') do |req|
  req.body = "{\n  \"RoleArn\": \"\",\n  \"ResourceArn\": \"\",\n  \"WithFederation\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/UpdateResource";

    let payload = json!({
        "RoleArn": "",
        "ResourceArn": "",
        "WithFederation": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/UpdateResource \
  --header 'content-type: application/json' \
  --data '{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}'
echo '{
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
}' |  \
  http POST {{baseUrl}}/UpdateResource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "RoleArn": "",\n  "ResourceArn": "",\n  "WithFederation": false\n}' \
  --output-document \
  - {{baseUrl}}/UpdateResource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "RoleArn": "",
  "ResourceArn": "",
  "WithFederation": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/UpdateResource")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateTableObjects
{{baseUrl}}/UpdateTableObjects
BODY json

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/UpdateTableObjects");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/UpdateTableObjects" {:content-type :json
                                                               :form-params {:CatalogId ""
                                                                             :DatabaseName ""
                                                                             :TableName ""
                                                                             :TransactionId ""
                                                                             :WriteOperations [{:AddObject ""
                                                                                                :DeleteObject ""}]}})
require "http/client"

url = "{{baseUrl}}/UpdateTableObjects"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/UpdateTableObjects"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/UpdateTableObjects");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/UpdateTableObjects"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/UpdateTableObjects HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 173

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/UpdateTableObjects")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/UpdateTableObjects"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/UpdateTableObjects")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/UpdateTableObjects")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  WriteOperations: [
    {
      AddObject: '',
      DeleteObject: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/UpdateTableObjects');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateTableObjects',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    WriteOperations: [{AddObject: '', DeleteObject: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/UpdateTableObjects';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","TransactionId":"","WriteOperations":[{"AddObject":"","DeleteObject":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/UpdateTableObjects',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "TransactionId": "",\n  "WriteOperations": [\n    {\n      "AddObject": "",\n      "DeleteObject": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/UpdateTableObjects")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/UpdateTableObjects',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  WriteOperations: [{AddObject: '', DeleteObject: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateTableObjects',
  headers: {'content-type': 'application/json'},
  body: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    WriteOperations: [{AddObject: '', DeleteObject: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/UpdateTableObjects');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  TransactionId: '',
  WriteOperations: [
    {
      AddObject: '',
      DeleteObject: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateTableObjects',
  headers: {'content-type': 'application/json'},
  data: {
    CatalogId: '',
    DatabaseName: '',
    TableName: '',
    TransactionId: '',
    WriteOperations: [{AddObject: '', DeleteObject: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/UpdateTableObjects';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","TransactionId":"","WriteOperations":[{"AddObject":"","DeleteObject":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"TransactionId": @"",
                              @"WriteOperations": @[ @{ @"AddObject": @"", @"DeleteObject": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/UpdateTableObjects"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/UpdateTableObjects" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/UpdateTableObjects",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'TransactionId' => '',
    'WriteOperations' => [
        [
                'AddObject' => '',
                'DeleteObject' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/UpdateTableObjects', [
  'body' => '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/UpdateTableObjects');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'TransactionId' => '',
  'WriteOperations' => [
    [
        'AddObject' => '',
        'DeleteObject' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'TransactionId' => '',
  'WriteOperations' => [
    [
        'AddObject' => '',
        'DeleteObject' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/UpdateTableObjects');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/UpdateTableObjects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/UpdateTableObjects' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/UpdateTableObjects", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/UpdateTableObjects"

payload = {
    "CatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "TransactionId": "",
    "WriteOperations": [
        {
            "AddObject": "",
            "DeleteObject": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/UpdateTableObjects"

payload <- "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/UpdateTableObjects")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/UpdateTableObjects') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"TransactionId\": \"\",\n  \"WriteOperations\": [\n    {\n      \"AddObject\": \"\",\n      \"DeleteObject\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/UpdateTableObjects";

    let payload = json!({
        "CatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "TransactionId": "",
        "WriteOperations": (
            json!({
                "AddObject": "",
                "DeleteObject": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/UpdateTableObjects \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}'
echo '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    {
      "AddObject": "",
      "DeleteObject": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/UpdateTableObjects \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "TransactionId": "",\n  "WriteOperations": [\n    {\n      "AddObject": "",\n      "DeleteObject": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/UpdateTableObjects
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "TransactionId": "",
  "WriteOperations": [
    [
      "AddObject": "",
      "DeleteObject": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/UpdateTableObjects")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateTableStorageOptimizer
{{baseUrl}}/UpdateTableStorageOptimizer
BODY json

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/UpdateTableStorageOptimizer");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/UpdateTableStorageOptimizer" {:content-type :json
                                                                        :form-params {:CatalogId ""
                                                                                      :DatabaseName ""
                                                                                      :TableName ""
                                                                                      :StorageOptimizerConfig {}}})
require "http/client"

url = "{{baseUrl}}/UpdateTableStorageOptimizer"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/UpdateTableStorageOptimizer"),
    Content = new StringContent("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/UpdateTableStorageOptimizer");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/UpdateTableStorageOptimizer"

	payload := strings.NewReader("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/UpdateTableStorageOptimizer HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 94

{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/UpdateTableStorageOptimizer")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/UpdateTableStorageOptimizer"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/UpdateTableStorageOptimizer")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/UpdateTableStorageOptimizer")
  .header("content-type", "application/json")
  .body("{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}")
  .asString();
const data = JSON.stringify({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  StorageOptimizerConfig: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/UpdateTableStorageOptimizer');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateTableStorageOptimizer',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', DatabaseName: '', TableName: '', StorageOptimizerConfig: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/UpdateTableStorageOptimizer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","StorageOptimizerConfig":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/UpdateTableStorageOptimizer',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "StorageOptimizerConfig": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/UpdateTableStorageOptimizer")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/UpdateTableStorageOptimizer',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({CatalogId: '', DatabaseName: '', TableName: '', StorageOptimizerConfig: {}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateTableStorageOptimizer',
  headers: {'content-type': 'application/json'},
  body: {CatalogId: '', DatabaseName: '', TableName: '', StorageOptimizerConfig: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/UpdateTableStorageOptimizer');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  CatalogId: '',
  DatabaseName: '',
  TableName: '',
  StorageOptimizerConfig: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/UpdateTableStorageOptimizer',
  headers: {'content-type': 'application/json'},
  data: {CatalogId: '', DatabaseName: '', TableName: '', StorageOptimizerConfig: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/UpdateTableStorageOptimizer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"CatalogId":"","DatabaseName":"","TableName":"","StorageOptimizerConfig":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"CatalogId": @"",
                              @"DatabaseName": @"",
                              @"TableName": @"",
                              @"StorageOptimizerConfig": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/UpdateTableStorageOptimizer"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/UpdateTableStorageOptimizer" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/UpdateTableStorageOptimizer",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'CatalogId' => '',
    'DatabaseName' => '',
    'TableName' => '',
    'StorageOptimizerConfig' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/UpdateTableStorageOptimizer', [
  'body' => '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/UpdateTableStorageOptimizer');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'StorageOptimizerConfig' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'CatalogId' => '',
  'DatabaseName' => '',
  'TableName' => '',
  'StorageOptimizerConfig' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/UpdateTableStorageOptimizer');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/UpdateTableStorageOptimizer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/UpdateTableStorageOptimizer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/UpdateTableStorageOptimizer", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/UpdateTableStorageOptimizer"

payload = {
    "CatalogId": "",
    "DatabaseName": "",
    "TableName": "",
    "StorageOptimizerConfig": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/UpdateTableStorageOptimizer"

payload <- "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/UpdateTableStorageOptimizer")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/UpdateTableStorageOptimizer') do |req|
  req.body = "{\n  \"CatalogId\": \"\",\n  \"DatabaseName\": \"\",\n  \"TableName\": \"\",\n  \"StorageOptimizerConfig\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/UpdateTableStorageOptimizer";

    let payload = json!({
        "CatalogId": "",
        "DatabaseName": "",
        "TableName": "",
        "StorageOptimizerConfig": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/UpdateTableStorageOptimizer \
  --header 'content-type: application/json' \
  --data '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}'
echo '{
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": {}
}' |  \
  http POST {{baseUrl}}/UpdateTableStorageOptimizer \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "CatalogId": "",\n  "DatabaseName": "",\n  "TableName": "",\n  "StorageOptimizerConfig": {}\n}' \
  --output-document \
  - {{baseUrl}}/UpdateTableStorageOptimizer
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "CatalogId": "",
  "DatabaseName": "",
  "TableName": "",
  "StorageOptimizerConfig": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/UpdateTableStorageOptimizer")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()