POST Create Brand
{{baseUrl}}/api/catalog-seller-portal/brands
HEADERS

Content-Type
Accept
BODY json

{
  "isActive": false,
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/brands");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"isActive\": false,\n  \"name\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/catalog-seller-portal/brands" {:headers {:accept ""}
                                                                             :content-type :json
                                                                             :form-params {:isActive false
                                                                                           :name ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/brands"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"isActive\": false,\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}}/api/catalog-seller-portal/brands"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"isActive\": false,\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}}/api/catalog-seller-portal/brands");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"isActive\": false,\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/brands"

	payload := strings.NewReader("{\n  \"isActive\": false,\n  \"name\": \"\"\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/api/catalog-seller-portal/brands HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 37

{
  "isActive": false,
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/catalog-seller-portal/brands")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"isActive\": false,\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/brands"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"isActive\": false,\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  \"isActive\": false,\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/catalog-seller-portal/brands")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"isActive\": false,\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  isActive: false,
  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}}/api/catalog-seller-portal/brands');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands',
  headers: {'content-type': '', accept: ''},
  data: {isActive: false, name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/brands';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"isActive":false,"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}}/api/catalog-seller-portal/brands',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "isActive": false,\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  \"isActive\": false,\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/brands',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({isActive: false, name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands',
  headers: {'content-type': '', accept: ''},
  body: {isActive: false, 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}}/api/catalog-seller-portal/brands');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  isActive: false,
  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}}/api/catalog-seller-portal/brands',
  headers: {'content-type': '', accept: ''},
  data: {isActive: false, name: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/brands';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"isActive":false,"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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"isActive": @NO,
                              @"name": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/brands"]
                                                       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}}/api/catalog-seller-portal/brands" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"isActive\": false,\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/brands",
  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([
    'isActive' => null,
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/catalog-seller-portal/brands', [
  'body' => '{
  "isActive": false,
  "name": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/brands');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'isActive' => null,
  'name' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'isActive' => null,
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/brands');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/brands' -Method POST -Headers $headers -ContentType '' -Body '{
  "isActive": false,
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/brands' -Method POST -Headers $headers -ContentType '' -Body '{
  "isActive": false,
  "name": ""
}'
import http.client

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

payload = "{\n  \"isActive\": false,\n  \"name\": \"\"\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/api/catalog-seller-portal/brands", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/brands"

payload = {
    "isActive": False,
    "name": ""
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/brands"

payload <- "{\n  \"isActive\": false,\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}}/api/catalog-seller-portal/brands")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"isActive\": false,\n  \"name\": \"\"\n}"

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/api/catalog-seller-portal/brands') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"isActive\": false,\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}}/api/catalog-seller-portal/brands";

    let payload = json!({
        "isActive": false,
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".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}}/api/catalog-seller-portal/brands \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "isActive": false,
  "name": ""
}'
echo '{
  "isActive": false,
  "name": ""
}' |  \
  http POST {{baseUrl}}/api/catalog-seller-portal/brands \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "isActive": false,\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/brands
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "isActive": false,
  "name": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/brands")! 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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "createdAt": "2021-05-17T15:20:36.077253+00:00",
  "id": "863",
  "isActive": true,
  "name": "Zwilling",
  "updatedAt": "2021-01-18T14:41:45.696488+00:00"
}
GET Get Brand by ID
{{baseUrl}}/api/catalog-seller-portal/brands/:brandId
HEADERS

Content-Type
Accept
QUERY PARAMS

brandId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId" {:headers {:content-type ""
                                                                                               :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/brands/:brandId HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/brands/:brandId',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/brands/:brandId',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/brands/:brandId" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/brands/:brandId", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/brands/:brandId') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/brands/:brandId \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/brands/:brandId \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/brands/:brandId
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "createdAt": "2021-01-18T14:41:45.696488+00:00",
  "id": "863",
  "isActive": false,
  "name": "Zwilling",
  "updatedAt": "2021-01-18T14:41:45.696488+00:00"
}
GET Get List of Brands
{{baseUrl}}/api/catalog-seller-portal/brands
HEADERS

Content-Type
Accept
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/brands");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/brands" {:headers {:content-type ""
                                                                                      :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/brands"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/brands"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/brands");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/brands"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/brands HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/brands")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/brands"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/brands")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/brands');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/brands';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/brands',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/brands',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/brands');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/brands';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/brands"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/brands" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/brands",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/brands', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/brands');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/brands');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/brands' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/brands' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/brands", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/brands"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/brands"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/brands")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/brands') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/brands";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/brands \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/brands \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/brands
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/brands")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "_metadata": {
    "from": 1,
    "orderBy": "name,desc",
    "to": 10,
    "total": 1399
  },
  "data": [
    {
      "createdAt": "2021-01-18T14:41:45.696488+00:00",
      "id": "863",
      "isActive": false,
      "name": "Zwilling",
      "updatedAt": "2021-01-18T14:41:45.696488+00:00"
    },
    {
      "createdAt": "2021-01-18T14:45:32.900176+00:00",
      "id": "1298",
      "isActive": false,
      "name": "Zooz Pets",
      "updatedAt": "2021-01-18T14:45:32.900176+00:00"
    }
  ]
}
PUT Update Brand
{{baseUrl}}/api/catalog-seller-portal/brands/:brandId
HEADERS

Content-Type
Accept
QUERY PARAMS

brandId
BODY json

{
  "id": "",
  "isActive": false,
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}");

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

(client/put "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId" {:headers {:accept ""}
                                                                                     :content-type :json
                                                                                     :form-params {:id "20"
                                                                                                   :isActive true
                                                                                                   :name "Zwilling"}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"
headers = HTTP::Headers{
  "content-type" => "application/json"
  "accept" => ""
}
reqBody = "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\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}}/api/catalog-seller-portal/brands/:brandId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddHeader("accept", "");
request.AddParameter("application/json", "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"

	payload := strings.NewReader("{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}")

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

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

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

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

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

}
PUT /baseUrl/api/catalog-seller-portal/brands/:brandId HTTP/1.1
Content-Type: application/json
Accept: 
Host: example.com
Content-Length: 58

{
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .setHeader("content-type", "application/json")
  .setHeader("accept", "")
  .setBody("{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"))
    .header("content-type", "application/json")
    .header("accept", "")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\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  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .header("content-type", "application/json")
  .header("accept", "")
  .body("{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}")
  .asString();
const data = JSON.stringify({
  id: '20',
  isActive: true,
  name: 'Zwilling'
});

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

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

xhr.open('PUT', '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');
xhr.setRequestHeader('content-type', 'application/json');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId',
  headers: {'content-type': 'application/json', accept: ''},
  data: {id: '20', isActive: true, name: 'Zwilling'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"id":"20","isActive":true,"name":"Zwilling"}'
};

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}}/api/catalog-seller-portal/brands/:brandId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    accept: ''
  },
  processData: false,
  data: '{\n  "id": "20",\n  "isActive": true,\n  "name": "Zwilling"\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/brands/:brandId',
  headers: {
    'content-type': 'application/json',
    accept: ''
  }
};

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({id: '20', isActive: true, name: 'Zwilling'}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId',
  headers: {'content-type': 'application/json', accept: ''},
  body: {id: '20', isActive: true, name: 'Zwilling'},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');

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

req.type('json');
req.send({
  id: '20',
  isActive: true,
  name: 'Zwilling'
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId',
  headers: {'content-type': 'application/json', accept: ''},
  data: {id: '20', isActive: true, name: 'Zwilling'}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"id":"20","isActive":true,"name":"Zwilling"}'
};

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",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"id": @"20",
                              @"isActive": @YES,
                              @"name": @"Zwilling" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/api/catalog-seller-portal/brands/:brandId" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "application/json");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '20',
    'isActive' => null,
    'name' => 'Zwilling'
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "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('PUT', '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId', [
  'body' => '{
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
}',
  'headers' => [
    'accept' => '',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '20',
  'isActive' => null,
  'name' => 'Zwilling'
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '20',
  'isActive' => null,
  'name' => 'Zwilling'
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/brands/:brandId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/brands/:brandId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
}'
import http.client

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

payload = "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}"

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

conn.request("PUT", "/baseUrl/api/catalog-seller-portal/brands/:brandId", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"

payload = {
    "id": "20",
    "isActive": True,
    "name": "Zwilling"
}
headers = {
    "content-type": "application/json",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId"

payload <- "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["accept"] = ''
request.body = "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\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.put('/baseUrl/api/catalog-seller-portal/brands/:brandId') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"id\": \"20\",\n  \"isActive\": true,\n  \"name\": \"Zwilling\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId";

    let payload = json!({
        "id": "20",
        "isActive": true,
        "name": "Zwilling"
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/catalog-seller-portal/brands/:brandId \
  --header 'accept: ' \
  --header 'content-type: application/json' \
  --data '{
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
}'
echo '{
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
}' |  \
  http PUT {{baseUrl}}/api/catalog-seller-portal/brands/:brandId \
  accept:'' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --header 'accept: ' \
  --body-data '{\n  "id": "20",\n  "isActive": true,\n  "name": "Zwilling"\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/brands/:brandId
import Foundation

let headers = [
  "content-type": "application/json",
  "accept": ""
]
let parameters = [
  "id": "20",
  "isActive": true,
  "name": "Zwilling"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/brands/:brandId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Create Category
{{baseUrl}}/api/catalog-seller-portal/category-tree/categories
HEADERS

Content-Type
Accept
BODY json

{
  "Name": "",
  "parentId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories");

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

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

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

(client/post "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories" {:headers {:accept ""}
                                                                                               :content-type :json
                                                                                               :form-params {:Name ""
                                                                                                             :parentId ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\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}}/api/catalog-seller-portal/category-tree/categories"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"Name\": \"\",\n  \"parentId\": \"\"\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}}/api/catalog-seller-portal/category-tree/categories");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories"

	payload := strings.NewReader("{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/api/catalog-seller-portal/category-tree/categories HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 34

{
  "Name": "",
  "parentId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Name\": \"\",\n  \"parentId\": \"\"\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  \"Name\": \"\",\n  \"parentId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Name: '',
  parentId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories',
  headers: {'content-type': '', accept: ''},
  data: {Name: '', parentId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"Name":"","parentId":""}'
};

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}}/api/catalog-seller-portal/category-tree/categories',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "Name": "",\n  "parentId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/category-tree/categories',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({Name: '', parentId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories',
  headers: {'content-type': '', accept: ''},
  body: {Name: '', parentId: ''},
  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}}/api/catalog-seller-portal/category-tree/categories');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  Name: '',
  parentId: ''
});

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}}/api/catalog-seller-portal/category-tree/categories',
  headers: {'content-type': '', accept: ''},
  data: {Name: '', parentId: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"Name":"","parentId":""}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"Name": @"",
                              @"parentId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/category-tree/categories"]
                                                       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}}/api/catalog-seller-portal/category-tree/categories" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories",
  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([
    'Name' => '',
    'parentId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories', [
  'body' => '{
  "Name": "",
  "parentId": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree/categories');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Name' => '',
  'parentId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree/categories');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories' -Method POST -Headers $headers -ContentType '' -Body '{
  "Name": "",
  "parentId": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories' -Method POST -Headers $headers -ContentType '' -Body '{
  "Name": "",
  "parentId": ""
}'
import http.client

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

payload = "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/api/catalog-seller-portal/category-tree/categories", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories"

payload = {
    "Name": "",
    "parentId": ""
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories"

payload <- "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\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}}/api/catalog-seller-portal/category-tree/categories")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}"

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/api/catalog-seller-portal/category-tree/categories') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"Name\": \"\",\n  \"parentId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories";

    let payload = json!({
        "Name": "",
        "parentId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".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}}/api/catalog-seller-portal/category-tree/categories \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "Name": "",
  "parentId": ""
}'
echo '{
  "Name": "",
  "parentId": ""
}' |  \
  http POST {{baseUrl}}/api/catalog-seller-portal/category-tree/categories \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "Name": "",\n  "parentId": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/category-tree/categories
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "Name": "",
  "parentId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories")! 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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "children": [
    {
      "value": {
        "id": "2",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ],
  "value": {
    "id": "1",
    "isActive": false,
    "name": "Beauty"
  }
}
GET Get Category Tree
{{baseUrl}}/api/catalog-seller-portal/category-tree
HEADERS

Content-Type
Accept
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/category-tree");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/category-tree" {:headers {:content-type ""
                                                                                             :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/category-tree"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/category-tree");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/category-tree"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/category-tree HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/category-tree"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/category-tree');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/category-tree',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/category-tree',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/category-tree');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/category-tree"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/category-tree" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/category-tree",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/category-tree', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/category-tree", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/category-tree"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/category-tree")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/category-tree') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/category-tree";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/category-tree \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/category-tree \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/category-tree
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/category-tree")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "createdAt": "2021-08-16T20:57:13.070813Z",
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "displayOnMenu": false,
            "filterByBrand": false,
            "id": "7",
            "isActive": false,
            "isClickable": false,
            "name": "Perfume Masculino",
            "score": 0
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ],
  "updatedAt": "2022-07-07T14:24:56.416337Z"
}
GET Get Category by ID
{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId
HEADERS

Content-Type
Accept
QUERY PARAMS

categoryId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId" {:headers {:content-type ""
                                                                                                                    :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/category-tree/categories/:categoryId HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/category-tree/categories/:categoryId',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/category-tree/categories/:categoryId',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/category-tree/categories/:categoryId" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/category-tree/categories/:categoryId", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/category-tree/categories/:categoryId') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/category-tree/categories/:categoryId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "children": [
    {
      "value": {
        "id": "2",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ],
  "value": {
    "id": "1",
    "isActive": false,
    "name": "sandboxintegracao"
  }
}
PUT Update Category Tree
{{baseUrl}}/api/catalog-seller-portal/category-tree
HEADERS

Content-Type
Accept
BODY json

{
  "roots": [
    {
      "children": [
        {
          "value": {
            "id": "",
            "isActive": false,
            "name": ""
          }
        }
      ],
      "value": {
        "id": "",
        "isActive": false,
        "name": ""
      }
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/category-tree");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}");

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

(client/put "{{baseUrl}}/api/catalog-seller-portal/category-tree" {:headers {:accept ""}
                                                                                   :content-type :json
                                                                                   :form-params {:roots [{:children [{:children [{:children []
                                                                                                                                  :value {:id "4"
                                                                                                                                          :isActive false
                                                                                                                                          :name "Artesanato de Barro Vermelho"}}]
                                                                                                                      :value {:id "3"
                                                                                                                              :isActive false
                                                                                                                              :name "Artesanato de Barro"}}]
                                                                                                          :value {:id "2"
                                                                                                                  :isActive true
                                                                                                                  :name "Departamento Artesanato"}} {:children [{:children []
                                                                                                                      :value {:id "6"
                                                                                                                              :isActive false
                                                                                                                              :name "Perfume Feminino"}} {:children []
                                                                                                                      :value {:id "7"
                                                                                                                              :isActive false
                                                                                                                              :name "Perfume Masculino"}}]
                                                                                                          :value {:id "5"
                                                                                                                  :isActive false
                                                                                                                  :name "Perfumes"}}]}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree"
headers = HTTP::Headers{
  "content-type" => "application/json"
  "accept" => ""
}
reqBody = "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/category-tree"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\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}}/api/catalog-seller-portal/category-tree");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddHeader("accept", "");
request.AddParameter("application/json", "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/category-tree"

	payload := strings.NewReader("{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}")

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

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

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

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

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

}
PUT /baseUrl/api/catalog-seller-portal/category-tree HTTP/1.1
Content-Type: application/json
Accept: 
Host: example.com
Content-Length: 1061

{
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .setHeader("content-type", "application/json")
  .setHeader("accept", "")
  .setBody("{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/category-tree"))
    .header("content-type", "application/json")
    .header("accept", "")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\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  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .header("content-type", "application/json")
  .header("accept", "")
  .body("{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  roots: [
    {
      children: [
        {
          children: [
            {
              children: [],
              value: {
                id: '4',
                isActive: false,
                name: 'Artesanato de Barro Vermelho'
              }
            }
          ],
          value: {
            id: '3',
            isActive: false,
            name: 'Artesanato de Barro'
          }
        }
      ],
      value: {
        id: '2',
        isActive: true,
        name: 'Departamento Artesanato'
      }
    },
    {
      children: [
        {
          children: [],
          value: {
            id: '6',
            isActive: false,
            name: 'Perfume Feminino'
          }
        },
        {
          children: [],
          value: {
            id: '7',
            isActive: false,
            name: 'Perfume Masculino'
          }
        }
      ],
      value: {
        id: '5',
        isActive: false,
        name: 'Perfumes'
      }
    }
  ]
});

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

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

xhr.open('PUT', '{{baseUrl}}/api/catalog-seller-portal/category-tree');
xhr.setRequestHeader('content-type', 'application/json');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree',
  headers: {'content-type': 'application/json', accept: ''},
  data: {
    roots: [
      {
        children: [
          {
            children: [
              {
                children: [],
                value: {id: '4', isActive: false, name: 'Artesanato de Barro Vermelho'}
              }
            ],
            value: {id: '3', isActive: false, name: 'Artesanato de Barro'}
          }
        ],
        value: {id: '2', isActive: true, name: 'Departamento Artesanato'}
      },
      {
        children: [
          {children: [], value: {id: '6', isActive: false, name: 'Perfume Feminino'}},
          {children: [], value: {id: '7', isActive: false, name: 'Perfume Masculino'}}
        ],
        value: {id: '5', isActive: false, name: 'Perfumes'}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"roots":[{"children":[{"children":[{"children":[],"value":{"id":"4","isActive":false,"name":"Artesanato de Barro Vermelho"}}],"value":{"id":"3","isActive":false,"name":"Artesanato de Barro"}}],"value":{"id":"2","isActive":true,"name":"Departamento Artesanato"}},{"children":[{"children":[],"value":{"id":"6","isActive":false,"name":"Perfume Feminino"}},{"children":[],"value":{"id":"7","isActive":false,"name":"Perfume Masculino"}}],"value":{"id":"5","isActive":false,"name":"Perfumes"}}]}'
};

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}}/api/catalog-seller-portal/category-tree',
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    accept: ''
  },
  processData: false,
  data: '{\n  "roots": [\n    {\n      "children": [\n        {\n          "children": [\n            {\n              "children": [],\n              "value": {\n                "id": "4",\n                "isActive": false,\n                "name": "Artesanato de Barro Vermelho"\n              }\n            }\n          ],\n          "value": {\n            "id": "3",\n            "isActive": false,\n            "name": "Artesanato de Barro"\n          }\n        }\n      ],\n      "value": {\n        "id": "2",\n        "isActive": true,\n        "name": "Departamento Artesanato"\n      }\n    },\n    {\n      "children": [\n        {\n          "children": [],\n          "value": {\n            "id": "6",\n            "isActive": false,\n            "name": "Perfume Feminino"\n          }\n        },\n        {\n          "children": [],\n          "value": {\n            "id": "7",\n            "isActive": false,\n            "name": "Perfume Masculino"\n          }\n        }\n      ],\n      "value": {\n        "id": "5",\n        "isActive": false,\n        "name": "Perfumes"\n      }\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  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/category-tree")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/category-tree',
  headers: {
    'content-type': 'application/json',
    accept: ''
  }
};

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({
  roots: [
    {
      children: [
        {
          children: [
            {
              children: [],
              value: {id: '4', isActive: false, name: 'Artesanato de Barro Vermelho'}
            }
          ],
          value: {id: '3', isActive: false, name: 'Artesanato de Barro'}
        }
      ],
      value: {id: '2', isActive: true, name: 'Departamento Artesanato'}
    },
    {
      children: [
        {children: [], value: {id: '6', isActive: false, name: 'Perfume Feminino'}},
        {children: [], value: {id: '7', isActive: false, name: 'Perfume Masculino'}}
      ],
      value: {id: '5', isActive: false, name: 'Perfumes'}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree',
  headers: {'content-type': 'application/json', accept: ''},
  body: {
    roots: [
      {
        children: [
          {
            children: [
              {
                children: [],
                value: {id: '4', isActive: false, name: 'Artesanato de Barro Vermelho'}
              }
            ],
            value: {id: '3', isActive: false, name: 'Artesanato de Barro'}
          }
        ],
        value: {id: '2', isActive: true, name: 'Departamento Artesanato'}
      },
      {
        children: [
          {children: [], value: {id: '6', isActive: false, name: 'Perfume Feminino'}},
          {children: [], value: {id: '7', isActive: false, name: 'Perfume Masculino'}}
        ],
        value: {id: '5', isActive: false, name: 'Perfumes'}
      }
    ]
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/api/catalog-seller-portal/category-tree');

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

req.type('json');
req.send({
  roots: [
    {
      children: [
        {
          children: [
            {
              children: [],
              value: {
                id: '4',
                isActive: false,
                name: 'Artesanato de Barro Vermelho'
              }
            }
          ],
          value: {
            id: '3',
            isActive: false,
            name: 'Artesanato de Barro'
          }
        }
      ],
      value: {
        id: '2',
        isActive: true,
        name: 'Departamento Artesanato'
      }
    },
    {
      children: [
        {
          children: [],
          value: {
            id: '6',
            isActive: false,
            name: 'Perfume Feminino'
          }
        },
        {
          children: [],
          value: {
            id: '7',
            isActive: false,
            name: 'Perfume Masculino'
          }
        }
      ],
      value: {
        id: '5',
        isActive: false,
        name: 'Perfumes'
      }
    }
  ]
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/category-tree',
  headers: {'content-type': 'application/json', accept: ''},
  data: {
    roots: [
      {
        children: [
          {
            children: [
              {
                children: [],
                value: {id: '4', isActive: false, name: 'Artesanato de Barro Vermelho'}
              }
            ],
            value: {id: '3', isActive: false, name: 'Artesanato de Barro'}
          }
        ],
        value: {id: '2', isActive: true, name: 'Departamento Artesanato'}
      },
      {
        children: [
          {children: [], value: {id: '6', isActive: false, name: 'Perfume Feminino'}},
          {children: [], value: {id: '7', isActive: false, name: 'Perfume Masculino'}}
        ],
        value: {id: '5', isActive: false, name: 'Perfumes'}
      }
    ]
  }
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/category-tree';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"roots":[{"children":[{"children":[{"children":[],"value":{"id":"4","isActive":false,"name":"Artesanato de Barro Vermelho"}}],"value":{"id":"3","isActive":false,"name":"Artesanato de Barro"}}],"value":{"id":"2","isActive":true,"name":"Departamento Artesanato"}},{"children":[{"children":[],"value":{"id":"6","isActive":false,"name":"Perfume Feminino"}},{"children":[],"value":{"id":"7","isActive":false,"name":"Perfume Masculino"}}],"value":{"id":"5","isActive":false,"name":"Perfumes"}}]}'
};

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",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"roots": @[ @{ @"children": @[ @{ @"children": @[ @{ @"children": @[  ], @"value": @{ @"id": @"4", @"isActive": @NO, @"name": @"Artesanato de Barro Vermelho" } } ], @"value": @{ @"id": @"3", @"isActive": @NO, @"name": @"Artesanato de Barro" } } ], @"value": @{ @"id": @"2", @"isActive": @YES, @"name": @"Departamento Artesanato" } }, @{ @"children": @[ @{ @"children": @[  ], @"value": @{ @"id": @"6", @"isActive": @NO, @"name": @"Perfume Feminino" } }, @{ @"children": @[  ], @"value": @{ @"id": @"7", @"isActive": @NO, @"name": @"Perfume Masculino" } } ], @"value": @{ @"id": @"5", @"isActive": @NO, @"name": @"Perfumes" } } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/category-tree"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/api/catalog-seller-portal/category-tree" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "application/json");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/category-tree",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'roots' => [
        [
                'children' => [
                                [
                                                                'children' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'children' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '4',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'isActive' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => 'Artesanato de Barro Vermelho'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'value' => [
                                                                                                                                'id' => '3',
                                                                                                                                'isActive' => null,
                                                                                                                                'name' => 'Artesanato de Barro'
                                                                ]
                                ]
                ],
                'value' => [
                                'id' => '2',
                                'isActive' => null,
                                'name' => 'Departamento Artesanato'
                ]
        ],
        [
                'children' => [
                                [
                                                                'children' => [
                                                                                                                                
                                                                ],
                                                                'value' => [
                                                                                                                                'id' => '6',
                                                                                                                                'isActive' => null,
                                                                                                                                'name' => 'Perfume Feminino'
                                                                ]
                                ],
                                [
                                                                'children' => [
                                                                                                                                
                                                                ],
                                                                'value' => [
                                                                                                                                'id' => '7',
                                                                                                                                'isActive' => null,
                                                                                                                                'name' => 'Perfume Masculino'
                                                                ]
                                ]
                ],
                'value' => [
                                'id' => '5',
                                'isActive' => null,
                                'name' => 'Perfumes'
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "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('PUT', '{{baseUrl}}/api/catalog-seller-portal/category-tree', [
  'body' => '{
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ]
}',
  'headers' => [
    'accept' => '',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'roots' => [
    [
        'children' => [
                [
                                'children' => [
                                                                [
                                                                                                                                'children' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                'id' => '4',
                                                                                                                                                                                                                                                                'isActive' => null,
                                                                                                                                                                                                                                                                'name' => 'Artesanato de Barro Vermelho'
                                                                                                                                ]
                                                                ]
                                ],
                                'value' => [
                                                                'id' => '3',
                                                                'isActive' => null,
                                                                'name' => 'Artesanato de Barro'
                                ]
                ]
        ],
        'value' => [
                'id' => '2',
                'isActive' => null,
                'name' => 'Departamento Artesanato'
        ]
    ],
    [
        'children' => [
                [
                                'children' => [
                                                                
                                ],
                                'value' => [
                                                                'id' => '6',
                                                                'isActive' => null,
                                                                'name' => 'Perfume Feminino'
                                ]
                ],
                [
                                'children' => [
                                                                
                                ],
                                'value' => [
                                                                'id' => '7',
                                                                'isActive' => null,
                                                                'name' => 'Perfume Masculino'
                                ]
                ]
        ],
        'value' => [
                'id' => '5',
                'isActive' => null,
                'name' => 'Perfumes'
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'roots' => [
    [
        'children' => [
                [
                                'children' => [
                                                                [
                                                                                                                                'children' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => [
                                                                                                                                                                                                                                                                'id' => '4',
                                                                                                                                                                                                                                                                'isActive' => null,
                                                                                                                                                                                                                                                                'name' => 'Artesanato de Barro Vermelho'
                                                                                                                                ]
                                                                ]
                                ],
                                'value' => [
                                                                'id' => '3',
                                                                'isActive' => null,
                                                                'name' => 'Artesanato de Barro'
                                ]
                ]
        ],
        'value' => [
                'id' => '2',
                'isActive' => null,
                'name' => 'Departamento Artesanato'
        ]
    ],
    [
        'children' => [
                [
                                'children' => [
                                                                
                                ],
                                'value' => [
                                                                'id' => '6',
                                                                'isActive' => null,
                                                                'name' => 'Perfume Feminino'
                                ]
                ],
                [
                                'children' => [
                                                                
                                ],
                                'value' => [
                                                                'id' => '7',
                                                                'isActive' => null,
                                                                'name' => 'Perfume Masculino'
                                ]
                ]
        ],
        'value' => [
                'id' => '5',
                'isActive' => null,
                'name' => 'Perfumes'
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/category-tree');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/category-tree' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ]
}'
import http.client

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

payload = "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}"

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

conn.request("PUT", "/baseUrl/api/catalog-seller-portal/category-tree", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/category-tree"

payload = { "roots": [
        {
            "children": [
                {
                    "children": [
                        {
                            "children": [],
                            "value": {
                                "id": "4",
                                "isActive": False,
                                "name": "Artesanato de Barro Vermelho"
                            }
                        }
                    ],
                    "value": {
                        "id": "3",
                        "isActive": False,
                        "name": "Artesanato de Barro"
                    }
                }
            ],
            "value": {
                "id": "2",
                "isActive": True,
                "name": "Departamento Artesanato"
            }
        },
        {
            "children": [
                {
                    "children": [],
                    "value": {
                        "id": "6",
                        "isActive": False,
                        "name": "Perfume Feminino"
                    }
                },
                {
                    "children": [],
                    "value": {
                        "id": "7",
                        "isActive": False,
                        "name": "Perfume Masculino"
                    }
                }
            ],
            "value": {
                "id": "5",
                "isActive": False,
                "name": "Perfumes"
            }
        }
    ] }
headers = {
    "content-type": "application/json",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/category-tree"

payload <- "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/category-tree")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["accept"] = ''
request.body = "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\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.put('/baseUrl/api/catalog-seller-portal/category-tree') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"roots\": [\n    {\n      \"children\": [\n        {\n          \"children\": [\n            {\n              \"children\": [],\n              \"value\": {\n                \"id\": \"4\",\n                \"isActive\": false,\n                \"name\": \"Artesanato de Barro Vermelho\"\n              }\n            }\n          ],\n          \"value\": {\n            \"id\": \"3\",\n            \"isActive\": false,\n            \"name\": \"Artesanato de Barro\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"2\",\n        \"isActive\": true,\n        \"name\": \"Departamento Artesanato\"\n      }\n    },\n    {\n      \"children\": [\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"6\",\n            \"isActive\": false,\n            \"name\": \"Perfume Feminino\"\n          }\n        },\n        {\n          \"children\": [],\n          \"value\": {\n            \"id\": \"7\",\n            \"isActive\": false,\n            \"name\": \"Perfume Masculino\"\n          }\n        }\n      ],\n      \"value\": {\n        \"id\": \"5\",\n        \"isActive\": false,\n        \"name\": \"Perfumes\"\n      }\n    }\n  ]\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/category-tree";

    let payload = json!({"roots": (
            json!({
                "children": (
                    json!({
                        "children": (
                            json!({
                                "children": (),
                                "value": json!({
                                    "id": "4",
                                    "isActive": false,
                                    "name": "Artesanato de Barro Vermelho"
                                })
                            })
                        ),
                        "value": json!({
                            "id": "3",
                            "isActive": false,
                            "name": "Artesanato de Barro"
                        })
                    })
                ),
                "value": json!({
                    "id": "2",
                    "isActive": true,
                    "name": "Departamento Artesanato"
                })
            }),
            json!({
                "children": (
                    json!({
                        "children": (),
                        "value": json!({
                            "id": "6",
                            "isActive": false,
                            "name": "Perfume Feminino"
                        })
                    }),
                    json!({
                        "children": (),
                        "value": json!({
                            "id": "7",
                            "isActive": false,
                            "name": "Perfume Masculino"
                        })
                    })
                ),
                "value": json!({
                    "id": "5",
                    "isActive": false,
                    "name": "Perfumes"
                })
            })
        )});

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/catalog-seller-portal/category-tree \
  --header 'accept: ' \
  --header 'content-type: application/json' \
  --data '{
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ]
}'
echo '{
  "roots": [
    {
      "children": [
        {
          "children": [
            {
              "children": [],
              "value": {
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              }
            }
          ],
          "value": {
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          }
        }
      ],
      "value": {
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      }
    },
    {
      "children": [
        {
          "children": [],
          "value": {
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          }
        },
        {
          "children": [],
          "value": {
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          }
        }
      ],
      "value": {
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      }
    }
  ]
}' |  \
  http PUT {{baseUrl}}/api/catalog-seller-portal/category-tree \
  accept:'' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --header 'accept: ' \
  --body-data '{\n  "roots": [\n    {\n      "children": [\n        {\n          "children": [\n            {\n              "children": [],\n              "value": {\n                "id": "4",\n                "isActive": false,\n                "name": "Artesanato de Barro Vermelho"\n              }\n            }\n          ],\n          "value": {\n            "id": "3",\n            "isActive": false,\n            "name": "Artesanato de Barro"\n          }\n        }\n      ],\n      "value": {\n        "id": "2",\n        "isActive": true,\n        "name": "Departamento Artesanato"\n      }\n    },\n    {\n      "children": [\n        {\n          "children": [],\n          "value": {\n            "id": "6",\n            "isActive": false,\n            "name": "Perfume Feminino"\n          }\n        },\n        {\n          "children": [],\n          "value": {\n            "id": "7",\n            "isActive": false,\n            "name": "Perfume Masculino"\n          }\n        }\n      ],\n      "value": {\n        "id": "5",\n        "isActive": false,\n        "name": "Perfumes"\n      }\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/category-tree
import Foundation

let headers = [
  "content-type": "application/json",
  "accept": ""
]
let parameters = ["roots": [
    [
      "children": [
        [
          "children": [
            [
              "children": [],
              "value": [
                "id": "4",
                "isActive": false,
                "name": "Artesanato de Barro Vermelho"
              ]
            ]
          ],
          "value": [
            "id": "3",
            "isActive": false,
            "name": "Artesanato de Barro"
          ]
        ]
      ],
      "value": [
        "id": "2",
        "isActive": true,
        "name": "Departamento Artesanato"
      ]
    ],
    [
      "children": [
        [
          "children": [],
          "value": [
            "id": "6",
            "isActive": false,
            "name": "Perfume Feminino"
          ]
        ],
        [
          "children": [],
          "value": [
            "id": "7",
            "isActive": false,
            "name": "Perfume Masculino"
          ]
        ]
      ],
      "value": [
        "id": "5",
        "isActive": false,
        "name": "Perfumes"
      ]
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/category-tree")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Create Product
{{baseUrl}}/api/catalog-seller-portal/products
HEADERS

Content-Type
Accept
BODY json

{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/products");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/catalog-seller-portal/products" {:headers {:accept ""}
                                                                               :content-type :json
                                                                               :form-params {:attributes []
                                                                                             :brandId ""
                                                                                             :categoryIds []
                                                                                             :description ""
                                                                                             :externalId ""
                                                                                             :images [{:alt ""
                                                                                                       :id ""
                                                                                                       :url ""}]
                                                                                             :name ""
                                                                                             :origin ""
                                                                                             :skus [{:dimensions {:height ""
                                                                                                                  :length ""
                                                                                                                  :width ""}
                                                                                                     :ean ""
                                                                                                     :externalId ""
                                                                                                     :images []
                                                                                                     :isActive false
                                                                                                     :manufacturerCode ""
                                                                                                     :name ""
                                                                                                     :specs [{:name ""
                                                                                                              :value ""}]
                                                                                                     :weight 0}]
                                                                                             :slug ""
                                                                                             :specs [{:name ""
                                                                                                      :values []}]
                                                                                             :status ""
                                                                                             :taxCode ""
                                                                                             :transportModal ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/products"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}
reqBody = "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\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}}/api/catalog-seller-portal/products"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\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}}/api/catalog-seller-portal/products");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
request.AddParameter("", "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/products"

	payload := strings.NewReader("{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}")

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
POST /baseUrl/api/catalog-seller-portal/products HTTP/1.1
Content-Type: 
Accept: 
Host: example.com
Content-Length: 715

{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/catalog-seller-portal/products")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setBody("{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/products"))
    .header("content-type", "")
    .header("accept", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\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  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/catalog-seller-portal/products")
  .header("content-type", "")
  .header("accept", "")
  .body("{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: [],
  brandId: '',
  categoryIds: [],
  description: '',
  externalId: '',
  images: [
    {
      alt: '',
      id: '',
      url: ''
    }
  ],
  name: '',
  origin: '',
  skus: [
    {
      dimensions: {
        height: '',
        length: '',
        width: ''
      },
      ean: '',
      externalId: '',
      images: [],
      isActive: false,
      manufacturerCode: '',
      name: '',
      specs: [
        {
          name: '',
          value: ''
        }
      ],
      weight: 0
    }
  ],
  slug: '',
  specs: [
    {
      name: '',
      values: []
    }
  ],
  status: '',
  taxCode: '',
  transportModal: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/catalog-seller-portal/products');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/catalog-seller-portal/products',
  headers: {'content-type': '', accept: ''},
  data: {
    attributes: [],
    brandId: '',
    categoryIds: [],
    description: '',
    externalId: '',
    images: [{alt: '', id: '', url: ''}],
    name: '',
    origin: '',
    skus: [
      {
        dimensions: {height: '', length: '', width: ''},
        ean: '',
        externalId: '',
        images: [],
        isActive: false,
        manufacturerCode: '',
        name: '',
        specs: [{name: '', value: ''}],
        weight: 0
      }
    ],
    slug: '',
    specs: [{name: '', values: []}],
    status: '',
    taxCode: '',
    transportModal: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/products';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"attributes":[],"brandId":"","categoryIds":[],"description":"","externalId":"","images":[{"alt":"","id":"","url":""}],"name":"","origin":"","skus":[{"dimensions":{"height":"","length":"","width":""},"ean":"","externalId":"","images":[],"isActive":false,"manufacturerCode":"","name":"","specs":[{"name":"","value":""}],"weight":0}],"slug":"","specs":[{"name":"","values":[]}],"status":"","taxCode":"","transportModal":""}'
};

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}}/api/catalog-seller-portal/products',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: ''
  },
  processData: false,
  data: '{\n  "attributes": [],\n  "brandId": "",\n  "categoryIds": [],\n  "description": "",\n  "externalId": "",\n  "images": [\n    {\n      "alt": "",\n      "id": "",\n      "url": ""\n    }\n  ],\n  "name": "",\n  "origin": "",\n  "skus": [\n    {\n      "dimensions": {\n        "height": "",\n        "length": "",\n        "width": ""\n      },\n      "ean": "",\n      "externalId": "",\n      "images": [],\n      "isActive": false,\n      "manufacturerCode": "",\n      "name": "",\n      "specs": [\n        {\n          "name": "",\n          "value": ""\n        }\n      ],\n      "weight": 0\n    }\n  ],\n  "slug": "",\n  "specs": [\n    {\n      "name": "",\n      "values": []\n    }\n  ],\n  "status": "",\n  "taxCode": "",\n  "transportModal": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products")
  .post(body)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/products',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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({
  attributes: [],
  brandId: '',
  categoryIds: [],
  description: '',
  externalId: '',
  images: [{alt: '', id: '', url: ''}],
  name: '',
  origin: '',
  skus: [
    {
      dimensions: {height: '', length: '', width: ''},
      ean: '',
      externalId: '',
      images: [],
      isActive: false,
      manufacturerCode: '',
      name: '',
      specs: [{name: '', value: ''}],
      weight: 0
    }
  ],
  slug: '',
  specs: [{name: '', values: []}],
  status: '',
  taxCode: '',
  transportModal: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/catalog-seller-portal/products',
  headers: {'content-type': '', accept: ''},
  body: {
    attributes: [],
    brandId: '',
    categoryIds: [],
    description: '',
    externalId: '',
    images: [{alt: '', id: '', url: ''}],
    name: '',
    origin: '',
    skus: [
      {
        dimensions: {height: '', length: '', width: ''},
        ean: '',
        externalId: '',
        images: [],
        isActive: false,
        manufacturerCode: '',
        name: '',
        specs: [{name: '', value: ''}],
        weight: 0
      }
    ],
    slug: '',
    specs: [{name: '', values: []}],
    status: '',
    taxCode: '',
    transportModal: ''
  },
  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}}/api/catalog-seller-portal/products');

req.headers({
  'content-type': '',
  accept: ''
});

req.type('json');
req.send({
  attributes: [],
  brandId: '',
  categoryIds: [],
  description: '',
  externalId: '',
  images: [
    {
      alt: '',
      id: '',
      url: ''
    }
  ],
  name: '',
  origin: '',
  skus: [
    {
      dimensions: {
        height: '',
        length: '',
        width: ''
      },
      ean: '',
      externalId: '',
      images: [],
      isActive: false,
      manufacturerCode: '',
      name: '',
      specs: [
        {
          name: '',
          value: ''
        }
      ],
      weight: 0
    }
  ],
  slug: '',
  specs: [
    {
      name: '',
      values: []
    }
  ],
  status: '',
  taxCode: '',
  transportModal: ''
});

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}}/api/catalog-seller-portal/products',
  headers: {'content-type': '', accept: ''},
  data: {
    attributes: [],
    brandId: '',
    categoryIds: [],
    description: '',
    externalId: '',
    images: [{alt: '', id: '', url: ''}],
    name: '',
    origin: '',
    skus: [
      {
        dimensions: {height: '', length: '', width: ''},
        ean: '',
        externalId: '',
        images: [],
        isActive: false,
        manufacturerCode: '',
        name: '',
        specs: [{name: '', value: ''}],
        weight: 0
      }
    ],
    slug: '',
    specs: [{name: '', values: []}],
    status: '',
    taxCode: '',
    transportModal: ''
  }
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/products';
const options = {
  method: 'POST',
  headers: {'content-type': '', accept: ''},
  body: '{"attributes":[],"brandId":"","categoryIds":[],"description":"","externalId":"","images":[{"alt":"","id":"","url":""}],"name":"","origin":"","skus":[{"dimensions":{"height":"","length":"","width":""},"ean":"","externalId":"","images":[],"isActive":false,"manufacturerCode":"","name":"","specs":[{"name":"","value":""}],"weight":0}],"slug":"","specs":[{"name":"","values":[]}],"status":"","taxCode":"","transportModal":""}'
};

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": @"",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"attributes": @[  ],
                              @"brandId": @"",
                              @"categoryIds": @[  ],
                              @"description": @"",
                              @"externalId": @"",
                              @"images": @[ @{ @"alt": @"", @"id": @"", @"url": @"" } ],
                              @"name": @"",
                              @"origin": @"",
                              @"skus": @[ @{ @"dimensions": @{ @"height": @"", @"length": @"", @"width": @"" }, @"ean": @"", @"externalId": @"", @"images": @[  ], @"isActive": @NO, @"manufacturerCode": @"", @"name": @"", @"specs": @[ @{ @"name": @"", @"value": @"" } ], @"weight": @0 } ],
                              @"slug": @"",
                              @"specs": @[ @{ @"name": @"", @"values": @[  ] } ],
                              @"status": @"",
                              @"taxCode": @"",
                              @"transportModal": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/products"]
                                                       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}}/api/catalog-seller-portal/products" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/products",
  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([
    'attributes' => [
        
    ],
    'brandId' => '',
    'categoryIds' => [
        
    ],
    'description' => '',
    'externalId' => '',
    'images' => [
        [
                'alt' => '',
                'id' => '',
                'url' => ''
        ]
    ],
    'name' => '',
    'origin' => '',
    'skus' => [
        [
                'dimensions' => [
                                'height' => '',
                                'length' => '',
                                'width' => ''
                ],
                'ean' => '',
                'externalId' => '',
                'images' => [
                                
                ],
                'isActive' => null,
                'manufacturerCode' => '',
                'name' => '',
                'specs' => [
                                [
                                                                'name' => '',
                                                                'value' => ''
                                ]
                ],
                'weight' => 0
        ]
    ],
    'slug' => '',
    'specs' => [
        [
                'name' => '',
                'values' => [
                                
                ]
        ]
    ],
    'status' => '',
    'taxCode' => '',
    'transportModal' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/catalog-seller-portal/products', [
  'body' => '{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/products');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'brandId' => '',
  'categoryIds' => [
    
  ],
  'description' => '',
  'externalId' => '',
  'images' => [
    [
        'alt' => '',
        'id' => '',
        'url' => ''
    ]
  ],
  'name' => '',
  'origin' => '',
  'skus' => [
    [
        'dimensions' => [
                'height' => '',
                'length' => '',
                'width' => ''
        ],
        'ean' => '',
        'externalId' => '',
        'images' => [
                
        ],
        'isActive' => null,
        'manufacturerCode' => '',
        'name' => '',
        'specs' => [
                [
                                'name' => '',
                                'value' => ''
                ]
        ],
        'weight' => 0
    ]
  ],
  'slug' => '',
  'specs' => [
    [
        'name' => '',
        'values' => [
                
        ]
    ]
  ],
  'status' => '',
  'taxCode' => '',
  'transportModal' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'brandId' => '',
  'categoryIds' => [
    
  ],
  'description' => '',
  'externalId' => '',
  'images' => [
    [
        'alt' => '',
        'id' => '',
        'url' => ''
    ]
  ],
  'name' => '',
  'origin' => '',
  'skus' => [
    [
        'dimensions' => [
                'height' => '',
                'length' => '',
                'width' => ''
        ],
        'ean' => '',
        'externalId' => '',
        'images' => [
                
        ],
        'isActive' => null,
        'manufacturerCode' => '',
        'name' => '',
        'specs' => [
                [
                                'name' => '',
                                'value' => ''
                ]
        ],
        'weight' => 0
    ]
  ],
  'slug' => '',
  'specs' => [
    [
        'name' => '',
        'values' => [
                
        ]
    ]
  ],
  'status' => '',
  'taxCode' => '',
  'transportModal' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/products');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/products' -Method POST -Headers $headers -ContentType '' -Body '{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}'
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/products' -Method POST -Headers $headers -ContentType '' -Body '{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}'
import http.client

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

payload = "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}"

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("POST", "/baseUrl/api/catalog-seller-portal/products", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/products"

payload = {
    "attributes": [],
    "brandId": "",
    "categoryIds": [],
    "description": "",
    "externalId": "",
    "images": [
        {
            "alt": "",
            "id": "",
            "url": ""
        }
    ],
    "name": "",
    "origin": "",
    "skus": [
        {
            "dimensions": {
                "height": "",
                "length": "",
                "width": ""
            },
            "ean": "",
            "externalId": "",
            "images": [],
            "isActive": False,
            "manufacturerCode": "",
            "name": "",
            "specs": [
                {
                    "name": "",
                    "value": ""
                }
            ],
            "weight": 0
        }
    ],
    "slug": "",
    "specs": [
        {
            "name": "",
            "values": []
        }
    ],
    "status": "",
    "taxCode": "",
    "transportModal": ""
}
headers = {
    "content-type": "",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/products"

payload <- "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\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}}/api/catalog-seller-portal/products")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request.body = "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}"

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/api/catalog-seller-portal/products') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"attributes\": [],\n  \"brandId\": \"\",\n  \"categoryIds\": [],\n  \"description\": \"\",\n  \"externalId\": \"\",\n  \"images\": [\n    {\n      \"alt\": \"\",\n      \"id\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"origin\": \"\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": \"\",\n        \"length\": \"\",\n        \"width\": \"\"\n      },\n      \"ean\": \"\",\n      \"externalId\": \"\",\n      \"images\": [],\n      \"isActive\": false,\n      \"manufacturerCode\": \"\",\n      \"name\": \"\",\n      \"specs\": [\n        {\n          \"name\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"weight\": 0\n    }\n  ],\n  \"slug\": \"\",\n  \"specs\": [\n    {\n      \"name\": \"\",\n      \"values\": []\n    }\n  ],\n  \"status\": \"\",\n  \"taxCode\": \"\",\n  \"transportModal\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/products";

    let payload = json!({
        "attributes": (),
        "brandId": "",
        "categoryIds": (),
        "description": "",
        "externalId": "",
        "images": (
            json!({
                "alt": "",
                "id": "",
                "url": ""
            })
        ),
        "name": "",
        "origin": "",
        "skus": (
            json!({
                "dimensions": json!({
                    "height": "",
                    "length": "",
                    "width": ""
                }),
                "ean": "",
                "externalId": "",
                "images": (),
                "isActive": false,
                "manufacturerCode": "",
                "name": "",
                "specs": (
                    json!({
                        "name": "",
                        "value": ""
                    })
                ),
                "weight": 0
            })
        ),
        "slug": "",
        "specs": (
            json!({
                "name": "",
                "values": ()
            })
        ),
        "status": "",
        "taxCode": "",
        "transportModal": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".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}}/api/catalog-seller-portal/products \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}'
echo '{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}' |  \
  http POST {{baseUrl}}/api/catalog-seller-portal/products \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --body-data '{\n  "attributes": [],\n  "brandId": "",\n  "categoryIds": [],\n  "description": "",\n  "externalId": "",\n  "images": [\n    {\n      "alt": "",\n      "id": "",\n      "url": ""\n    }\n  ],\n  "name": "",\n  "origin": "",\n  "skus": [\n    {\n      "dimensions": {\n        "height": "",\n        "length": "",\n        "width": ""\n      },\n      "ean": "",\n      "externalId": "",\n      "images": [],\n      "isActive": false,\n      "manufacturerCode": "",\n      "name": "",\n      "specs": [\n        {\n          "name": "",\n          "value": ""\n        }\n      ],\n      "weight": 0\n    }\n  ],\n  "slug": "",\n  "specs": [\n    {\n      "name": "",\n      "values": []\n    }\n  ],\n  "status": "",\n  "taxCode": "",\n  "transportModal": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/products
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]
let parameters = [
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "description": "",
  "externalId": "",
  "images": [
    [
      "alt": "",
      "id": "",
      "url": ""
    ]
  ],
  "name": "",
  "origin": "",
  "skus": [
    [
      "dimensions": [
        "height": "",
        "length": "",
        "width": ""
      ],
      "ean": "",
      "externalId": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        [
          "name": "",
          "value": ""
        ]
      ],
      "weight": 0
    ]
  ],
  "slug": "",
  "specs": [
    [
      "name": "",
      "values": []
    ]
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/products")! 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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "brandName": "AOC",
  "categoryIds": [
    "732"
  ],
  "categoryNames": [
    "/sandboxintegracao/Acessórios/"
  ],
  "createdAt": "2021-01-18T14:41:45.696488+00:00",
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null,
  "updatedAt": "2021-01-18T14:41:45.696488+00:00"
}
GET Get Product Description by Product ID
{{baseUrl}}/api/catalog-seller-portal/products/:productId/description
HEADERS

Content-Type
Accept
QUERY PARAMS

productId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description" {:headers {:content-type ""
                                                                                                               :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/products/:productId/description HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/products/:productId/description',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/products/:productId/description',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/products/:productId/description" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/products/:productId/description", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/products/:productId/description') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/products/:productId/description \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/products/:productId/description \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/products/:productId/description
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "createdAt": "2022-10-10T19:18:45.612317Z",
  "description": "Beautifully handmade laptop case/sleeve made in the Nepal Himalaya. It can be slipped inside your backpack or carried alone with space for all your work bits and pieces!",
  "productId": "61",
  "updatedAt": "2022-10-11T18:12:58.825544Z"
}
GET Get Product by ID
{{baseUrl}}/api/catalog-seller-portal/products/:productId
HEADERS

Content-Type
Accept
QUERY PARAMS

productId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/products/:productId");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/products/:productId" {:headers {:content-type ""
                                                                                                   :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/products/:productId"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/products/:productId");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/products/:productId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/products/:productId HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/products/:productId"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:productId');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/products/:productId',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/products/:productId',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:productId');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/products/:productId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/products/:productId" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/products/:productId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:productId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/products/:productId", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/products/:productId"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/products/:productId")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/products/:productId') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/products/:productId \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/products/:productId \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/products/:productId
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/products/:productId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "brandName": "AOC",
  "categoryIds": [
    "732"
  ],
  "categoryNames": [
    "/sandboxintegracao/Acessórios/"
  ],
  "createdAt": "2022-10-31T16:28:25.578067Z",
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": "100",
  "transportModal": "123",
  "updatedAt": "2022-10-31T17:09:12.639088Z"
}
GET Get Product by external ID, SKU ID, SKU external ID or slug
{{baseUrl}}/api/catalog-seller-portal/products/:param
HEADERS

Content-Type
Accept
QUERY PARAMS

param
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/products/:param");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/products/:param" {:headers {:content-type ""
                                                                                               :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/products/:param"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/products/:param"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/products/:param");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/products/:param"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/products/:param HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/products/:param")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/products/:param"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:param")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/products/:param")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:param');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:param',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/products/:param';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/products/:param',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:param")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/products/:param',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:param',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:param');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:param',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/products/:param';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/products/:param"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/products/:param" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/products/:param",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/products/:param', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/products/:param');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/products/:param');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:param' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:param' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/products/:param", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/products/:param"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/products/:param"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/products/:param")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/products/:param') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/products/:param";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/products/:param \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/products/:param \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/products/:param
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/products/:param")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "brandName": "AOC",
  "categoryIds": [
    "732"
  ],
  "categoryNames": [
    "/Men/Acessories/"
  ],
  "createdAt": "2022-10-31T16:28:25.578067Z",
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": "100",
  "transportModal": "123",
  "updatedAt": "2022-10-31T16:28:25.578067Z"
}
PUT Update Product Description by Product ID
{{baseUrl}}/api/catalog-seller-portal/products/:productId/description
HEADERS

Content-Type
Accept
QUERY PARAMS

productId
BODY json

{
  "description": "",
  "productId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}");

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

(client/put "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description" {:headers {:accept ""}
                                                                                                     :content-type :json
                                                                                                     :form-params {:description "White shirt."
                                                                                                                   :productId "71"}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"
headers = HTTP::Headers{
  "content-type" => "application/json"
  "accept" => ""
}
reqBody = "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\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}}/api/catalog-seller-portal/products/:productId/description");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddHeader("accept", "");
request.AddParameter("application/json", "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"

	payload := strings.NewReader("{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}")

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

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

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

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

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

}
PUT /baseUrl/api/catalog-seller-portal/products/:productId/description HTTP/1.1
Content-Type: application/json
Accept: 
Host: example.com
Content-Length: 56

{
  "description": "White shirt.",
  "productId": "71"
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .setHeader("content-type", "application/json")
  .setHeader("accept", "")
  .setBody("{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"))
    .header("content-type", "application/json")
    .header("accept", "")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\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  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .header("content-type", "application/json")
  .header("accept", "")
  .body("{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}")
  .asString();
const data = JSON.stringify({
  description: 'White shirt.',
  productId: '71'
});

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

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

xhr.open('PUT', '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');
xhr.setRequestHeader('content-type', 'application/json');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description',
  headers: {'content-type': 'application/json', accept: ''},
  data: {description: 'White shirt.', productId: '71'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"description":"White shirt.","productId":"71"}'
};

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}}/api/catalog-seller-portal/products/:productId/description',
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    accept: ''
  },
  processData: false,
  data: '{\n  "description": "White shirt.",\n  "productId": "71"\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/products/:productId/description',
  headers: {
    'content-type': 'application/json',
    accept: ''
  }
};

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({description: 'White shirt.', productId: '71'}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description',
  headers: {'content-type': 'application/json', accept: ''},
  body: {description: 'White shirt.', productId: '71'},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');

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

req.type('json');
req.send({
  description: 'White shirt.',
  productId: '71'
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description',
  headers: {'content-type': 'application/json', accept: ''},
  data: {description: 'White shirt.', productId: '71'}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"description":"White shirt.","productId":"71"}'
};

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",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"description": @"White shirt.",
                              @"productId": @"71" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/api/catalog-seller-portal/products/:productId/description" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "application/json");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'description' => 'White shirt.',
    'productId' => '71'
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "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('PUT', '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description', [
  'body' => '{
  "description": "White shirt.",
  "productId": "71"
}',
  'headers' => [
    'accept' => '',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => 'White shirt.',
  'productId' => '71'
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => 'White shirt.',
  'productId' => '71'
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId/description');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "description": "White shirt.",
  "productId": "71"
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId/description' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "description": "White shirt.",
  "productId": "71"
}'
import http.client

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

payload = "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}"

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

conn.request("PUT", "/baseUrl/api/catalog-seller-portal/products/:productId/description", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"

payload = {
    "description": "White shirt.",
    "productId": "71"
}
headers = {
    "content-type": "application/json",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description"

payload <- "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["accept"] = ''
request.body = "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\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.put('/baseUrl/api/catalog-seller-portal/products/:productId/description') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"description\": \"White shirt.\",\n  \"productId\": \"71\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description";

    let payload = json!({
        "description": "White shirt.",
        "productId": "71"
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/catalog-seller-portal/products/:productId/description \
  --header 'accept: ' \
  --header 'content-type: application/json' \
  --data '{
  "description": "White shirt.",
  "productId": "71"
}'
echo '{
  "description": "White shirt.",
  "productId": "71"
}' |  \
  http PUT {{baseUrl}}/api/catalog-seller-portal/products/:productId/description \
  accept:'' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --header 'accept: ' \
  --body-data '{\n  "description": "White shirt.",\n  "productId": "71"\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/products/:productId/description
import Foundation

let headers = [
  "content-type": "application/json",
  "accept": ""
]
let parameters = [
  "description": "White shirt.",
  "productId": "71"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/products/:productId/description")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
PUT Update Product
{{baseUrl}}/api/catalog-seller-portal/products/:productId
HEADERS

Content-Type
Accept
QUERY PARAMS

productId
BODY json

{
  "attributes": [],
  "brandId": "",
  "categoryIds": [],
  "externalId": "",
  "id": "",
  "images": [
    {
      "alt": "",
      "id": "",
      "url": ""
    }
  ],
  "name": "",
  "origin": "",
  "skus": [
    {
      "dimensions": {
        "height": "",
        "length": "",
        "width": ""
      },
      "ean": "",
      "externalId": "",
      "id": "",
      "images": [],
      "isActive": false,
      "manufacturerCode": "",
      "name": "",
      "specs": [
        {
          "name": "",
          "value": ""
        }
      ],
      "weight": 0
    }
  ],
  "slug": "",
  "specs": [
    {
      "name": "",
      "values": []
    }
  ],
  "status": "",
  "taxCode": "",
  "transportModal": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/products/:productId");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}");

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

(client/put "{{baseUrl}}/api/catalog-seller-portal/products/:productId" {:headers {:accept ""}
                                                                                         :content-type :json
                                                                                         :form-params {:attributes [{:name "Fabric"
                                                                                                                     :value "Cotton"} {:name "Gender"
                                                                                                                     :value "Feminine"}]
                                                                                                       :brandId "1"
                                                                                                       :categoryIds ["732"]
                                                                                                       :id "189371"
                                                                                                       :images [{:alt "VTEX"
                                                                                                                 :id "vtex_logo.jpg"
                                                                                                                 :url "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"}]
                                                                                                       :name "VTEX 10 Shirt"
                                                                                                       :origin "vtxleo7778"
                                                                                                       :skus [{:dimensions {:height 2.1
                                                                                                                            :length 1.6
                                                                                                                            :width 1.5}
                                                                                                               :externalId "1909621862"
                                                                                                               :id "182907"
                                                                                                               :images ["vtex_logo.jpg"]
                                                                                                               :isActive true
                                                                                                               :manufacturerCode "1234567"
                                                                                                               :name "VTEX Shirt Black Size S"
                                                                                                               :specs [{:name "Color"
                                                                                                                        :value "Black"} {:name "Size"
                                                                                                                        :value "S"}]
                                                                                                               :weight 300} {:dimensions {:height 2.1
                                                                                                                            :length 1.6
                                                                                                                            :width 1.5}
                                                                                                               :externalId "1909621862"
                                                                                                               :id "182908"
                                                                                                               :images ["vtex_logo.jpg"]
                                                                                                               :isActive true
                                                                                                               :manufacturerCode "1234568"
                                                                                                               :name "VTEX Shirt White Size L"
                                                                                                               :specs [{:name "Color"
                                                                                                                        :value "White"} {:name "Size"
                                                                                                                        :value "L"}]
                                                                                                               :weight 300}]
                                                                                                       :slug "/vtex-shirt"
                                                                                                       :specs [{:name "Color"
                                                                                                                :values ["Black" "White"]} {:name "Size"
                                                                                                                :values ["S" "M" "L"]}]
                                                                                                       :status "active"
                                                                                                       :taxCode nil
                                                                                                       :transportModal nil}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId"
headers = HTTP::Headers{
  "content-type" => "application/json"
  "accept" => ""
}
reqBody = "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/products/:productId"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\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}}/api/catalog-seller-portal/products/:productId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddHeader("accept", "");
request.AddParameter("application/json", "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/products/:productId"

	payload := strings.NewReader("{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}")

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

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

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

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

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

}
PUT /baseUrl/api/catalog-seller-portal/products/:productId HTTP/1.1
Content-Type: application/json
Accept: 
Host: example.com
Content-Length: 1790

{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "categoryIds": [
    "732"
  ],
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .setHeader("content-type", "application/json")
  .setHeader("accept", "")
  .setBody("{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/products/:productId"))
    .header("content-type", "application/json")
    .header("accept", "")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\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  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .header("content-type", "application/json")
  .header("accept", "")
  .body("{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}")
  .asString();
const data = JSON.stringify({
  attributes: [
    {
      name: 'Fabric',
      value: 'Cotton'
    },
    {
      name: 'Gender',
      value: 'Feminine'
    }
  ],
  brandId: '1',
  categoryIds: [
    '732'
  ],
  id: '189371',
  images: [
    {
      alt: 'VTEX',
      id: 'vtex_logo.jpg',
      url: 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
    }
  ],
  name: 'VTEX 10 Shirt',
  origin: 'vtxleo7778',
  skus: [
    {
      dimensions: {
        height: 2.1,
        length: 1.6,
        width: 1.5
      },
      externalId: '1909621862',
      id: '182907',
      images: [
        'vtex_logo.jpg'
      ],
      isActive: true,
      manufacturerCode: '1234567',
      name: 'VTEX Shirt Black Size S',
      specs: [
        {
          name: 'Color',
          value: 'Black'
        },
        {
          name: 'Size',
          value: 'S'
        }
      ],
      weight: 300
    },
    {
      dimensions: {
        height: 2.1,
        length: 1.6,
        width: 1.5
      },
      externalId: '1909621862',
      id: '182908',
      images: [
        'vtex_logo.jpg'
      ],
      isActive: true,
      manufacturerCode: '1234568',
      name: 'VTEX Shirt White Size L',
      specs: [
        {
          name: 'Color',
          value: 'White'
        },
        {
          name: 'Size',
          value: 'L'
        }
      ],
      weight: 300
    }
  ],
  slug: '/vtex-shirt',
  specs: [
    {
      name: 'Color',
      values: [
        'Black',
        'White'
      ]
    },
    {
      name: 'Size',
      values: [
        'S',
        'M',
        'L'
      ]
    }
  ],
  status: 'active',
  taxCode: null,
  transportModal: null
});

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

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

xhr.open('PUT', '{{baseUrl}}/api/catalog-seller-portal/products/:productId');
xhr.setRequestHeader('content-type', 'application/json');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId',
  headers: {'content-type': 'application/json', accept: ''},
  data: {
    attributes: [{name: 'Fabric', value: 'Cotton'}, {name: 'Gender', value: 'Feminine'}],
    brandId: '1',
    categoryIds: ['732'],
    id: '189371',
    images: [
      {
        alt: 'VTEX',
        id: 'vtex_logo.jpg',
        url: 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
      }
    ],
    name: 'VTEX 10 Shirt',
    origin: 'vtxleo7778',
    skus: [
      {
        dimensions: {height: 2.1, length: 1.6, width: 1.5},
        externalId: '1909621862',
        id: '182907',
        images: ['vtex_logo.jpg'],
        isActive: true,
        manufacturerCode: '1234567',
        name: 'VTEX Shirt Black Size S',
        specs: [{name: 'Color', value: 'Black'}, {name: 'Size', value: 'S'}],
        weight: 300
      },
      {
        dimensions: {height: 2.1, length: 1.6, width: 1.5},
        externalId: '1909621862',
        id: '182908',
        images: ['vtex_logo.jpg'],
        isActive: true,
        manufacturerCode: '1234568',
        name: 'VTEX Shirt White Size L',
        specs: [{name: 'Color', value: 'White'}, {name: 'Size', value: 'L'}],
        weight: 300
      }
    ],
    slug: '/vtex-shirt',
    specs: [
      {name: 'Color', values: ['Black', 'White']},
      {name: 'Size', values: ['S', 'M', 'L']}
    ],
    status: 'active',
    taxCode: null,
    transportModal: null
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"attributes":[{"name":"Fabric","value":"Cotton"},{"name":"Gender","value":"Feminine"}],"brandId":"1","categoryIds":["732"],"id":"189371","images":[{"alt":"VTEX","id":"vtex_logo.jpg","url":"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"}],"name":"VTEX 10 Shirt","origin":"vtxleo7778","skus":[{"dimensions":{"height":2.1,"length":1.6,"width":1.5},"externalId":"1909621862","id":"182907","images":["vtex_logo.jpg"],"isActive":true,"manufacturerCode":"1234567","name":"VTEX Shirt Black Size S","specs":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"weight":300},{"dimensions":{"height":2.1,"length":1.6,"width":1.5},"externalId":"1909621862","id":"182908","images":["vtex_logo.jpg"],"isActive":true,"manufacturerCode":"1234568","name":"VTEX Shirt White Size L","specs":[{"name":"Color","value":"White"},{"name":"Size","value":"L"}],"weight":300}],"slug":"/vtex-shirt","specs":[{"name":"Color","values":["Black","White"]},{"name":"Size","values":["S","M","L"]}],"status":"active","taxCode":null,"transportModal":null}'
};

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}}/api/catalog-seller-portal/products/:productId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json',
    accept: ''
  },
  processData: false,
  data: '{\n  "attributes": [\n    {\n      "name": "Fabric",\n      "value": "Cotton"\n    },\n    {\n      "name": "Gender",\n      "value": "Feminine"\n    }\n  ],\n  "brandId": "1",\n  "categoryIds": [\n    "732"\n  ],\n  "id": "189371",\n  "images": [\n    {\n      "alt": "VTEX",\n      "id": "vtex_logo.jpg",\n      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"\n    }\n  ],\n  "name": "VTEX 10 Shirt",\n  "origin": "vtxleo7778",\n  "skus": [\n    {\n      "dimensions": {\n        "height": 2.1,\n        "length": 1.6,\n        "width": 1.5\n      },\n      "externalId": "1909621862",\n      "id": "182907",\n      "images": [\n        "vtex_logo.jpg"\n      ],\n      "isActive": true,\n      "manufacturerCode": "1234567",\n      "name": "VTEX Shirt Black Size S",\n      "specs": [\n        {\n          "name": "Color",\n          "value": "Black"\n        },\n        {\n          "name": "Size",\n          "value": "S"\n        }\n      ],\n      "weight": 300\n    },\n    {\n      "dimensions": {\n        "height": 2.1,\n        "length": 1.6,\n        "width": 1.5\n      },\n      "externalId": "1909621862",\n      "id": "182908",\n      "images": [\n        "vtex_logo.jpg"\n      ],\n      "isActive": true,\n      "manufacturerCode": "1234568",\n      "name": "VTEX Shirt White Size L",\n      "specs": [\n        {\n          "name": "Color",\n          "value": "White"\n        },\n        {\n          "name": "Size",\n          "value": "L"\n        }\n      ],\n      "weight": 300\n    }\n  ],\n  "slug": "/vtex-shirt",\n  "specs": [\n    {\n      "name": "Color",\n      "values": [\n        "Black",\n        "White"\n      ]\n    },\n    {\n      "name": "Size",\n      "values": [\n        "S",\n        "M",\n        "L"\n      ]\n    }\n  ],\n  "status": "active",\n  "taxCode": null,\n  "transportModal": null\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/products/:productId")
  .put(body)
  .addHeader("content-type", "application/json")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/products/:productId',
  headers: {
    'content-type': 'application/json',
    accept: ''
  }
};

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({
  attributes: [{name: 'Fabric', value: 'Cotton'}, {name: 'Gender', value: 'Feminine'}],
  brandId: '1',
  categoryIds: ['732'],
  id: '189371',
  images: [
    {
      alt: 'VTEX',
      id: 'vtex_logo.jpg',
      url: 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
    }
  ],
  name: 'VTEX 10 Shirt',
  origin: 'vtxleo7778',
  skus: [
    {
      dimensions: {height: 2.1, length: 1.6, width: 1.5},
      externalId: '1909621862',
      id: '182907',
      images: ['vtex_logo.jpg'],
      isActive: true,
      manufacturerCode: '1234567',
      name: 'VTEX Shirt Black Size S',
      specs: [{name: 'Color', value: 'Black'}, {name: 'Size', value: 'S'}],
      weight: 300
    },
    {
      dimensions: {height: 2.1, length: 1.6, width: 1.5},
      externalId: '1909621862',
      id: '182908',
      images: ['vtex_logo.jpg'],
      isActive: true,
      manufacturerCode: '1234568',
      name: 'VTEX Shirt White Size L',
      specs: [{name: 'Color', value: 'White'}, {name: 'Size', value: 'L'}],
      weight: 300
    }
  ],
  slug: '/vtex-shirt',
  specs: [
    {name: 'Color', values: ['Black', 'White']},
    {name: 'Size', values: ['S', 'M', 'L']}
  ],
  status: 'active',
  taxCode: null,
  transportModal: null
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId',
  headers: {'content-type': 'application/json', accept: ''},
  body: {
    attributes: [{name: 'Fabric', value: 'Cotton'}, {name: 'Gender', value: 'Feminine'}],
    brandId: '1',
    categoryIds: ['732'],
    id: '189371',
    images: [
      {
        alt: 'VTEX',
        id: 'vtex_logo.jpg',
        url: 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
      }
    ],
    name: 'VTEX 10 Shirt',
    origin: 'vtxleo7778',
    skus: [
      {
        dimensions: {height: 2.1, length: 1.6, width: 1.5},
        externalId: '1909621862',
        id: '182907',
        images: ['vtex_logo.jpg'],
        isActive: true,
        manufacturerCode: '1234567',
        name: 'VTEX Shirt Black Size S',
        specs: [{name: 'Color', value: 'Black'}, {name: 'Size', value: 'S'}],
        weight: 300
      },
      {
        dimensions: {height: 2.1, length: 1.6, width: 1.5},
        externalId: '1909621862',
        id: '182908',
        images: ['vtex_logo.jpg'],
        isActive: true,
        manufacturerCode: '1234568',
        name: 'VTEX Shirt White Size L',
        specs: [{name: 'Color', value: 'White'}, {name: 'Size', value: 'L'}],
        weight: 300
      }
    ],
    slug: '/vtex-shirt',
    specs: [
      {name: 'Color', values: ['Black', 'White']},
      {name: 'Size', values: ['S', 'M', 'L']}
    ],
    status: 'active',
    taxCode: null,
    transportModal: null
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/api/catalog-seller-portal/products/:productId');

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

req.type('json');
req.send({
  attributes: [
    {
      name: 'Fabric',
      value: 'Cotton'
    },
    {
      name: 'Gender',
      value: 'Feminine'
    }
  ],
  brandId: '1',
  categoryIds: [
    '732'
  ],
  id: '189371',
  images: [
    {
      alt: 'VTEX',
      id: 'vtex_logo.jpg',
      url: 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
    }
  ],
  name: 'VTEX 10 Shirt',
  origin: 'vtxleo7778',
  skus: [
    {
      dimensions: {
        height: 2.1,
        length: 1.6,
        width: 1.5
      },
      externalId: '1909621862',
      id: '182907',
      images: [
        'vtex_logo.jpg'
      ],
      isActive: true,
      manufacturerCode: '1234567',
      name: 'VTEX Shirt Black Size S',
      specs: [
        {
          name: 'Color',
          value: 'Black'
        },
        {
          name: 'Size',
          value: 'S'
        }
      ],
      weight: 300
    },
    {
      dimensions: {
        height: 2.1,
        length: 1.6,
        width: 1.5
      },
      externalId: '1909621862',
      id: '182908',
      images: [
        'vtex_logo.jpg'
      ],
      isActive: true,
      manufacturerCode: '1234568',
      name: 'VTEX Shirt White Size L',
      specs: [
        {
          name: 'Color',
          value: 'White'
        },
        {
          name: 'Size',
          value: 'L'
        }
      ],
      weight: 300
    }
  ],
  slug: '/vtex-shirt',
  specs: [
    {
      name: 'Color',
      values: [
        'Black',
        'White'
      ]
    },
    {
      name: 'Size',
      values: [
        'S',
        'M',
        'L'
      ]
    }
  ],
  status: 'active',
  taxCode: null,
  transportModal: null
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/catalog-seller-portal/products/:productId',
  headers: {'content-type': 'application/json', accept: ''},
  data: {
    attributes: [{name: 'Fabric', value: 'Cotton'}, {name: 'Gender', value: 'Feminine'}],
    brandId: '1',
    categoryIds: ['732'],
    id: '189371',
    images: [
      {
        alt: 'VTEX',
        id: 'vtex_logo.jpg',
        url: 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
      }
    ],
    name: 'VTEX 10 Shirt',
    origin: 'vtxleo7778',
    skus: [
      {
        dimensions: {height: 2.1, length: 1.6, width: 1.5},
        externalId: '1909621862',
        id: '182907',
        images: ['vtex_logo.jpg'],
        isActive: true,
        manufacturerCode: '1234567',
        name: 'VTEX Shirt Black Size S',
        specs: [{name: 'Color', value: 'Black'}, {name: 'Size', value: 'S'}],
        weight: 300
      },
      {
        dimensions: {height: 2.1, length: 1.6, width: 1.5},
        externalId: '1909621862',
        id: '182908',
        images: ['vtex_logo.jpg'],
        isActive: true,
        manufacturerCode: '1234568',
        name: 'VTEX Shirt White Size L',
        specs: [{name: 'Color', value: 'White'}, {name: 'Size', value: 'L'}],
        weight: 300
      }
    ],
    slug: '/vtex-shirt',
    specs: [
      {name: 'Color', values: ['Black', 'White']},
      {name: 'Size', values: ['S', 'M', 'L']}
    ],
    status: 'active',
    taxCode: null,
    transportModal: null
  }
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/products/:productId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json', accept: ''},
  body: '{"attributes":[{"name":"Fabric","value":"Cotton"},{"name":"Gender","value":"Feminine"}],"brandId":"1","categoryIds":["732"],"id":"189371","images":[{"alt":"VTEX","id":"vtex_logo.jpg","url":"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"}],"name":"VTEX 10 Shirt","origin":"vtxleo7778","skus":[{"dimensions":{"height":2.1,"length":1.6,"width":1.5},"externalId":"1909621862","id":"182907","images":["vtex_logo.jpg"],"isActive":true,"manufacturerCode":"1234567","name":"VTEX Shirt Black Size S","specs":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"weight":300},{"dimensions":{"height":2.1,"length":1.6,"width":1.5},"externalId":"1909621862","id":"182908","images":["vtex_logo.jpg"],"isActive":true,"manufacturerCode":"1234568","name":"VTEX Shirt White Size L","specs":[{"name":"Color","value":"White"},{"name":"Size","value":"L"}],"weight":300}],"slug":"/vtex-shirt","specs":[{"name":"Color","values":["Black","White"]},{"name":"Size","values":["S","M","L"]}],"status":"active","taxCode":null,"transportModal":null}'
};

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",
                           @"accept": @"" };
NSDictionary *parameters = @{ @"attributes": @[ @{ @"name": @"Fabric", @"value": @"Cotton" }, @{ @"name": @"Gender", @"value": @"Feminine" } ],
                              @"brandId": @"1",
                              @"categoryIds": @[ @"732" ],
                              @"id": @"189371",
                              @"images": @[ @{ @"alt": @"VTEX", @"id": @"vtex_logo.jpg", @"url": @"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg" } ],
                              @"name": @"VTEX 10 Shirt",
                              @"origin": @"vtxleo7778",
                              @"skus": @[ @{ @"dimensions": @{ @"height": @2.1, @"length": @1.6, @"width": @1.5 }, @"externalId": @"1909621862", @"id": @"182907", @"images": @[ @"vtex_logo.jpg" ], @"isActive": @YES, @"manufacturerCode": @"1234567", @"name": @"VTEX Shirt Black Size S", @"specs": @[ @{ @"name": @"Color", @"value": @"Black" }, @{ @"name": @"Size", @"value": @"S" } ], @"weight": @300 }, @{ @"dimensions": @{ @"height": @2.1, @"length": @1.6, @"width": @1.5 }, @"externalId": @"1909621862", @"id": @"182908", @"images": @[ @"vtex_logo.jpg" ], @"isActive": @YES, @"manufacturerCode": @"1234568", @"name": @"VTEX Shirt White Size L", @"specs": @[ @{ @"name": @"Color", @"value": @"White" }, @{ @"name": @"Size", @"value": @"L" } ], @"weight": @300 } ],
                              @"slug": @"/vtex-shirt",
                              @"specs": @[ @{ @"name": @"Color", @"values": @[ @"Black", @"White" ] }, @{ @"name": @"Size", @"values": @[ @"S", @"M", @"L" ] } ],
                              @"status": @"active",
                              @"taxCode": ,
                              @"transportModal":  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/products/:productId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/api/catalog-seller-portal/products/:productId" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "application/json");
  ("accept", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/products/:productId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'attributes' => [
        [
                'name' => 'Fabric',
                'value' => 'Cotton'
        ],
        [
                'name' => 'Gender',
                'value' => 'Feminine'
        ]
    ],
    'brandId' => '1',
    'categoryIds' => [
        '732'
    ],
    'id' => '189371',
    'images' => [
        [
                'alt' => 'VTEX',
                'id' => 'vtex_logo.jpg',
                'url' => 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
        ]
    ],
    'name' => 'VTEX 10 Shirt',
    'origin' => 'vtxleo7778',
    'skus' => [
        [
                'dimensions' => [
                                'height' => 2.1,
                                'length' => 1.6,
                                'width' => 1.5
                ],
                'externalId' => '1909621862',
                'id' => '182907',
                'images' => [
                                'vtex_logo.jpg'
                ],
                'isActive' => null,
                'manufacturerCode' => '1234567',
                'name' => 'VTEX Shirt Black Size S',
                'specs' => [
                                [
                                                                'name' => 'Color',
                                                                'value' => 'Black'
                                ],
                                [
                                                                'name' => 'Size',
                                                                'value' => 'S'
                                ]
                ],
                'weight' => 300
        ],
        [
                'dimensions' => [
                                'height' => 2.1,
                                'length' => 1.6,
                                'width' => 1.5
                ],
                'externalId' => '1909621862',
                'id' => '182908',
                'images' => [
                                'vtex_logo.jpg'
                ],
                'isActive' => null,
                'manufacturerCode' => '1234568',
                'name' => 'VTEX Shirt White Size L',
                'specs' => [
                                [
                                                                'name' => 'Color',
                                                                'value' => 'White'
                                ],
                                [
                                                                'name' => 'Size',
                                                                'value' => 'L'
                                ]
                ],
                'weight' => 300
        ]
    ],
    'slug' => '/vtex-shirt',
    'specs' => [
        [
                'name' => 'Color',
                'values' => [
                                'Black',
                                'White'
                ]
        ],
        [
                'name' => 'Size',
                'values' => [
                                'S',
                                'M',
                                'L'
                ]
        ]
    ],
    'status' => 'active',
    'taxCode' => null,
    'transportModal' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "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('PUT', '{{baseUrl}}/api/catalog-seller-portal/products/:productId', [
  'body' => '{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "categoryIds": [
    "732"
  ],
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null
}',
  'headers' => [
    'accept' => '',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    [
        'name' => 'Fabric',
        'value' => 'Cotton'
    ],
    [
        'name' => 'Gender',
        'value' => 'Feminine'
    ]
  ],
  'brandId' => '1',
  'categoryIds' => [
    '732'
  ],
  'id' => '189371',
  'images' => [
    [
        'alt' => 'VTEX',
        'id' => 'vtex_logo.jpg',
        'url' => 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
    ]
  ],
  'name' => 'VTEX 10 Shirt',
  'origin' => 'vtxleo7778',
  'skus' => [
    [
        'dimensions' => [
                'height' => 2.1,
                'length' => 1.6,
                'width' => 1.5
        ],
        'externalId' => '1909621862',
        'id' => '182907',
        'images' => [
                'vtex_logo.jpg'
        ],
        'isActive' => null,
        'manufacturerCode' => '1234567',
        'name' => 'VTEX Shirt Black Size S',
        'specs' => [
                [
                                'name' => 'Color',
                                'value' => 'Black'
                ],
                [
                                'name' => 'Size',
                                'value' => 'S'
                ]
        ],
        'weight' => 300
    ],
    [
        'dimensions' => [
                'height' => 2.1,
                'length' => 1.6,
                'width' => 1.5
        ],
        'externalId' => '1909621862',
        'id' => '182908',
        'images' => [
                'vtex_logo.jpg'
        ],
        'isActive' => null,
        'manufacturerCode' => '1234568',
        'name' => 'VTEX Shirt White Size L',
        'specs' => [
                [
                                'name' => 'Color',
                                'value' => 'White'
                ],
                [
                                'name' => 'Size',
                                'value' => 'L'
                ]
        ],
        'weight' => 300
    ]
  ],
  'slug' => '/vtex-shirt',
  'specs' => [
    [
        'name' => 'Color',
        'values' => [
                'Black',
                'White'
        ]
    ],
    [
        'name' => 'Size',
        'values' => [
                'S',
                'M',
                'L'
        ]
    ]
  ],
  'status' => 'active',
  'taxCode' => null,
  'transportModal' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    [
        'name' => 'Fabric',
        'value' => 'Cotton'
    ],
    [
        'name' => 'Gender',
        'value' => 'Feminine'
    ]
  ],
  'brandId' => '1',
  'categoryIds' => [
    '732'
  ],
  'id' => '189371',
  'images' => [
    [
        'alt' => 'VTEX',
        'id' => 'vtex_logo.jpg',
        'url' => 'https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg'
    ]
  ],
  'name' => 'VTEX 10 Shirt',
  'origin' => 'vtxleo7778',
  'skus' => [
    [
        'dimensions' => [
                'height' => 2.1,
                'length' => 1.6,
                'width' => 1.5
        ],
        'externalId' => '1909621862',
        'id' => '182907',
        'images' => [
                'vtex_logo.jpg'
        ],
        'isActive' => null,
        'manufacturerCode' => '1234567',
        'name' => 'VTEX Shirt Black Size S',
        'specs' => [
                [
                                'name' => 'Color',
                                'value' => 'Black'
                ],
                [
                                'name' => 'Size',
                                'value' => 'S'
                ]
        ],
        'weight' => 300
    ],
    [
        'dimensions' => [
                'height' => 2.1,
                'length' => 1.6,
                'width' => 1.5
        ],
        'externalId' => '1909621862',
        'id' => '182908',
        'images' => [
                'vtex_logo.jpg'
        ],
        'isActive' => null,
        'manufacturerCode' => '1234568',
        'name' => 'VTEX Shirt White Size L',
        'specs' => [
                [
                                'name' => 'Color',
                                'value' => 'White'
                ],
                [
                                'name' => 'Size',
                                'value' => 'L'
                ]
        ],
        'weight' => 300
    ]
  ],
  'slug' => '/vtex-shirt',
  'specs' => [
    [
        'name' => 'Color',
        'values' => [
                'Black',
                'White'
        ]
    ],
    [
        'name' => 'Size',
        'values' => [
                'S',
                'M',
                'L'
        ]
    ]
  ],
  'status' => 'active',
  'taxCode' => null,
  'transportModal' => null
]));
$request->setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/products/:productId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "categoryIds": [
    "732"
  ],
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/products/:productId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "categoryIds": [
    "732"
  ],
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null
}'
import http.client

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

payload = "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}"

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

conn.request("PUT", "/baseUrl/api/catalog-seller-portal/products/:productId", payload, headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId"

payload = {
    "attributes": [
        {
            "name": "Fabric",
            "value": "Cotton"
        },
        {
            "name": "Gender",
            "value": "Feminine"
        }
    ],
    "brandId": "1",
    "categoryIds": ["732"],
    "id": "189371",
    "images": [
        {
            "alt": "VTEX",
            "id": "vtex_logo.jpg",
            "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
        }
    ],
    "name": "VTEX 10 Shirt",
    "origin": "vtxleo7778",
    "skus": [
        {
            "dimensions": {
                "height": 2.1,
                "length": 1.6,
                "width": 1.5
            },
            "externalId": "1909621862",
            "id": "182907",
            "images": ["vtex_logo.jpg"],
            "isActive": True,
            "manufacturerCode": "1234567",
            "name": "VTEX Shirt Black Size S",
            "specs": [
                {
                    "name": "Color",
                    "value": "Black"
                },
                {
                    "name": "Size",
                    "value": "S"
                }
            ],
            "weight": 300
        },
        {
            "dimensions": {
                "height": 2.1,
                "length": 1.6,
                "width": 1.5
            },
            "externalId": "1909621862",
            "id": "182908",
            "images": ["vtex_logo.jpg"],
            "isActive": True,
            "manufacturerCode": "1234568",
            "name": "VTEX Shirt White Size L",
            "specs": [
                {
                    "name": "Color",
                    "value": "White"
                },
                {
                    "name": "Size",
                    "value": "L"
                }
            ],
            "weight": 300
        }
    ],
    "slug": "/vtex-shirt",
    "specs": [
        {
            "name": "Color",
            "values": ["Black", "White"]
        },
        {
            "name": "Size",
            "values": ["S", "M", "L"]
        }
    ],
    "status": "active",
    "taxCode": None,
    "transportModal": None
}
headers = {
    "content-type": "application/json",
    "accept": ""
}

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

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

url <- "{{baseUrl}}/api/catalog-seller-portal/products/:productId"

payload <- "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/products/:productId")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request["accept"] = ''
request.body = "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\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.put('/baseUrl/api/catalog-seller-portal/products/:productId') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"attributes\": [\n    {\n      \"name\": \"Fabric\",\n      \"value\": \"Cotton\"\n    },\n    {\n      \"name\": \"Gender\",\n      \"value\": \"Feminine\"\n    }\n  ],\n  \"brandId\": \"1\",\n  \"categoryIds\": [\n    \"732\"\n  ],\n  \"id\": \"189371\",\n  \"images\": [\n    {\n      \"alt\": \"VTEX\",\n      \"id\": \"vtex_logo.jpg\",\n      \"url\": \"https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg\"\n    }\n  ],\n  \"name\": \"VTEX 10 Shirt\",\n  \"origin\": \"vtxleo7778\",\n  \"skus\": [\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182907\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234567\",\n      \"name\": \"VTEX Shirt Black Size S\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"Black\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"S\"\n        }\n      ],\n      \"weight\": 300\n    },\n    {\n      \"dimensions\": {\n        \"height\": 2.1,\n        \"length\": 1.6,\n        \"width\": 1.5\n      },\n      \"externalId\": \"1909621862\",\n      \"id\": \"182908\",\n      \"images\": [\n        \"vtex_logo.jpg\"\n      ],\n      \"isActive\": true,\n      \"manufacturerCode\": \"1234568\",\n      \"name\": \"VTEX Shirt White Size L\",\n      \"specs\": [\n        {\n          \"name\": \"Color\",\n          \"value\": \"White\"\n        },\n        {\n          \"name\": \"Size\",\n          \"value\": \"L\"\n        }\n      ],\n      \"weight\": 300\n    }\n  ],\n  \"slug\": \"/vtex-shirt\",\n  \"specs\": [\n    {\n      \"name\": \"Color\",\n      \"values\": [\n        \"Black\",\n        \"White\"\n      ]\n    },\n    {\n      \"name\": \"Size\",\n      \"values\": [\n        \"S\",\n        \"M\",\n        \"L\"\n      ]\n    }\n  ],\n  \"status\": \"active\",\n  \"taxCode\": null,\n  \"transportModal\": null\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/products/:productId";

    let payload = json!({
        "attributes": (
            json!({
                "name": "Fabric",
                "value": "Cotton"
            }),
            json!({
                "name": "Gender",
                "value": "Feminine"
            })
        ),
        "brandId": "1",
        "categoryIds": ("732"),
        "id": "189371",
        "images": (
            json!({
                "alt": "VTEX",
                "id": "vtex_logo.jpg",
                "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
            })
        ),
        "name": "VTEX 10 Shirt",
        "origin": "vtxleo7778",
        "skus": (
            json!({
                "dimensions": json!({
                    "height": 2.1,
                    "length": 1.6,
                    "width": 1.5
                }),
                "externalId": "1909621862",
                "id": "182907",
                "images": ("vtex_logo.jpg"),
                "isActive": true,
                "manufacturerCode": "1234567",
                "name": "VTEX Shirt Black Size S",
                "specs": (
                    json!({
                        "name": "Color",
                        "value": "Black"
                    }),
                    json!({
                        "name": "Size",
                        "value": "S"
                    })
                ),
                "weight": 300
            }),
            json!({
                "dimensions": json!({
                    "height": 2.1,
                    "length": 1.6,
                    "width": 1.5
                }),
                "externalId": "1909621862",
                "id": "182908",
                "images": ("vtex_logo.jpg"),
                "isActive": true,
                "manufacturerCode": "1234568",
                "name": "VTEX Shirt White Size L",
                "specs": (
                    json!({
                        "name": "Color",
                        "value": "White"
                    }),
                    json!({
                        "name": "Size",
                        "value": "L"
                    })
                ),
                "weight": 300
            })
        ),
        "slug": "/vtex-shirt",
        "specs": (
            json!({
                "name": "Color",
                "values": ("Black", "White")
            }),
            json!({
                "name": "Size",
                "values": ("S", "M", "L")
            })
        ),
        "status": "active",
        "taxCode": json!(null),
        "transportModal": json!(null)
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/catalog-seller-portal/products/:productId \
  --header 'accept: ' \
  --header 'content-type: application/json' \
  --data '{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "categoryIds": [
    "732"
  ],
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null
}'
echo '{
  "attributes": [
    {
      "name": "Fabric",
      "value": "Cotton"
    },
    {
      "name": "Gender",
      "value": "Feminine"
    }
  ],
  "brandId": "1",
  "categoryIds": [
    "732"
  ],
  "id": "189371",
  "images": [
    {
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    }
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182907",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        {
          "name": "Color",
          "value": "Black"
        },
        {
          "name": "Size",
          "value": "S"
        }
      ],
      "weight": 300
    },
    {
      "dimensions": {
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      },
      "externalId": "1909621862",
      "id": "182908",
      "images": [
        "vtex_logo.jpg"
      ],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        {
          "name": "Color",
          "value": "White"
        },
        {
          "name": "Size",
          "value": "L"
        }
      ],
      "weight": 300
    }
  ],
  "slug": "/vtex-shirt",
  "specs": [
    {
      "name": "Color",
      "values": [
        "Black",
        "White"
      ]
    },
    {
      "name": "Size",
      "values": [
        "S",
        "M",
        "L"
      ]
    }
  ],
  "status": "active",
  "taxCode": null,
  "transportModal": null
}' |  \
  http PUT {{baseUrl}}/api/catalog-seller-portal/products/:productId \
  accept:'' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --header 'accept: ' \
  --body-data '{\n  "attributes": [\n    {\n      "name": "Fabric",\n      "value": "Cotton"\n    },\n    {\n      "name": "Gender",\n      "value": "Feminine"\n    }\n  ],\n  "brandId": "1",\n  "categoryIds": [\n    "732"\n  ],\n  "id": "189371",\n  "images": [\n    {\n      "alt": "VTEX",\n      "id": "vtex_logo.jpg",\n      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"\n    }\n  ],\n  "name": "VTEX 10 Shirt",\n  "origin": "vtxleo7778",\n  "skus": [\n    {\n      "dimensions": {\n        "height": 2.1,\n        "length": 1.6,\n        "width": 1.5\n      },\n      "externalId": "1909621862",\n      "id": "182907",\n      "images": [\n        "vtex_logo.jpg"\n      ],\n      "isActive": true,\n      "manufacturerCode": "1234567",\n      "name": "VTEX Shirt Black Size S",\n      "specs": [\n        {\n          "name": "Color",\n          "value": "Black"\n        },\n        {\n          "name": "Size",\n          "value": "S"\n        }\n      ],\n      "weight": 300\n    },\n    {\n      "dimensions": {\n        "height": 2.1,\n        "length": 1.6,\n        "width": 1.5\n      },\n      "externalId": "1909621862",\n      "id": "182908",\n      "images": [\n        "vtex_logo.jpg"\n      ],\n      "isActive": true,\n      "manufacturerCode": "1234568",\n      "name": "VTEX Shirt White Size L",\n      "specs": [\n        {\n          "name": "Color",\n          "value": "White"\n        },\n        {\n          "name": "Size",\n          "value": "L"\n        }\n      ],\n      "weight": 300\n    }\n  ],\n  "slug": "/vtex-shirt",\n  "specs": [\n    {\n      "name": "Color",\n      "values": [\n        "Black",\n        "White"\n      ]\n    },\n    {\n      "name": "Size",\n      "values": [\n        "S",\n        "M",\n        "L"\n      ]\n    }\n  ],\n  "status": "active",\n  "taxCode": null,\n  "transportModal": null\n}' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/products/:productId
import Foundation

let headers = [
  "content-type": "application/json",
  "accept": ""
]
let parameters = [
  "attributes": [
    [
      "name": "Fabric",
      "value": "Cotton"
    ],
    [
      "name": "Gender",
      "value": "Feminine"
    ]
  ],
  "brandId": "1",
  "categoryIds": ["732"],
  "id": "189371",
  "images": [
    [
      "alt": "VTEX",
      "id": "vtex_logo.jpg",
      "url": "https://vtxleo7778.vtexassets.com/assets/vtex.catalog-images/products/vtex_logo.jpg"
    ]
  ],
  "name": "VTEX 10 Shirt",
  "origin": "vtxleo7778",
  "skus": [
    [
      "dimensions": [
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      ],
      "externalId": "1909621862",
      "id": "182907",
      "images": ["vtex_logo.jpg"],
      "isActive": true,
      "manufacturerCode": "1234567",
      "name": "VTEX Shirt Black Size S",
      "specs": [
        [
          "name": "Color",
          "value": "Black"
        ],
        [
          "name": "Size",
          "value": "S"
        ]
      ],
      "weight": 300
    ],
    [
      "dimensions": [
        "height": 2.1,
        "length": 1.6,
        "width": 1.5
      ],
      "externalId": "1909621862",
      "id": "182908",
      "images": ["vtex_logo.jpg"],
      "isActive": true,
      "manufacturerCode": "1234568",
      "name": "VTEX Shirt White Size L",
      "specs": [
        [
          "name": "Color",
          "value": "White"
        ],
        [
          "name": "Size",
          "value": "L"
        ]
      ],
      "weight": 300
    ]
  ],
  "slug": "/vtex-shirt",
  "specs": [
    [
      "name": "Color",
      "values": ["Black", "White"]
    ],
    [
      "name": "Size",
      "values": ["S", "M", "L"]
    ]
  ],
  "status": "active",
  "taxCode": ,
  "transportModal": 
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/products/:productId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
GET Get List of SKUs
{{baseUrl}}/api/catalog-seller-portal/skus/ids
HEADERS

Content-Type
Accept
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/skus/ids");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/skus/ids" {:headers {:content-type ""
                                                                                        :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/skus/ids"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/skus/ids"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/skus/ids");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/skus/ids"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/skus/ids HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/skus/ids")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/skus/ids"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/skus/ids")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/skus/ids")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/skus/ids');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/skus/ids',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/skus/ids';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/skus/ids',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/skus/ids")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/skus/ids',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/skus/ids',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/skus/ids');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/skus/ids',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/skus/ids';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/skus/ids"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/skus/ids" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/skus/ids",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/skus/ids', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/skus/ids');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/skus/ids');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/skus/ids' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/skus/ids' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/skus/ids", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/skus/ids"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/skus/ids"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/skus/ids")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/skus/ids') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/skus/ids";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/skus/ids \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/skus/ids \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/skus/ids
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/skus/ids")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "_metadata": {
    "from": 1,
    "to": 5,
    "total": 2
  },
  "data": [
    "1",
    "2"
  ]
}
GET Search for SKU
{{baseUrl}}/api/catalog-seller-portal/skus/_search
HEADERS

Content-Type
Accept
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/catalog-seller-portal/skus/_search");

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

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

(client/get "{{baseUrl}}/api/catalog-seller-portal/skus/_search" {:headers {:content-type ""
                                                                                            :accept ""}})
require "http/client"

url = "{{baseUrl}}/api/catalog-seller-portal/skus/_search"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/catalog-seller-portal/skus/_search"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/catalog-seller-portal/skus/_search");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "");
request.AddHeader("accept", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/catalog-seller-portal/skus/_search"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")

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

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

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

}
GET /baseUrl/api/catalog-seller-portal/skus/_search HTTP/1.1
Content-Type: 
Accept: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/catalog-seller-portal/skus/_search")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/catalog-seller-portal/skus/_search"))
    .header("content-type", "")
    .header("accept", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/skus/_search")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/catalog-seller-portal/skus/_search")
  .header("content-type", "")
  .header("accept", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/api/catalog-seller-portal/skus/_search');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/skus/_search',
  headers: {'content-type': '', accept: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/catalog-seller-portal/skus/_search';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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}}/api/catalog-seller-portal/skus/_search',
  method: 'GET',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/catalog-seller-portal/skus/_search")
  .get()
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/catalog-seller-portal/skus/_search',
  headers: {
    'content-type': '',
    accept: ''
  }
};

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.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/skus/_search',
  headers: {'content-type': '', accept: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/catalog-seller-portal/skus/_search');

req.headers({
  'content-type': '',
  accept: ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/catalog-seller-portal/skus/_search',
  headers: {'content-type': '', accept: ''}
};

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

const url = '{{baseUrl}}/api/catalog-seller-portal/skus/_search';
const options = {method: 'GET', headers: {'content-type': '', accept: ''}};

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": @"",
                           @"accept": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/catalog-seller-portal/skus/_search"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/catalog-seller-portal/skus/_search" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/catalog-seller-portal/skus/_search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/catalog-seller-portal/skus/_search', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/catalog-seller-portal/skus/_search');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/catalog-seller-portal/skus/_search');
$request->setRequestMethod('GET');
$request->setHeaders([
  'content-type' => '',
  'accept' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/catalog-seller-portal/skus/_search' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/catalog-seller-portal/skus/_search' -Method GET -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': ""
}

conn.request("GET", "/baseUrl/api/catalog-seller-portal/skus/_search", headers=headers)

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

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

url = "{{baseUrl}}/api/catalog-seller-portal/skus/_search"

headers = {
    "content-type": "",
    "accept": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/catalog-seller-portal/skus/_search"

response <- VERB("GET", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/catalog-seller-portal/skus/_search")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = ''
request["accept"] = ''

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

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/catalog-seller-portal/skus/_search') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/catalog-seller-portal/skus/_search";

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

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/catalog-seller-portal/skus/_search \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/api/catalog-seller-portal/skus/_search \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'content-type: ' \
  --header 'accept: ' \
  --output-document \
  - {{baseUrl}}/api/catalog-seller-portal/skus/_search
import Foundation

let headers = [
  "content-type": "",
  "accept": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/catalog-seller-portal/skus/_search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "_metadata": {
    "from": 1,
    "to": 15,
    "total": 1
  },
  "data": [
    {
      "externalId": "1909621862",
      "id": "2",
      "productId": "2"
    }
  ]
}