POST Set up CAP SKU All
{{baseUrl}}/v3/cppreference
HEADERS

WM_SEC.ACCESS_TOKEN
WM_QOS.CORRELATION_ID
WM_SVC.NAME
BODY json

{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_sec.access_token: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}");

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

(client/post "{{baseUrl}}/v3/cppreference" {:headers {:wm_sec.access_token ""
                                                                      :wm_qos.correlation_id ""
                                                                      :wm_svc.name ""}
                                                            :content-type :json
                                                            :form-params {:subsidyEnrolled false
                                                                          :subsidyPreference false}})
require "http/client"

url = "{{baseUrl}}/v3/cppreference"
headers = HTTP::Headers{
  "wm_sec.access_token" => ""
  "wm_qos.correlation_id" => ""
  "wm_svc.name" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}"

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

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

func main() {

	url := "{{baseUrl}}/v3/cppreference"

	payload := strings.NewReader("{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}")

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

	req.Header.Add("wm_sec.access_token", "")
	req.Header.Add("wm_qos.correlation_id", "")
	req.Header.Add("wm_svc.name", "")
	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /baseUrl/v3/cppreference HTTP/1.1
Wm_sec.access_token: 
Wm_qos.correlation_id: 
Wm_svc.name: 
Content-Type: application/json
Host: example.com
Content-Length: 60

{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/cppreference")
  .setHeader("wm_sec.access_token", "")
  .setHeader("wm_qos.correlation_id", "")
  .setHeader("wm_svc.name", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/cppreference"))
    .header("wm_sec.access_token", "")
    .header("wm_qos.correlation_id", "")
    .header("wm_svc.name", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/cppreference")
  .post(body)
  .addHeader("wm_sec.access_token", "")
  .addHeader("wm_qos.correlation_id", "")
  .addHeader("wm_svc.name", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/cppreference")
  .header("wm_sec.access_token", "")
  .header("wm_qos.correlation_id", "")
  .header("wm_svc.name", "")
  .header("content-type", "application/json")
  .body("{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}")
  .asString();
const data = JSON.stringify({
  subsidyEnrolled: false,
  subsidyPreference: false
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/cppreference');
xhr.setRequestHeader('wm_sec.access_token', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/cppreference',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  data: {subsidyEnrolled: false, subsidyPreference: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/cppreference';
const options = {
  method: 'POST',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  body: '{"subsidyEnrolled":false,"subsidyPreference":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/cppreference',
  method: 'POST',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "subsidyEnrolled": false,\n  "subsidyPreference": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/cppreference")
  .post(body)
  .addHeader("wm_sec.access_token", "")
  .addHeader("wm_qos.correlation_id", "")
  .addHeader("wm_svc.name", "")
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/cppreference',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({subsidyEnrolled: false, subsidyPreference: false}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/cppreference',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  body: {subsidyEnrolled: false, subsidyPreference: false},
  json: true
};

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

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

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

req.headers({
  'wm_sec.access_token': '',
  'wm_qos.correlation_id': '',
  'wm_svc.name': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  subsidyEnrolled: false,
  subsidyPreference: false
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/cppreference',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  data: {subsidyEnrolled: false, subsidyPreference: false}
};

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

const url = '{{baseUrl}}/v3/cppreference';
const options = {
  method: 'POST',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  body: '{"subsidyEnrolled":false,"subsidyPreference":false}'
};

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

NSDictionary *headers = @{ @"wm_sec.access_token": @"",
                           @"wm_qos.correlation_id": @"",
                           @"wm_svc.name": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"subsidyEnrolled": @NO,
                              @"subsidyPreference": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/cppreference"]
                                                       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}}/v3/cppreference" in
let headers = Header.add_list (Header.init ()) [
  ("wm_sec.access_token", "");
  ("wm_qos.correlation_id", "");
  ("wm_svc.name", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/cppreference",
  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([
    'subsidyEnrolled' => null,
    'subsidyPreference' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "wm_qos.correlation_id: ",
    "wm_sec.access_token: ",
    "wm_svc.name: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/cppreference', [
  'body' => '{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}',
  'headers' => [
    'content-type' => 'application/json',
    'wm_qos.correlation_id' => '',
    'wm_sec.access_token' => '',
    'wm_svc.name' => '',
  ],
]);

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

$request->setHeaders([
  'wm_sec.access_token' => '',
  'wm_qos.correlation_id' => '',
  'wm_svc.name' => '',
  'content-type' => 'application/json'
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'subsidyEnrolled' => null,
  'subsidyPreference' => null
]));
$request->setRequestUrl('{{baseUrl}}/v3/cppreference');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'wm_sec.access_token' => '',
  'wm_qos.correlation_id' => '',
  'wm_svc.name' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("wm_sec.access_token", "")
$headers.Add("wm_qos.correlation_id", "")
$headers.Add("wm_svc.name", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/cppreference' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}'
$headers=@{}
$headers.Add("wm_sec.access_token", "")
$headers.Add("wm_qos.correlation_id", "")
$headers.Add("wm_svc.name", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/cppreference' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}'
import http.client

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

payload = "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}"

headers = {
    'wm_sec.access_token': "",
    'wm_qos.correlation_id': "",
    'wm_svc.name': "",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/v3/cppreference"

payload = {
    "subsidyEnrolled": False,
    "subsidyPreference": False
}
headers = {
    "wm_sec.access_token": "",
    "wm_qos.correlation_id": "",
    "wm_svc.name": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/v3/cppreference"

payload <- "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('wm_sec.access_token' = '', 'wm_qos.correlation_id' = '', 'wm_svc.name' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/v3/cppreference")

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

request = Net::HTTP::Post.new(url)
request["wm_sec.access_token"] = ''
request["wm_qos.correlation_id"] = ''
request["wm_svc.name"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}"

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

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

response = conn.post('/baseUrl/v3/cppreference') do |req|
  req.headers['wm_sec.access_token'] = ''
  req.headers['wm_qos.correlation_id'] = ''
  req.headers['wm_svc.name'] = ''
  req.body = "{\n  \"subsidyEnrolled\": false,\n  \"subsidyPreference\": false\n}"
end

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

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

    let payload = json!({
        "subsidyEnrolled": false,
        "subsidyPreference": false
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/cppreference \
  --header 'content-type: application/json' \
  --header 'wm_qos.correlation_id: ' \
  --header 'wm_sec.access_token: ' \
  --header 'wm_svc.name: ' \
  --data '{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}'
echo '{
  "subsidyEnrolled": false,
  "subsidyPreference": false
}' |  \
  http POST {{baseUrl}}/v3/cppreference \
  content-type:application/json \
  wm_qos.correlation_id:'' \
  wm_sec.access_token:'' \
  wm_svc.name:''
wget --quiet \
  --method POST \
  --header 'wm_sec.access_token: ' \
  --header 'wm_qos.correlation_id: ' \
  --header 'wm_svc.name: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "subsidyEnrolled": false,\n  "subsidyPreference": false\n}' \
  --output-document \
  - {{baseUrl}}/v3/cppreference
import Foundation

let headers = [
  "wm_sec.access_token": "",
  "wm_qos.correlation_id": "",
  "wm_svc.name": "",
  "content-type": "application/json"
]
let parameters = [
  "subsidyEnrolled": false,
  "subsidyPreference": false
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/cppreference")! 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()
PUT Update a price
{{baseUrl}}/v3/price
HEADERS

WM_SEC.ACCESS_TOKEN
WM_QOS.CORRELATION_ID
WM_SVC.NAME
BODY json

{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/price");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_sec.access_token: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}");

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

(client/put "{{baseUrl}}/v3/price" {:headers {:wm_sec.access_token ""
                                                              :wm_qos.correlation_id ""
                                                              :wm_svc.name ""}
                                                    :content-type :json
                                                    :form-params {:definitions {}
                                                                  :offerId ""
                                                                  :pricing [{:comparisonPrice {:amount ""
                                                                                               :currency ""}
                                                                             :comparisonPriceType ""
                                                                             :currentPrice {:amount ""
                                                                                            :currency ""}
                                                                             :currentPriceType ""
                                                                             :effectiveDate ""
                                                                             :expirationDate ""
                                                                             :priceDisplayCodes ""
                                                                             :processMode ""
                                                                             :promoId ""}]
                                                                  :replaceAll ""
                                                                  :sku ""}})
require "http/client"

url = "{{baseUrl}}/v3/price"
headers = HTTP::Headers{
  "wm_sec.access_token" => ""
  "wm_qos.correlation_id" => ""
  "wm_svc.name" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\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}}/v3/price"),
    Headers =
    {
        { "wm_sec.access_token", "" },
        { "wm_qos.correlation_id", "" },
        { "wm_svc.name", "" },
    },
    Content = new StringContent("{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\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}}/v3/price");
var request = new RestRequest("", Method.Put);
request.AddHeader("wm_sec.access_token", "");
request.AddHeader("wm_qos.correlation_id", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/price"

	payload := strings.NewReader("{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}")

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

	req.Header.Add("wm_sec.access_token", "")
	req.Header.Add("wm_qos.correlation_id", "")
	req.Header.Add("wm_svc.name", "")
	req.Header.Add("content-type", "application/json")

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

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

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

}
PUT /baseUrl/v3/price HTTP/1.1
Wm_sec.access_token: 
Wm_qos.correlation_id: 
Wm_svc.name: 
Content-Type: application/json
Host: example.com
Content-Length: 458

{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v3/price")
  .setHeader("wm_sec.access_token", "")
  .setHeader("wm_qos.correlation_id", "")
  .setHeader("wm_svc.name", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/price"))
    .header("wm_sec.access_token", "")
    .header("wm_qos.correlation_id", "")
    .header("wm_svc.name", "")
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\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  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/price")
  .put(body)
  .addHeader("wm_sec.access_token", "")
  .addHeader("wm_qos.correlation_id", "")
  .addHeader("wm_svc.name", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v3/price")
  .header("wm_sec.access_token", "")
  .header("wm_qos.correlation_id", "")
  .header("wm_svc.name", "")
  .header("content-type", "application/json")
  .body("{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  definitions: {},
  offerId: '',
  pricing: [
    {
      comparisonPrice: {
        amount: '',
        currency: ''
      },
      comparisonPriceType: '',
      currentPrice: {
        amount: '',
        currency: ''
      },
      currentPriceType: '',
      effectiveDate: '',
      expirationDate: '',
      priceDisplayCodes: '',
      processMode: '',
      promoId: ''
    }
  ],
  replaceAll: '',
  sku: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/v3/price');
xhr.setRequestHeader('wm_sec.access_token', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.setRequestHeader('wm_svc.name', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/v3/price',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  data: {
    definitions: {},
    offerId: '',
    pricing: [
      {
        comparisonPrice: {amount: '', currency: ''},
        comparisonPriceType: '',
        currentPrice: {amount: '', currency: ''},
        currentPriceType: '',
        effectiveDate: '',
        expirationDate: '',
        priceDisplayCodes: '',
        processMode: '',
        promoId: ''
      }
    ],
    replaceAll: '',
    sku: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/price';
const options = {
  method: 'PUT',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  body: '{"definitions":{},"offerId":"","pricing":[{"comparisonPrice":{"amount":"","currency":""},"comparisonPriceType":"","currentPrice":{"amount":"","currency":""},"currentPriceType":"","effectiveDate":"","expirationDate":"","priceDisplayCodes":"","processMode":"","promoId":""}],"replaceAll":"","sku":""}'
};

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}}/v3/price',
  method: 'PUT',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "definitions": {},\n  "offerId": "",\n  "pricing": [\n    {\n      "comparisonPrice": {\n        "amount": "",\n        "currency": ""\n      },\n      "comparisonPriceType": "",\n      "currentPrice": {\n        "amount": "",\n        "currency": ""\n      },\n      "currentPriceType": "",\n      "effectiveDate": "",\n      "expirationDate": "",\n      "priceDisplayCodes": "",\n      "processMode": "",\n      "promoId": ""\n    }\n  ],\n  "replaceAll": "",\n  "sku": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/price")
  .put(body)
  .addHeader("wm_sec.access_token", "")
  .addHeader("wm_qos.correlation_id", "")
  .addHeader("wm_svc.name", "")
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/price',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  definitions: {},
  offerId: '',
  pricing: [
    {
      comparisonPrice: {amount: '', currency: ''},
      comparisonPriceType: '',
      currentPrice: {amount: '', currency: ''},
      currentPriceType: '',
      effectiveDate: '',
      expirationDate: '',
      priceDisplayCodes: '',
      processMode: '',
      promoId: ''
    }
  ],
  replaceAll: '',
  sku: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/v3/price',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  body: {
    definitions: {},
    offerId: '',
    pricing: [
      {
        comparisonPrice: {amount: '', currency: ''},
        comparisonPriceType: '',
        currentPrice: {amount: '', currency: ''},
        currentPriceType: '',
        effectiveDate: '',
        expirationDate: '',
        priceDisplayCodes: '',
        processMode: '',
        promoId: ''
      }
    ],
    replaceAll: '',
    sku: ''
  },
  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}}/v3/price');

req.headers({
  'wm_sec.access_token': '',
  'wm_qos.correlation_id': '',
  'wm_svc.name': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  definitions: {},
  offerId: '',
  pricing: [
    {
      comparisonPrice: {
        amount: '',
        currency: ''
      },
      comparisonPriceType: '',
      currentPrice: {
        amount: '',
        currency: ''
      },
      currentPriceType: '',
      effectiveDate: '',
      expirationDate: '',
      priceDisplayCodes: '',
      processMode: '',
      promoId: ''
    }
  ],
  replaceAll: '',
  sku: ''
});

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}}/v3/price',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  data: {
    definitions: {},
    offerId: '',
    pricing: [
      {
        comparisonPrice: {amount: '', currency: ''},
        comparisonPriceType: '',
        currentPrice: {amount: '', currency: ''},
        currentPriceType: '',
        effectiveDate: '',
        expirationDate: '',
        priceDisplayCodes: '',
        processMode: '',
        promoId: ''
      }
    ],
    replaceAll: '',
    sku: ''
  }
};

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

const url = '{{baseUrl}}/v3/price';
const options = {
  method: 'PUT',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'application/json'
  },
  body: '{"definitions":{},"offerId":"","pricing":[{"comparisonPrice":{"amount":"","currency":""},"comparisonPriceType":"","currentPrice":{"amount":"","currency":""},"currentPriceType":"","effectiveDate":"","expirationDate":"","priceDisplayCodes":"","processMode":"","promoId":""}],"replaceAll":"","sku":""}'
};

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

NSDictionary *headers = @{ @"wm_sec.access_token": @"",
                           @"wm_qos.correlation_id": @"",
                           @"wm_svc.name": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"definitions": @{  },
                              @"offerId": @"",
                              @"pricing": @[ @{ @"comparisonPrice": @{ @"amount": @"", @"currency": @"" }, @"comparisonPriceType": @"", @"currentPrice": @{ @"amount": @"", @"currency": @"" }, @"currentPriceType": @"", @"effectiveDate": @"", @"expirationDate": @"", @"priceDisplayCodes": @"", @"processMode": @"", @"promoId": @"" } ],
                              @"replaceAll": @"",
                              @"sku": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/price"]
                                                       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}}/v3/price" in
let headers = Header.add_list (Header.init ()) [
  ("wm_sec.access_token", "");
  ("wm_qos.correlation_id", "");
  ("wm_svc.name", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/price",
  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([
    'definitions' => [
        
    ],
    'offerId' => '',
    'pricing' => [
        [
                'comparisonPrice' => [
                                'amount' => '',
                                'currency' => ''
                ],
                'comparisonPriceType' => '',
                'currentPrice' => [
                                'amount' => '',
                                'currency' => ''
                ],
                'currentPriceType' => '',
                'effectiveDate' => '',
                'expirationDate' => '',
                'priceDisplayCodes' => '',
                'processMode' => '',
                'promoId' => ''
        ]
    ],
    'replaceAll' => '',
    'sku' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "wm_qos.correlation_id: ",
    "wm_sec.access_token: ",
    "wm_svc.name: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/v3/price', [
  'body' => '{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'wm_qos.correlation_id' => '',
    'wm_sec.access_token' => '',
    'wm_svc.name' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/price');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'wm_sec.access_token' => '',
  'wm_qos.correlation_id' => '',
  'wm_svc.name' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'definitions' => [
    
  ],
  'offerId' => '',
  'pricing' => [
    [
        'comparisonPrice' => [
                'amount' => '',
                'currency' => ''
        ],
        'comparisonPriceType' => '',
        'currentPrice' => [
                'amount' => '',
                'currency' => ''
        ],
        'currentPriceType' => '',
        'effectiveDate' => '',
        'expirationDate' => '',
        'priceDisplayCodes' => '',
        'processMode' => '',
        'promoId' => ''
    ]
  ],
  'replaceAll' => '',
  'sku' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'definitions' => [
    
  ],
  'offerId' => '',
  'pricing' => [
    [
        'comparisonPrice' => [
                'amount' => '',
                'currency' => ''
        ],
        'comparisonPriceType' => '',
        'currentPrice' => [
                'amount' => '',
                'currency' => ''
        ],
        'currentPriceType' => '',
        'effectiveDate' => '',
        'expirationDate' => '',
        'priceDisplayCodes' => '',
        'processMode' => '',
        'promoId' => ''
    ]
  ],
  'replaceAll' => '',
  'sku' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/price');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'wm_sec.access_token' => '',
  'wm_qos.correlation_id' => '',
  'wm_svc.name' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("wm_sec.access_token", "")
$headers.Add("wm_qos.correlation_id", "")
$headers.Add("wm_svc.name", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/price' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}'
$headers=@{}
$headers.Add("wm_sec.access_token", "")
$headers.Add("wm_qos.correlation_id", "")
$headers.Add("wm_svc.name", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/price' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}'
import http.client

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

payload = "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}"

headers = {
    'wm_sec.access_token': "",
    'wm_qos.correlation_id': "",
    'wm_svc.name': "",
    'content-type': "application/json"
}

conn.request("PUT", "/baseUrl/v3/price", payload, headers)

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

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

url = "{{baseUrl}}/v3/price"

payload = {
    "definitions": {},
    "offerId": "",
    "pricing": [
        {
            "comparisonPrice": {
                "amount": "",
                "currency": ""
            },
            "comparisonPriceType": "",
            "currentPrice": {
                "amount": "",
                "currency": ""
            },
            "currentPriceType": "",
            "effectiveDate": "",
            "expirationDate": "",
            "priceDisplayCodes": "",
            "processMode": "",
            "promoId": ""
        }
    ],
    "replaceAll": "",
    "sku": ""
}
headers = {
    "wm_sec.access_token": "",
    "wm_qos.correlation_id": "",
    "wm_svc.name": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/v3/price"

payload <- "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, add_headers('wm_sec.access_token' = '', 'wm_qos.correlation_id' = '', 'wm_svc.name' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/v3/price")

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

request = Net::HTTP::Put.new(url)
request["wm_sec.access_token"] = ''
request["wm_qos.correlation_id"] = ''
request["wm_svc.name"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\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/v3/price') do |req|
  req.headers['wm_sec.access_token'] = ''
  req.headers['wm_qos.correlation_id'] = ''
  req.headers['wm_svc.name'] = ''
  req.body = "{\n  \"definitions\": {},\n  \"offerId\": \"\",\n  \"pricing\": [\n    {\n      \"comparisonPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"comparisonPriceType\": \"\",\n      \"currentPrice\": {\n        \"amount\": \"\",\n        \"currency\": \"\"\n      },\n      \"currentPriceType\": \"\",\n      \"effectiveDate\": \"\",\n      \"expirationDate\": \"\",\n      \"priceDisplayCodes\": \"\",\n      \"processMode\": \"\",\n      \"promoId\": \"\"\n    }\n  ],\n  \"replaceAll\": \"\",\n  \"sku\": \"\"\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}}/v3/price";

    let payload = json!({
        "definitions": json!({}),
        "offerId": "",
        "pricing": (
            json!({
                "comparisonPrice": json!({
                    "amount": "",
                    "currency": ""
                }),
                "comparisonPriceType": "",
                "currentPrice": json!({
                    "amount": "",
                    "currency": ""
                }),
                "currentPriceType": "",
                "effectiveDate": "",
                "expirationDate": "",
                "priceDisplayCodes": "",
                "processMode": "",
                "promoId": ""
            })
        ),
        "replaceAll": "",
        "sku": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("wm_sec.access_token", "".parse().unwrap());
    headers.insert("wm_qos.correlation_id", "".parse().unwrap());
    headers.insert("wm_svc.name", "".parse().unwrap());
    headers.insert("content-type", "application/json".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}}/v3/price \
  --header 'content-type: application/json' \
  --header 'wm_qos.correlation_id: ' \
  --header 'wm_sec.access_token: ' \
  --header 'wm_svc.name: ' \
  --data '{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}'
echo '{
  "definitions": {},
  "offerId": "",
  "pricing": [
    {
      "comparisonPrice": {
        "amount": "",
        "currency": ""
      },
      "comparisonPriceType": "",
      "currentPrice": {
        "amount": "",
        "currency": ""
      },
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    }
  ],
  "replaceAll": "",
  "sku": ""
}' |  \
  http PUT {{baseUrl}}/v3/price \
  content-type:application/json \
  wm_qos.correlation_id:'' \
  wm_sec.access_token:'' \
  wm_svc.name:''
wget --quiet \
  --method PUT \
  --header 'wm_sec.access_token: ' \
  --header 'wm_qos.correlation_id: ' \
  --header 'wm_svc.name: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "definitions": {},\n  "offerId": "",\n  "pricing": [\n    {\n      "comparisonPrice": {\n        "amount": "",\n        "currency": ""\n      },\n      "comparisonPriceType": "",\n      "currentPrice": {\n        "amount": "",\n        "currency": ""\n      },\n      "currentPriceType": "",\n      "effectiveDate": "",\n      "expirationDate": "",\n      "priceDisplayCodes": "",\n      "processMode": "",\n      "promoId": ""\n    }\n  ],\n  "replaceAll": "",\n  "sku": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/price
import Foundation

let headers = [
  "wm_sec.access_token": "",
  "wm_qos.correlation_id": "",
  "wm_svc.name": "",
  "content-type": "application/json"
]
let parameters = [
  "definitions": [],
  "offerId": "",
  "pricing": [
    [
      "comparisonPrice": [
        "amount": "",
        "currency": ""
      ],
      "comparisonPriceType": "",
      "currentPrice": [
        "amount": "",
        "currency": ""
      ],
      "currentPriceType": "",
      "effectiveDate": "",
      "expirationDate": "",
      "priceDisplayCodes": "",
      "processMode": "",
      "promoId": ""
    ]
  ],
  "replaceAll": "",
  "sku": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/price")! 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()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ItemPriceResponse": {
    "mart": "WALMART_US",
    "message": "Thank you. Your price has been updated. Please allow up to five minutes for this change to be reflected on the site.",
    "sku": "97964_KFTest"
  }
}
RESPONSE HEADERS

Content-Type
application/xml
RESPONSE BODY xml



    WALMART_US
    97964_KFTest
    Thank you. Your price has been updated. Please allow up to five minutes for this change to be reflected on the site.

  
POST Update bulk prices (Multiple)
{{baseUrl}}/v3/feeds
HEADERS

WM_SEC.ACCESS_TOKEN
WM_QOS.CORRELATION_ID
WM_SVC.NAME
QUERY PARAMS

feedType
BODY multipartForm

Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/feeds?feedType=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "wm_sec.access_token: ");
headers = curl_slist_append(headers, "wm_qos.correlation_id: ");
headers = curl_slist_append(headers, "wm_svc.name: ");
headers = curl_slist_append(headers, "content-type: multipart/form-data; boundary=---011000010111000001101001");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n");

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

(client/post "{{baseUrl}}/v3/feeds" {:headers {:wm_sec.access_token ""
                                                               :wm_qos.correlation_id ""
                                                               :wm_svc.name ""}
                                                     :query-params {:feedType ""}
                                                     :multipart [{:name "file"
                                                                  :content ""}]})
require "http/client"

url = "{{baseUrl}}/v3/feeds?feedType="
headers = HTTP::Headers{
  "wm_sec.access_token" => ""
  "wm_qos.correlation_id" => ""
  "wm_svc.name" => ""
  "content-type" => "multipart/form-data; boundary=---011000010111000001101001"
}
reqBody = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\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}}/v3/feeds?feedType="),
    Headers =
    {
        { "wm_sec.access_token", "" },
        { "wm_qos.correlation_id", "" },
        { "wm_svc.name", "" },
    },
    Content = new MultipartFormDataContent
    {
        new StringContent("")
        {
            Headers =
            {
                ContentDisposition = new ContentDispositionHeaderValue("form-data")
                {
                    Name = "file",
                }
            }
        },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/feeds?feedType=");
var request = new RestRequest("", Method.Post);
request.AddHeader("wm_sec.access_token", "");
request.AddHeader("wm_qos.correlation_id", "");
request.AddHeader("wm_svc.name", "");
request.AddHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001");
request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/feeds?feedType="

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")

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

	req.Header.Add("wm_sec.access_token", "")
	req.Header.Add("wm_qos.correlation_id", "")
	req.Header.Add("wm_svc.name", "")
	req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")

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

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

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

}
POST /baseUrl/v3/feeds?feedType= HTTP/1.1
Wm_sec.access_token: 
Wm_qos.correlation_id: 
Wm_svc.name: 
Content-Type: multipart/form-data; boundary=---011000010111000001101001
Host: example.com
Content-Length: 113

-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001--
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/feeds?feedType=")
  .setHeader("wm_sec.access_token", "")
  .setHeader("wm_qos.correlation_id", "")
  .setHeader("wm_svc.name", "")
  .setHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .setBody("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/feeds?feedType="))
    .header("wm_sec.access_token", "")
    .header("wm_qos.correlation_id", "")
    .header("wm_svc.name", "")
    .header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
    .method("POST", HttpRequest.BodyPublishers.ofString("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001");
RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/feeds?feedType=")
  .post(body)
  .addHeader("wm_sec.access_token", "")
  .addHeader("wm_qos.correlation_id", "")
  .addHeader("wm_svc.name", "")
  .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/feeds?feedType=")
  .header("wm_sec.access_token", "")
  .header("wm_qos.correlation_id", "")
  .header("wm_svc.name", "")
  .header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
const data = new FormData();
data.append('file', '');

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

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

xhr.open('POST', '{{baseUrl}}/v3/feeds?feedType=');
xhr.setRequestHeader('wm_sec.access_token', '');
xhr.setRequestHeader('wm_qos.correlation_id', '');
xhr.setRequestHeader('wm_svc.name', '');

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

const form = new FormData();
form.append('file', '');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/feeds',
  params: {feedType: ''},
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
  },
  data: '[form]'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/feeds?feedType=';
const form = new FormData();
form.append('file', '');

const options = {
  method: 'POST',
  headers: {'wm_sec.access_token': '', 'wm_qos.correlation_id': '', 'wm_svc.name': ''}
};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const form = new FormData();
form.append('file', '');

const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/feeds?feedType=',
  method: 'POST',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': ''
  },
  processData: false,
  contentType: false,
  mimeType: 'multipart/form-data',
  data: form
};

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

val mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001")
val body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/feeds?feedType=")
  .post(body)
  .addHeader("wm_sec.access_token", "")
  .addHeader("wm_qos.correlation_id", "")
  .addHeader("wm_svc.name", "")
  .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/feeds?feedType=',
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
  }
};

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('-----011000010111000001101001\r\nContent-Disposition: form-data; name="file"\r\n\r\n\r\n-----011000010111000001101001--\r\n');
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/feeds',
  qs: {feedType: ''},
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
  },
  formData: {file: ''}
};

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

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

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

req.query({
  feedType: ''
});

req.headers({
  'wm_sec.access_token': '',
  'wm_qos.correlation_id': '',
  'wm_svc.name': '',
  'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
});

req.multipart([]);

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}}/v3/feeds',
  params: {feedType: ''},
  headers: {
    'wm_sec.access_token': '',
    'wm_qos.correlation_id': '',
    'wm_svc.name': '',
    'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
  },
  data: '-----011000010111000001101001\r\nContent-Disposition: form-data; name="file"\r\n\r\n\r\n-----011000010111000001101001--\r\n'
};

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

const formData = new FormData();
formData.append('file', '');

const url = '{{baseUrl}}/v3/feeds?feedType=';
const options = {
  method: 'POST',
  headers: {'wm_sec.access_token': '', 'wm_qos.correlation_id': '', 'wm_svc.name': ''}
};
options.body = formData;

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

NSDictionary *headers = @{ @"wm_sec.access_token": @"",
                           @"wm_qos.correlation_id": @"",
                           @"wm_svc.name": @"",
                           @"content-type": @"multipart/form-data; boundary=---011000010111000001101001" };
NSArray *parameters = @[ @{ @"name": @"file", @"value": @"" } ];
NSString *boundary = @"---011000010111000001101001";

NSError *error;
NSMutableString *body = [NSMutableString string];
for (NSDictionary *param in parameters) {
    [body appendFormat:@"--%@\r\n", boundary];
    if (param[@"fileName"]) {
        [body appendFormat:@"Content-Disposition:form-data; name=\"%@\"; filename=\"%@\"\r\n", param[@"name"], param[@"fileName"]];
        [body appendFormat:@"Content-Type: %@\r\n\r\n", param[@"contentType"]];
        [body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];
        if (error) {
            NSLog(@"%@", error);
        }
    } else {
        [body appendFormat:@"Content-Disposition:form-data; name=\"%@\"\r\n\r\n", param[@"name"]];
        [body appendFormat:@"%@", param[@"value"]];
    }
}
[body appendFormat:@"\r\n--%@--\r\n", boundary];
NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/feeds?feedType="]
                                                       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}}/v3/feeds?feedType=" in
let headers = Header.add_list (Header.init ()) [
  ("wm_sec.access_token", "");
  ("wm_qos.correlation_id", "");
  ("wm_svc.name", "");
  ("content-type", "multipart/form-data; boundary=---011000010111000001101001");
] in
let body = Cohttp_lwt_body.of_string "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/feeds?feedType=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n",
  CURLOPT_HTTPHEADER => [
    "content-type: multipart/form-data; boundary=---011000010111000001101001",
    "wm_qos.correlation_id: ",
    "wm_sec.access_token: ",
    "wm_svc.name: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/feeds?feedType=', [
  'headers' => [
    'content-type' => 'multipart/form-data; boundary=---011000010111000001101001',
    'wm_qos.correlation_id' => '',
    'wm_sec.access_token' => '',
    'wm_svc.name' => '',
  ],
]);

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

$request->setQueryData([
  'feedType' => ''
]);

$request->setHeaders([
  'wm_sec.access_token' => '',
  'wm_qos.correlation_id' => '',
  'wm_svc.name' => '',
  'content-type' => 'multipart/form-data; boundary=---011000010111000001101001'
]);

$request->setBody('-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001--
');

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
addForm(null, null);

$request->setRequestUrl('{{baseUrl}}/v3/feeds');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'feedType' => ''
]));

$request->setHeaders([
  'wm_sec.access_token' => '',
  'wm_qos.correlation_id' => '',
  'wm_svc.name' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("wm_sec.access_token", "")
$headers.Add("wm_qos.correlation_id", "")
$headers.Add("wm_svc.name", "")
$headers.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/feeds?feedType=' -Method POST -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001--
'
$headers=@{}
$headers.Add("wm_sec.access_token", "")
$headers.Add("wm_qos.correlation_id", "")
$headers.Add("wm_svc.name", "")
$headers.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/feeds?feedType=' -Method POST -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001--
'
import http.client

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

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

headers = {
    'wm_sec.access_token': "",
    'wm_qos.correlation_id': "",
    'wm_svc.name': "",
    'content-type': "multipart/form-data; boundary=---011000010111000001101001"
}

conn.request("POST", "/baseUrl/v3/feeds?feedType=", payload, headers)

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

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

url = "{{baseUrl}}/v3/feeds"

querystring = {"feedType":""}

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
headers = {
    "wm_sec.access_token": "",
    "wm_qos.correlation_id": "",
    "wm_svc.name": "",
    "content-type": "multipart/form-data; boundary=---011000010111000001101001"
}

response = requests.post(url, data=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/v3/feeds"

queryString <- list(feedType = "")

payload <- "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

encode <- "multipart"

response <- VERB("POST", url, body = payload, query = queryString, add_headers('wm_sec.access_token' = '', 'wm_qos.correlation_id' = '', 'wm_svc.name' = ''), content_type("multipart/form-data"), encode = encode)

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

url = URI("{{baseUrl}}/v3/feeds?feedType=")

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

request = Net::HTTP::Post.new(url)
request["wm_sec.access_token"] = ''
request["wm_qos.correlation_id"] = ''
request["wm_svc.name"] = ''
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"

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

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'multipart/form-data; boundary=---011000010111000001101001'}
)

response = conn.post('/baseUrl/v3/feeds') do |req|
  req.headers['wm_sec.access_token'] = ''
  req.headers['wm_qos.correlation_id'] = ''
  req.headers['wm_svc.name'] = ''
  req.params['feedType'] = ''
  req.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n\r\n-----011000010111000001101001--\r\n"
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("feedType", ""),
    ];

    let form = reqwest::multipart::Form::new()
        .text("file", "");
    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("wm_sec.access_token", "".parse().unwrap());
    headers.insert("wm_qos.correlation_id", "".parse().unwrap());
    headers.insert("wm_svc.name", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .multipart(form)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/v3/feeds?feedType=' \
  --header 'content-type: multipart/form-data' \
  --header 'wm_qos.correlation_id: ' \
  --header 'wm_sec.access_token: ' \
  --header 'wm_svc.name: ' \
  --form file=
echo '-----011000010111000001101001
Content-Disposition: form-data; name="file"


-----011000010111000001101001--
' |  \
  http POST '{{baseUrl}}/v3/feeds?feedType=' \
  content-type:'multipart/form-data; boundary=---011000010111000001101001' \
  wm_qos.correlation_id:'' \
  wm_sec.access_token:'' \
  wm_svc.name:''
wget --quiet \
  --method POST \
  --header 'wm_sec.access_token: ' \
  --header 'wm_qos.correlation_id: ' \
  --header 'wm_svc.name: ' \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001' \
  --body-data '-----011000010111000001101001\r\nContent-Disposition: form-data; name="file"\r\n\r\n\r\n-----011000010111000001101001--\r\n' \
  --output-document \
  - '{{baseUrl}}/v3/feeds?feedType='
import Foundation

let headers = [
  "wm_sec.access_token": "",
  "wm_qos.correlation_id": "",
  "wm_svc.name": "",
  "content-type": "multipart/form-data; boundary=---011000010111000001101001"
]
let parameters = [
  [
    "name": "file",
    "value": ""
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/feeds?feedType=")! 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

{
  "feedId": "14066B6642344B76A8B77AC094F8C63B@AVMBAgA"
}
RESPONSE HEADERS

Content-Type
application/xml
RESPONSE BODY xml



    55DE8A53B09F41BBBF261C1AB5FB2BC8@AVMBAgA