GET adexchangebuyer.accounts.get
{{baseUrl}}/accounts/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:id");

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

(client/get "{{baseUrl}}/accounts/:id")
require "http/client"

url = "{{baseUrl}}/accounts/:id"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/accounts/:id"

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

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

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

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

}
GET /baseUrl/accounts/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:id"))
    .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}}/accounts/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:id")
  .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}}/accounts/:id');

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

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:id';
const options = {method: 'GET'};

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}}/accounts/:id',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:id',
  headers: {}
};

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}}/accounts/:id'};

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

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

const req = unirest('GET', '{{baseUrl}}/accounts/:id');

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}}/accounts/:id'};

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

const url = '{{baseUrl}}/accounts/:id';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/accounts/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:id');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:id' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/accounts/:id")

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

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

url = "{{baseUrl}}/accounts/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/accounts/:id"

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

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

url = URI("{{baseUrl}}/accounts/:id")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/accounts/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:id
http GET {{baseUrl}}/accounts/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.accounts.list
{{baseUrl}}/accounts
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts");

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

(client/get "{{baseUrl}}/accounts")
require "http/client"

url = "{{baseUrl}}/accounts"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

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

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

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

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

}
GET /baseUrl/accounts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts"))
    .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}}/accounts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts")
  .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}}/accounts');

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

const options = {method: 'GET', url: '{{baseUrl}}/accounts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts';
const options = {method: 'GET'};

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}}/accounts',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/accounts")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts',
  headers: {}
};

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}}/accounts'};

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

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

const req = unirest('GET', '{{baseUrl}}/accounts');

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}}/accounts'};

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

const url = '{{baseUrl}}/accounts';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/accounts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/accounts")

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

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

url = "{{baseUrl}}/accounts"

response = requests.get(url)

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

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

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

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

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

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/accounts') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts
http GET {{baseUrl}}/accounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
PATCH adexchangebuyer.accounts.patch
{{baseUrl}}/accounts/:id
QUERY PARAMS

id
BODY json

{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:id");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}");

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

(client/patch "{{baseUrl}}/accounts/:id" {:content-type :json
                                                          :form-params {:applyPretargetingToNonGuaranteedDeals false
                                                                        :bidderLocation [{:bidProtocol ""
                                                                                          :maximumQps 0
                                                                                          :region ""
                                                                                          :url ""}]
                                                                        :cookieMatchingNid ""
                                                                        :cookieMatchingUrl ""
                                                                        :id 0
                                                                        :kind ""
                                                                        :maximumActiveCreatives 0
                                                                        :maximumTotalQps 0
                                                                        :numberActiveCreatives 0}})
require "http/client"

url = "{{baseUrl}}/accounts/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/accounts/:id"),
    Content = new StringContent("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/accounts/:id"

	payload := strings.NewReader("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")

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

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

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

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

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

}
PATCH /baseUrl/accounts/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 339

{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/accounts/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:id"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/accounts/:id")
  .header("content-type", "application/json")
  .body("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
  .asString();
const data = JSON.stringify({
  applyPretargetingToNonGuaranteedDeals: false,
  bidderLocation: [
    {
      bidProtocol: '',
      maximumQps: 0,
      region: '',
      url: ''
    }
  ],
  cookieMatchingNid: '',
  cookieMatchingUrl: '',
  id: 0,
  kind: '',
  maximumActiveCreatives: 0,
  maximumTotalQps: 0,
  numberActiveCreatives: 0
});

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

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

xhr.open('PATCH', '{{baseUrl}}/accounts/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:id',
  headers: {'content-type': 'application/json'},
  data: {
    applyPretargetingToNonGuaranteedDeals: false,
    bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
    cookieMatchingNid: '',
    cookieMatchingUrl: '',
    id: 0,
    kind: '',
    maximumActiveCreatives: 0,
    maximumTotalQps: 0,
    numberActiveCreatives: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"applyPretargetingToNonGuaranteedDeals":false,"bidderLocation":[{"bidProtocol":"","maximumQps":0,"region":"","url":""}],"cookieMatchingNid":"","cookieMatchingUrl":"","id":0,"kind":"","maximumActiveCreatives":0,"maximumTotalQps":0,"numberActiveCreatives":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:id',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "applyPretargetingToNonGuaranteedDeals": false,\n  "bidderLocation": [\n    {\n      "bidProtocol": "",\n      "maximumQps": 0,\n      "region": "",\n      "url": ""\n    }\n  ],\n  "cookieMatchingNid": "",\n  "cookieMatchingUrl": "",\n  "id": 0,\n  "kind": "",\n  "maximumActiveCreatives": 0,\n  "maximumTotalQps": 0,\n  "numberActiveCreatives": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:id")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  applyPretargetingToNonGuaranteedDeals: false,
  bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
  cookieMatchingNid: '',
  cookieMatchingUrl: '',
  id: 0,
  kind: '',
  maximumActiveCreatives: 0,
  maximumTotalQps: 0,
  numberActiveCreatives: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:id',
  headers: {'content-type': 'application/json'},
  body: {
    applyPretargetingToNonGuaranteedDeals: false,
    bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
    cookieMatchingNid: '',
    cookieMatchingUrl: '',
    id: 0,
    kind: '',
    maximumActiveCreatives: 0,
    maximumTotalQps: 0,
    numberActiveCreatives: 0
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/accounts/:id');

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

req.type('json');
req.send({
  applyPretargetingToNonGuaranteedDeals: false,
  bidderLocation: [
    {
      bidProtocol: '',
      maximumQps: 0,
      region: '',
      url: ''
    }
  ],
  cookieMatchingNid: '',
  cookieMatchingUrl: '',
  id: 0,
  kind: '',
  maximumActiveCreatives: 0,
  maximumTotalQps: 0,
  numberActiveCreatives: 0
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:id',
  headers: {'content-type': 'application/json'},
  data: {
    applyPretargetingToNonGuaranteedDeals: false,
    bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
    cookieMatchingNid: '',
    cookieMatchingUrl: '',
    id: 0,
    kind: '',
    maximumActiveCreatives: 0,
    maximumTotalQps: 0,
    numberActiveCreatives: 0
  }
};

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

const url = '{{baseUrl}}/accounts/:id';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"applyPretargetingToNonGuaranteedDeals":false,"bidderLocation":[{"bidProtocol":"","maximumQps":0,"region":"","url":""}],"cookieMatchingNid":"","cookieMatchingUrl":"","id":0,"kind":"","maximumActiveCreatives":0,"maximumTotalQps":0,"numberActiveCreatives":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"applyPretargetingToNonGuaranteedDeals": @NO,
                              @"bidderLocation": @[ @{ @"bidProtocol": @"", @"maximumQps": @0, @"region": @"", @"url": @"" } ],
                              @"cookieMatchingNid": @"",
                              @"cookieMatchingUrl": @"",
                              @"id": @0,
                              @"kind": @"",
                              @"maximumActiveCreatives": @0,
                              @"maximumTotalQps": @0,
                              @"numberActiveCreatives": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/accounts/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'applyPretargetingToNonGuaranteedDeals' => null,
    'bidderLocation' => [
        [
                'bidProtocol' => '',
                'maximumQps' => 0,
                'region' => '',
                'url' => ''
        ]
    ],
    'cookieMatchingNid' => '',
    'cookieMatchingUrl' => '',
    'id' => 0,
    'kind' => '',
    'maximumActiveCreatives' => 0,
    'maximumTotalQps' => 0,
    'numberActiveCreatives' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/accounts/:id', [
  'body' => '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:id');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'applyPretargetingToNonGuaranteedDeals' => null,
  'bidderLocation' => [
    [
        'bidProtocol' => '',
        'maximumQps' => 0,
        'region' => '',
        'url' => ''
    ]
  ],
  'cookieMatchingNid' => '',
  'cookieMatchingUrl' => '',
  'id' => 0,
  'kind' => '',
  'maximumActiveCreatives' => 0,
  'maximumTotalQps' => 0,
  'numberActiveCreatives' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'applyPretargetingToNonGuaranteedDeals' => null,
  'bidderLocation' => [
    [
        'bidProtocol' => '',
        'maximumQps' => 0,
        'region' => '',
        'url' => ''
    ]
  ],
  'cookieMatchingNid' => '',
  'cookieMatchingUrl' => '',
  'id' => 0,
  'kind' => '',
  'maximumActiveCreatives' => 0,
  'maximumTotalQps' => 0,
  'numberActiveCreatives' => 0
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:id');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}'
import http.client

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

payload = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"

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

conn.request("PATCH", "/baseUrl/accounts/:id", payload, headers)

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

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

url = "{{baseUrl}}/accounts/:id"

payload = {
    "applyPretargetingToNonGuaranteedDeals": False,
    "bidderLocation": [
        {
            "bidProtocol": "",
            "maximumQps": 0,
            "region": "",
            "url": ""
        }
    ],
    "cookieMatchingNid": "",
    "cookieMatchingUrl": "",
    "id": 0,
    "kind": "",
    "maximumActiveCreatives": 0,
    "maximumTotalQps": 0,
    "numberActiveCreatives": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/accounts/:id"

payload <- "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/accounts/:id")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"

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

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

response = conn.patch('/baseUrl/accounts/:id') do |req|
  req.body = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\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}}/accounts/:id";

    let payload = json!({
        "applyPretargetingToNonGuaranteedDeals": false,
        "bidderLocation": (
            json!({
                "bidProtocol": "",
                "maximumQps": 0,
                "region": "",
                "url": ""
            })
        ),
        "cookieMatchingNid": "",
        "cookieMatchingUrl": "",
        "id": 0,
        "kind": "",
        "maximumActiveCreatives": 0,
        "maximumTotalQps": 0,
        "numberActiveCreatives": 0
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/accounts/:id \
  --header 'content-type: application/json' \
  --data '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}'
echo '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}' |  \
  http PATCH {{baseUrl}}/accounts/:id \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "applyPretargetingToNonGuaranteedDeals": false,\n  "bidderLocation": [\n    {\n      "bidProtocol": "",\n      "maximumQps": 0,\n      "region": "",\n      "url": ""\n    }\n  ],\n  "cookieMatchingNid": "",\n  "cookieMatchingUrl": "",\n  "id": 0,\n  "kind": "",\n  "maximumActiveCreatives": 0,\n  "maximumTotalQps": 0,\n  "numberActiveCreatives": 0\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    [
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    ]
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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 adexchangebuyer.accounts.update
{{baseUrl}}/accounts/:id
QUERY PARAMS

id
BODY json

{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:id");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}");

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

(client/put "{{baseUrl}}/accounts/:id" {:content-type :json
                                                        :form-params {:applyPretargetingToNonGuaranteedDeals false
                                                                      :bidderLocation [{:bidProtocol ""
                                                                                        :maximumQps 0
                                                                                        :region ""
                                                                                        :url ""}]
                                                                      :cookieMatchingNid ""
                                                                      :cookieMatchingUrl ""
                                                                      :id 0
                                                                      :kind ""
                                                                      :maximumActiveCreatives 0
                                                                      :maximumTotalQps 0
                                                                      :numberActiveCreatives 0}})
require "http/client"

url = "{{baseUrl}}/accounts/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\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}}/accounts/:id"),
    Content = new StringContent("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/accounts/:id"

	payload := strings.NewReader("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")

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

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

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

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

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

}
PUT /baseUrl/accounts/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 339

{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/accounts/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/accounts/:id")
  .header("content-type", "application/json")
  .body("{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
  .asString();
const data = JSON.stringify({
  applyPretargetingToNonGuaranteedDeals: false,
  bidderLocation: [
    {
      bidProtocol: '',
      maximumQps: 0,
      region: '',
      url: ''
    }
  ],
  cookieMatchingNid: '',
  cookieMatchingUrl: '',
  id: 0,
  kind: '',
  maximumActiveCreatives: 0,
  maximumTotalQps: 0,
  numberActiveCreatives: 0
});

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

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

xhr.open('PUT', '{{baseUrl}}/accounts/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:id',
  headers: {'content-type': 'application/json'},
  data: {
    applyPretargetingToNonGuaranteedDeals: false,
    bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
    cookieMatchingNid: '',
    cookieMatchingUrl: '',
    id: 0,
    kind: '',
    maximumActiveCreatives: 0,
    maximumTotalQps: 0,
    numberActiveCreatives: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"applyPretargetingToNonGuaranteedDeals":false,"bidderLocation":[{"bidProtocol":"","maximumQps":0,"region":"","url":""}],"cookieMatchingNid":"","cookieMatchingUrl":"","id":0,"kind":"","maximumActiveCreatives":0,"maximumTotalQps":0,"numberActiveCreatives":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "applyPretargetingToNonGuaranteedDeals": false,\n  "bidderLocation": [\n    {\n      "bidProtocol": "",\n      "maximumQps": 0,\n      "region": "",\n      "url": ""\n    }\n  ],\n  "cookieMatchingNid": "",\n  "cookieMatchingUrl": "",\n  "id": 0,\n  "kind": "",\n  "maximumActiveCreatives": 0,\n  "maximumTotalQps": 0,\n  "numberActiveCreatives": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:id")
  .put(body)
  .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/accounts/:id',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  applyPretargetingToNonGuaranteedDeals: false,
  bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
  cookieMatchingNid: '',
  cookieMatchingUrl: '',
  id: 0,
  kind: '',
  maximumActiveCreatives: 0,
  maximumTotalQps: 0,
  numberActiveCreatives: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:id',
  headers: {'content-type': 'application/json'},
  body: {
    applyPretargetingToNonGuaranteedDeals: false,
    bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
    cookieMatchingNid: '',
    cookieMatchingUrl: '',
    id: 0,
    kind: '',
    maximumActiveCreatives: 0,
    maximumTotalQps: 0,
    numberActiveCreatives: 0
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/accounts/:id');

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

req.type('json');
req.send({
  applyPretargetingToNonGuaranteedDeals: false,
  bidderLocation: [
    {
      bidProtocol: '',
      maximumQps: 0,
      region: '',
      url: ''
    }
  ],
  cookieMatchingNid: '',
  cookieMatchingUrl: '',
  id: 0,
  kind: '',
  maximumActiveCreatives: 0,
  maximumTotalQps: 0,
  numberActiveCreatives: 0
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:id',
  headers: {'content-type': 'application/json'},
  data: {
    applyPretargetingToNonGuaranteedDeals: false,
    bidderLocation: [{bidProtocol: '', maximumQps: 0, region: '', url: ''}],
    cookieMatchingNid: '',
    cookieMatchingUrl: '',
    id: 0,
    kind: '',
    maximumActiveCreatives: 0,
    maximumTotalQps: 0,
    numberActiveCreatives: 0
  }
};

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

const url = '{{baseUrl}}/accounts/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"applyPretargetingToNonGuaranteedDeals":false,"bidderLocation":[{"bidProtocol":"","maximumQps":0,"region":"","url":""}],"cookieMatchingNid":"","cookieMatchingUrl":"","id":0,"kind":"","maximumActiveCreatives":0,"maximumTotalQps":0,"numberActiveCreatives":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"applyPretargetingToNonGuaranteedDeals": @NO,
                              @"bidderLocation": @[ @{ @"bidProtocol": @"", @"maximumQps": @0, @"region": @"", @"url": @"" } ],
                              @"cookieMatchingNid": @"",
                              @"cookieMatchingUrl": @"",
                              @"id": @0,
                              @"kind": @"",
                              @"maximumActiveCreatives": @0,
                              @"maximumTotalQps": @0,
                              @"numberActiveCreatives": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:id"]
                                                       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}}/accounts/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:id",
  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([
    'applyPretargetingToNonGuaranteedDeals' => null,
    'bidderLocation' => [
        [
                'bidProtocol' => '',
                'maximumQps' => 0,
                'region' => '',
                'url' => ''
        ]
    ],
    'cookieMatchingNid' => '',
    'cookieMatchingUrl' => '',
    'id' => 0,
    'kind' => '',
    'maximumActiveCreatives' => 0,
    'maximumTotalQps' => 0,
    'numberActiveCreatives' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/accounts/:id', [
  'body' => '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:id');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'applyPretargetingToNonGuaranteedDeals' => null,
  'bidderLocation' => [
    [
        'bidProtocol' => '',
        'maximumQps' => 0,
        'region' => '',
        'url' => ''
    ]
  ],
  'cookieMatchingNid' => '',
  'cookieMatchingUrl' => '',
  'id' => 0,
  'kind' => '',
  'maximumActiveCreatives' => 0,
  'maximumTotalQps' => 0,
  'numberActiveCreatives' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'applyPretargetingToNonGuaranteedDeals' => null,
  'bidderLocation' => [
    [
        'bidProtocol' => '',
        'maximumQps' => 0,
        'region' => '',
        'url' => ''
    ]
  ],
  'cookieMatchingNid' => '',
  'cookieMatchingUrl' => '',
  'id' => 0,
  'kind' => '',
  'maximumActiveCreatives' => 0,
  'maximumTotalQps' => 0,
  'numberActiveCreatives' => 0
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}'
import http.client

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

payload = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"

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

conn.request("PUT", "/baseUrl/accounts/:id", payload, headers)

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

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

url = "{{baseUrl}}/accounts/:id"

payload = {
    "applyPretargetingToNonGuaranteedDeals": False,
    "bidderLocation": [
        {
            "bidProtocol": "",
            "maximumQps": 0,
            "region": "",
            "url": ""
        }
    ],
    "cookieMatchingNid": "",
    "cookieMatchingUrl": "",
    "id": 0,
    "kind": "",
    "maximumActiveCreatives": 0,
    "maximumTotalQps": 0,
    "numberActiveCreatives": 0
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/accounts/:id"

payload <- "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\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}}/accounts/:id")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\n}"

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

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

response = conn.put('/baseUrl/accounts/:id') do |req|
  req.body = "{\n  \"applyPretargetingToNonGuaranteedDeals\": false,\n  \"bidderLocation\": [\n    {\n      \"bidProtocol\": \"\",\n      \"maximumQps\": 0,\n      \"region\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"cookieMatchingNid\": \"\",\n  \"cookieMatchingUrl\": \"\",\n  \"id\": 0,\n  \"kind\": \"\",\n  \"maximumActiveCreatives\": 0,\n  \"maximumTotalQps\": 0,\n  \"numberActiveCreatives\": 0\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}}/accounts/:id";

    let payload = json!({
        "applyPretargetingToNonGuaranteedDeals": false,
        "bidderLocation": (
            json!({
                "bidProtocol": "",
                "maximumQps": 0,
                "region": "",
                "url": ""
            })
        ),
        "cookieMatchingNid": "",
        "cookieMatchingUrl": "",
        "id": 0,
        "kind": "",
        "maximumActiveCreatives": 0,
        "maximumTotalQps": 0,
        "numberActiveCreatives": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/accounts/:id \
  --header 'content-type: application/json' \
  --data '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}'
echo '{
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    {
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    }
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
}' |  \
  http PUT {{baseUrl}}/accounts/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "applyPretargetingToNonGuaranteedDeals": false,\n  "bidderLocation": [\n    {\n      "bidProtocol": "",\n      "maximumQps": 0,\n      "region": "",\n      "url": ""\n    }\n  ],\n  "cookieMatchingNid": "",\n  "cookieMatchingUrl": "",\n  "id": 0,\n  "kind": "",\n  "maximumActiveCreatives": 0,\n  "maximumTotalQps": 0,\n  "numberActiveCreatives": 0\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "applyPretargetingToNonGuaranteedDeals": false,
  "bidderLocation": [
    [
      "bidProtocol": "",
      "maximumQps": 0,
      "region": "",
      "url": ""
    ]
  ],
  "cookieMatchingNid": "",
  "cookieMatchingUrl": "",
  "id": 0,
  "kind": "",
  "maximumActiveCreatives": 0,
  "maximumTotalQps": 0,
  "numberActiveCreatives": 0
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:id")! 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 adexchangebuyer.billingInfo.get
{{baseUrl}}/billinginfo/:accountId
QUERY PARAMS

accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/billinginfo/:accountId");

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

(client/get "{{baseUrl}}/billinginfo/:accountId")
require "http/client"

url = "{{baseUrl}}/billinginfo/:accountId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/billinginfo/:accountId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/billinginfo/:accountId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/billinginfo/:accountId"

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

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

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

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

}
GET /baseUrl/billinginfo/:accountId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/billinginfo/:accountId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/billinginfo/:accountId"))
    .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}}/billinginfo/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/billinginfo/:accountId")
  .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}}/billinginfo/:accountId');

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

const options = {method: 'GET', url: '{{baseUrl}}/billinginfo/:accountId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/billinginfo/:accountId';
const options = {method: 'GET'};

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}}/billinginfo/:accountId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/billinginfo/:accountId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/billinginfo/:accountId',
  headers: {}
};

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}}/billinginfo/:accountId'};

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

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

const req = unirest('GET', '{{baseUrl}}/billinginfo/:accountId');

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}}/billinginfo/:accountId'};

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

const url = '{{baseUrl}}/billinginfo/:accountId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/billinginfo/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/billinginfo/:accountId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/billinginfo/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/billinginfo/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/billinginfo/:accountId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/billinginfo/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/billinginfo/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/billinginfo/:accountId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/billinginfo/:accountId")

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

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

url = "{{baseUrl}}/billinginfo/:accountId"

response = requests.get(url)

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

url <- "{{baseUrl}}/billinginfo/:accountId"

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

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

url = URI("{{baseUrl}}/billinginfo/:accountId")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/billinginfo/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/billinginfo/:accountId
http GET {{baseUrl}}/billinginfo/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/billinginfo/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/billinginfo/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.billingInfo.list
{{baseUrl}}/billinginfo
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/billinginfo");

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

(client/get "{{baseUrl}}/billinginfo")
require "http/client"

url = "{{baseUrl}}/billinginfo"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/billinginfo"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/billinginfo");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

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

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

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

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

}
GET /baseUrl/billinginfo HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/billinginfo")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/billinginfo"))
    .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}}/billinginfo")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/billinginfo")
  .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}}/billinginfo');

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

const options = {method: 'GET', url: '{{baseUrl}}/billinginfo'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/billinginfo';
const options = {method: 'GET'};

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}}/billinginfo',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/billinginfo")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/billinginfo',
  headers: {}
};

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}}/billinginfo'};

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

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

const req = unirest('GET', '{{baseUrl}}/billinginfo');

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}}/billinginfo'};

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

const url = '{{baseUrl}}/billinginfo';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/billinginfo"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/billinginfo" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/billinginfo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/billinginfo');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/billinginfo');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/billinginfo' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/billinginfo' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/billinginfo")

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

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

url = "{{baseUrl}}/billinginfo"

response = requests.get(url)

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

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

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

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

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

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/billinginfo') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/billinginfo
http GET {{baseUrl}}/billinginfo
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/billinginfo
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/billinginfo")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.budget.get
{{baseUrl}}/billinginfo/:accountId/:billingId
QUERY PARAMS

accountId
billingId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/billinginfo/:accountId/:billingId");

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

(client/get "{{baseUrl}}/billinginfo/:accountId/:billingId")
require "http/client"

url = "{{baseUrl}}/billinginfo/:accountId/:billingId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/billinginfo/:accountId/:billingId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/billinginfo/:accountId/:billingId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/billinginfo/:accountId/:billingId"

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

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

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

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

}
GET /baseUrl/billinginfo/:accountId/:billingId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/billinginfo/:accountId/:billingId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/billinginfo/:accountId/:billingId"))
    .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}}/billinginfo/:accountId/:billingId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .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}}/billinginfo/:accountId/:billingId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/billinginfo/:accountId/:billingId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/billinginfo/:accountId/:billingId';
const options = {method: 'GET'};

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}}/billinginfo/:accountId/:billingId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/billinginfo/:accountId/:billingId',
  headers: {}
};

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}}/billinginfo/:accountId/:billingId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/billinginfo/:accountId/:billingId');

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}}/billinginfo/:accountId/:billingId'
};

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

const url = '{{baseUrl}}/billinginfo/:accountId/:billingId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/billinginfo/:accountId/:billingId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/billinginfo/:accountId/:billingId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/billinginfo/:accountId/:billingId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/billinginfo/:accountId/:billingId');

echo $response->getBody();
setUrl('{{baseUrl}}/billinginfo/:accountId/:billingId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/billinginfo/:accountId/:billingId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/billinginfo/:accountId/:billingId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/billinginfo/:accountId/:billingId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/billinginfo/:accountId/:billingId")

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

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

url = "{{baseUrl}}/billinginfo/:accountId/:billingId"

response = requests.get(url)

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

url <- "{{baseUrl}}/billinginfo/:accountId/:billingId"

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

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

url = URI("{{baseUrl}}/billinginfo/:accountId/:billingId")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/billinginfo/:accountId/:billingId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/billinginfo/:accountId/:billingId
http GET {{baseUrl}}/billinginfo/:accountId/:billingId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/billinginfo/:accountId/:billingId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/billinginfo/:accountId/:billingId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
PATCH adexchangebuyer.budget.patch
{{baseUrl}}/billinginfo/:accountId/:billingId
QUERY PARAMS

accountId
billingId
BODY json

{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/billinginfo/:accountId/:billingId");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}");

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

(client/patch "{{baseUrl}}/billinginfo/:accountId/:billingId" {:content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :billingId ""
                                                                                             :budgetAmount ""
                                                                                             :currencyCode ""
                                                                                             :id ""
                                                                                             :kind ""}})
require "http/client"

url = "{{baseUrl}}/billinginfo/:accountId/:billingId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/billinginfo/:accountId/:billingId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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}}/billinginfo/:accountId/:billingId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/billinginfo/:accountId/:billingId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")

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

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

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

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

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

}
PATCH /baseUrl/billinginfo/:accountId/:billingId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 110

{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/billinginfo/:accountId/:billingId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/billinginfo/:accountId/:billingId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  billingId: '',
  budgetAmount: '',
  currencyCode: '',
  id: '',
  kind: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/billinginfo/:accountId/:billingId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/billinginfo/:accountId/:billingId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    billingId: '',
    budgetAmount: '',
    currencyCode: '',
    id: '',
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/billinginfo/:accountId/:billingId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","billingId":"","budgetAmount":"","currencyCode":"","id":"","kind":""}'
};

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}}/billinginfo/:accountId/:billingId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "billingId": "",\n  "budgetAmount": "",\n  "currencyCode": "",\n  "id": "",\n  "kind": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  accountId: '',
  billingId: '',
  budgetAmount: '',
  currencyCode: '',
  id: '',
  kind: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/billinginfo/:accountId/:billingId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    billingId: '',
    budgetAmount: '',
    currencyCode: '',
    id: '',
    kind: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/billinginfo/:accountId/:billingId');

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

req.type('json');
req.send({
  accountId: '',
  billingId: '',
  budgetAmount: '',
  currencyCode: '',
  id: '',
  kind: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/billinginfo/:accountId/:billingId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    billingId: '',
    budgetAmount: '',
    currencyCode: '',
    id: '',
    kind: ''
  }
};

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

const url = '{{baseUrl}}/billinginfo/:accountId/:billingId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","billingId":"","budgetAmount":"","currencyCode":"","id":"","kind":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"billingId": @"",
                              @"budgetAmount": @"",
                              @"currencyCode": @"",
                              @"id": @"",
                              @"kind": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/billinginfo/:accountId/:billingId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/billinginfo/:accountId/:billingId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/billinginfo/:accountId/:billingId', [
  'body' => '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/billinginfo/:accountId/:billingId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'billingId' => '',
  'budgetAmount' => '',
  'currencyCode' => '',
  'id' => '',
  'kind' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'billingId' => '',
  'budgetAmount' => '',
  'currencyCode' => '',
  'id' => '',
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/billinginfo/:accountId/:billingId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/billinginfo/:accountId/:billingId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/billinginfo/:accountId/:billingId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/billinginfo/:accountId/:billingId", payload, headers)

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

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

url = "{{baseUrl}}/billinginfo/:accountId/:billingId"

payload = {
    "accountId": "",
    "billingId": "",
    "budgetAmount": "",
    "currencyCode": "",
    "id": "",
    "kind": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/billinginfo/:accountId/:billingId"

payload <- "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/billinginfo/:accountId/:billingId")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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.patch('/baseUrl/billinginfo/:accountId/:billingId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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}}/billinginfo/:accountId/:billingId";

    let payload = json!({
        "accountId": "",
        "billingId": "",
        "budgetAmount": "",
        "currencyCode": "",
        "id": "",
        "kind": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/billinginfo/:accountId/:billingId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}'
echo '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}' |  \
  http PATCH {{baseUrl}}/billinginfo/:accountId/:billingId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "billingId": "",\n  "budgetAmount": "",\n  "currencyCode": "",\n  "id": "",\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/billinginfo/:accountId/:billingId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/billinginfo/:accountId/:billingId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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 adexchangebuyer.budget.update
{{baseUrl}}/billinginfo/:accountId/:billingId
QUERY PARAMS

accountId
billingId
BODY json

{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/billinginfo/:accountId/:billingId");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}");

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

(client/put "{{baseUrl}}/billinginfo/:accountId/:billingId" {:content-type :json
                                                                             :form-params {:accountId ""
                                                                                           :billingId ""
                                                                                           :budgetAmount ""
                                                                                           :currencyCode ""
                                                                                           :id ""
                                                                                           :kind ""}})
require "http/client"

url = "{{baseUrl}}/billinginfo/:accountId/:billingId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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}}/billinginfo/:accountId/:billingId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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}}/billinginfo/:accountId/:billingId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/billinginfo/:accountId/:billingId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")

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

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

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

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

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

}
PUT /baseUrl/billinginfo/:accountId/:billingId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 110

{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/billinginfo/:accountId/:billingId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/billinginfo/:accountId/:billingId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  billingId: '',
  budgetAmount: '',
  currencyCode: '',
  id: '',
  kind: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/billinginfo/:accountId/:billingId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/billinginfo/:accountId/:billingId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    billingId: '',
    budgetAmount: '',
    currencyCode: '',
    id: '',
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/billinginfo/:accountId/:billingId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","billingId":"","budgetAmount":"","currencyCode":"","id":"","kind":""}'
};

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}}/billinginfo/:accountId/:billingId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "billingId": "",\n  "budgetAmount": "",\n  "currencyCode": "",\n  "id": "",\n  "kind": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/billinginfo/:accountId/:billingId")
  .put(body)
  .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/billinginfo/:accountId/:billingId',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  accountId: '',
  billingId: '',
  budgetAmount: '',
  currencyCode: '',
  id: '',
  kind: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/billinginfo/:accountId/:billingId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    billingId: '',
    budgetAmount: '',
    currencyCode: '',
    id: '',
    kind: ''
  },
  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}}/billinginfo/:accountId/:billingId');

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

req.type('json');
req.send({
  accountId: '',
  billingId: '',
  budgetAmount: '',
  currencyCode: '',
  id: '',
  kind: ''
});

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}}/billinginfo/:accountId/:billingId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    billingId: '',
    budgetAmount: '',
    currencyCode: '',
    id: '',
    kind: ''
  }
};

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

const url = '{{baseUrl}}/billinginfo/:accountId/:billingId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","billingId":"","budgetAmount":"","currencyCode":"","id":"","kind":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"billingId": @"",
                              @"budgetAmount": @"",
                              @"currencyCode": @"",
                              @"id": @"",
                              @"kind": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/billinginfo/:accountId/:billingId"]
                                                       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}}/billinginfo/:accountId/:billingId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/billinginfo/:accountId/:billingId",
  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([
    'accountId' => '',
    'billingId' => '',
    'budgetAmount' => '',
    'currencyCode' => '',
    'id' => '',
    'kind' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/billinginfo/:accountId/:billingId', [
  'body' => '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/billinginfo/:accountId/:billingId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'billingId' => '',
  'budgetAmount' => '',
  'currencyCode' => '',
  'id' => '',
  'kind' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'billingId' => '',
  'budgetAmount' => '',
  'currencyCode' => '',
  'id' => '',
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/billinginfo/:accountId/:billingId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/billinginfo/:accountId/:billingId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/billinginfo/:accountId/:billingId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/billinginfo/:accountId/:billingId", payload, headers)

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

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

url = "{{baseUrl}}/billinginfo/:accountId/:billingId"

payload = {
    "accountId": "",
    "billingId": "",
    "budgetAmount": "",
    "currencyCode": "",
    "id": "",
    "kind": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/billinginfo/:accountId/:billingId"

payload <- "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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}}/billinginfo/:accountId/:billingId")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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/billinginfo/:accountId/:billingId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"billingId\": \"\",\n  \"budgetAmount\": \"\",\n  \"currencyCode\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\"\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}}/billinginfo/:accountId/:billingId";

    let payload = json!({
        "accountId": "",
        "billingId": "",
        "budgetAmount": "",
        "currencyCode": "",
        "id": "",
        "kind": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/billinginfo/:accountId/:billingId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}'
echo '{
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
}' |  \
  http PUT {{baseUrl}}/billinginfo/:accountId/:billingId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "billingId": "",\n  "budgetAmount": "",\n  "currencyCode": "",\n  "id": "",\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/billinginfo/:accountId/:billingId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "billingId": "",
  "budgetAmount": "",
  "currencyCode": "",
  "id": "",
  "kind": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/billinginfo/:accountId/:billingId")! 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 adexchangebuyer.creatives.addDeal
{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId
QUERY PARAMS

accountId
buyerCreativeId
dealId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId");

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

(client/post "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")
require "http/client"

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"

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

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

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

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

}
POST /baseUrl/creatives/:accountId/:buyerCreativeId/addDeal/:dealId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"))
    .method("POST", 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}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")
  .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('POST', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId';
const options = {method: 'POST'};

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}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/creatives/:accountId/:buyerCreativeId/addDeal/:dealId',
  headers: {}
};

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: 'POST',
  url: '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId'
};

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

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

const req = unirest('POST', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId');

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}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId'
};

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

const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId');

echo $response->getBody();
setUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")

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

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

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"

response = requests.post(url)

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

url <- "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId"

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

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

url = URI("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")

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

request = Net::HTTP::Post.new(url)

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

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

response = conn.post('/baseUrl/creatives/:accountId/:buyerCreativeId/addDeal/:dealId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId";

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId
http POST {{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/addDeal/:dealId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 adexchangebuyer.creatives.get
{{baseUrl}}/creatives/:accountId/:buyerCreativeId
QUERY PARAMS

accountId
buyerCreativeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/creatives/:accountId/:buyerCreativeId");

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

(client/get "{{baseUrl}}/creatives/:accountId/:buyerCreativeId")
require "http/client"

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/creatives/:accountId/:buyerCreativeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/creatives/:accountId/:buyerCreativeId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/creatives/:accountId/:buyerCreativeId"

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

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

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

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

}
GET /baseUrl/creatives/:accountId/:buyerCreativeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/creatives/:accountId/:buyerCreativeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/creatives/:accountId/:buyerCreativeId"))
    .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}}/creatives/:accountId/:buyerCreativeId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/creatives/:accountId/:buyerCreativeId")
  .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}}/creatives/:accountId/:buyerCreativeId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/creatives/:accountId/:buyerCreativeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId';
const options = {method: 'GET'};

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}}/creatives/:accountId/:buyerCreativeId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/creatives/:accountId/:buyerCreativeId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/creatives/:accountId/:buyerCreativeId',
  headers: {}
};

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}}/creatives/:accountId/:buyerCreativeId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId');

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}}/creatives/:accountId/:buyerCreativeId'
};

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

const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/creatives/:accountId/:buyerCreativeId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/creatives/:accountId/:buyerCreativeId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/creatives/:accountId/:buyerCreativeId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId');

echo $response->getBody();
setUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/creatives/:accountId/:buyerCreativeId")

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

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

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId"

response = requests.get(url)

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

url <- "{{baseUrl}}/creatives/:accountId/:buyerCreativeId"

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

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

url = URI("{{baseUrl}}/creatives/:accountId/:buyerCreativeId")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/creatives/:accountId/:buyerCreativeId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/creatives/:accountId/:buyerCreativeId
http GET {{baseUrl}}/creatives/:accountId/:buyerCreativeId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/creatives/:accountId/:buyerCreativeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/creatives/:accountId/:buyerCreativeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.creatives.insert
{{baseUrl}}/creatives
BODY json

{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}");

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

(client/post "{{baseUrl}}/creatives" {:content-type :json
                                                      :form-params {:HTMLSnippet ""
                                                                    :accountId 0
                                                                    :adChoicesDestinationUrl ""
                                                                    :adTechnologyProviders {:detectedProviderIds []
                                                                                            :hasUnidentifiedProvider false}
                                                                    :advertiserId []
                                                                    :advertiserName ""
                                                                    :agencyId ""
                                                                    :apiUploadTimestamp ""
                                                                    :attribute []
                                                                    :buyerCreativeId ""
                                                                    :clickThroughUrl []
                                                                    :corrections [{:contexts [{:auctionType []
                                                                                               :contextType ""
                                                                                               :geoCriteriaId []
                                                                                               :platform []}]
                                                                                   :details []
                                                                                   :reason ""}]
                                                                    :creativeStatusIdentityType ""
                                                                    :dealsStatus ""
                                                                    :detectedDomains []
                                                                    :filteringReasons {:date ""
                                                                                       :reasons [{:filteringCount ""
                                                                                                  :filteringStatus 0}]}
                                                                    :height 0
                                                                    :impressionTrackingUrl []
                                                                    :kind ""
                                                                    :languages []
                                                                    :nativeAd {:advertiser ""
                                                                               :appIcon {:height 0
                                                                                         :url ""
                                                                                         :width 0}
                                                                               :body ""
                                                                               :callToAction ""
                                                                               :clickLinkUrl ""
                                                                               :clickTrackingUrl ""
                                                                               :headline ""
                                                                               :image {:height 0
                                                                                       :url ""
                                                                                       :width 0}
                                                                               :impressionTrackingUrl []
                                                                               :logo {:height 0
                                                                                      :url ""
                                                                                      :width 0}
                                                                               :price ""
                                                                               :starRating ""
                                                                               :videoURL ""}
                                                                    :openAuctionStatus ""
                                                                    :productCategories []
                                                                    :restrictedCategories []
                                                                    :sensitiveCategories []
                                                                    :servingRestrictions [{:contexts [{:auctionType []
                                                                                                       :contextType ""
                                                                                                       :geoCriteriaId []
                                                                                                       :platform []}]
                                                                                           :disapprovalReasons [{:details []
                                                                                                                 :reason ""}]
                                                                                           :reason ""}]
                                                                    :vendorType []
                                                                    :version 0
                                                                    :videoURL ""
                                                                    :videoVastXML ""
                                                                    :width 0}})
require "http/client"

url = "{{baseUrl}}/creatives"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/creatives"),
    Content = new StringContent("{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/creatives");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}")

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

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

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

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

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

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

{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/creatives")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/creatives"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/creatives")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/creatives")
  .header("content-type", "application/json")
  .body("{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}")
  .asString();
const data = JSON.stringify({
  HTMLSnippet: '',
  accountId: 0,
  adChoicesDestinationUrl: '',
  adTechnologyProviders: {
    detectedProviderIds: [],
    hasUnidentifiedProvider: false
  },
  advertiserId: [],
  advertiserName: '',
  agencyId: '',
  apiUploadTimestamp: '',
  attribute: [],
  buyerCreativeId: '',
  clickThroughUrl: [],
  corrections: [
    {
      contexts: [
        {
          auctionType: [],
          contextType: '',
          geoCriteriaId: [],
          platform: []
        }
      ],
      details: [],
      reason: ''
    }
  ],
  creativeStatusIdentityType: '',
  dealsStatus: '',
  detectedDomains: [],
  filteringReasons: {
    date: '',
    reasons: [
      {
        filteringCount: '',
        filteringStatus: 0
      }
    ]
  },
  height: 0,
  impressionTrackingUrl: [],
  kind: '',
  languages: [],
  nativeAd: {
    advertiser: '',
    appIcon: {
      height: 0,
      url: '',
      width: 0
    },
    body: '',
    callToAction: '',
    clickLinkUrl: '',
    clickTrackingUrl: '',
    headline: '',
    image: {
      height: 0,
      url: '',
      width: 0
    },
    impressionTrackingUrl: [],
    logo: {
      height: 0,
      url: '',
      width: 0
    },
    price: '',
    starRating: '',
    videoURL: ''
  },
  openAuctionStatus: '',
  productCategories: [],
  restrictedCategories: [],
  sensitiveCategories: [],
  servingRestrictions: [
    {
      contexts: [
        {
          auctionType: [],
          contextType: '',
          geoCriteriaId: [],
          platform: []
        }
      ],
      disapprovalReasons: [
        {
          details: [],
          reason: ''
        }
      ],
      reason: ''
    }
  ],
  vendorType: [],
  version: 0,
  videoURL: '',
  videoVastXML: '',
  width: 0
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    HTMLSnippet: '',
    accountId: 0,
    adChoicesDestinationUrl: '',
    adTechnologyProviders: {detectedProviderIds: [], hasUnidentifiedProvider: false},
    advertiserId: [],
    advertiserName: '',
    agencyId: '',
    apiUploadTimestamp: '',
    attribute: [],
    buyerCreativeId: '',
    clickThroughUrl: [],
    corrections: [
      {
        contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
        details: [],
        reason: ''
      }
    ],
    creativeStatusIdentityType: '',
    dealsStatus: '',
    detectedDomains: [],
    filteringReasons: {date: '', reasons: [{filteringCount: '', filteringStatus: 0}]},
    height: 0,
    impressionTrackingUrl: [],
    kind: '',
    languages: [],
    nativeAd: {
      advertiser: '',
      appIcon: {height: 0, url: '', width: 0},
      body: '',
      callToAction: '',
      clickLinkUrl: '',
      clickTrackingUrl: '',
      headline: '',
      image: {height: 0, url: '', width: 0},
      impressionTrackingUrl: [],
      logo: {height: 0, url: '', width: 0},
      price: '',
      starRating: '',
      videoURL: ''
    },
    openAuctionStatus: '',
    productCategories: [],
    restrictedCategories: [],
    sensitiveCategories: [],
    servingRestrictions: [
      {
        contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
        disapprovalReasons: [{details: [], reason: ''}],
        reason: ''
      }
    ],
    vendorType: [],
    version: 0,
    videoURL: '',
    videoVastXML: '',
    width: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/creatives';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"HTMLSnippet":"","accountId":0,"adChoicesDestinationUrl":"","adTechnologyProviders":{"detectedProviderIds":[],"hasUnidentifiedProvider":false},"advertiserId":[],"advertiserName":"","agencyId":"","apiUploadTimestamp":"","attribute":[],"buyerCreativeId":"","clickThroughUrl":[],"corrections":[{"contexts":[{"auctionType":[],"contextType":"","geoCriteriaId":[],"platform":[]}],"details":[],"reason":""}],"creativeStatusIdentityType":"","dealsStatus":"","detectedDomains":[],"filteringReasons":{"date":"","reasons":[{"filteringCount":"","filteringStatus":0}]},"height":0,"impressionTrackingUrl":[],"kind":"","languages":[],"nativeAd":{"advertiser":"","appIcon":{"height":0,"url":"","width":0},"body":"","callToAction":"","clickLinkUrl":"","clickTrackingUrl":"","headline":"","image":{"height":0,"url":"","width":0},"impressionTrackingUrl":[],"logo":{"height":0,"url":"","width":0},"price":"","starRating":"","videoURL":""},"openAuctionStatus":"","productCategories":[],"restrictedCategories":[],"sensitiveCategories":[],"servingRestrictions":[{"contexts":[{"auctionType":[],"contextType":"","geoCriteriaId":[],"platform":[]}],"disapprovalReasons":[{"details":[],"reason":""}],"reason":""}],"vendorType":[],"version":0,"videoURL":"","videoVastXML":"","width":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/creatives',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "HTMLSnippet": "",\n  "accountId": 0,\n  "adChoicesDestinationUrl": "",\n  "adTechnologyProviders": {\n    "detectedProviderIds": [],\n    "hasUnidentifiedProvider": false\n  },\n  "advertiserId": [],\n  "advertiserName": "",\n  "agencyId": "",\n  "apiUploadTimestamp": "",\n  "attribute": [],\n  "buyerCreativeId": "",\n  "clickThroughUrl": [],\n  "corrections": [\n    {\n      "contexts": [\n        {\n          "auctionType": [],\n          "contextType": "",\n          "geoCriteriaId": [],\n          "platform": []\n        }\n      ],\n      "details": [],\n      "reason": ""\n    }\n  ],\n  "creativeStatusIdentityType": "",\n  "dealsStatus": "",\n  "detectedDomains": [],\n  "filteringReasons": {\n    "date": "",\n    "reasons": [\n      {\n        "filteringCount": "",\n        "filteringStatus": 0\n      }\n    ]\n  },\n  "height": 0,\n  "impressionTrackingUrl": [],\n  "kind": "",\n  "languages": [],\n  "nativeAd": {\n    "advertiser": "",\n    "appIcon": {\n      "height": 0,\n      "url": "",\n      "width": 0\n    },\n    "body": "",\n    "callToAction": "",\n    "clickLinkUrl": "",\n    "clickTrackingUrl": "",\n    "headline": "",\n    "image": {\n      "height": 0,\n      "url": "",\n      "width": 0\n    },\n    "impressionTrackingUrl": [],\n    "logo": {\n      "height": 0,\n      "url": "",\n      "width": 0\n    },\n    "price": "",\n    "starRating": "",\n    "videoURL": ""\n  },\n  "openAuctionStatus": "",\n  "productCategories": [],\n  "restrictedCategories": [],\n  "sensitiveCategories": [],\n  "servingRestrictions": [\n    {\n      "contexts": [\n        {\n          "auctionType": [],\n          "contextType": "",\n          "geoCriteriaId": [],\n          "platform": []\n        }\n      ],\n      "disapprovalReasons": [\n        {\n          "details": [],\n          "reason": ""\n        }\n      ],\n      "reason": ""\n    }\n  ],\n  "vendorType": [],\n  "version": 0,\n  "videoURL": "",\n  "videoVastXML": "",\n  "width": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/creatives")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  HTMLSnippet: '',
  accountId: 0,
  adChoicesDestinationUrl: '',
  adTechnologyProviders: {detectedProviderIds: [], hasUnidentifiedProvider: false},
  advertiserId: [],
  advertiserName: '',
  agencyId: '',
  apiUploadTimestamp: '',
  attribute: [],
  buyerCreativeId: '',
  clickThroughUrl: [],
  corrections: [
    {
      contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
      details: [],
      reason: ''
    }
  ],
  creativeStatusIdentityType: '',
  dealsStatus: '',
  detectedDomains: [],
  filteringReasons: {date: '', reasons: [{filteringCount: '', filteringStatus: 0}]},
  height: 0,
  impressionTrackingUrl: [],
  kind: '',
  languages: [],
  nativeAd: {
    advertiser: '',
    appIcon: {height: 0, url: '', width: 0},
    body: '',
    callToAction: '',
    clickLinkUrl: '',
    clickTrackingUrl: '',
    headline: '',
    image: {height: 0, url: '', width: 0},
    impressionTrackingUrl: [],
    logo: {height: 0, url: '', width: 0},
    price: '',
    starRating: '',
    videoURL: ''
  },
  openAuctionStatus: '',
  productCategories: [],
  restrictedCategories: [],
  sensitiveCategories: [],
  servingRestrictions: [
    {
      contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
      disapprovalReasons: [{details: [], reason: ''}],
      reason: ''
    }
  ],
  vendorType: [],
  version: 0,
  videoURL: '',
  videoVastXML: '',
  width: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/creatives',
  headers: {'content-type': 'application/json'},
  body: {
    HTMLSnippet: '',
    accountId: 0,
    adChoicesDestinationUrl: '',
    adTechnologyProviders: {detectedProviderIds: [], hasUnidentifiedProvider: false},
    advertiserId: [],
    advertiserName: '',
    agencyId: '',
    apiUploadTimestamp: '',
    attribute: [],
    buyerCreativeId: '',
    clickThroughUrl: [],
    corrections: [
      {
        contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
        details: [],
        reason: ''
      }
    ],
    creativeStatusIdentityType: '',
    dealsStatus: '',
    detectedDomains: [],
    filteringReasons: {date: '', reasons: [{filteringCount: '', filteringStatus: 0}]},
    height: 0,
    impressionTrackingUrl: [],
    kind: '',
    languages: [],
    nativeAd: {
      advertiser: '',
      appIcon: {height: 0, url: '', width: 0},
      body: '',
      callToAction: '',
      clickLinkUrl: '',
      clickTrackingUrl: '',
      headline: '',
      image: {height: 0, url: '', width: 0},
      impressionTrackingUrl: [],
      logo: {height: 0, url: '', width: 0},
      price: '',
      starRating: '',
      videoURL: ''
    },
    openAuctionStatus: '',
    productCategories: [],
    restrictedCategories: [],
    sensitiveCategories: [],
    servingRestrictions: [
      {
        contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
        disapprovalReasons: [{details: [], reason: ''}],
        reason: ''
      }
    ],
    vendorType: [],
    version: 0,
    videoURL: '',
    videoVastXML: '',
    width: 0
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  HTMLSnippet: '',
  accountId: 0,
  adChoicesDestinationUrl: '',
  adTechnologyProviders: {
    detectedProviderIds: [],
    hasUnidentifiedProvider: false
  },
  advertiserId: [],
  advertiserName: '',
  agencyId: '',
  apiUploadTimestamp: '',
  attribute: [],
  buyerCreativeId: '',
  clickThroughUrl: [],
  corrections: [
    {
      contexts: [
        {
          auctionType: [],
          contextType: '',
          geoCriteriaId: [],
          platform: []
        }
      ],
      details: [],
      reason: ''
    }
  ],
  creativeStatusIdentityType: '',
  dealsStatus: '',
  detectedDomains: [],
  filteringReasons: {
    date: '',
    reasons: [
      {
        filteringCount: '',
        filteringStatus: 0
      }
    ]
  },
  height: 0,
  impressionTrackingUrl: [],
  kind: '',
  languages: [],
  nativeAd: {
    advertiser: '',
    appIcon: {
      height: 0,
      url: '',
      width: 0
    },
    body: '',
    callToAction: '',
    clickLinkUrl: '',
    clickTrackingUrl: '',
    headline: '',
    image: {
      height: 0,
      url: '',
      width: 0
    },
    impressionTrackingUrl: [],
    logo: {
      height: 0,
      url: '',
      width: 0
    },
    price: '',
    starRating: '',
    videoURL: ''
  },
  openAuctionStatus: '',
  productCategories: [],
  restrictedCategories: [],
  sensitiveCategories: [],
  servingRestrictions: [
    {
      contexts: [
        {
          auctionType: [],
          contextType: '',
          geoCriteriaId: [],
          platform: []
        }
      ],
      disapprovalReasons: [
        {
          details: [],
          reason: ''
        }
      ],
      reason: ''
    }
  ],
  vendorType: [],
  version: 0,
  videoURL: '',
  videoVastXML: '',
  width: 0
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    HTMLSnippet: '',
    accountId: 0,
    adChoicesDestinationUrl: '',
    adTechnologyProviders: {detectedProviderIds: [], hasUnidentifiedProvider: false},
    advertiserId: [],
    advertiserName: '',
    agencyId: '',
    apiUploadTimestamp: '',
    attribute: [],
    buyerCreativeId: '',
    clickThroughUrl: [],
    corrections: [
      {
        contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
        details: [],
        reason: ''
      }
    ],
    creativeStatusIdentityType: '',
    dealsStatus: '',
    detectedDomains: [],
    filteringReasons: {date: '', reasons: [{filteringCount: '', filteringStatus: 0}]},
    height: 0,
    impressionTrackingUrl: [],
    kind: '',
    languages: [],
    nativeAd: {
      advertiser: '',
      appIcon: {height: 0, url: '', width: 0},
      body: '',
      callToAction: '',
      clickLinkUrl: '',
      clickTrackingUrl: '',
      headline: '',
      image: {height: 0, url: '', width: 0},
      impressionTrackingUrl: [],
      logo: {height: 0, url: '', width: 0},
      price: '',
      starRating: '',
      videoURL: ''
    },
    openAuctionStatus: '',
    productCategories: [],
    restrictedCategories: [],
    sensitiveCategories: [],
    servingRestrictions: [
      {
        contexts: [{auctionType: [], contextType: '', geoCriteriaId: [], platform: []}],
        disapprovalReasons: [{details: [], reason: ''}],
        reason: ''
      }
    ],
    vendorType: [],
    version: 0,
    videoURL: '',
    videoVastXML: '',
    width: 0
  }
};

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

const url = '{{baseUrl}}/creatives';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"HTMLSnippet":"","accountId":0,"adChoicesDestinationUrl":"","adTechnologyProviders":{"detectedProviderIds":[],"hasUnidentifiedProvider":false},"advertiserId":[],"advertiserName":"","agencyId":"","apiUploadTimestamp":"","attribute":[],"buyerCreativeId":"","clickThroughUrl":[],"corrections":[{"contexts":[{"auctionType":[],"contextType":"","geoCriteriaId":[],"platform":[]}],"details":[],"reason":""}],"creativeStatusIdentityType":"","dealsStatus":"","detectedDomains":[],"filteringReasons":{"date":"","reasons":[{"filteringCount":"","filteringStatus":0}]},"height":0,"impressionTrackingUrl":[],"kind":"","languages":[],"nativeAd":{"advertiser":"","appIcon":{"height":0,"url":"","width":0},"body":"","callToAction":"","clickLinkUrl":"","clickTrackingUrl":"","headline":"","image":{"height":0,"url":"","width":0},"impressionTrackingUrl":[],"logo":{"height":0,"url":"","width":0},"price":"","starRating":"","videoURL":""},"openAuctionStatus":"","productCategories":[],"restrictedCategories":[],"sensitiveCategories":[],"servingRestrictions":[{"contexts":[{"auctionType":[],"contextType":"","geoCriteriaId":[],"platform":[]}],"disapprovalReasons":[{"details":[],"reason":""}],"reason":""}],"vendorType":[],"version":0,"videoURL":"","videoVastXML":"","width":0}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"HTMLSnippet": @"",
                              @"accountId": @0,
                              @"adChoicesDestinationUrl": @"",
                              @"adTechnologyProviders": @{ @"detectedProviderIds": @[  ], @"hasUnidentifiedProvider": @NO },
                              @"advertiserId": @[  ],
                              @"advertiserName": @"",
                              @"agencyId": @"",
                              @"apiUploadTimestamp": @"",
                              @"attribute": @[  ],
                              @"buyerCreativeId": @"",
                              @"clickThroughUrl": @[  ],
                              @"corrections": @[ @{ @"contexts": @[ @{ @"auctionType": @[  ], @"contextType": @"", @"geoCriteriaId": @[  ], @"platform": @[  ] } ], @"details": @[  ], @"reason": @"" } ],
                              @"creativeStatusIdentityType": @"",
                              @"dealsStatus": @"",
                              @"detectedDomains": @[  ],
                              @"filteringReasons": @{ @"date": @"", @"reasons": @[ @{ @"filteringCount": @"", @"filteringStatus": @0 } ] },
                              @"height": @0,
                              @"impressionTrackingUrl": @[  ],
                              @"kind": @"",
                              @"languages": @[  ],
                              @"nativeAd": @{ @"advertiser": @"", @"appIcon": @{ @"height": @0, @"url": @"", @"width": @0 }, @"body": @"", @"callToAction": @"", @"clickLinkUrl": @"", @"clickTrackingUrl": @"", @"headline": @"", @"image": @{ @"height": @0, @"url": @"", @"width": @0 }, @"impressionTrackingUrl": @[  ], @"logo": @{ @"height": @0, @"url": @"", @"width": @0 }, @"price": @"", @"starRating": @"", @"videoURL": @"" },
                              @"openAuctionStatus": @"",
                              @"productCategories": @[  ],
                              @"restrictedCategories": @[  ],
                              @"sensitiveCategories": @[  ],
                              @"servingRestrictions": @[ @{ @"contexts": @[ @{ @"auctionType": @[  ], @"contextType": @"", @"geoCriteriaId": @[  ], @"platform": @[  ] } ], @"disapprovalReasons": @[ @{ @"details": @[  ], @"reason": @"" } ], @"reason": @"" } ],
                              @"vendorType": @[  ],
                              @"version": @0,
                              @"videoURL": @"",
                              @"videoVastXML": @"",
                              @"width": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/creatives"]
                                                       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}}/creatives" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/creatives",
  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([
    'HTMLSnippet' => '',
    'accountId' => 0,
    'adChoicesDestinationUrl' => '',
    'adTechnologyProviders' => [
        'detectedProviderIds' => [
                
        ],
        'hasUnidentifiedProvider' => null
    ],
    'advertiserId' => [
        
    ],
    'advertiserName' => '',
    'agencyId' => '',
    'apiUploadTimestamp' => '',
    'attribute' => [
        
    ],
    'buyerCreativeId' => '',
    'clickThroughUrl' => [
        
    ],
    'corrections' => [
        [
                'contexts' => [
                                [
                                                                'auctionType' => [
                                                                                                                                
                                                                ],
                                                                'contextType' => '',
                                                                'geoCriteriaId' => [
                                                                                                                                
                                                                ],
                                                                'platform' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'details' => [
                                
                ],
                'reason' => ''
        ]
    ],
    'creativeStatusIdentityType' => '',
    'dealsStatus' => '',
    'detectedDomains' => [
        
    ],
    'filteringReasons' => [
        'date' => '',
        'reasons' => [
                [
                                'filteringCount' => '',
                                'filteringStatus' => 0
                ]
        ]
    ],
    'height' => 0,
    'impressionTrackingUrl' => [
        
    ],
    'kind' => '',
    'languages' => [
        
    ],
    'nativeAd' => [
        'advertiser' => '',
        'appIcon' => [
                'height' => 0,
                'url' => '',
                'width' => 0
        ],
        'body' => '',
        'callToAction' => '',
        'clickLinkUrl' => '',
        'clickTrackingUrl' => '',
        'headline' => '',
        'image' => [
                'height' => 0,
                'url' => '',
                'width' => 0
        ],
        'impressionTrackingUrl' => [
                
        ],
        'logo' => [
                'height' => 0,
                'url' => '',
                'width' => 0
        ],
        'price' => '',
        'starRating' => '',
        'videoURL' => ''
    ],
    'openAuctionStatus' => '',
    'productCategories' => [
        
    ],
    'restrictedCategories' => [
        
    ],
    'sensitiveCategories' => [
        
    ],
    'servingRestrictions' => [
        [
                'contexts' => [
                                [
                                                                'auctionType' => [
                                                                                                                                
                                                                ],
                                                                'contextType' => '',
                                                                'geoCriteriaId' => [
                                                                                                                                
                                                                ],
                                                                'platform' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'disapprovalReasons' => [
                                [
                                                                'details' => [
                                                                                                                                
                                                                ],
                                                                'reason' => ''
                                ]
                ],
                'reason' => ''
        ]
    ],
    'vendorType' => [
        
    ],
    'version' => 0,
    'videoURL' => '',
    'videoVastXML' => '',
    'width' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/creatives', [
  'body' => '{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'HTMLSnippet' => '',
  'accountId' => 0,
  'adChoicesDestinationUrl' => '',
  'adTechnologyProviders' => [
    'detectedProviderIds' => [
        
    ],
    'hasUnidentifiedProvider' => null
  ],
  'advertiserId' => [
    
  ],
  'advertiserName' => '',
  'agencyId' => '',
  'apiUploadTimestamp' => '',
  'attribute' => [
    
  ],
  'buyerCreativeId' => '',
  'clickThroughUrl' => [
    
  ],
  'corrections' => [
    [
        'contexts' => [
                [
                                'auctionType' => [
                                                                
                                ],
                                'contextType' => '',
                                'geoCriteriaId' => [
                                                                
                                ],
                                'platform' => [
                                                                
                                ]
                ]
        ],
        'details' => [
                
        ],
        'reason' => ''
    ]
  ],
  'creativeStatusIdentityType' => '',
  'dealsStatus' => '',
  'detectedDomains' => [
    
  ],
  'filteringReasons' => [
    'date' => '',
    'reasons' => [
        [
                'filteringCount' => '',
                'filteringStatus' => 0
        ]
    ]
  ],
  'height' => 0,
  'impressionTrackingUrl' => [
    
  ],
  'kind' => '',
  'languages' => [
    
  ],
  'nativeAd' => [
    'advertiser' => '',
    'appIcon' => [
        'height' => 0,
        'url' => '',
        'width' => 0
    ],
    'body' => '',
    'callToAction' => '',
    'clickLinkUrl' => '',
    'clickTrackingUrl' => '',
    'headline' => '',
    'image' => [
        'height' => 0,
        'url' => '',
        'width' => 0
    ],
    'impressionTrackingUrl' => [
        
    ],
    'logo' => [
        'height' => 0,
        'url' => '',
        'width' => 0
    ],
    'price' => '',
    'starRating' => '',
    'videoURL' => ''
  ],
  'openAuctionStatus' => '',
  'productCategories' => [
    
  ],
  'restrictedCategories' => [
    
  ],
  'sensitiveCategories' => [
    
  ],
  'servingRestrictions' => [
    [
        'contexts' => [
                [
                                'auctionType' => [
                                                                
                                ],
                                'contextType' => '',
                                'geoCriteriaId' => [
                                                                
                                ],
                                'platform' => [
                                                                
                                ]
                ]
        ],
        'disapprovalReasons' => [
                [
                                'details' => [
                                                                
                                ],
                                'reason' => ''
                ]
        ],
        'reason' => ''
    ]
  ],
  'vendorType' => [
    
  ],
  'version' => 0,
  'videoURL' => '',
  'videoVastXML' => '',
  'width' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'HTMLSnippet' => '',
  'accountId' => 0,
  'adChoicesDestinationUrl' => '',
  'adTechnologyProviders' => [
    'detectedProviderIds' => [
        
    ],
    'hasUnidentifiedProvider' => null
  ],
  'advertiserId' => [
    
  ],
  'advertiserName' => '',
  'agencyId' => '',
  'apiUploadTimestamp' => '',
  'attribute' => [
    
  ],
  'buyerCreativeId' => '',
  'clickThroughUrl' => [
    
  ],
  'corrections' => [
    [
        'contexts' => [
                [
                                'auctionType' => [
                                                                
                                ],
                                'contextType' => '',
                                'geoCriteriaId' => [
                                                                
                                ],
                                'platform' => [
                                                                
                                ]
                ]
        ],
        'details' => [
                
        ],
        'reason' => ''
    ]
  ],
  'creativeStatusIdentityType' => '',
  'dealsStatus' => '',
  'detectedDomains' => [
    
  ],
  'filteringReasons' => [
    'date' => '',
    'reasons' => [
        [
                'filteringCount' => '',
                'filteringStatus' => 0
        ]
    ]
  ],
  'height' => 0,
  'impressionTrackingUrl' => [
    
  ],
  'kind' => '',
  'languages' => [
    
  ],
  'nativeAd' => [
    'advertiser' => '',
    'appIcon' => [
        'height' => 0,
        'url' => '',
        'width' => 0
    ],
    'body' => '',
    'callToAction' => '',
    'clickLinkUrl' => '',
    'clickTrackingUrl' => '',
    'headline' => '',
    'image' => [
        'height' => 0,
        'url' => '',
        'width' => 0
    ],
    'impressionTrackingUrl' => [
        
    ],
    'logo' => [
        'height' => 0,
        'url' => '',
        'width' => 0
    ],
    'price' => '',
    'starRating' => '',
    'videoURL' => ''
  ],
  'openAuctionStatus' => '',
  'productCategories' => [
    
  ],
  'restrictedCategories' => [
    
  ],
  'sensitiveCategories' => [
    
  ],
  'servingRestrictions' => [
    [
        'contexts' => [
                [
                                'auctionType' => [
                                                                
                                ],
                                'contextType' => '',
                                'geoCriteriaId' => [
                                                                
                                ],
                                'platform' => [
                                                                
                                ]
                ]
        ],
        'disapprovalReasons' => [
                [
                                'details' => [
                                                                
                                ],
                                'reason' => ''
                ]
        ],
        'reason' => ''
    ]
  ],
  'vendorType' => [
    
  ],
  'version' => 0,
  'videoURL' => '',
  'videoVastXML' => '',
  'width' => 0
]));
$request->setRequestUrl('{{baseUrl}}/creatives');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/creatives' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/creatives' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}'
import http.client

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

payload = "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}"

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

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

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

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

url = "{{baseUrl}}/creatives"

payload = {
    "HTMLSnippet": "",
    "accountId": 0,
    "adChoicesDestinationUrl": "",
    "adTechnologyProviders": {
        "detectedProviderIds": [],
        "hasUnidentifiedProvider": False
    },
    "advertiserId": [],
    "advertiserName": "",
    "agencyId": "",
    "apiUploadTimestamp": "",
    "attribute": [],
    "buyerCreativeId": "",
    "clickThroughUrl": [],
    "corrections": [
        {
            "contexts": [
                {
                    "auctionType": [],
                    "contextType": "",
                    "geoCriteriaId": [],
                    "platform": []
                }
            ],
            "details": [],
            "reason": ""
        }
    ],
    "creativeStatusIdentityType": "",
    "dealsStatus": "",
    "detectedDomains": [],
    "filteringReasons": {
        "date": "",
        "reasons": [
            {
                "filteringCount": "",
                "filteringStatus": 0
            }
        ]
    },
    "height": 0,
    "impressionTrackingUrl": [],
    "kind": "",
    "languages": [],
    "nativeAd": {
        "advertiser": "",
        "appIcon": {
            "height": 0,
            "url": "",
            "width": 0
        },
        "body": "",
        "callToAction": "",
        "clickLinkUrl": "",
        "clickTrackingUrl": "",
        "headline": "",
        "image": {
            "height": 0,
            "url": "",
            "width": 0
        },
        "impressionTrackingUrl": [],
        "logo": {
            "height": 0,
            "url": "",
            "width": 0
        },
        "price": "",
        "starRating": "",
        "videoURL": ""
    },
    "openAuctionStatus": "",
    "productCategories": [],
    "restrictedCategories": [],
    "sensitiveCategories": [],
    "servingRestrictions": [
        {
            "contexts": [
                {
                    "auctionType": [],
                    "contextType": "",
                    "geoCriteriaId": [],
                    "platform": []
                }
            ],
            "disapprovalReasons": [
                {
                    "details": [],
                    "reason": ""
                }
            ],
            "reason": ""
        }
    ],
    "vendorType": [],
    "version": 0,
    "videoURL": "",
    "videoVastXML": "",
    "width": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}"

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

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

response = conn.post('/baseUrl/creatives') do |req|
  req.body = "{\n  \"HTMLSnippet\": \"\",\n  \"accountId\": 0,\n  \"adChoicesDestinationUrl\": \"\",\n  \"adTechnologyProviders\": {\n    \"detectedProviderIds\": [],\n    \"hasUnidentifiedProvider\": false\n  },\n  \"advertiserId\": [],\n  \"advertiserName\": \"\",\n  \"agencyId\": \"\",\n  \"apiUploadTimestamp\": \"\",\n  \"attribute\": [],\n  \"buyerCreativeId\": \"\",\n  \"clickThroughUrl\": [],\n  \"corrections\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"details\": [],\n      \"reason\": \"\"\n    }\n  ],\n  \"creativeStatusIdentityType\": \"\",\n  \"dealsStatus\": \"\",\n  \"detectedDomains\": [],\n  \"filteringReasons\": {\n    \"date\": \"\",\n    \"reasons\": [\n      {\n        \"filteringCount\": \"\",\n        \"filteringStatus\": 0\n      }\n    ]\n  },\n  \"height\": 0,\n  \"impressionTrackingUrl\": [],\n  \"kind\": \"\",\n  \"languages\": [],\n  \"nativeAd\": {\n    \"advertiser\": \"\",\n    \"appIcon\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"body\": \"\",\n    \"callToAction\": \"\",\n    \"clickLinkUrl\": \"\",\n    \"clickTrackingUrl\": \"\",\n    \"headline\": \"\",\n    \"image\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"impressionTrackingUrl\": [],\n    \"logo\": {\n      \"height\": 0,\n      \"url\": \"\",\n      \"width\": 0\n    },\n    \"price\": \"\",\n    \"starRating\": \"\",\n    \"videoURL\": \"\"\n  },\n  \"openAuctionStatus\": \"\",\n  \"productCategories\": [],\n  \"restrictedCategories\": [],\n  \"sensitiveCategories\": [],\n  \"servingRestrictions\": [\n    {\n      \"contexts\": [\n        {\n          \"auctionType\": [],\n          \"contextType\": \"\",\n          \"geoCriteriaId\": [],\n          \"platform\": []\n        }\n      ],\n      \"disapprovalReasons\": [\n        {\n          \"details\": [],\n          \"reason\": \"\"\n        }\n      ],\n      \"reason\": \"\"\n    }\n  ],\n  \"vendorType\": [],\n  \"version\": 0,\n  \"videoURL\": \"\",\n  \"videoVastXML\": \"\",\n  \"width\": 0\n}"
end

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

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

    let payload = json!({
        "HTMLSnippet": "",
        "accountId": 0,
        "adChoicesDestinationUrl": "",
        "adTechnologyProviders": json!({
            "detectedProviderIds": (),
            "hasUnidentifiedProvider": false
        }),
        "advertiserId": (),
        "advertiserName": "",
        "agencyId": "",
        "apiUploadTimestamp": "",
        "attribute": (),
        "buyerCreativeId": "",
        "clickThroughUrl": (),
        "corrections": (
            json!({
                "contexts": (
                    json!({
                        "auctionType": (),
                        "contextType": "",
                        "geoCriteriaId": (),
                        "platform": ()
                    })
                ),
                "details": (),
                "reason": ""
            })
        ),
        "creativeStatusIdentityType": "",
        "dealsStatus": "",
        "detectedDomains": (),
        "filteringReasons": json!({
            "date": "",
            "reasons": (
                json!({
                    "filteringCount": "",
                    "filteringStatus": 0
                })
            )
        }),
        "height": 0,
        "impressionTrackingUrl": (),
        "kind": "",
        "languages": (),
        "nativeAd": json!({
            "advertiser": "",
            "appIcon": json!({
                "height": 0,
                "url": "",
                "width": 0
            }),
            "body": "",
            "callToAction": "",
            "clickLinkUrl": "",
            "clickTrackingUrl": "",
            "headline": "",
            "image": json!({
                "height": 0,
                "url": "",
                "width": 0
            }),
            "impressionTrackingUrl": (),
            "logo": json!({
                "height": 0,
                "url": "",
                "width": 0
            }),
            "price": "",
            "starRating": "",
            "videoURL": ""
        }),
        "openAuctionStatus": "",
        "productCategories": (),
        "restrictedCategories": (),
        "sensitiveCategories": (),
        "servingRestrictions": (
            json!({
                "contexts": (
                    json!({
                        "auctionType": (),
                        "contextType": "",
                        "geoCriteriaId": (),
                        "platform": ()
                    })
                ),
                "disapprovalReasons": (
                    json!({
                        "details": (),
                        "reason": ""
                    })
                ),
                "reason": ""
            })
        ),
        "vendorType": (),
        "version": 0,
        "videoURL": "",
        "videoVastXML": "",
        "width": 0
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/creatives \
  --header 'content-type: application/json' \
  --data '{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}'
echo '{
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": {
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  },
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "details": [],
      "reason": ""
    }
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": {
    "date": "",
    "reasons": [
      {
        "filteringCount": "",
        "filteringStatus": 0
      }
    ]
  },
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": {
    "advertiser": "",
    "appIcon": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "impressionTrackingUrl": [],
    "logo": {
      "height": 0,
      "url": "",
      "width": 0
    },
    "price": "",
    "starRating": "",
    "videoURL": ""
  },
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    {
      "contexts": [
        {
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        }
      ],
      "disapprovalReasons": [
        {
          "details": [],
          "reason": ""
        }
      ],
      "reason": ""
    }
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
}' |  \
  http POST {{baseUrl}}/creatives \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "HTMLSnippet": "",\n  "accountId": 0,\n  "adChoicesDestinationUrl": "",\n  "adTechnologyProviders": {\n    "detectedProviderIds": [],\n    "hasUnidentifiedProvider": false\n  },\n  "advertiserId": [],\n  "advertiserName": "",\n  "agencyId": "",\n  "apiUploadTimestamp": "",\n  "attribute": [],\n  "buyerCreativeId": "",\n  "clickThroughUrl": [],\n  "corrections": [\n    {\n      "contexts": [\n        {\n          "auctionType": [],\n          "contextType": "",\n          "geoCriteriaId": [],\n          "platform": []\n        }\n      ],\n      "details": [],\n      "reason": ""\n    }\n  ],\n  "creativeStatusIdentityType": "",\n  "dealsStatus": "",\n  "detectedDomains": [],\n  "filteringReasons": {\n    "date": "",\n    "reasons": [\n      {\n        "filteringCount": "",\n        "filteringStatus": 0\n      }\n    ]\n  },\n  "height": 0,\n  "impressionTrackingUrl": [],\n  "kind": "",\n  "languages": [],\n  "nativeAd": {\n    "advertiser": "",\n    "appIcon": {\n      "height": 0,\n      "url": "",\n      "width": 0\n    },\n    "body": "",\n    "callToAction": "",\n    "clickLinkUrl": "",\n    "clickTrackingUrl": "",\n    "headline": "",\n    "image": {\n      "height": 0,\n      "url": "",\n      "width": 0\n    },\n    "impressionTrackingUrl": [],\n    "logo": {\n      "height": 0,\n      "url": "",\n      "width": 0\n    },\n    "price": "",\n    "starRating": "",\n    "videoURL": ""\n  },\n  "openAuctionStatus": "",\n  "productCategories": [],\n  "restrictedCategories": [],\n  "sensitiveCategories": [],\n  "servingRestrictions": [\n    {\n      "contexts": [\n        {\n          "auctionType": [],\n          "contextType": "",\n          "geoCriteriaId": [],\n          "platform": []\n        }\n      ],\n      "disapprovalReasons": [\n        {\n          "details": [],\n          "reason": ""\n        }\n      ],\n      "reason": ""\n    }\n  ],\n  "vendorType": [],\n  "version": 0,\n  "videoURL": "",\n  "videoVastXML": "",\n  "width": 0\n}' \
  --output-document \
  - {{baseUrl}}/creatives
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "HTMLSnippet": "",
  "accountId": 0,
  "adChoicesDestinationUrl": "",
  "adTechnologyProviders": [
    "detectedProviderIds": [],
    "hasUnidentifiedProvider": false
  ],
  "advertiserId": [],
  "advertiserName": "",
  "agencyId": "",
  "apiUploadTimestamp": "",
  "attribute": [],
  "buyerCreativeId": "",
  "clickThroughUrl": [],
  "corrections": [
    [
      "contexts": [
        [
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        ]
      ],
      "details": [],
      "reason": ""
    ]
  ],
  "creativeStatusIdentityType": "",
  "dealsStatus": "",
  "detectedDomains": [],
  "filteringReasons": [
    "date": "",
    "reasons": [
      [
        "filteringCount": "",
        "filteringStatus": 0
      ]
    ]
  ],
  "height": 0,
  "impressionTrackingUrl": [],
  "kind": "",
  "languages": [],
  "nativeAd": [
    "advertiser": "",
    "appIcon": [
      "height": 0,
      "url": "",
      "width": 0
    ],
    "body": "",
    "callToAction": "",
    "clickLinkUrl": "",
    "clickTrackingUrl": "",
    "headline": "",
    "image": [
      "height": 0,
      "url": "",
      "width": 0
    ],
    "impressionTrackingUrl": [],
    "logo": [
      "height": 0,
      "url": "",
      "width": 0
    ],
    "price": "",
    "starRating": "",
    "videoURL": ""
  ],
  "openAuctionStatus": "",
  "productCategories": [],
  "restrictedCategories": [],
  "sensitiveCategories": [],
  "servingRestrictions": [
    [
      "contexts": [
        [
          "auctionType": [],
          "contextType": "",
          "geoCriteriaId": [],
          "platform": []
        ]
      ],
      "disapprovalReasons": [
        [
          "details": [],
          "reason": ""
        ]
      ],
      "reason": ""
    ]
  ],
  "vendorType": [],
  "version": 0,
  "videoURL": "",
  "videoVastXML": "",
  "width": 0
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/creatives")! 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()
GET adexchangebuyer.creatives.list
{{baseUrl}}/creatives
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/creatives");

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

(client/get "{{baseUrl}}/creatives")
require "http/client"

url = "{{baseUrl}}/creatives"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/creatives"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/creatives");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

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

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

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

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

}
GET /baseUrl/creatives HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/creatives")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/creatives"))
    .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}}/creatives")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/creatives")
  .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}}/creatives');

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

const options = {method: 'GET', url: '{{baseUrl}}/creatives'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/creatives';
const options = {method: 'GET'};

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}}/creatives',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/creatives")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/creatives',
  headers: {}
};

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}}/creatives'};

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

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

const req = unirest('GET', '{{baseUrl}}/creatives');

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}}/creatives'};

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

const url = '{{baseUrl}}/creatives';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/creatives"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/creatives" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/creatives",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/creatives');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/creatives');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/creatives' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/creatives' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/creatives")

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

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

url = "{{baseUrl}}/creatives"

response = requests.get(url)

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

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

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

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

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

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/creatives') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/creatives
http GET {{baseUrl}}/creatives
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/creatives
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/creatives")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.creatives.listDeals
{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals
QUERY PARAMS

accountId
buyerCreativeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals");

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

(client/get "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals")
require "http/client"

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"

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

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

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

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

}
GET /baseUrl/creatives/:accountId/:buyerCreativeId/listDeals HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"))
    .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}}/creatives/:accountId/:buyerCreativeId/listDeals")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals")
  .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}}/creatives/:accountId/:buyerCreativeId/listDeals');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals';
const options = {method: 'GET'};

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}}/creatives/:accountId/:buyerCreativeId/listDeals',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/creatives/:accountId/:buyerCreativeId/listDeals',
  headers: {}
};

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}}/creatives/:accountId/:buyerCreativeId/listDeals'
};

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

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

const req = unirest('GET', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals');

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}}/creatives/:accountId/:buyerCreativeId/listDeals'
};

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

const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/creatives/:accountId/:buyerCreativeId/listDeals" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals');

echo $response->getBody();
setUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/creatives/:accountId/:buyerCreativeId/listDeals")

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

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

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"

response = requests.get(url)

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

url <- "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals"

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

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

url = URI("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/creatives/:accountId/:buyerCreativeId/listDeals') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals
http GET {{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/listDeals")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.creatives.removeDeal
{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId
QUERY PARAMS

accountId
buyerCreativeId
dealId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId");

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

(client/post "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")
require "http/client"

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"

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

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

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

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

}
POST /baseUrl/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"))
    .method("POST", 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}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")
  .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('POST', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId';
const options = {method: 'POST'};

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}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId',
  headers: {}
};

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: 'POST',
  url: '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId'
};

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

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

const req = unirest('POST', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId');

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}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId'
};

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

const url = '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId');

echo $response->getBody();
setUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")

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

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

url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"

response = requests.post(url)

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

url <- "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId"

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

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

url = URI("{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")

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

request = Net::HTTP::Post.new(url)

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

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

response = conn.post('/baseUrl/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId";

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId
http POST {{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/creatives/:accountId/:buyerCreativeId/removeDeal/:dealId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 adexchangebuyer.marketplacedeals.delete
{{baseUrl}}/proposals/:proposalId/deals/delete
QUERY PARAMS

proposalId
BODY json

{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/deals/delete");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");

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

(client/post "{{baseUrl}}/proposals/:proposalId/deals/delete" {:content-type :json
                                                                               :form-params {:dealIds []
                                                                                             :proposalRevisionNumber ""
                                                                                             :updateAction ""}})
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/deals/delete"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/delete"),
    Content = new StringContent("{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/deals/delete"

	payload := strings.NewReader("{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/proposals/:proposalId/deals/delete HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 73

{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/proposals/:proposalId/deals/delete")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/deals/delete"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals/delete")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/proposals/:proposalId/deals/delete")
  .header("content-type", "application/json")
  .body("{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  dealIds: [],
  proposalRevisionNumber: '',
  updateAction: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/proposals/:proposalId/deals/delete');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/deals/delete',
  headers: {'content-type': 'application/json'},
  data: {dealIds: [], proposalRevisionNumber: '', updateAction: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/deals/delete';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"dealIds":[],"proposalRevisionNumber":"","updateAction":""}'
};

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}}/proposals/:proposalId/deals/delete',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "dealIds": [],\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals/delete")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({dealIds: [], proposalRevisionNumber: '', updateAction: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/deals/delete',
  headers: {'content-type': 'application/json'},
  body: {dealIds: [], proposalRevisionNumber: '', updateAction: ''},
  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}}/proposals/:proposalId/deals/delete');

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

req.type('json');
req.send({
  dealIds: [],
  proposalRevisionNumber: '',
  updateAction: ''
});

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}}/proposals/:proposalId/deals/delete',
  headers: {'content-type': 'application/json'},
  data: {dealIds: [], proposalRevisionNumber: '', updateAction: ''}
};

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

const url = '{{baseUrl}}/proposals/:proposalId/deals/delete';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"dealIds":[],"proposalRevisionNumber":"","updateAction":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"dealIds": @[  ],
                              @"proposalRevisionNumber": @"",
                              @"updateAction": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/deals/delete"]
                                                       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}}/proposals/:proposalId/deals/delete" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/deals/delete",
  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([
    'dealIds' => [
        
    ],
    'proposalRevisionNumber' => '',
    'updateAction' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/proposals/:proposalId/deals/delete', [
  'body' => '{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/deals/delete');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'dealIds' => [
    
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'dealIds' => [
    
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));
$request->setRequestUrl('{{baseUrl}}/proposals/:proposalId/deals/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/deals/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/deals/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
import http.client

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

payload = "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"

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

conn.request("POST", "/baseUrl/proposals/:proposalId/deals/delete", payload, headers)

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

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

url = "{{baseUrl}}/proposals/:proposalId/deals/delete"

payload = {
    "dealIds": [],
    "proposalRevisionNumber": "",
    "updateAction": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/proposals/:proposalId/deals/delete"

payload <- "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/delete")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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/proposals/:proposalId/deals/delete') do |req|
  req.body = "{\n  \"dealIds\": [],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"
end

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

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

    let payload = json!({
        "dealIds": (),
        "proposalRevisionNumber": "",
        "updateAction": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/proposals/:proposalId/deals/delete \
  --header 'content-type: application/json' \
  --data '{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
echo '{
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
}' |  \
  http POST {{baseUrl}}/proposals/:proposalId/deals/delete \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "dealIds": [],\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}' \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/deals/delete
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "dealIds": [],
  "proposalRevisionNumber": "",
  "updateAction": ""
] as [String : Any]

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

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

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

dataTask.resume()
POST adexchangebuyer.marketplacedeals.insert
{{baseUrl}}/proposals/:proposalId/deals/insert
QUERY PARAMS

proposalId
BODY json

{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/deals/insert");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");

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

(client/post "{{baseUrl}}/proposals/:proposalId/deals/insert" {:content-type :json
                                                                               :form-params {:deals [{:buyerPrivateData {:referenceId ""
                                                                                                                         :referencePayload ""}
                                                                                                      :creationTimeMs ""
                                                                                                      :creativePreApprovalPolicy ""
                                                                                                      :creativeSafeFrameCompatibility ""
                                                                                                      :dealId ""
                                                                                                      :dealServingMetadata {:alcoholAdsAllowed false
                                                                                                                            :dealPauseStatus {:buyerPauseReason ""
                                                                                                                                              :firstPausedBy ""
                                                                                                                                              :hasBuyerPaused false
                                                                                                                                              :hasSellerPaused false
                                                                                                                                              :sellerPauseReason ""}}
                                                                                                      :deliveryControl {:creativeBlockingLevel ""
                                                                                                                        :deliveryRateType ""
                                                                                                                        :frequencyCaps [{:maxImpressions 0
                                                                                                                                         :numTimeUnits 0
                                                                                                                                         :timeUnitType ""}]}
                                                                                                      :externalDealId ""
                                                                                                      :flightEndTimeMs ""
                                                                                                      :flightStartTimeMs ""
                                                                                                      :inventoryDescription ""
                                                                                                      :isRfpTemplate false
                                                                                                      :isSetupComplete false
                                                                                                      :kind ""
                                                                                                      :lastUpdateTimeMs ""
                                                                                                      :makegoodRequestedReason ""
                                                                                                      :name ""
                                                                                                      :productId ""
                                                                                                      :productRevisionNumber ""
                                                                                                      :programmaticCreativeSource ""
                                                                                                      :proposalId ""
                                                                                                      :sellerContacts [{:email ""
                                                                                                                        :name ""}]
                                                                                                      :sharedTargetings [{:exclusions [{:creativeSizeValue {:allowedFormats []
                                                                                                                                                            :companionSizes [{:height 0
                                                                                                                                                                              :width 0}]
                                                                                                                                                            :creativeSizeType ""
                                                                                                                                                            :nativeTemplate ""
                                                                                                                                                            :size {}
                                                                                                                                                            :skippableAdType ""}
                                                                                                                                        :dayPartTargetingValue {:dayParts [{:dayOfWeek ""
                                                                                                                                                                            :endHour 0
                                                                                                                                                                            :endMinute 0
                                                                                                                                                                            :startHour 0
                                                                                                                                                                            :startMinute 0}]
                                                                                                                                                                :timeZoneType ""}
                                                                                                                                        :demogAgeCriteriaValue {:demogAgeCriteriaIds []}
                                                                                                                                        :demogGenderCriteriaValue {:demogGenderCriteriaIds []}
                                                                                                                                        :longValue ""
                                                                                                                                        :requestPlatformTargetingValue {:requestPlatforms []}
                                                                                                                                        :stringValue ""}]
                                                                                                                          :inclusions [{}]
                                                                                                                          :key ""}]
                                                                                                      :syndicationProduct ""
                                                                                                      :terms {:brandingType ""
                                                                                                              :crossListedExternalDealIdType ""
                                                                                                              :description ""
                                                                                                              :estimatedGrossSpend {:amountMicros ""
                                                                                                                                    :currencyCode ""
                                                                                                                                    :expectedCpmMicros ""
                                                                                                                                    :pricingType ""}
                                                                                                              :estimatedImpressionsPerDay ""
                                                                                                              :guaranteedFixedPriceTerms {:billingInfo {:currencyConversionTimeMs ""
                                                                                                                                                        :dfpLineItemId ""
                                                                                                                                                        :originalContractedQuantity ""
                                                                                                                                                        :price {}}
                                                                                                                                          :fixedPrices [{:auctionTier ""
                                                                                                                                                         :billedBuyer {:accountId ""}
                                                                                                                                                         :buyer {}
                                                                                                                                                         :price {}}]
                                                                                                                                          :guaranteedImpressions ""
                                                                                                                                          :guaranteedLooks ""
                                                                                                                                          :minimumDailyLooks ""}
                                                                                                              :nonGuaranteedAuctionTerms {:autoOptimizePrivateAuction false
                                                                                                                                          :reservePricePerBuyers [{}]}
                                                                                                              :nonGuaranteedFixedPriceTerms {:fixedPrices [{}]}
                                                                                                              :rubiconNonGuaranteedTerms {:priorityPrice {}
                                                                                                                                          :standardPrice {}}
                                                                                                              :sellerTimeZone ""}
                                                                                                      :webPropertyCode ""}]
                                                                                             :proposalRevisionNumber ""
                                                                                             :updateAction ""}})
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/deals/insert"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/insert"),
    Content = new StringContent("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/insert");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/deals/insert"

	payload := strings.NewReader("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/proposals/:proposalId/deals/insert HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4075

{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/proposals/:proposalId/deals/insert")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/deals/insert"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals/insert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/proposals/:proposalId/deals/insert")
  .header("content-type", "application/json")
  .body("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  deals: [
    {
      buyerPrivateData: {
        referenceId: '',
        referencePayload: ''
      },
      creationTimeMs: '',
      creativePreApprovalPolicy: '',
      creativeSafeFrameCompatibility: '',
      dealId: '',
      dealServingMetadata: {
        alcoholAdsAllowed: false,
        dealPauseStatus: {
          buyerPauseReason: '',
          firstPausedBy: '',
          hasBuyerPaused: false,
          hasSellerPaused: false,
          sellerPauseReason: ''
        }
      },
      deliveryControl: {
        creativeBlockingLevel: '',
        deliveryRateType: '',
        frequencyCaps: [
          {
            maxImpressions: 0,
            numTimeUnits: 0,
            timeUnitType: ''
          }
        ]
      },
      externalDealId: '',
      flightEndTimeMs: '',
      flightStartTimeMs: '',
      inventoryDescription: '',
      isRfpTemplate: false,
      isSetupComplete: false,
      kind: '',
      lastUpdateTimeMs: '',
      makegoodRequestedReason: '',
      name: '',
      productId: '',
      productRevisionNumber: '',
      programmaticCreativeSource: '',
      proposalId: '',
      sellerContacts: [
        {
          email: '',
          name: ''
        }
      ],
      sharedTargetings: [
        {
          exclusions: [
            {
              creativeSizeValue: {
                allowedFormats: [],
                companionSizes: [
                  {
                    height: 0,
                    width: 0
                  }
                ],
                creativeSizeType: '',
                nativeTemplate: '',
                size: {},
                skippableAdType: ''
              },
              dayPartTargetingValue: {
                dayParts: [
                  {
                    dayOfWeek: '',
                    endHour: 0,
                    endMinute: 0,
                    startHour: 0,
                    startMinute: 0
                  }
                ],
                timeZoneType: ''
              },
              demogAgeCriteriaValue: {
                demogAgeCriteriaIds: []
              },
              demogGenderCriteriaValue: {
                demogGenderCriteriaIds: []
              },
              longValue: '',
              requestPlatformTargetingValue: {
                requestPlatforms: []
              },
              stringValue: ''
            }
          ],
          inclusions: [
            {}
          ],
          key: ''
        }
      ],
      syndicationProduct: '',
      terms: {
        brandingType: '',
        crossListedExternalDealIdType: '',
        description: '',
        estimatedGrossSpend: {
          amountMicros: '',
          currencyCode: '',
          expectedCpmMicros: '',
          pricingType: ''
        },
        estimatedImpressionsPerDay: '',
        guaranteedFixedPriceTerms: {
          billingInfo: {
            currencyConversionTimeMs: '',
            dfpLineItemId: '',
            originalContractedQuantity: '',
            price: {}
          },
          fixedPrices: [
            {
              auctionTier: '',
              billedBuyer: {
                accountId: ''
              },
              buyer: {},
              price: {}
            }
          ],
          guaranteedImpressions: '',
          guaranteedLooks: '',
          minimumDailyLooks: ''
        },
        nonGuaranteedAuctionTerms: {
          autoOptimizePrivateAuction: false,
          reservePricePerBuyers: [
            {}
          ]
        },
        nonGuaranteedFixedPriceTerms: {
          fixedPrices: [
            {}
          ]
        },
        rubiconNonGuaranteedTerms: {
          priorityPrice: {},
          standardPrice: {}
        },
        sellerTimeZone: ''
      },
      webPropertyCode: ''
    }
  ],
  proposalRevisionNumber: '',
  updateAction: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/proposals/:proposalId/deals/insert');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/deals/insert',
  headers: {'content-type': 'application/json'},
  data: {
    deals: [
      {
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        creationTimeMs: '',
        creativePreApprovalPolicy: '',
        creativeSafeFrameCompatibility: '',
        dealId: '',
        dealServingMetadata: {
          alcoholAdsAllowed: false,
          dealPauseStatus: {
            buyerPauseReason: '',
            firstPausedBy: '',
            hasBuyerPaused: false,
            hasSellerPaused: false,
            sellerPauseReason: ''
          }
        },
        deliveryControl: {
          creativeBlockingLevel: '',
          deliveryRateType: '',
          frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
        },
        externalDealId: '',
        flightEndTimeMs: '',
        flightStartTimeMs: '',
        inventoryDescription: '',
        isRfpTemplate: false,
        isSetupComplete: false,
        kind: '',
        lastUpdateTimeMs: '',
        makegoodRequestedReason: '',
        name: '',
        productId: '',
        productRevisionNumber: '',
        programmaticCreativeSource: '',
        proposalId: '',
        sellerContacts: [{email: '', name: ''}],
        sharedTargetings: [
          {
            exclusions: [
              {
                creativeSizeValue: {
                  allowedFormats: [],
                  companionSizes: [{height: 0, width: 0}],
                  creativeSizeType: '',
                  nativeTemplate: '',
                  size: {},
                  skippableAdType: ''
                },
                dayPartTargetingValue: {
                  dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                  timeZoneType: ''
                },
                demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
                demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
                longValue: '',
                requestPlatformTargetingValue: {requestPlatforms: []},
                stringValue: ''
              }
            ],
            inclusions: [{}],
            key: ''
          }
        ],
        syndicationProduct: '',
        terms: {
          brandingType: '',
          crossListedExternalDealIdType: '',
          description: '',
          estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
          estimatedImpressionsPerDay: '',
          guaranteedFixedPriceTerms: {
            billingInfo: {
              currencyConversionTimeMs: '',
              dfpLineItemId: '',
              originalContractedQuantity: '',
              price: {}
            },
            fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
            guaranteedImpressions: '',
            guaranteedLooks: '',
            minimumDailyLooks: ''
          },
          nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
          nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
          rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
          sellerTimeZone: ''
        },
        webPropertyCode: ''
      }
    ],
    proposalRevisionNumber: '',
    updateAction: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/deals/insert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"deals":[{"buyerPrivateData":{"referenceId":"","referencePayload":""},"creationTimeMs":"","creativePreApprovalPolicy":"","creativeSafeFrameCompatibility":"","dealId":"","dealServingMetadata":{"alcoholAdsAllowed":false,"dealPauseStatus":{"buyerPauseReason":"","firstPausedBy":"","hasBuyerPaused":false,"hasSellerPaused":false,"sellerPauseReason":""}},"deliveryControl":{"creativeBlockingLevel":"","deliveryRateType":"","frequencyCaps":[{"maxImpressions":0,"numTimeUnits":0,"timeUnitType":""}]},"externalDealId":"","flightEndTimeMs":"","flightStartTimeMs":"","inventoryDescription":"","isRfpTemplate":false,"isSetupComplete":false,"kind":"","lastUpdateTimeMs":"","makegoodRequestedReason":"","name":"","productId":"","productRevisionNumber":"","programmaticCreativeSource":"","proposalId":"","sellerContacts":[{"email":"","name":""}],"sharedTargetings":[{"exclusions":[{"creativeSizeValue":{"allowedFormats":[],"companionSizes":[{"height":0,"width":0}],"creativeSizeType":"","nativeTemplate":"","size":{},"skippableAdType":""},"dayPartTargetingValue":{"dayParts":[{"dayOfWeek":"","endHour":0,"endMinute":0,"startHour":0,"startMinute":0}],"timeZoneType":""},"demogAgeCriteriaValue":{"demogAgeCriteriaIds":[]},"demogGenderCriteriaValue":{"demogGenderCriteriaIds":[]},"longValue":"","requestPlatformTargetingValue":{"requestPlatforms":[]},"stringValue":""}],"inclusions":[{}],"key":""}],"syndicationProduct":"","terms":{"brandingType":"","crossListedExternalDealIdType":"","description":"","estimatedGrossSpend":{"amountMicros":"","currencyCode":"","expectedCpmMicros":"","pricingType":""},"estimatedImpressionsPerDay":"","guaranteedFixedPriceTerms":{"billingInfo":{"currencyConversionTimeMs":"","dfpLineItemId":"","originalContractedQuantity":"","price":{}},"fixedPrices":[{"auctionTier":"","billedBuyer":{"accountId":""},"buyer":{},"price":{}}],"guaranteedImpressions":"","guaranteedLooks":"","minimumDailyLooks":""},"nonGuaranteedAuctionTerms":{"autoOptimizePrivateAuction":false,"reservePricePerBuyers":[{}]},"nonGuaranteedFixedPriceTerms":{"fixedPrices":[{}]},"rubiconNonGuaranteedTerms":{"priorityPrice":{},"standardPrice":{}},"sellerTimeZone":""},"webPropertyCode":""}],"proposalRevisionNumber":"","updateAction":""}'
};

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}}/proposals/:proposalId/deals/insert',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "deals": [\n    {\n      "buyerPrivateData": {\n        "referenceId": "",\n        "referencePayload": ""\n      },\n      "creationTimeMs": "",\n      "creativePreApprovalPolicy": "",\n      "creativeSafeFrameCompatibility": "",\n      "dealId": "",\n      "dealServingMetadata": {\n        "alcoholAdsAllowed": false,\n        "dealPauseStatus": {\n          "buyerPauseReason": "",\n          "firstPausedBy": "",\n          "hasBuyerPaused": false,\n          "hasSellerPaused": false,\n          "sellerPauseReason": ""\n        }\n      },\n      "deliveryControl": {\n        "creativeBlockingLevel": "",\n        "deliveryRateType": "",\n        "frequencyCaps": [\n          {\n            "maxImpressions": 0,\n            "numTimeUnits": 0,\n            "timeUnitType": ""\n          }\n        ]\n      },\n      "externalDealId": "",\n      "flightEndTimeMs": "",\n      "flightStartTimeMs": "",\n      "inventoryDescription": "",\n      "isRfpTemplate": false,\n      "isSetupComplete": false,\n      "kind": "",\n      "lastUpdateTimeMs": "",\n      "makegoodRequestedReason": "",\n      "name": "",\n      "productId": "",\n      "productRevisionNumber": "",\n      "programmaticCreativeSource": "",\n      "proposalId": "",\n      "sellerContacts": [\n        {\n          "email": "",\n          "name": ""\n        }\n      ],\n      "sharedTargetings": [\n        {\n          "exclusions": [\n            {\n              "creativeSizeValue": {\n                "allowedFormats": [],\n                "companionSizes": [\n                  {\n                    "height": 0,\n                    "width": 0\n                  }\n                ],\n                "creativeSizeType": "",\n                "nativeTemplate": "",\n                "size": {},\n                "skippableAdType": ""\n              },\n              "dayPartTargetingValue": {\n                "dayParts": [\n                  {\n                    "dayOfWeek": "",\n                    "endHour": 0,\n                    "endMinute": 0,\n                    "startHour": 0,\n                    "startMinute": 0\n                  }\n                ],\n                "timeZoneType": ""\n              },\n              "demogAgeCriteriaValue": {\n                "demogAgeCriteriaIds": []\n              },\n              "demogGenderCriteriaValue": {\n                "demogGenderCriteriaIds": []\n              },\n              "longValue": "",\n              "requestPlatformTargetingValue": {\n                "requestPlatforms": []\n              },\n              "stringValue": ""\n            }\n          ],\n          "inclusions": [\n            {}\n          ],\n          "key": ""\n        }\n      ],\n      "syndicationProduct": "",\n      "terms": {\n        "brandingType": "",\n        "crossListedExternalDealIdType": "",\n        "description": "",\n        "estimatedGrossSpend": {\n          "amountMicros": "",\n          "currencyCode": "",\n          "expectedCpmMicros": "",\n          "pricingType": ""\n        },\n        "estimatedImpressionsPerDay": "",\n        "guaranteedFixedPriceTerms": {\n          "billingInfo": {\n            "currencyConversionTimeMs": "",\n            "dfpLineItemId": "",\n            "originalContractedQuantity": "",\n            "price": {}\n          },\n          "fixedPrices": [\n            {\n              "auctionTier": "",\n              "billedBuyer": {\n                "accountId": ""\n              },\n              "buyer": {},\n              "price": {}\n            }\n          ],\n          "guaranteedImpressions": "",\n          "guaranteedLooks": "",\n          "minimumDailyLooks": ""\n        },\n        "nonGuaranteedAuctionTerms": {\n          "autoOptimizePrivateAuction": false,\n          "reservePricePerBuyers": [\n            {}\n          ]\n        },\n        "nonGuaranteedFixedPriceTerms": {\n          "fixedPrices": [\n            {}\n          ]\n        },\n        "rubiconNonGuaranteedTerms": {\n          "priorityPrice": {},\n          "standardPrice": {}\n        },\n        "sellerTimeZone": ""\n      },\n      "webPropertyCode": ""\n    }\n  ],\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals/insert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  deals: [
    {
      buyerPrivateData: {referenceId: '', referencePayload: ''},
      creationTimeMs: '',
      creativePreApprovalPolicy: '',
      creativeSafeFrameCompatibility: '',
      dealId: '',
      dealServingMetadata: {
        alcoholAdsAllowed: false,
        dealPauseStatus: {
          buyerPauseReason: '',
          firstPausedBy: '',
          hasBuyerPaused: false,
          hasSellerPaused: false,
          sellerPauseReason: ''
        }
      },
      deliveryControl: {
        creativeBlockingLevel: '',
        deliveryRateType: '',
        frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
      },
      externalDealId: '',
      flightEndTimeMs: '',
      flightStartTimeMs: '',
      inventoryDescription: '',
      isRfpTemplate: false,
      isSetupComplete: false,
      kind: '',
      lastUpdateTimeMs: '',
      makegoodRequestedReason: '',
      name: '',
      productId: '',
      productRevisionNumber: '',
      programmaticCreativeSource: '',
      proposalId: '',
      sellerContacts: [{email: '', name: ''}],
      sharedTargetings: [
        {
          exclusions: [
            {
              creativeSizeValue: {
                allowedFormats: [],
                companionSizes: [{height: 0, width: 0}],
                creativeSizeType: '',
                nativeTemplate: '',
                size: {},
                skippableAdType: ''
              },
              dayPartTargetingValue: {
                dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                timeZoneType: ''
              },
              demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
              demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
              longValue: '',
              requestPlatformTargetingValue: {requestPlatforms: []},
              stringValue: ''
            }
          ],
          inclusions: [{}],
          key: ''
        }
      ],
      syndicationProduct: '',
      terms: {
        brandingType: '',
        crossListedExternalDealIdType: '',
        description: '',
        estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
        estimatedImpressionsPerDay: '',
        guaranteedFixedPriceTerms: {
          billingInfo: {
            currencyConversionTimeMs: '',
            dfpLineItemId: '',
            originalContractedQuantity: '',
            price: {}
          },
          fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
          guaranteedImpressions: '',
          guaranteedLooks: '',
          minimumDailyLooks: ''
        },
        nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
        nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
        rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
        sellerTimeZone: ''
      },
      webPropertyCode: ''
    }
  ],
  proposalRevisionNumber: '',
  updateAction: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/deals/insert',
  headers: {'content-type': 'application/json'},
  body: {
    deals: [
      {
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        creationTimeMs: '',
        creativePreApprovalPolicy: '',
        creativeSafeFrameCompatibility: '',
        dealId: '',
        dealServingMetadata: {
          alcoholAdsAllowed: false,
          dealPauseStatus: {
            buyerPauseReason: '',
            firstPausedBy: '',
            hasBuyerPaused: false,
            hasSellerPaused: false,
            sellerPauseReason: ''
          }
        },
        deliveryControl: {
          creativeBlockingLevel: '',
          deliveryRateType: '',
          frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
        },
        externalDealId: '',
        flightEndTimeMs: '',
        flightStartTimeMs: '',
        inventoryDescription: '',
        isRfpTemplate: false,
        isSetupComplete: false,
        kind: '',
        lastUpdateTimeMs: '',
        makegoodRequestedReason: '',
        name: '',
        productId: '',
        productRevisionNumber: '',
        programmaticCreativeSource: '',
        proposalId: '',
        sellerContacts: [{email: '', name: ''}],
        sharedTargetings: [
          {
            exclusions: [
              {
                creativeSizeValue: {
                  allowedFormats: [],
                  companionSizes: [{height: 0, width: 0}],
                  creativeSizeType: '',
                  nativeTemplate: '',
                  size: {},
                  skippableAdType: ''
                },
                dayPartTargetingValue: {
                  dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                  timeZoneType: ''
                },
                demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
                demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
                longValue: '',
                requestPlatformTargetingValue: {requestPlatforms: []},
                stringValue: ''
              }
            ],
            inclusions: [{}],
            key: ''
          }
        ],
        syndicationProduct: '',
        terms: {
          brandingType: '',
          crossListedExternalDealIdType: '',
          description: '',
          estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
          estimatedImpressionsPerDay: '',
          guaranteedFixedPriceTerms: {
            billingInfo: {
              currencyConversionTimeMs: '',
              dfpLineItemId: '',
              originalContractedQuantity: '',
              price: {}
            },
            fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
            guaranteedImpressions: '',
            guaranteedLooks: '',
            minimumDailyLooks: ''
          },
          nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
          nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
          rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
          sellerTimeZone: ''
        },
        webPropertyCode: ''
      }
    ],
    proposalRevisionNumber: '',
    updateAction: ''
  },
  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}}/proposals/:proposalId/deals/insert');

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

req.type('json');
req.send({
  deals: [
    {
      buyerPrivateData: {
        referenceId: '',
        referencePayload: ''
      },
      creationTimeMs: '',
      creativePreApprovalPolicy: '',
      creativeSafeFrameCompatibility: '',
      dealId: '',
      dealServingMetadata: {
        alcoholAdsAllowed: false,
        dealPauseStatus: {
          buyerPauseReason: '',
          firstPausedBy: '',
          hasBuyerPaused: false,
          hasSellerPaused: false,
          sellerPauseReason: ''
        }
      },
      deliveryControl: {
        creativeBlockingLevel: '',
        deliveryRateType: '',
        frequencyCaps: [
          {
            maxImpressions: 0,
            numTimeUnits: 0,
            timeUnitType: ''
          }
        ]
      },
      externalDealId: '',
      flightEndTimeMs: '',
      flightStartTimeMs: '',
      inventoryDescription: '',
      isRfpTemplate: false,
      isSetupComplete: false,
      kind: '',
      lastUpdateTimeMs: '',
      makegoodRequestedReason: '',
      name: '',
      productId: '',
      productRevisionNumber: '',
      programmaticCreativeSource: '',
      proposalId: '',
      sellerContacts: [
        {
          email: '',
          name: ''
        }
      ],
      sharedTargetings: [
        {
          exclusions: [
            {
              creativeSizeValue: {
                allowedFormats: [],
                companionSizes: [
                  {
                    height: 0,
                    width: 0
                  }
                ],
                creativeSizeType: '',
                nativeTemplate: '',
                size: {},
                skippableAdType: ''
              },
              dayPartTargetingValue: {
                dayParts: [
                  {
                    dayOfWeek: '',
                    endHour: 0,
                    endMinute: 0,
                    startHour: 0,
                    startMinute: 0
                  }
                ],
                timeZoneType: ''
              },
              demogAgeCriteriaValue: {
                demogAgeCriteriaIds: []
              },
              demogGenderCriteriaValue: {
                demogGenderCriteriaIds: []
              },
              longValue: '',
              requestPlatformTargetingValue: {
                requestPlatforms: []
              },
              stringValue: ''
            }
          ],
          inclusions: [
            {}
          ],
          key: ''
        }
      ],
      syndicationProduct: '',
      terms: {
        brandingType: '',
        crossListedExternalDealIdType: '',
        description: '',
        estimatedGrossSpend: {
          amountMicros: '',
          currencyCode: '',
          expectedCpmMicros: '',
          pricingType: ''
        },
        estimatedImpressionsPerDay: '',
        guaranteedFixedPriceTerms: {
          billingInfo: {
            currencyConversionTimeMs: '',
            dfpLineItemId: '',
            originalContractedQuantity: '',
            price: {}
          },
          fixedPrices: [
            {
              auctionTier: '',
              billedBuyer: {
                accountId: ''
              },
              buyer: {},
              price: {}
            }
          ],
          guaranteedImpressions: '',
          guaranteedLooks: '',
          minimumDailyLooks: ''
        },
        nonGuaranteedAuctionTerms: {
          autoOptimizePrivateAuction: false,
          reservePricePerBuyers: [
            {}
          ]
        },
        nonGuaranteedFixedPriceTerms: {
          fixedPrices: [
            {}
          ]
        },
        rubiconNonGuaranteedTerms: {
          priorityPrice: {},
          standardPrice: {}
        },
        sellerTimeZone: ''
      },
      webPropertyCode: ''
    }
  ],
  proposalRevisionNumber: '',
  updateAction: ''
});

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}}/proposals/:proposalId/deals/insert',
  headers: {'content-type': 'application/json'},
  data: {
    deals: [
      {
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        creationTimeMs: '',
        creativePreApprovalPolicy: '',
        creativeSafeFrameCompatibility: '',
        dealId: '',
        dealServingMetadata: {
          alcoholAdsAllowed: false,
          dealPauseStatus: {
            buyerPauseReason: '',
            firstPausedBy: '',
            hasBuyerPaused: false,
            hasSellerPaused: false,
            sellerPauseReason: ''
          }
        },
        deliveryControl: {
          creativeBlockingLevel: '',
          deliveryRateType: '',
          frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
        },
        externalDealId: '',
        flightEndTimeMs: '',
        flightStartTimeMs: '',
        inventoryDescription: '',
        isRfpTemplate: false,
        isSetupComplete: false,
        kind: '',
        lastUpdateTimeMs: '',
        makegoodRequestedReason: '',
        name: '',
        productId: '',
        productRevisionNumber: '',
        programmaticCreativeSource: '',
        proposalId: '',
        sellerContacts: [{email: '', name: ''}],
        sharedTargetings: [
          {
            exclusions: [
              {
                creativeSizeValue: {
                  allowedFormats: [],
                  companionSizes: [{height: 0, width: 0}],
                  creativeSizeType: '',
                  nativeTemplate: '',
                  size: {},
                  skippableAdType: ''
                },
                dayPartTargetingValue: {
                  dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                  timeZoneType: ''
                },
                demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
                demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
                longValue: '',
                requestPlatformTargetingValue: {requestPlatforms: []},
                stringValue: ''
              }
            ],
            inclusions: [{}],
            key: ''
          }
        ],
        syndicationProduct: '',
        terms: {
          brandingType: '',
          crossListedExternalDealIdType: '',
          description: '',
          estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
          estimatedImpressionsPerDay: '',
          guaranteedFixedPriceTerms: {
            billingInfo: {
              currencyConversionTimeMs: '',
              dfpLineItemId: '',
              originalContractedQuantity: '',
              price: {}
            },
            fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
            guaranteedImpressions: '',
            guaranteedLooks: '',
            minimumDailyLooks: ''
          },
          nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
          nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
          rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
          sellerTimeZone: ''
        },
        webPropertyCode: ''
      }
    ],
    proposalRevisionNumber: '',
    updateAction: ''
  }
};

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

const url = '{{baseUrl}}/proposals/:proposalId/deals/insert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"deals":[{"buyerPrivateData":{"referenceId":"","referencePayload":""},"creationTimeMs":"","creativePreApprovalPolicy":"","creativeSafeFrameCompatibility":"","dealId":"","dealServingMetadata":{"alcoholAdsAllowed":false,"dealPauseStatus":{"buyerPauseReason":"","firstPausedBy":"","hasBuyerPaused":false,"hasSellerPaused":false,"sellerPauseReason":""}},"deliveryControl":{"creativeBlockingLevel":"","deliveryRateType":"","frequencyCaps":[{"maxImpressions":0,"numTimeUnits":0,"timeUnitType":""}]},"externalDealId":"","flightEndTimeMs":"","flightStartTimeMs":"","inventoryDescription":"","isRfpTemplate":false,"isSetupComplete":false,"kind":"","lastUpdateTimeMs":"","makegoodRequestedReason":"","name":"","productId":"","productRevisionNumber":"","programmaticCreativeSource":"","proposalId":"","sellerContacts":[{"email":"","name":""}],"sharedTargetings":[{"exclusions":[{"creativeSizeValue":{"allowedFormats":[],"companionSizes":[{"height":0,"width":0}],"creativeSizeType":"","nativeTemplate":"","size":{},"skippableAdType":""},"dayPartTargetingValue":{"dayParts":[{"dayOfWeek":"","endHour":0,"endMinute":0,"startHour":0,"startMinute":0}],"timeZoneType":""},"demogAgeCriteriaValue":{"demogAgeCriteriaIds":[]},"demogGenderCriteriaValue":{"demogGenderCriteriaIds":[]},"longValue":"","requestPlatformTargetingValue":{"requestPlatforms":[]},"stringValue":""}],"inclusions":[{}],"key":""}],"syndicationProduct":"","terms":{"brandingType":"","crossListedExternalDealIdType":"","description":"","estimatedGrossSpend":{"amountMicros":"","currencyCode":"","expectedCpmMicros":"","pricingType":""},"estimatedImpressionsPerDay":"","guaranteedFixedPriceTerms":{"billingInfo":{"currencyConversionTimeMs":"","dfpLineItemId":"","originalContractedQuantity":"","price":{}},"fixedPrices":[{"auctionTier":"","billedBuyer":{"accountId":""},"buyer":{},"price":{}}],"guaranteedImpressions":"","guaranteedLooks":"","minimumDailyLooks":""},"nonGuaranteedAuctionTerms":{"autoOptimizePrivateAuction":false,"reservePricePerBuyers":[{}]},"nonGuaranteedFixedPriceTerms":{"fixedPrices":[{}]},"rubiconNonGuaranteedTerms":{"priorityPrice":{},"standardPrice":{}},"sellerTimeZone":""},"webPropertyCode":""}],"proposalRevisionNumber":"","updateAction":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"deals": @[ @{ @"buyerPrivateData": @{ @"referenceId": @"", @"referencePayload": @"" }, @"creationTimeMs": @"", @"creativePreApprovalPolicy": @"", @"creativeSafeFrameCompatibility": @"", @"dealId": @"", @"dealServingMetadata": @{ @"alcoholAdsAllowed": @NO, @"dealPauseStatus": @{ @"buyerPauseReason": @"", @"firstPausedBy": @"", @"hasBuyerPaused": @NO, @"hasSellerPaused": @NO, @"sellerPauseReason": @"" } }, @"deliveryControl": @{ @"creativeBlockingLevel": @"", @"deliveryRateType": @"", @"frequencyCaps": @[ @{ @"maxImpressions": @0, @"numTimeUnits": @0, @"timeUnitType": @"" } ] }, @"externalDealId": @"", @"flightEndTimeMs": @"", @"flightStartTimeMs": @"", @"inventoryDescription": @"", @"isRfpTemplate": @NO, @"isSetupComplete": @NO, @"kind": @"", @"lastUpdateTimeMs": @"", @"makegoodRequestedReason": @"", @"name": @"", @"productId": @"", @"productRevisionNumber": @"", @"programmaticCreativeSource": @"", @"proposalId": @"", @"sellerContacts": @[ @{ @"email": @"", @"name": @"" } ], @"sharedTargetings": @[ @{ @"exclusions": @[ @{ @"creativeSizeValue": @{ @"allowedFormats": @[  ], @"companionSizes": @[ @{ @"height": @0, @"width": @0 } ], @"creativeSizeType": @"", @"nativeTemplate": @"", @"size": @{  }, @"skippableAdType": @"" }, @"dayPartTargetingValue": @{ @"dayParts": @[ @{ @"dayOfWeek": @"", @"endHour": @0, @"endMinute": @0, @"startHour": @0, @"startMinute": @0 } ], @"timeZoneType": @"" }, @"demogAgeCriteriaValue": @{ @"demogAgeCriteriaIds": @[  ] }, @"demogGenderCriteriaValue": @{ @"demogGenderCriteriaIds": @[  ] }, @"longValue": @"", @"requestPlatformTargetingValue": @{ @"requestPlatforms": @[  ] }, @"stringValue": @"" } ], @"inclusions": @[ @{  } ], @"key": @"" } ], @"syndicationProduct": @"", @"terms": @{ @"brandingType": @"", @"crossListedExternalDealIdType": @"", @"description": @"", @"estimatedGrossSpend": @{ @"amountMicros": @"", @"currencyCode": @"", @"expectedCpmMicros": @"", @"pricingType": @"" }, @"estimatedImpressionsPerDay": @"", @"guaranteedFixedPriceTerms": @{ @"billingInfo": @{ @"currencyConversionTimeMs": @"", @"dfpLineItemId": @"", @"originalContractedQuantity": @"", @"price": @{  } }, @"fixedPrices": @[ @{ @"auctionTier": @"", @"billedBuyer": @{ @"accountId": @"" }, @"buyer": @{  }, @"price": @{  } } ], @"guaranteedImpressions": @"", @"guaranteedLooks": @"", @"minimumDailyLooks": @"" }, @"nonGuaranteedAuctionTerms": @{ @"autoOptimizePrivateAuction": @NO, @"reservePricePerBuyers": @[ @{  } ] }, @"nonGuaranteedFixedPriceTerms": @{ @"fixedPrices": @[ @{  } ] }, @"rubiconNonGuaranteedTerms": @{ @"priorityPrice": @{  }, @"standardPrice": @{  } }, @"sellerTimeZone": @"" }, @"webPropertyCode": @"" } ],
                              @"proposalRevisionNumber": @"",
                              @"updateAction": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/deals/insert"]
                                                       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}}/proposals/:proposalId/deals/insert" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/deals/insert",
  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([
    'deals' => [
        [
                'buyerPrivateData' => [
                                'referenceId' => '',
                                'referencePayload' => ''
                ],
                'creationTimeMs' => '',
                'creativePreApprovalPolicy' => '',
                'creativeSafeFrameCompatibility' => '',
                'dealId' => '',
                'dealServingMetadata' => [
                                'alcoholAdsAllowed' => null,
                                'dealPauseStatus' => [
                                                                'buyerPauseReason' => '',
                                                                'firstPausedBy' => '',
                                                                'hasBuyerPaused' => null,
                                                                'hasSellerPaused' => null,
                                                                'sellerPauseReason' => ''
                                ]
                ],
                'deliveryControl' => [
                                'creativeBlockingLevel' => '',
                                'deliveryRateType' => '',
                                'frequencyCaps' => [
                                                                [
                                                                                                                                'maxImpressions' => 0,
                                                                                                                                'numTimeUnits' => 0,
                                                                                                                                'timeUnitType' => ''
                                                                ]
                                ]
                ],
                'externalDealId' => '',
                'flightEndTimeMs' => '',
                'flightStartTimeMs' => '',
                'inventoryDescription' => '',
                'isRfpTemplate' => null,
                'isSetupComplete' => null,
                'kind' => '',
                'lastUpdateTimeMs' => '',
                'makegoodRequestedReason' => '',
                'name' => '',
                'productId' => '',
                'productRevisionNumber' => '',
                'programmaticCreativeSource' => '',
                'proposalId' => '',
                'sellerContacts' => [
                                [
                                                                'email' => '',
                                                                'name' => ''
                                ]
                ],
                'sharedTargetings' => [
                                [
                                                                'exclusions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'creativeSizeValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'allowedFormats' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'companionSizes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'height' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'creativeSizeType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nativeTemplate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'size' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'skippableAdType' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'dayPartTargetingValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayParts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayOfWeek' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endMinute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startMinute' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'timeZoneType' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'demogAgeCriteriaValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'demogAgeCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'demogGenderCriteriaValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'demogGenderCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'longValue' => '',
                                                                                                                                                                                                                                                                'requestPlatformTargetingValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'requestPlatforms' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'stringValue' => ''
                                                                                                                                ]
                                                                ],
                                                                'inclusions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'key' => ''
                                ]
                ],
                'syndicationProduct' => '',
                'terms' => [
                                'brandingType' => '',
                                'crossListedExternalDealIdType' => '',
                                'description' => '',
                                'estimatedGrossSpend' => [
                                                                'amountMicros' => '',
                                                                'currencyCode' => '',
                                                                'expectedCpmMicros' => '',
                                                                'pricingType' => ''
                                ],
                                'estimatedImpressionsPerDay' => '',
                                'guaranteedFixedPriceTerms' => [
                                                                'billingInfo' => [
                                                                                                                                'currencyConversionTimeMs' => '',
                                                                                                                                'dfpLineItemId' => '',
                                                                                                                                'originalContractedQuantity' => '',
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'fixedPrices' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'auctionTier' => '',
                                                                                                                                                                                                                                                                'billedBuyer' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'accountId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'guaranteedImpressions' => '',
                                                                'guaranteedLooks' => '',
                                                                'minimumDailyLooks' => ''
                                ],
                                'nonGuaranteedAuctionTerms' => [
                                                                'autoOptimizePrivateAuction' => null,
                                                                'reservePricePerBuyers' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'nonGuaranteedFixedPriceTerms' => [
                                                                'fixedPrices' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'rubiconNonGuaranteedTerms' => [
                                                                'priorityPrice' => [
                                                                                                                                
                                                                ],
                                                                'standardPrice' => [
                                                                                                                                
                                                                ]
                                ],
                                'sellerTimeZone' => ''
                ],
                'webPropertyCode' => ''
        ]
    ],
    'proposalRevisionNumber' => '',
    'updateAction' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/proposals/:proposalId/deals/insert', [
  'body' => '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/deals/insert');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'deals' => [
    [
        'buyerPrivateData' => [
                'referenceId' => '',
                'referencePayload' => ''
        ],
        'creationTimeMs' => '',
        'creativePreApprovalPolicy' => '',
        'creativeSafeFrameCompatibility' => '',
        'dealId' => '',
        'dealServingMetadata' => [
                'alcoholAdsAllowed' => null,
                'dealPauseStatus' => [
                                'buyerPauseReason' => '',
                                'firstPausedBy' => '',
                                'hasBuyerPaused' => null,
                                'hasSellerPaused' => null,
                                'sellerPauseReason' => ''
                ]
        ],
        'deliveryControl' => [
                'creativeBlockingLevel' => '',
                'deliveryRateType' => '',
                'frequencyCaps' => [
                                [
                                                                'maxImpressions' => 0,
                                                                'numTimeUnits' => 0,
                                                                'timeUnitType' => ''
                                ]
                ]
        ],
        'externalDealId' => '',
        'flightEndTimeMs' => '',
        'flightStartTimeMs' => '',
        'inventoryDescription' => '',
        'isRfpTemplate' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'lastUpdateTimeMs' => '',
        'makegoodRequestedReason' => '',
        'name' => '',
        'productId' => '',
        'productRevisionNumber' => '',
        'programmaticCreativeSource' => '',
        'proposalId' => '',
        'sellerContacts' => [
                [
                                'email' => '',
                                'name' => ''
                ]
        ],
        'sharedTargetings' => [
                [
                                'exclusions' => [
                                                                [
                                                                                                                                'creativeSizeValue' => [
                                                                                                                                                                                                                                                                'allowedFormats' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'companionSizes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'height' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'creativeSizeType' => '',
                                                                                                                                                                                                                                                                'nativeTemplate' => '',
                                                                                                                                                                                                                                                                'size' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'skippableAdType' => ''
                                                                                                                                ],
                                                                                                                                'dayPartTargetingValue' => [
                                                                                                                                                                                                                                                                'dayParts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayOfWeek' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endMinute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startMinute' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeZoneType' => ''
                                                                                                                                ],
                                                                                                                                'demogAgeCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogAgeCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'demogGenderCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogGenderCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'longValue' => '',
                                                                                                                                'requestPlatformTargetingValue' => [
                                                                                                                                                                                                                                                                'requestPlatforms' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'stringValue' => ''
                                                                ]
                                ],
                                'inclusions' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'key' => ''
                ]
        ],
        'syndicationProduct' => '',
        'terms' => [
                'brandingType' => '',
                'crossListedExternalDealIdType' => '',
                'description' => '',
                'estimatedGrossSpend' => [
                                'amountMicros' => '',
                                'currencyCode' => '',
                                'expectedCpmMicros' => '',
                                'pricingType' => ''
                ],
                'estimatedImpressionsPerDay' => '',
                'guaranteedFixedPriceTerms' => [
                                'billingInfo' => [
                                                                'currencyConversionTimeMs' => '',
                                                                'dfpLineItemId' => '',
                                                                'originalContractedQuantity' => '',
                                                                'price' => [
                                                                                                                                
                                                                ]
                                ],
                                'fixedPrices' => [
                                                                [
                                                                                                                                'auctionTier' => '',
                                                                                                                                'billedBuyer' => [
                                                                                                                                                                                                                                                                'accountId' => ''
                                                                                                                                ],
                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'guaranteedImpressions' => '',
                                'guaranteedLooks' => '',
                                'minimumDailyLooks' => ''
                ],
                'nonGuaranteedAuctionTerms' => [
                                'autoOptimizePrivateAuction' => null,
                                'reservePricePerBuyers' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'nonGuaranteedFixedPriceTerms' => [
                                'fixedPrices' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'rubiconNonGuaranteedTerms' => [
                                'priorityPrice' => [
                                                                
                                ],
                                'standardPrice' => [
                                                                
                                ]
                ],
                'sellerTimeZone' => ''
        ],
        'webPropertyCode' => ''
    ]
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'deals' => [
    [
        'buyerPrivateData' => [
                'referenceId' => '',
                'referencePayload' => ''
        ],
        'creationTimeMs' => '',
        'creativePreApprovalPolicy' => '',
        'creativeSafeFrameCompatibility' => '',
        'dealId' => '',
        'dealServingMetadata' => [
                'alcoholAdsAllowed' => null,
                'dealPauseStatus' => [
                                'buyerPauseReason' => '',
                                'firstPausedBy' => '',
                                'hasBuyerPaused' => null,
                                'hasSellerPaused' => null,
                                'sellerPauseReason' => ''
                ]
        ],
        'deliveryControl' => [
                'creativeBlockingLevel' => '',
                'deliveryRateType' => '',
                'frequencyCaps' => [
                                [
                                                                'maxImpressions' => 0,
                                                                'numTimeUnits' => 0,
                                                                'timeUnitType' => ''
                                ]
                ]
        ],
        'externalDealId' => '',
        'flightEndTimeMs' => '',
        'flightStartTimeMs' => '',
        'inventoryDescription' => '',
        'isRfpTemplate' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'lastUpdateTimeMs' => '',
        'makegoodRequestedReason' => '',
        'name' => '',
        'productId' => '',
        'productRevisionNumber' => '',
        'programmaticCreativeSource' => '',
        'proposalId' => '',
        'sellerContacts' => [
                [
                                'email' => '',
                                'name' => ''
                ]
        ],
        'sharedTargetings' => [
                [
                                'exclusions' => [
                                                                [
                                                                                                                                'creativeSizeValue' => [
                                                                                                                                                                                                                                                                'allowedFormats' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'companionSizes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'height' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'creativeSizeType' => '',
                                                                                                                                                                                                                                                                'nativeTemplate' => '',
                                                                                                                                                                                                                                                                'size' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'skippableAdType' => ''
                                                                                                                                ],
                                                                                                                                'dayPartTargetingValue' => [
                                                                                                                                                                                                                                                                'dayParts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayOfWeek' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endMinute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startMinute' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeZoneType' => ''
                                                                                                                                ],
                                                                                                                                'demogAgeCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogAgeCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'demogGenderCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogGenderCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'longValue' => '',
                                                                                                                                'requestPlatformTargetingValue' => [
                                                                                                                                                                                                                                                                'requestPlatforms' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'stringValue' => ''
                                                                ]
                                ],
                                'inclusions' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'key' => ''
                ]
        ],
        'syndicationProduct' => '',
        'terms' => [
                'brandingType' => '',
                'crossListedExternalDealIdType' => '',
                'description' => '',
                'estimatedGrossSpend' => [
                                'amountMicros' => '',
                                'currencyCode' => '',
                                'expectedCpmMicros' => '',
                                'pricingType' => ''
                ],
                'estimatedImpressionsPerDay' => '',
                'guaranteedFixedPriceTerms' => [
                                'billingInfo' => [
                                                                'currencyConversionTimeMs' => '',
                                                                'dfpLineItemId' => '',
                                                                'originalContractedQuantity' => '',
                                                                'price' => [
                                                                                                                                
                                                                ]
                                ],
                                'fixedPrices' => [
                                                                [
                                                                                                                                'auctionTier' => '',
                                                                                                                                'billedBuyer' => [
                                                                                                                                                                                                                                                                'accountId' => ''
                                                                                                                                ],
                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'guaranteedImpressions' => '',
                                'guaranteedLooks' => '',
                                'minimumDailyLooks' => ''
                ],
                'nonGuaranteedAuctionTerms' => [
                                'autoOptimizePrivateAuction' => null,
                                'reservePricePerBuyers' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'nonGuaranteedFixedPriceTerms' => [
                                'fixedPrices' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'rubiconNonGuaranteedTerms' => [
                                'priorityPrice' => [
                                                                
                                ],
                                'standardPrice' => [
                                                                
                                ]
                ],
                'sellerTimeZone' => ''
        ],
        'webPropertyCode' => ''
    ]
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));
$request->setRequestUrl('{{baseUrl}}/proposals/:proposalId/deals/insert');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/deals/insert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/deals/insert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
import http.client

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

payload = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"

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

conn.request("POST", "/baseUrl/proposals/:proposalId/deals/insert", payload, headers)

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

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

url = "{{baseUrl}}/proposals/:proposalId/deals/insert"

payload = {
    "deals": [
        {
            "buyerPrivateData": {
                "referenceId": "",
                "referencePayload": ""
            },
            "creationTimeMs": "",
            "creativePreApprovalPolicy": "",
            "creativeSafeFrameCompatibility": "",
            "dealId": "",
            "dealServingMetadata": {
                "alcoholAdsAllowed": False,
                "dealPauseStatus": {
                    "buyerPauseReason": "",
                    "firstPausedBy": "",
                    "hasBuyerPaused": False,
                    "hasSellerPaused": False,
                    "sellerPauseReason": ""
                }
            },
            "deliveryControl": {
                "creativeBlockingLevel": "",
                "deliveryRateType": "",
                "frequencyCaps": [
                    {
                        "maxImpressions": 0,
                        "numTimeUnits": 0,
                        "timeUnitType": ""
                    }
                ]
            },
            "externalDealId": "",
            "flightEndTimeMs": "",
            "flightStartTimeMs": "",
            "inventoryDescription": "",
            "isRfpTemplate": False,
            "isSetupComplete": False,
            "kind": "",
            "lastUpdateTimeMs": "",
            "makegoodRequestedReason": "",
            "name": "",
            "productId": "",
            "productRevisionNumber": "",
            "programmaticCreativeSource": "",
            "proposalId": "",
            "sellerContacts": [
                {
                    "email": "",
                    "name": ""
                }
            ],
            "sharedTargetings": [
                {
                    "exclusions": [
                        {
                            "creativeSizeValue": {
                                "allowedFormats": [],
                                "companionSizes": [
                                    {
                                        "height": 0,
                                        "width": 0
                                    }
                                ],
                                "creativeSizeType": "",
                                "nativeTemplate": "",
                                "size": {},
                                "skippableAdType": ""
                            },
                            "dayPartTargetingValue": {
                                "dayParts": [
                                    {
                                        "dayOfWeek": "",
                                        "endHour": 0,
                                        "endMinute": 0,
                                        "startHour": 0,
                                        "startMinute": 0
                                    }
                                ],
                                "timeZoneType": ""
                            },
                            "demogAgeCriteriaValue": { "demogAgeCriteriaIds": [] },
                            "demogGenderCriteriaValue": { "demogGenderCriteriaIds": [] },
                            "longValue": "",
                            "requestPlatformTargetingValue": { "requestPlatforms": [] },
                            "stringValue": ""
                        }
                    ],
                    "inclusions": [{}],
                    "key": ""
                }
            ],
            "syndicationProduct": "",
            "terms": {
                "brandingType": "",
                "crossListedExternalDealIdType": "",
                "description": "",
                "estimatedGrossSpend": {
                    "amountMicros": "",
                    "currencyCode": "",
                    "expectedCpmMicros": "",
                    "pricingType": ""
                },
                "estimatedImpressionsPerDay": "",
                "guaranteedFixedPriceTerms": {
                    "billingInfo": {
                        "currencyConversionTimeMs": "",
                        "dfpLineItemId": "",
                        "originalContractedQuantity": "",
                        "price": {}
                    },
                    "fixedPrices": [
                        {
                            "auctionTier": "",
                            "billedBuyer": { "accountId": "" },
                            "buyer": {},
                            "price": {}
                        }
                    ],
                    "guaranteedImpressions": "",
                    "guaranteedLooks": "",
                    "minimumDailyLooks": ""
                },
                "nonGuaranteedAuctionTerms": {
                    "autoOptimizePrivateAuction": False,
                    "reservePricePerBuyers": [{}]
                },
                "nonGuaranteedFixedPriceTerms": { "fixedPrices": [{}] },
                "rubiconNonGuaranteedTerms": {
                    "priorityPrice": {},
                    "standardPrice": {}
                },
                "sellerTimeZone": ""
            },
            "webPropertyCode": ""
        }
    ],
    "proposalRevisionNumber": "",
    "updateAction": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/proposals/:proposalId/deals/insert"

payload <- "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/insert")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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/proposals/:proposalId/deals/insert') do |req|
  req.body = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"
end

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

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

    let payload = json!({
        "deals": (
            json!({
                "buyerPrivateData": json!({
                    "referenceId": "",
                    "referencePayload": ""
                }),
                "creationTimeMs": "",
                "creativePreApprovalPolicy": "",
                "creativeSafeFrameCompatibility": "",
                "dealId": "",
                "dealServingMetadata": json!({
                    "alcoholAdsAllowed": false,
                    "dealPauseStatus": json!({
                        "buyerPauseReason": "",
                        "firstPausedBy": "",
                        "hasBuyerPaused": false,
                        "hasSellerPaused": false,
                        "sellerPauseReason": ""
                    })
                }),
                "deliveryControl": json!({
                    "creativeBlockingLevel": "",
                    "deliveryRateType": "",
                    "frequencyCaps": (
                        json!({
                            "maxImpressions": 0,
                            "numTimeUnits": 0,
                            "timeUnitType": ""
                        })
                    )
                }),
                "externalDealId": "",
                "flightEndTimeMs": "",
                "flightStartTimeMs": "",
                "inventoryDescription": "",
                "isRfpTemplate": false,
                "isSetupComplete": false,
                "kind": "",
                "lastUpdateTimeMs": "",
                "makegoodRequestedReason": "",
                "name": "",
                "productId": "",
                "productRevisionNumber": "",
                "programmaticCreativeSource": "",
                "proposalId": "",
                "sellerContacts": (
                    json!({
                        "email": "",
                        "name": ""
                    })
                ),
                "sharedTargetings": (
                    json!({
                        "exclusions": (
                            json!({
                                "creativeSizeValue": json!({
                                    "allowedFormats": (),
                                    "companionSizes": (
                                        json!({
                                            "height": 0,
                                            "width": 0
                                        })
                                    ),
                                    "creativeSizeType": "",
                                    "nativeTemplate": "",
                                    "size": json!({}),
                                    "skippableAdType": ""
                                }),
                                "dayPartTargetingValue": json!({
                                    "dayParts": (
                                        json!({
                                            "dayOfWeek": "",
                                            "endHour": 0,
                                            "endMinute": 0,
                                            "startHour": 0,
                                            "startMinute": 0
                                        })
                                    ),
                                    "timeZoneType": ""
                                }),
                                "demogAgeCriteriaValue": json!({"demogAgeCriteriaIds": ()}),
                                "demogGenderCriteriaValue": json!({"demogGenderCriteriaIds": ()}),
                                "longValue": "",
                                "requestPlatformTargetingValue": json!({"requestPlatforms": ()}),
                                "stringValue": ""
                            })
                        ),
                        "inclusions": (json!({})),
                        "key": ""
                    })
                ),
                "syndicationProduct": "",
                "terms": json!({
                    "brandingType": "",
                    "crossListedExternalDealIdType": "",
                    "description": "",
                    "estimatedGrossSpend": json!({
                        "amountMicros": "",
                        "currencyCode": "",
                        "expectedCpmMicros": "",
                        "pricingType": ""
                    }),
                    "estimatedImpressionsPerDay": "",
                    "guaranteedFixedPriceTerms": json!({
                        "billingInfo": json!({
                            "currencyConversionTimeMs": "",
                            "dfpLineItemId": "",
                            "originalContractedQuantity": "",
                            "price": json!({})
                        }),
                        "fixedPrices": (
                            json!({
                                "auctionTier": "",
                                "billedBuyer": json!({"accountId": ""}),
                                "buyer": json!({}),
                                "price": json!({})
                            })
                        ),
                        "guaranteedImpressions": "",
                        "guaranteedLooks": "",
                        "minimumDailyLooks": ""
                    }),
                    "nonGuaranteedAuctionTerms": json!({
                        "autoOptimizePrivateAuction": false,
                        "reservePricePerBuyers": (json!({}))
                    }),
                    "nonGuaranteedFixedPriceTerms": json!({"fixedPrices": (json!({}))}),
                    "rubiconNonGuaranteedTerms": json!({
                        "priorityPrice": json!({}),
                        "standardPrice": json!({})
                    }),
                    "sellerTimeZone": ""
                }),
                "webPropertyCode": ""
            })
        ),
        "proposalRevisionNumber": "",
        "updateAction": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/proposals/:proposalId/deals/insert \
  --header 'content-type: application/json' \
  --data '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
echo '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
}' |  \
  http POST {{baseUrl}}/proposals/:proposalId/deals/insert \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "deals": [\n    {\n      "buyerPrivateData": {\n        "referenceId": "",\n        "referencePayload": ""\n      },\n      "creationTimeMs": "",\n      "creativePreApprovalPolicy": "",\n      "creativeSafeFrameCompatibility": "",\n      "dealId": "",\n      "dealServingMetadata": {\n        "alcoholAdsAllowed": false,\n        "dealPauseStatus": {\n          "buyerPauseReason": "",\n          "firstPausedBy": "",\n          "hasBuyerPaused": false,\n          "hasSellerPaused": false,\n          "sellerPauseReason": ""\n        }\n      },\n      "deliveryControl": {\n        "creativeBlockingLevel": "",\n        "deliveryRateType": "",\n        "frequencyCaps": [\n          {\n            "maxImpressions": 0,\n            "numTimeUnits": 0,\n            "timeUnitType": ""\n          }\n        ]\n      },\n      "externalDealId": "",\n      "flightEndTimeMs": "",\n      "flightStartTimeMs": "",\n      "inventoryDescription": "",\n      "isRfpTemplate": false,\n      "isSetupComplete": false,\n      "kind": "",\n      "lastUpdateTimeMs": "",\n      "makegoodRequestedReason": "",\n      "name": "",\n      "productId": "",\n      "productRevisionNumber": "",\n      "programmaticCreativeSource": "",\n      "proposalId": "",\n      "sellerContacts": [\n        {\n          "email": "",\n          "name": ""\n        }\n      ],\n      "sharedTargetings": [\n        {\n          "exclusions": [\n            {\n              "creativeSizeValue": {\n                "allowedFormats": [],\n                "companionSizes": [\n                  {\n                    "height": 0,\n                    "width": 0\n                  }\n                ],\n                "creativeSizeType": "",\n                "nativeTemplate": "",\n                "size": {},\n                "skippableAdType": ""\n              },\n              "dayPartTargetingValue": {\n                "dayParts": [\n                  {\n                    "dayOfWeek": "",\n                    "endHour": 0,\n                    "endMinute": 0,\n                    "startHour": 0,\n                    "startMinute": 0\n                  }\n                ],\n                "timeZoneType": ""\n              },\n              "demogAgeCriteriaValue": {\n                "demogAgeCriteriaIds": []\n              },\n              "demogGenderCriteriaValue": {\n                "demogGenderCriteriaIds": []\n              },\n              "longValue": "",\n              "requestPlatformTargetingValue": {\n                "requestPlatforms": []\n              },\n              "stringValue": ""\n            }\n          ],\n          "inclusions": [\n            {}\n          ],\n          "key": ""\n        }\n      ],\n      "syndicationProduct": "",\n      "terms": {\n        "brandingType": "",\n        "crossListedExternalDealIdType": "",\n        "description": "",\n        "estimatedGrossSpend": {\n          "amountMicros": "",\n          "currencyCode": "",\n          "expectedCpmMicros": "",\n          "pricingType": ""\n        },\n        "estimatedImpressionsPerDay": "",\n        "guaranteedFixedPriceTerms": {\n          "billingInfo": {\n            "currencyConversionTimeMs": "",\n            "dfpLineItemId": "",\n            "originalContractedQuantity": "",\n            "price": {}\n          },\n          "fixedPrices": [\n            {\n              "auctionTier": "",\n              "billedBuyer": {\n                "accountId": ""\n              },\n              "buyer": {},\n              "price": {}\n            }\n          ],\n          "guaranteedImpressions": "",\n          "guaranteedLooks": "",\n          "minimumDailyLooks": ""\n        },\n        "nonGuaranteedAuctionTerms": {\n          "autoOptimizePrivateAuction": false,\n          "reservePricePerBuyers": [\n            {}\n          ]\n        },\n        "nonGuaranteedFixedPriceTerms": {\n          "fixedPrices": [\n            {}\n          ]\n        },\n        "rubiconNonGuaranteedTerms": {\n          "priorityPrice": {},\n          "standardPrice": {}\n        },\n        "sellerTimeZone": ""\n      },\n      "webPropertyCode": ""\n    }\n  ],\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}' \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/deals/insert
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "deals": [
    [
      "buyerPrivateData": [
        "referenceId": "",
        "referencePayload": ""
      ],
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": [
        "alcoholAdsAllowed": false,
        "dealPauseStatus": [
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        ]
      ],
      "deliveryControl": [
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          [
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          ]
        ]
      ],
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        [
          "email": "",
          "name": ""
        ]
      ],
      "sharedTargetings": [
        [
          "exclusions": [
            [
              "creativeSizeValue": [
                "allowedFormats": [],
                "companionSizes": [
                  [
                    "height": 0,
                    "width": 0
                  ]
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": [],
                "skippableAdType": ""
              ],
              "dayPartTargetingValue": [
                "dayParts": [
                  [
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  ]
                ],
                "timeZoneType": ""
              ],
              "demogAgeCriteriaValue": ["demogAgeCriteriaIds": []],
              "demogGenderCriteriaValue": ["demogGenderCriteriaIds": []],
              "longValue": "",
              "requestPlatformTargetingValue": ["requestPlatforms": []],
              "stringValue": ""
            ]
          ],
          "inclusions": [[]],
          "key": ""
        ]
      ],
      "syndicationProduct": "",
      "terms": [
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": [
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        ],
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": [
          "billingInfo": [
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": []
          ],
          "fixedPrices": [
            [
              "auctionTier": "",
              "billedBuyer": ["accountId": ""],
              "buyer": [],
              "price": []
            ]
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        ],
        "nonGuaranteedAuctionTerms": [
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [[]]
        ],
        "nonGuaranteedFixedPriceTerms": ["fixedPrices": [[]]],
        "rubiconNonGuaranteedTerms": [
          "priorityPrice": [],
          "standardPrice": []
        ],
        "sellerTimeZone": ""
      ],
      "webPropertyCode": ""
    ]
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/deals/insert")! 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()
GET adexchangebuyer.marketplacedeals.list
{{baseUrl}}/proposals/:proposalId/deals
QUERY PARAMS

proposalId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/deals");

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

(client/get "{{baseUrl}}/proposals/:proposalId/deals")
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/deals"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/proposals/:proposalId/deals"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/proposals/:proposalId/deals");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/deals"

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

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

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

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

}
GET /baseUrl/proposals/:proposalId/deals HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/proposals/:proposalId/deals")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/deals"))
    .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}}/proposals/:proposalId/deals")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/proposals/:proposalId/deals")
  .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}}/proposals/:proposalId/deals');

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

const options = {method: 'GET', url: '{{baseUrl}}/proposals/:proposalId/deals'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/deals';
const options = {method: 'GET'};

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}}/proposals/:proposalId/deals',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/:proposalId/deals',
  headers: {}
};

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}}/proposals/:proposalId/deals'};

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

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

const req = unirest('GET', '{{baseUrl}}/proposals/:proposalId/deals');

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}}/proposals/:proposalId/deals'};

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

const url = '{{baseUrl}}/proposals/:proposalId/deals';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/deals"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/proposals/:proposalId/deals" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/deals",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/proposals/:proposalId/deals');

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/deals');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/proposals/:proposalId/deals');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/deals' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/deals' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/proposals/:proposalId/deals")

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

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

url = "{{baseUrl}}/proposals/:proposalId/deals"

response = requests.get(url)

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

url <- "{{baseUrl}}/proposals/:proposalId/deals"

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

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

url = URI("{{baseUrl}}/proposals/:proposalId/deals")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/proposals/:proposalId/deals') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/proposals/:proposalId/deals
http GET {{baseUrl}}/proposals/:proposalId/deals
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/deals
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/deals")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.marketplacedeals.update
{{baseUrl}}/proposals/:proposalId/deals/update
QUERY PARAMS

proposalId
BODY json

{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/deals/update");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");

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

(client/post "{{baseUrl}}/proposals/:proposalId/deals/update" {:content-type :json
                                                                               :form-params {:deals [{:buyerPrivateData {:referenceId ""
                                                                                                                         :referencePayload ""}
                                                                                                      :creationTimeMs ""
                                                                                                      :creativePreApprovalPolicy ""
                                                                                                      :creativeSafeFrameCompatibility ""
                                                                                                      :dealId ""
                                                                                                      :dealServingMetadata {:alcoholAdsAllowed false
                                                                                                                            :dealPauseStatus {:buyerPauseReason ""
                                                                                                                                              :firstPausedBy ""
                                                                                                                                              :hasBuyerPaused false
                                                                                                                                              :hasSellerPaused false
                                                                                                                                              :sellerPauseReason ""}}
                                                                                                      :deliveryControl {:creativeBlockingLevel ""
                                                                                                                        :deliveryRateType ""
                                                                                                                        :frequencyCaps [{:maxImpressions 0
                                                                                                                                         :numTimeUnits 0
                                                                                                                                         :timeUnitType ""}]}
                                                                                                      :externalDealId ""
                                                                                                      :flightEndTimeMs ""
                                                                                                      :flightStartTimeMs ""
                                                                                                      :inventoryDescription ""
                                                                                                      :isRfpTemplate false
                                                                                                      :isSetupComplete false
                                                                                                      :kind ""
                                                                                                      :lastUpdateTimeMs ""
                                                                                                      :makegoodRequestedReason ""
                                                                                                      :name ""
                                                                                                      :productId ""
                                                                                                      :productRevisionNumber ""
                                                                                                      :programmaticCreativeSource ""
                                                                                                      :proposalId ""
                                                                                                      :sellerContacts [{:email ""
                                                                                                                        :name ""}]
                                                                                                      :sharedTargetings [{:exclusions [{:creativeSizeValue {:allowedFormats []
                                                                                                                                                            :companionSizes [{:height 0
                                                                                                                                                                              :width 0}]
                                                                                                                                                            :creativeSizeType ""
                                                                                                                                                            :nativeTemplate ""
                                                                                                                                                            :size {}
                                                                                                                                                            :skippableAdType ""}
                                                                                                                                        :dayPartTargetingValue {:dayParts [{:dayOfWeek ""
                                                                                                                                                                            :endHour 0
                                                                                                                                                                            :endMinute 0
                                                                                                                                                                            :startHour 0
                                                                                                                                                                            :startMinute 0}]
                                                                                                                                                                :timeZoneType ""}
                                                                                                                                        :demogAgeCriteriaValue {:demogAgeCriteriaIds []}
                                                                                                                                        :demogGenderCriteriaValue {:demogGenderCriteriaIds []}
                                                                                                                                        :longValue ""
                                                                                                                                        :requestPlatformTargetingValue {:requestPlatforms []}
                                                                                                                                        :stringValue ""}]
                                                                                                                          :inclusions [{}]
                                                                                                                          :key ""}]
                                                                                                      :syndicationProduct ""
                                                                                                      :terms {:brandingType ""
                                                                                                              :crossListedExternalDealIdType ""
                                                                                                              :description ""
                                                                                                              :estimatedGrossSpend {:amountMicros ""
                                                                                                                                    :currencyCode ""
                                                                                                                                    :expectedCpmMicros ""
                                                                                                                                    :pricingType ""}
                                                                                                              :estimatedImpressionsPerDay ""
                                                                                                              :guaranteedFixedPriceTerms {:billingInfo {:currencyConversionTimeMs ""
                                                                                                                                                        :dfpLineItemId ""
                                                                                                                                                        :originalContractedQuantity ""
                                                                                                                                                        :price {}}
                                                                                                                                          :fixedPrices [{:auctionTier ""
                                                                                                                                                         :billedBuyer {:accountId ""}
                                                                                                                                                         :buyer {}
                                                                                                                                                         :price {}}]
                                                                                                                                          :guaranteedImpressions ""
                                                                                                                                          :guaranteedLooks ""
                                                                                                                                          :minimumDailyLooks ""}
                                                                                                              :nonGuaranteedAuctionTerms {:autoOptimizePrivateAuction false
                                                                                                                                          :reservePricePerBuyers [{}]}
                                                                                                              :nonGuaranteedFixedPriceTerms {:fixedPrices [{}]}
                                                                                                              :rubiconNonGuaranteedTerms {:priorityPrice {}
                                                                                                                                          :standardPrice {}}
                                                                                                              :sellerTimeZone ""}
                                                                                                      :webPropertyCode ""}]
                                                                                             :proposal {:billedBuyer {}
                                                                                                        :buyer {}
                                                                                                        :buyerContacts [{}]
                                                                                                        :buyerPrivateData {}
                                                                                                        :dbmAdvertiserIds []
                                                                                                        :hasBuyerSignedOff false
                                                                                                        :hasSellerSignedOff false
                                                                                                        :inventorySource ""
                                                                                                        :isRenegotiating false
                                                                                                        :isSetupComplete false
                                                                                                        :kind ""
                                                                                                        :labels [{:accountId ""
                                                                                                                  :createTimeMs ""
                                                                                                                  :deprecatedMarketplaceDealParty {:buyer {}
                                                                                                                                                   :seller {:accountId ""
                                                                                                                                                            :subAccountId ""}}
                                                                                                                  :label ""}]
                                                                                                        :lastUpdaterOrCommentorRole ""
                                                                                                        :name ""
                                                                                                        :negotiationId ""
                                                                                                        :originatorRole ""
                                                                                                        :privateAuctionId ""
                                                                                                        :proposalId ""
                                                                                                        :proposalState ""
                                                                                                        :revisionNumber ""
                                                                                                        :revisionTimeMs ""
                                                                                                        :seller {}
                                                                                                        :sellerContacts [{}]}
                                                                                             :proposalRevisionNumber ""
                                                                                             :updateAction ""}})
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/deals/update"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/update"),
    Content = new StringContent("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/deals/update"

	payload := strings.NewReader("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/proposals/:proposalId/deals/update HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4972

{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/proposals/:proposalId/deals/update")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/deals/update"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals/update")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/proposals/:proposalId/deals/update")
  .header("content-type", "application/json")
  .body("{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  deals: [
    {
      buyerPrivateData: {
        referenceId: '',
        referencePayload: ''
      },
      creationTimeMs: '',
      creativePreApprovalPolicy: '',
      creativeSafeFrameCompatibility: '',
      dealId: '',
      dealServingMetadata: {
        alcoholAdsAllowed: false,
        dealPauseStatus: {
          buyerPauseReason: '',
          firstPausedBy: '',
          hasBuyerPaused: false,
          hasSellerPaused: false,
          sellerPauseReason: ''
        }
      },
      deliveryControl: {
        creativeBlockingLevel: '',
        deliveryRateType: '',
        frequencyCaps: [
          {
            maxImpressions: 0,
            numTimeUnits: 0,
            timeUnitType: ''
          }
        ]
      },
      externalDealId: '',
      flightEndTimeMs: '',
      flightStartTimeMs: '',
      inventoryDescription: '',
      isRfpTemplate: false,
      isSetupComplete: false,
      kind: '',
      lastUpdateTimeMs: '',
      makegoodRequestedReason: '',
      name: '',
      productId: '',
      productRevisionNumber: '',
      programmaticCreativeSource: '',
      proposalId: '',
      sellerContacts: [
        {
          email: '',
          name: ''
        }
      ],
      sharedTargetings: [
        {
          exclusions: [
            {
              creativeSizeValue: {
                allowedFormats: [],
                companionSizes: [
                  {
                    height: 0,
                    width: 0
                  }
                ],
                creativeSizeType: '',
                nativeTemplate: '',
                size: {},
                skippableAdType: ''
              },
              dayPartTargetingValue: {
                dayParts: [
                  {
                    dayOfWeek: '',
                    endHour: 0,
                    endMinute: 0,
                    startHour: 0,
                    startMinute: 0
                  }
                ],
                timeZoneType: ''
              },
              demogAgeCriteriaValue: {
                demogAgeCriteriaIds: []
              },
              demogGenderCriteriaValue: {
                demogGenderCriteriaIds: []
              },
              longValue: '',
              requestPlatformTargetingValue: {
                requestPlatforms: []
              },
              stringValue: ''
            }
          ],
          inclusions: [
            {}
          ],
          key: ''
        }
      ],
      syndicationProduct: '',
      terms: {
        brandingType: '',
        crossListedExternalDealIdType: '',
        description: '',
        estimatedGrossSpend: {
          amountMicros: '',
          currencyCode: '',
          expectedCpmMicros: '',
          pricingType: ''
        },
        estimatedImpressionsPerDay: '',
        guaranteedFixedPriceTerms: {
          billingInfo: {
            currencyConversionTimeMs: '',
            dfpLineItemId: '',
            originalContractedQuantity: '',
            price: {}
          },
          fixedPrices: [
            {
              auctionTier: '',
              billedBuyer: {
                accountId: ''
              },
              buyer: {},
              price: {}
            }
          ],
          guaranteedImpressions: '',
          guaranteedLooks: '',
          minimumDailyLooks: ''
        },
        nonGuaranteedAuctionTerms: {
          autoOptimizePrivateAuction: false,
          reservePricePerBuyers: [
            {}
          ]
        },
        nonGuaranteedFixedPriceTerms: {
          fixedPrices: [
            {}
          ]
        },
        rubiconNonGuaranteedTerms: {
          priorityPrice: {},
          standardPrice: {}
        },
        sellerTimeZone: ''
      },
      webPropertyCode: ''
    }
  ],
  proposal: {
    billedBuyer: {},
    buyer: {},
    buyerContacts: [
      {}
    ],
    buyerPrivateData: {},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {
          buyer: {},
          seller: {
            accountId: '',
            subAccountId: ''
          }
        },
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [
      {}
    ]
  },
  proposalRevisionNumber: '',
  updateAction: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/proposals/:proposalId/deals/update');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/deals/update',
  headers: {'content-type': 'application/json'},
  data: {
    deals: [
      {
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        creationTimeMs: '',
        creativePreApprovalPolicy: '',
        creativeSafeFrameCompatibility: '',
        dealId: '',
        dealServingMetadata: {
          alcoholAdsAllowed: false,
          dealPauseStatus: {
            buyerPauseReason: '',
            firstPausedBy: '',
            hasBuyerPaused: false,
            hasSellerPaused: false,
            sellerPauseReason: ''
          }
        },
        deliveryControl: {
          creativeBlockingLevel: '',
          deliveryRateType: '',
          frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
        },
        externalDealId: '',
        flightEndTimeMs: '',
        flightStartTimeMs: '',
        inventoryDescription: '',
        isRfpTemplate: false,
        isSetupComplete: false,
        kind: '',
        lastUpdateTimeMs: '',
        makegoodRequestedReason: '',
        name: '',
        productId: '',
        productRevisionNumber: '',
        programmaticCreativeSource: '',
        proposalId: '',
        sellerContacts: [{email: '', name: ''}],
        sharedTargetings: [
          {
            exclusions: [
              {
                creativeSizeValue: {
                  allowedFormats: [],
                  companionSizes: [{height: 0, width: 0}],
                  creativeSizeType: '',
                  nativeTemplate: '',
                  size: {},
                  skippableAdType: ''
                },
                dayPartTargetingValue: {
                  dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                  timeZoneType: ''
                },
                demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
                demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
                longValue: '',
                requestPlatformTargetingValue: {requestPlatforms: []},
                stringValue: ''
              }
            ],
            inclusions: [{}],
            key: ''
          }
        ],
        syndicationProduct: '',
        terms: {
          brandingType: '',
          crossListedExternalDealIdType: '',
          description: '',
          estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
          estimatedImpressionsPerDay: '',
          guaranteedFixedPriceTerms: {
            billingInfo: {
              currencyConversionTimeMs: '',
              dfpLineItemId: '',
              originalContractedQuantity: '',
              price: {}
            },
            fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
            guaranteedImpressions: '',
            guaranteedLooks: '',
            minimumDailyLooks: ''
          },
          nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
          nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
          rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
          sellerTimeZone: ''
        },
        webPropertyCode: ''
      }
    ],
    proposal: {
      billedBuyer: {},
      buyer: {},
      buyerContacts: [{}],
      buyerPrivateData: {},
      dbmAdvertiserIds: [],
      hasBuyerSignedOff: false,
      hasSellerSignedOff: false,
      inventorySource: '',
      isRenegotiating: false,
      isSetupComplete: false,
      kind: '',
      labels: [
        {
          accountId: '',
          createTimeMs: '',
          deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
          label: ''
        }
      ],
      lastUpdaterOrCommentorRole: '',
      name: '',
      negotiationId: '',
      originatorRole: '',
      privateAuctionId: '',
      proposalId: '',
      proposalState: '',
      revisionNumber: '',
      revisionTimeMs: '',
      seller: {},
      sellerContacts: [{}]
    },
    proposalRevisionNumber: '',
    updateAction: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/deals/update';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"deals":[{"buyerPrivateData":{"referenceId":"","referencePayload":""},"creationTimeMs":"","creativePreApprovalPolicy":"","creativeSafeFrameCompatibility":"","dealId":"","dealServingMetadata":{"alcoholAdsAllowed":false,"dealPauseStatus":{"buyerPauseReason":"","firstPausedBy":"","hasBuyerPaused":false,"hasSellerPaused":false,"sellerPauseReason":""}},"deliveryControl":{"creativeBlockingLevel":"","deliveryRateType":"","frequencyCaps":[{"maxImpressions":0,"numTimeUnits":0,"timeUnitType":""}]},"externalDealId":"","flightEndTimeMs":"","flightStartTimeMs":"","inventoryDescription":"","isRfpTemplate":false,"isSetupComplete":false,"kind":"","lastUpdateTimeMs":"","makegoodRequestedReason":"","name":"","productId":"","productRevisionNumber":"","programmaticCreativeSource":"","proposalId":"","sellerContacts":[{"email":"","name":""}],"sharedTargetings":[{"exclusions":[{"creativeSizeValue":{"allowedFormats":[],"companionSizes":[{"height":0,"width":0}],"creativeSizeType":"","nativeTemplate":"","size":{},"skippableAdType":""},"dayPartTargetingValue":{"dayParts":[{"dayOfWeek":"","endHour":0,"endMinute":0,"startHour":0,"startMinute":0}],"timeZoneType":""},"demogAgeCriteriaValue":{"demogAgeCriteriaIds":[]},"demogGenderCriteriaValue":{"demogGenderCriteriaIds":[]},"longValue":"","requestPlatformTargetingValue":{"requestPlatforms":[]},"stringValue":""}],"inclusions":[{}],"key":""}],"syndicationProduct":"","terms":{"brandingType":"","crossListedExternalDealIdType":"","description":"","estimatedGrossSpend":{"amountMicros":"","currencyCode":"","expectedCpmMicros":"","pricingType":""},"estimatedImpressionsPerDay":"","guaranteedFixedPriceTerms":{"billingInfo":{"currencyConversionTimeMs":"","dfpLineItemId":"","originalContractedQuantity":"","price":{}},"fixedPrices":[{"auctionTier":"","billedBuyer":{"accountId":""},"buyer":{},"price":{}}],"guaranteedImpressions":"","guaranteedLooks":"","minimumDailyLooks":""},"nonGuaranteedAuctionTerms":{"autoOptimizePrivateAuction":false,"reservePricePerBuyers":[{}]},"nonGuaranteedFixedPriceTerms":{"fixedPrices":[{}]},"rubiconNonGuaranteedTerms":{"priorityPrice":{},"standardPrice":{}},"sellerTimeZone":""},"webPropertyCode":""}],"proposal":{"billedBuyer":{},"buyer":{},"buyerContacts":[{}],"buyerPrivateData":{},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]},"proposalRevisionNumber":"","updateAction":""}'
};

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}}/proposals/:proposalId/deals/update',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "deals": [\n    {\n      "buyerPrivateData": {\n        "referenceId": "",\n        "referencePayload": ""\n      },\n      "creationTimeMs": "",\n      "creativePreApprovalPolicy": "",\n      "creativeSafeFrameCompatibility": "",\n      "dealId": "",\n      "dealServingMetadata": {\n        "alcoholAdsAllowed": false,\n        "dealPauseStatus": {\n          "buyerPauseReason": "",\n          "firstPausedBy": "",\n          "hasBuyerPaused": false,\n          "hasSellerPaused": false,\n          "sellerPauseReason": ""\n        }\n      },\n      "deliveryControl": {\n        "creativeBlockingLevel": "",\n        "deliveryRateType": "",\n        "frequencyCaps": [\n          {\n            "maxImpressions": 0,\n            "numTimeUnits": 0,\n            "timeUnitType": ""\n          }\n        ]\n      },\n      "externalDealId": "",\n      "flightEndTimeMs": "",\n      "flightStartTimeMs": "",\n      "inventoryDescription": "",\n      "isRfpTemplate": false,\n      "isSetupComplete": false,\n      "kind": "",\n      "lastUpdateTimeMs": "",\n      "makegoodRequestedReason": "",\n      "name": "",\n      "productId": "",\n      "productRevisionNumber": "",\n      "programmaticCreativeSource": "",\n      "proposalId": "",\n      "sellerContacts": [\n        {\n          "email": "",\n          "name": ""\n        }\n      ],\n      "sharedTargetings": [\n        {\n          "exclusions": [\n            {\n              "creativeSizeValue": {\n                "allowedFormats": [],\n                "companionSizes": [\n                  {\n                    "height": 0,\n                    "width": 0\n                  }\n                ],\n                "creativeSizeType": "",\n                "nativeTemplate": "",\n                "size": {},\n                "skippableAdType": ""\n              },\n              "dayPartTargetingValue": {\n                "dayParts": [\n                  {\n                    "dayOfWeek": "",\n                    "endHour": 0,\n                    "endMinute": 0,\n                    "startHour": 0,\n                    "startMinute": 0\n                  }\n                ],\n                "timeZoneType": ""\n              },\n              "demogAgeCriteriaValue": {\n                "demogAgeCriteriaIds": []\n              },\n              "demogGenderCriteriaValue": {\n                "demogGenderCriteriaIds": []\n              },\n              "longValue": "",\n              "requestPlatformTargetingValue": {\n                "requestPlatforms": []\n              },\n              "stringValue": ""\n            }\n          ],\n          "inclusions": [\n            {}\n          ],\n          "key": ""\n        }\n      ],\n      "syndicationProduct": "",\n      "terms": {\n        "brandingType": "",\n        "crossListedExternalDealIdType": "",\n        "description": "",\n        "estimatedGrossSpend": {\n          "amountMicros": "",\n          "currencyCode": "",\n          "expectedCpmMicros": "",\n          "pricingType": ""\n        },\n        "estimatedImpressionsPerDay": "",\n        "guaranteedFixedPriceTerms": {\n          "billingInfo": {\n            "currencyConversionTimeMs": "",\n            "dfpLineItemId": "",\n            "originalContractedQuantity": "",\n            "price": {}\n          },\n          "fixedPrices": [\n            {\n              "auctionTier": "",\n              "billedBuyer": {\n                "accountId": ""\n              },\n              "buyer": {},\n              "price": {}\n            }\n          ],\n          "guaranteedImpressions": "",\n          "guaranteedLooks": "",\n          "minimumDailyLooks": ""\n        },\n        "nonGuaranteedAuctionTerms": {\n          "autoOptimizePrivateAuction": false,\n          "reservePricePerBuyers": [\n            {}\n          ]\n        },\n        "nonGuaranteedFixedPriceTerms": {\n          "fixedPrices": [\n            {}\n          ]\n        },\n        "rubiconNonGuaranteedTerms": {\n          "priorityPrice": {},\n          "standardPrice": {}\n        },\n        "sellerTimeZone": ""\n      },\n      "webPropertyCode": ""\n    }\n  ],\n  "proposal": {\n    "billedBuyer": {},\n    "buyer": {},\n    "buyerContacts": [\n      {}\n    ],\n    "buyerPrivateData": {},\n    "dbmAdvertiserIds": [],\n    "hasBuyerSignedOff": false,\n    "hasSellerSignedOff": false,\n    "inventorySource": "",\n    "isRenegotiating": false,\n    "isSetupComplete": false,\n    "kind": "",\n    "labels": [\n      {\n        "accountId": "",\n        "createTimeMs": "",\n        "deprecatedMarketplaceDealParty": {\n          "buyer": {},\n          "seller": {\n            "accountId": "",\n            "subAccountId": ""\n          }\n        },\n        "label": ""\n      }\n    ],\n    "lastUpdaterOrCommentorRole": "",\n    "name": "",\n    "negotiationId": "",\n    "originatorRole": "",\n    "privateAuctionId": "",\n    "proposalId": "",\n    "proposalState": "",\n    "revisionNumber": "",\n    "revisionTimeMs": "",\n    "seller": {},\n    "sellerContacts": [\n      {}\n    ]\n  },\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/deals/update")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  deals: [
    {
      buyerPrivateData: {referenceId: '', referencePayload: ''},
      creationTimeMs: '',
      creativePreApprovalPolicy: '',
      creativeSafeFrameCompatibility: '',
      dealId: '',
      dealServingMetadata: {
        alcoholAdsAllowed: false,
        dealPauseStatus: {
          buyerPauseReason: '',
          firstPausedBy: '',
          hasBuyerPaused: false,
          hasSellerPaused: false,
          sellerPauseReason: ''
        }
      },
      deliveryControl: {
        creativeBlockingLevel: '',
        deliveryRateType: '',
        frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
      },
      externalDealId: '',
      flightEndTimeMs: '',
      flightStartTimeMs: '',
      inventoryDescription: '',
      isRfpTemplate: false,
      isSetupComplete: false,
      kind: '',
      lastUpdateTimeMs: '',
      makegoodRequestedReason: '',
      name: '',
      productId: '',
      productRevisionNumber: '',
      programmaticCreativeSource: '',
      proposalId: '',
      sellerContacts: [{email: '', name: ''}],
      sharedTargetings: [
        {
          exclusions: [
            {
              creativeSizeValue: {
                allowedFormats: [],
                companionSizes: [{height: 0, width: 0}],
                creativeSizeType: '',
                nativeTemplate: '',
                size: {},
                skippableAdType: ''
              },
              dayPartTargetingValue: {
                dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                timeZoneType: ''
              },
              demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
              demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
              longValue: '',
              requestPlatformTargetingValue: {requestPlatforms: []},
              stringValue: ''
            }
          ],
          inclusions: [{}],
          key: ''
        }
      ],
      syndicationProduct: '',
      terms: {
        brandingType: '',
        crossListedExternalDealIdType: '',
        description: '',
        estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
        estimatedImpressionsPerDay: '',
        guaranteedFixedPriceTerms: {
          billingInfo: {
            currencyConversionTimeMs: '',
            dfpLineItemId: '',
            originalContractedQuantity: '',
            price: {}
          },
          fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
          guaranteedImpressions: '',
          guaranteedLooks: '',
          minimumDailyLooks: ''
        },
        nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
        nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
        rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
        sellerTimeZone: ''
      },
      webPropertyCode: ''
    }
  ],
  proposal: {
    billedBuyer: {},
    buyer: {},
    buyerContacts: [{}],
    buyerPrivateData: {},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  },
  proposalRevisionNumber: '',
  updateAction: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/deals/update',
  headers: {'content-type': 'application/json'},
  body: {
    deals: [
      {
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        creationTimeMs: '',
        creativePreApprovalPolicy: '',
        creativeSafeFrameCompatibility: '',
        dealId: '',
        dealServingMetadata: {
          alcoholAdsAllowed: false,
          dealPauseStatus: {
            buyerPauseReason: '',
            firstPausedBy: '',
            hasBuyerPaused: false,
            hasSellerPaused: false,
            sellerPauseReason: ''
          }
        },
        deliveryControl: {
          creativeBlockingLevel: '',
          deliveryRateType: '',
          frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
        },
        externalDealId: '',
        flightEndTimeMs: '',
        flightStartTimeMs: '',
        inventoryDescription: '',
        isRfpTemplate: false,
        isSetupComplete: false,
        kind: '',
        lastUpdateTimeMs: '',
        makegoodRequestedReason: '',
        name: '',
        productId: '',
        productRevisionNumber: '',
        programmaticCreativeSource: '',
        proposalId: '',
        sellerContacts: [{email: '', name: ''}],
        sharedTargetings: [
          {
            exclusions: [
              {
                creativeSizeValue: {
                  allowedFormats: [],
                  companionSizes: [{height: 0, width: 0}],
                  creativeSizeType: '',
                  nativeTemplate: '',
                  size: {},
                  skippableAdType: ''
                },
                dayPartTargetingValue: {
                  dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                  timeZoneType: ''
                },
                demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
                demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
                longValue: '',
                requestPlatformTargetingValue: {requestPlatforms: []},
                stringValue: ''
              }
            ],
            inclusions: [{}],
            key: ''
          }
        ],
        syndicationProduct: '',
        terms: {
          brandingType: '',
          crossListedExternalDealIdType: '',
          description: '',
          estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
          estimatedImpressionsPerDay: '',
          guaranteedFixedPriceTerms: {
            billingInfo: {
              currencyConversionTimeMs: '',
              dfpLineItemId: '',
              originalContractedQuantity: '',
              price: {}
            },
            fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
            guaranteedImpressions: '',
            guaranteedLooks: '',
            minimumDailyLooks: ''
          },
          nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
          nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
          rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
          sellerTimeZone: ''
        },
        webPropertyCode: ''
      }
    ],
    proposal: {
      billedBuyer: {},
      buyer: {},
      buyerContacts: [{}],
      buyerPrivateData: {},
      dbmAdvertiserIds: [],
      hasBuyerSignedOff: false,
      hasSellerSignedOff: false,
      inventorySource: '',
      isRenegotiating: false,
      isSetupComplete: false,
      kind: '',
      labels: [
        {
          accountId: '',
          createTimeMs: '',
          deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
          label: ''
        }
      ],
      lastUpdaterOrCommentorRole: '',
      name: '',
      negotiationId: '',
      originatorRole: '',
      privateAuctionId: '',
      proposalId: '',
      proposalState: '',
      revisionNumber: '',
      revisionTimeMs: '',
      seller: {},
      sellerContacts: [{}]
    },
    proposalRevisionNumber: '',
    updateAction: ''
  },
  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}}/proposals/:proposalId/deals/update');

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

req.type('json');
req.send({
  deals: [
    {
      buyerPrivateData: {
        referenceId: '',
        referencePayload: ''
      },
      creationTimeMs: '',
      creativePreApprovalPolicy: '',
      creativeSafeFrameCompatibility: '',
      dealId: '',
      dealServingMetadata: {
        alcoholAdsAllowed: false,
        dealPauseStatus: {
          buyerPauseReason: '',
          firstPausedBy: '',
          hasBuyerPaused: false,
          hasSellerPaused: false,
          sellerPauseReason: ''
        }
      },
      deliveryControl: {
        creativeBlockingLevel: '',
        deliveryRateType: '',
        frequencyCaps: [
          {
            maxImpressions: 0,
            numTimeUnits: 0,
            timeUnitType: ''
          }
        ]
      },
      externalDealId: '',
      flightEndTimeMs: '',
      flightStartTimeMs: '',
      inventoryDescription: '',
      isRfpTemplate: false,
      isSetupComplete: false,
      kind: '',
      lastUpdateTimeMs: '',
      makegoodRequestedReason: '',
      name: '',
      productId: '',
      productRevisionNumber: '',
      programmaticCreativeSource: '',
      proposalId: '',
      sellerContacts: [
        {
          email: '',
          name: ''
        }
      ],
      sharedTargetings: [
        {
          exclusions: [
            {
              creativeSizeValue: {
                allowedFormats: [],
                companionSizes: [
                  {
                    height: 0,
                    width: 0
                  }
                ],
                creativeSizeType: '',
                nativeTemplate: '',
                size: {},
                skippableAdType: ''
              },
              dayPartTargetingValue: {
                dayParts: [
                  {
                    dayOfWeek: '',
                    endHour: 0,
                    endMinute: 0,
                    startHour: 0,
                    startMinute: 0
                  }
                ],
                timeZoneType: ''
              },
              demogAgeCriteriaValue: {
                demogAgeCriteriaIds: []
              },
              demogGenderCriteriaValue: {
                demogGenderCriteriaIds: []
              },
              longValue: '',
              requestPlatformTargetingValue: {
                requestPlatforms: []
              },
              stringValue: ''
            }
          ],
          inclusions: [
            {}
          ],
          key: ''
        }
      ],
      syndicationProduct: '',
      terms: {
        brandingType: '',
        crossListedExternalDealIdType: '',
        description: '',
        estimatedGrossSpend: {
          amountMicros: '',
          currencyCode: '',
          expectedCpmMicros: '',
          pricingType: ''
        },
        estimatedImpressionsPerDay: '',
        guaranteedFixedPriceTerms: {
          billingInfo: {
            currencyConversionTimeMs: '',
            dfpLineItemId: '',
            originalContractedQuantity: '',
            price: {}
          },
          fixedPrices: [
            {
              auctionTier: '',
              billedBuyer: {
                accountId: ''
              },
              buyer: {},
              price: {}
            }
          ],
          guaranteedImpressions: '',
          guaranteedLooks: '',
          minimumDailyLooks: ''
        },
        nonGuaranteedAuctionTerms: {
          autoOptimizePrivateAuction: false,
          reservePricePerBuyers: [
            {}
          ]
        },
        nonGuaranteedFixedPriceTerms: {
          fixedPrices: [
            {}
          ]
        },
        rubiconNonGuaranteedTerms: {
          priorityPrice: {},
          standardPrice: {}
        },
        sellerTimeZone: ''
      },
      webPropertyCode: ''
    }
  ],
  proposal: {
    billedBuyer: {},
    buyer: {},
    buyerContacts: [
      {}
    ],
    buyerPrivateData: {},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {
          buyer: {},
          seller: {
            accountId: '',
            subAccountId: ''
          }
        },
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [
      {}
    ]
  },
  proposalRevisionNumber: '',
  updateAction: ''
});

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}}/proposals/:proposalId/deals/update',
  headers: {'content-type': 'application/json'},
  data: {
    deals: [
      {
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        creationTimeMs: '',
        creativePreApprovalPolicy: '',
        creativeSafeFrameCompatibility: '',
        dealId: '',
        dealServingMetadata: {
          alcoholAdsAllowed: false,
          dealPauseStatus: {
            buyerPauseReason: '',
            firstPausedBy: '',
            hasBuyerPaused: false,
            hasSellerPaused: false,
            sellerPauseReason: ''
          }
        },
        deliveryControl: {
          creativeBlockingLevel: '',
          deliveryRateType: '',
          frequencyCaps: [{maxImpressions: 0, numTimeUnits: 0, timeUnitType: ''}]
        },
        externalDealId: '',
        flightEndTimeMs: '',
        flightStartTimeMs: '',
        inventoryDescription: '',
        isRfpTemplate: false,
        isSetupComplete: false,
        kind: '',
        lastUpdateTimeMs: '',
        makegoodRequestedReason: '',
        name: '',
        productId: '',
        productRevisionNumber: '',
        programmaticCreativeSource: '',
        proposalId: '',
        sellerContacts: [{email: '', name: ''}],
        sharedTargetings: [
          {
            exclusions: [
              {
                creativeSizeValue: {
                  allowedFormats: [],
                  companionSizes: [{height: 0, width: 0}],
                  creativeSizeType: '',
                  nativeTemplate: '',
                  size: {},
                  skippableAdType: ''
                },
                dayPartTargetingValue: {
                  dayParts: [{dayOfWeek: '', endHour: 0, endMinute: 0, startHour: 0, startMinute: 0}],
                  timeZoneType: ''
                },
                demogAgeCriteriaValue: {demogAgeCriteriaIds: []},
                demogGenderCriteriaValue: {demogGenderCriteriaIds: []},
                longValue: '',
                requestPlatformTargetingValue: {requestPlatforms: []},
                stringValue: ''
              }
            ],
            inclusions: [{}],
            key: ''
          }
        ],
        syndicationProduct: '',
        terms: {
          brandingType: '',
          crossListedExternalDealIdType: '',
          description: '',
          estimatedGrossSpend: {amountMicros: '', currencyCode: '', expectedCpmMicros: '', pricingType: ''},
          estimatedImpressionsPerDay: '',
          guaranteedFixedPriceTerms: {
            billingInfo: {
              currencyConversionTimeMs: '',
              dfpLineItemId: '',
              originalContractedQuantity: '',
              price: {}
            },
            fixedPrices: [{auctionTier: '', billedBuyer: {accountId: ''}, buyer: {}, price: {}}],
            guaranteedImpressions: '',
            guaranteedLooks: '',
            minimumDailyLooks: ''
          },
          nonGuaranteedAuctionTerms: {autoOptimizePrivateAuction: false, reservePricePerBuyers: [{}]},
          nonGuaranteedFixedPriceTerms: {fixedPrices: [{}]},
          rubiconNonGuaranteedTerms: {priorityPrice: {}, standardPrice: {}},
          sellerTimeZone: ''
        },
        webPropertyCode: ''
      }
    ],
    proposal: {
      billedBuyer: {},
      buyer: {},
      buyerContacts: [{}],
      buyerPrivateData: {},
      dbmAdvertiserIds: [],
      hasBuyerSignedOff: false,
      hasSellerSignedOff: false,
      inventorySource: '',
      isRenegotiating: false,
      isSetupComplete: false,
      kind: '',
      labels: [
        {
          accountId: '',
          createTimeMs: '',
          deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
          label: ''
        }
      ],
      lastUpdaterOrCommentorRole: '',
      name: '',
      negotiationId: '',
      originatorRole: '',
      privateAuctionId: '',
      proposalId: '',
      proposalState: '',
      revisionNumber: '',
      revisionTimeMs: '',
      seller: {},
      sellerContacts: [{}]
    },
    proposalRevisionNumber: '',
    updateAction: ''
  }
};

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

const url = '{{baseUrl}}/proposals/:proposalId/deals/update';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"deals":[{"buyerPrivateData":{"referenceId":"","referencePayload":""},"creationTimeMs":"","creativePreApprovalPolicy":"","creativeSafeFrameCompatibility":"","dealId":"","dealServingMetadata":{"alcoholAdsAllowed":false,"dealPauseStatus":{"buyerPauseReason":"","firstPausedBy":"","hasBuyerPaused":false,"hasSellerPaused":false,"sellerPauseReason":""}},"deliveryControl":{"creativeBlockingLevel":"","deliveryRateType":"","frequencyCaps":[{"maxImpressions":0,"numTimeUnits":0,"timeUnitType":""}]},"externalDealId":"","flightEndTimeMs":"","flightStartTimeMs":"","inventoryDescription":"","isRfpTemplate":false,"isSetupComplete":false,"kind":"","lastUpdateTimeMs":"","makegoodRequestedReason":"","name":"","productId":"","productRevisionNumber":"","programmaticCreativeSource":"","proposalId":"","sellerContacts":[{"email":"","name":""}],"sharedTargetings":[{"exclusions":[{"creativeSizeValue":{"allowedFormats":[],"companionSizes":[{"height":0,"width":0}],"creativeSizeType":"","nativeTemplate":"","size":{},"skippableAdType":""},"dayPartTargetingValue":{"dayParts":[{"dayOfWeek":"","endHour":0,"endMinute":0,"startHour":0,"startMinute":0}],"timeZoneType":""},"demogAgeCriteriaValue":{"demogAgeCriteriaIds":[]},"demogGenderCriteriaValue":{"demogGenderCriteriaIds":[]},"longValue":"","requestPlatformTargetingValue":{"requestPlatforms":[]},"stringValue":""}],"inclusions":[{}],"key":""}],"syndicationProduct":"","terms":{"brandingType":"","crossListedExternalDealIdType":"","description":"","estimatedGrossSpend":{"amountMicros":"","currencyCode":"","expectedCpmMicros":"","pricingType":""},"estimatedImpressionsPerDay":"","guaranteedFixedPriceTerms":{"billingInfo":{"currencyConversionTimeMs":"","dfpLineItemId":"","originalContractedQuantity":"","price":{}},"fixedPrices":[{"auctionTier":"","billedBuyer":{"accountId":""},"buyer":{},"price":{}}],"guaranteedImpressions":"","guaranteedLooks":"","minimumDailyLooks":""},"nonGuaranteedAuctionTerms":{"autoOptimizePrivateAuction":false,"reservePricePerBuyers":[{}]},"nonGuaranteedFixedPriceTerms":{"fixedPrices":[{}]},"rubiconNonGuaranteedTerms":{"priorityPrice":{},"standardPrice":{}},"sellerTimeZone":""},"webPropertyCode":""}],"proposal":{"billedBuyer":{},"buyer":{},"buyerContacts":[{}],"buyerPrivateData":{},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]},"proposalRevisionNumber":"","updateAction":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"deals": @[ @{ @"buyerPrivateData": @{ @"referenceId": @"", @"referencePayload": @"" }, @"creationTimeMs": @"", @"creativePreApprovalPolicy": @"", @"creativeSafeFrameCompatibility": @"", @"dealId": @"", @"dealServingMetadata": @{ @"alcoholAdsAllowed": @NO, @"dealPauseStatus": @{ @"buyerPauseReason": @"", @"firstPausedBy": @"", @"hasBuyerPaused": @NO, @"hasSellerPaused": @NO, @"sellerPauseReason": @"" } }, @"deliveryControl": @{ @"creativeBlockingLevel": @"", @"deliveryRateType": @"", @"frequencyCaps": @[ @{ @"maxImpressions": @0, @"numTimeUnits": @0, @"timeUnitType": @"" } ] }, @"externalDealId": @"", @"flightEndTimeMs": @"", @"flightStartTimeMs": @"", @"inventoryDescription": @"", @"isRfpTemplate": @NO, @"isSetupComplete": @NO, @"kind": @"", @"lastUpdateTimeMs": @"", @"makegoodRequestedReason": @"", @"name": @"", @"productId": @"", @"productRevisionNumber": @"", @"programmaticCreativeSource": @"", @"proposalId": @"", @"sellerContacts": @[ @{ @"email": @"", @"name": @"" } ], @"sharedTargetings": @[ @{ @"exclusions": @[ @{ @"creativeSizeValue": @{ @"allowedFormats": @[  ], @"companionSizes": @[ @{ @"height": @0, @"width": @0 } ], @"creativeSizeType": @"", @"nativeTemplate": @"", @"size": @{  }, @"skippableAdType": @"" }, @"dayPartTargetingValue": @{ @"dayParts": @[ @{ @"dayOfWeek": @"", @"endHour": @0, @"endMinute": @0, @"startHour": @0, @"startMinute": @0 } ], @"timeZoneType": @"" }, @"demogAgeCriteriaValue": @{ @"demogAgeCriteriaIds": @[  ] }, @"demogGenderCriteriaValue": @{ @"demogGenderCriteriaIds": @[  ] }, @"longValue": @"", @"requestPlatformTargetingValue": @{ @"requestPlatforms": @[  ] }, @"stringValue": @"" } ], @"inclusions": @[ @{  } ], @"key": @"" } ], @"syndicationProduct": @"", @"terms": @{ @"brandingType": @"", @"crossListedExternalDealIdType": @"", @"description": @"", @"estimatedGrossSpend": @{ @"amountMicros": @"", @"currencyCode": @"", @"expectedCpmMicros": @"", @"pricingType": @"" }, @"estimatedImpressionsPerDay": @"", @"guaranteedFixedPriceTerms": @{ @"billingInfo": @{ @"currencyConversionTimeMs": @"", @"dfpLineItemId": @"", @"originalContractedQuantity": @"", @"price": @{  } }, @"fixedPrices": @[ @{ @"auctionTier": @"", @"billedBuyer": @{ @"accountId": @"" }, @"buyer": @{  }, @"price": @{  } } ], @"guaranteedImpressions": @"", @"guaranteedLooks": @"", @"minimumDailyLooks": @"" }, @"nonGuaranteedAuctionTerms": @{ @"autoOptimizePrivateAuction": @NO, @"reservePricePerBuyers": @[ @{  } ] }, @"nonGuaranteedFixedPriceTerms": @{ @"fixedPrices": @[ @{  } ] }, @"rubiconNonGuaranteedTerms": @{ @"priorityPrice": @{  }, @"standardPrice": @{  } }, @"sellerTimeZone": @"" }, @"webPropertyCode": @"" } ],
                              @"proposal": @{ @"billedBuyer": @{  }, @"buyer": @{  }, @"buyerContacts": @[ @{  } ], @"buyerPrivateData": @{  }, @"dbmAdvertiserIds": @[  ], @"hasBuyerSignedOff": @NO, @"hasSellerSignedOff": @NO, @"inventorySource": @"", @"isRenegotiating": @NO, @"isSetupComplete": @NO, @"kind": @"", @"labels": @[ @{ @"accountId": @"", @"createTimeMs": @"", @"deprecatedMarketplaceDealParty": @{ @"buyer": @{  }, @"seller": @{ @"accountId": @"", @"subAccountId": @"" } }, @"label": @"" } ], @"lastUpdaterOrCommentorRole": @"", @"name": @"", @"negotiationId": @"", @"originatorRole": @"", @"privateAuctionId": @"", @"proposalId": @"", @"proposalState": @"", @"revisionNumber": @"", @"revisionTimeMs": @"", @"seller": @{  }, @"sellerContacts": @[ @{  } ] },
                              @"proposalRevisionNumber": @"",
                              @"updateAction": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/deals/update"]
                                                       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}}/proposals/:proposalId/deals/update" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/deals/update",
  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([
    'deals' => [
        [
                'buyerPrivateData' => [
                                'referenceId' => '',
                                'referencePayload' => ''
                ],
                'creationTimeMs' => '',
                'creativePreApprovalPolicy' => '',
                'creativeSafeFrameCompatibility' => '',
                'dealId' => '',
                'dealServingMetadata' => [
                                'alcoholAdsAllowed' => null,
                                'dealPauseStatus' => [
                                                                'buyerPauseReason' => '',
                                                                'firstPausedBy' => '',
                                                                'hasBuyerPaused' => null,
                                                                'hasSellerPaused' => null,
                                                                'sellerPauseReason' => ''
                                ]
                ],
                'deliveryControl' => [
                                'creativeBlockingLevel' => '',
                                'deliveryRateType' => '',
                                'frequencyCaps' => [
                                                                [
                                                                                                                                'maxImpressions' => 0,
                                                                                                                                'numTimeUnits' => 0,
                                                                                                                                'timeUnitType' => ''
                                                                ]
                                ]
                ],
                'externalDealId' => '',
                'flightEndTimeMs' => '',
                'flightStartTimeMs' => '',
                'inventoryDescription' => '',
                'isRfpTemplate' => null,
                'isSetupComplete' => null,
                'kind' => '',
                'lastUpdateTimeMs' => '',
                'makegoodRequestedReason' => '',
                'name' => '',
                'productId' => '',
                'productRevisionNumber' => '',
                'programmaticCreativeSource' => '',
                'proposalId' => '',
                'sellerContacts' => [
                                [
                                                                'email' => '',
                                                                'name' => ''
                                ]
                ],
                'sharedTargetings' => [
                                [
                                                                'exclusions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'creativeSizeValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'allowedFormats' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'companionSizes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'height' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'creativeSizeType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'nativeTemplate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'size' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'skippableAdType' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'dayPartTargetingValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayParts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayOfWeek' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endMinute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startMinute' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'timeZoneType' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'demogAgeCriteriaValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'demogAgeCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'demogGenderCriteriaValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'demogGenderCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'longValue' => '',
                                                                                                                                                                                                                                                                'requestPlatformTargetingValue' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'requestPlatforms' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'stringValue' => ''
                                                                                                                                ]
                                                                ],
                                                                'inclusions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'key' => ''
                                ]
                ],
                'syndicationProduct' => '',
                'terms' => [
                                'brandingType' => '',
                                'crossListedExternalDealIdType' => '',
                                'description' => '',
                                'estimatedGrossSpend' => [
                                                                'amountMicros' => '',
                                                                'currencyCode' => '',
                                                                'expectedCpmMicros' => '',
                                                                'pricingType' => ''
                                ],
                                'estimatedImpressionsPerDay' => '',
                                'guaranteedFixedPriceTerms' => [
                                                                'billingInfo' => [
                                                                                                                                'currencyConversionTimeMs' => '',
                                                                                                                                'dfpLineItemId' => '',
                                                                                                                                'originalContractedQuantity' => '',
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'fixedPrices' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'auctionTier' => '',
                                                                                                                                                                                                                                                                'billedBuyer' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'accountId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'guaranteedImpressions' => '',
                                                                'guaranteedLooks' => '',
                                                                'minimumDailyLooks' => ''
                                ],
                                'nonGuaranteedAuctionTerms' => [
                                                                'autoOptimizePrivateAuction' => null,
                                                                'reservePricePerBuyers' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'nonGuaranteedFixedPriceTerms' => [
                                                                'fixedPrices' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'rubiconNonGuaranteedTerms' => [
                                                                'priorityPrice' => [
                                                                                                                                
                                                                ],
                                                                'standardPrice' => [
                                                                                                                                
                                                                ]
                                ],
                                'sellerTimeZone' => ''
                ],
                'webPropertyCode' => ''
        ]
    ],
    'proposal' => [
        'billedBuyer' => [
                
        ],
        'buyer' => [
                
        ],
        'buyerContacts' => [
                [
                                
                ]
        ],
        'buyerPrivateData' => [
                
        ],
        'dbmAdvertiserIds' => [
                
        ],
        'hasBuyerSignedOff' => null,
        'hasSellerSignedOff' => null,
        'inventorySource' => '',
        'isRenegotiating' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'labels' => [
                [
                                'accountId' => '',
                                'createTimeMs' => '',
                                'deprecatedMarketplaceDealParty' => [
                                                                'buyer' => [
                                                                                                                                
                                                                ],
                                                                'seller' => [
                                                                                                                                'accountId' => '',
                                                                                                                                'subAccountId' => ''
                                                                ]
                                ],
                                'label' => ''
                ]
        ],
        'lastUpdaterOrCommentorRole' => '',
        'name' => '',
        'negotiationId' => '',
        'originatorRole' => '',
        'privateAuctionId' => '',
        'proposalId' => '',
        'proposalState' => '',
        'revisionNumber' => '',
        'revisionTimeMs' => '',
        'seller' => [
                
        ],
        'sellerContacts' => [
                [
                                
                ]
        ]
    ],
    'proposalRevisionNumber' => '',
    'updateAction' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/proposals/:proposalId/deals/update', [
  'body' => '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/deals/update');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'deals' => [
    [
        'buyerPrivateData' => [
                'referenceId' => '',
                'referencePayload' => ''
        ],
        'creationTimeMs' => '',
        'creativePreApprovalPolicy' => '',
        'creativeSafeFrameCompatibility' => '',
        'dealId' => '',
        'dealServingMetadata' => [
                'alcoholAdsAllowed' => null,
                'dealPauseStatus' => [
                                'buyerPauseReason' => '',
                                'firstPausedBy' => '',
                                'hasBuyerPaused' => null,
                                'hasSellerPaused' => null,
                                'sellerPauseReason' => ''
                ]
        ],
        'deliveryControl' => [
                'creativeBlockingLevel' => '',
                'deliveryRateType' => '',
                'frequencyCaps' => [
                                [
                                                                'maxImpressions' => 0,
                                                                'numTimeUnits' => 0,
                                                                'timeUnitType' => ''
                                ]
                ]
        ],
        'externalDealId' => '',
        'flightEndTimeMs' => '',
        'flightStartTimeMs' => '',
        'inventoryDescription' => '',
        'isRfpTemplate' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'lastUpdateTimeMs' => '',
        'makegoodRequestedReason' => '',
        'name' => '',
        'productId' => '',
        'productRevisionNumber' => '',
        'programmaticCreativeSource' => '',
        'proposalId' => '',
        'sellerContacts' => [
                [
                                'email' => '',
                                'name' => ''
                ]
        ],
        'sharedTargetings' => [
                [
                                'exclusions' => [
                                                                [
                                                                                                                                'creativeSizeValue' => [
                                                                                                                                                                                                                                                                'allowedFormats' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'companionSizes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'height' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'creativeSizeType' => '',
                                                                                                                                                                                                                                                                'nativeTemplate' => '',
                                                                                                                                                                                                                                                                'size' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'skippableAdType' => ''
                                                                                                                                ],
                                                                                                                                'dayPartTargetingValue' => [
                                                                                                                                                                                                                                                                'dayParts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayOfWeek' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endMinute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startMinute' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeZoneType' => ''
                                                                                                                                ],
                                                                                                                                'demogAgeCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogAgeCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'demogGenderCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogGenderCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'longValue' => '',
                                                                                                                                'requestPlatformTargetingValue' => [
                                                                                                                                                                                                                                                                'requestPlatforms' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'stringValue' => ''
                                                                ]
                                ],
                                'inclusions' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'key' => ''
                ]
        ],
        'syndicationProduct' => '',
        'terms' => [
                'brandingType' => '',
                'crossListedExternalDealIdType' => '',
                'description' => '',
                'estimatedGrossSpend' => [
                                'amountMicros' => '',
                                'currencyCode' => '',
                                'expectedCpmMicros' => '',
                                'pricingType' => ''
                ],
                'estimatedImpressionsPerDay' => '',
                'guaranteedFixedPriceTerms' => [
                                'billingInfo' => [
                                                                'currencyConversionTimeMs' => '',
                                                                'dfpLineItemId' => '',
                                                                'originalContractedQuantity' => '',
                                                                'price' => [
                                                                                                                                
                                                                ]
                                ],
                                'fixedPrices' => [
                                                                [
                                                                                                                                'auctionTier' => '',
                                                                                                                                'billedBuyer' => [
                                                                                                                                                                                                                                                                'accountId' => ''
                                                                                                                                ],
                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'guaranteedImpressions' => '',
                                'guaranteedLooks' => '',
                                'minimumDailyLooks' => ''
                ],
                'nonGuaranteedAuctionTerms' => [
                                'autoOptimizePrivateAuction' => null,
                                'reservePricePerBuyers' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'nonGuaranteedFixedPriceTerms' => [
                                'fixedPrices' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'rubiconNonGuaranteedTerms' => [
                                'priorityPrice' => [
                                                                
                                ],
                                'standardPrice' => [
                                                                
                                ]
                ],
                'sellerTimeZone' => ''
        ],
        'webPropertyCode' => ''
    ]
  ],
  'proposal' => [
    'billedBuyer' => [
        
    ],
    'buyer' => [
        
    ],
    'buyerContacts' => [
        [
                
        ]
    ],
    'buyerPrivateData' => [
        
    ],
    'dbmAdvertiserIds' => [
        
    ],
    'hasBuyerSignedOff' => null,
    'hasSellerSignedOff' => null,
    'inventorySource' => '',
    'isRenegotiating' => null,
    'isSetupComplete' => null,
    'kind' => '',
    'labels' => [
        [
                'accountId' => '',
                'createTimeMs' => '',
                'deprecatedMarketplaceDealParty' => [
                                'buyer' => [
                                                                
                                ],
                                'seller' => [
                                                                'accountId' => '',
                                                                'subAccountId' => ''
                                ]
                ],
                'label' => ''
        ]
    ],
    'lastUpdaterOrCommentorRole' => '',
    'name' => '',
    'negotiationId' => '',
    'originatorRole' => '',
    'privateAuctionId' => '',
    'proposalId' => '',
    'proposalState' => '',
    'revisionNumber' => '',
    'revisionTimeMs' => '',
    'seller' => [
        
    ],
    'sellerContacts' => [
        [
                
        ]
    ]
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'deals' => [
    [
        'buyerPrivateData' => [
                'referenceId' => '',
                'referencePayload' => ''
        ],
        'creationTimeMs' => '',
        'creativePreApprovalPolicy' => '',
        'creativeSafeFrameCompatibility' => '',
        'dealId' => '',
        'dealServingMetadata' => [
                'alcoholAdsAllowed' => null,
                'dealPauseStatus' => [
                                'buyerPauseReason' => '',
                                'firstPausedBy' => '',
                                'hasBuyerPaused' => null,
                                'hasSellerPaused' => null,
                                'sellerPauseReason' => ''
                ]
        ],
        'deliveryControl' => [
                'creativeBlockingLevel' => '',
                'deliveryRateType' => '',
                'frequencyCaps' => [
                                [
                                                                'maxImpressions' => 0,
                                                                'numTimeUnits' => 0,
                                                                'timeUnitType' => ''
                                ]
                ]
        ],
        'externalDealId' => '',
        'flightEndTimeMs' => '',
        'flightStartTimeMs' => '',
        'inventoryDescription' => '',
        'isRfpTemplate' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'lastUpdateTimeMs' => '',
        'makegoodRequestedReason' => '',
        'name' => '',
        'productId' => '',
        'productRevisionNumber' => '',
        'programmaticCreativeSource' => '',
        'proposalId' => '',
        'sellerContacts' => [
                [
                                'email' => '',
                                'name' => ''
                ]
        ],
        'sharedTargetings' => [
                [
                                'exclusions' => [
                                                                [
                                                                                                                                'creativeSizeValue' => [
                                                                                                                                                                                                                                                                'allowedFormats' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'companionSizes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'height' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'width' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'creativeSizeType' => '',
                                                                                                                                                                                                                                                                'nativeTemplate' => '',
                                                                                                                                                                                                                                                                'size' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'skippableAdType' => ''
                                                                                                                                ],
                                                                                                                                'dayPartTargetingValue' => [
                                                                                                                                                                                                                                                                'dayParts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dayOfWeek' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'endMinute' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startHour' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startMinute' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeZoneType' => ''
                                                                                                                                ],
                                                                                                                                'demogAgeCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogAgeCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'demogGenderCriteriaValue' => [
                                                                                                                                                                                                                                                                'demogGenderCriteriaIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'longValue' => '',
                                                                                                                                'requestPlatformTargetingValue' => [
                                                                                                                                                                                                                                                                'requestPlatforms' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'stringValue' => ''
                                                                ]
                                ],
                                'inclusions' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'key' => ''
                ]
        ],
        'syndicationProduct' => '',
        'terms' => [
                'brandingType' => '',
                'crossListedExternalDealIdType' => '',
                'description' => '',
                'estimatedGrossSpend' => [
                                'amountMicros' => '',
                                'currencyCode' => '',
                                'expectedCpmMicros' => '',
                                'pricingType' => ''
                ],
                'estimatedImpressionsPerDay' => '',
                'guaranteedFixedPriceTerms' => [
                                'billingInfo' => [
                                                                'currencyConversionTimeMs' => '',
                                                                'dfpLineItemId' => '',
                                                                'originalContractedQuantity' => '',
                                                                'price' => [
                                                                                                                                
                                                                ]
                                ],
                                'fixedPrices' => [
                                                                [
                                                                                                                                'auctionTier' => '',
                                                                                                                                'billedBuyer' => [
                                                                                                                                                                                                                                                                'accountId' => ''
                                                                                                                                ],
                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'price' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'guaranteedImpressions' => '',
                                'guaranteedLooks' => '',
                                'minimumDailyLooks' => ''
                ],
                'nonGuaranteedAuctionTerms' => [
                                'autoOptimizePrivateAuction' => null,
                                'reservePricePerBuyers' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'nonGuaranteedFixedPriceTerms' => [
                                'fixedPrices' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'rubiconNonGuaranteedTerms' => [
                                'priorityPrice' => [
                                                                
                                ],
                                'standardPrice' => [
                                                                
                                ]
                ],
                'sellerTimeZone' => ''
        ],
        'webPropertyCode' => ''
    ]
  ],
  'proposal' => [
    'billedBuyer' => [
        
    ],
    'buyer' => [
        
    ],
    'buyerContacts' => [
        [
                
        ]
    ],
    'buyerPrivateData' => [
        
    ],
    'dbmAdvertiserIds' => [
        
    ],
    'hasBuyerSignedOff' => null,
    'hasSellerSignedOff' => null,
    'inventorySource' => '',
    'isRenegotiating' => null,
    'isSetupComplete' => null,
    'kind' => '',
    'labels' => [
        [
                'accountId' => '',
                'createTimeMs' => '',
                'deprecatedMarketplaceDealParty' => [
                                'buyer' => [
                                                                
                                ],
                                'seller' => [
                                                                'accountId' => '',
                                                                'subAccountId' => ''
                                ]
                ],
                'label' => ''
        ]
    ],
    'lastUpdaterOrCommentorRole' => '',
    'name' => '',
    'negotiationId' => '',
    'originatorRole' => '',
    'privateAuctionId' => '',
    'proposalId' => '',
    'proposalState' => '',
    'revisionNumber' => '',
    'revisionTimeMs' => '',
    'seller' => [
        
    ],
    'sellerContacts' => [
        [
                
        ]
    ]
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));
$request->setRequestUrl('{{baseUrl}}/proposals/:proposalId/deals/update');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/deals/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/deals/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
import http.client

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

payload = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"

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

conn.request("POST", "/baseUrl/proposals/:proposalId/deals/update", payload, headers)

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

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

url = "{{baseUrl}}/proposals/:proposalId/deals/update"

payload = {
    "deals": [
        {
            "buyerPrivateData": {
                "referenceId": "",
                "referencePayload": ""
            },
            "creationTimeMs": "",
            "creativePreApprovalPolicy": "",
            "creativeSafeFrameCompatibility": "",
            "dealId": "",
            "dealServingMetadata": {
                "alcoholAdsAllowed": False,
                "dealPauseStatus": {
                    "buyerPauseReason": "",
                    "firstPausedBy": "",
                    "hasBuyerPaused": False,
                    "hasSellerPaused": False,
                    "sellerPauseReason": ""
                }
            },
            "deliveryControl": {
                "creativeBlockingLevel": "",
                "deliveryRateType": "",
                "frequencyCaps": [
                    {
                        "maxImpressions": 0,
                        "numTimeUnits": 0,
                        "timeUnitType": ""
                    }
                ]
            },
            "externalDealId": "",
            "flightEndTimeMs": "",
            "flightStartTimeMs": "",
            "inventoryDescription": "",
            "isRfpTemplate": False,
            "isSetupComplete": False,
            "kind": "",
            "lastUpdateTimeMs": "",
            "makegoodRequestedReason": "",
            "name": "",
            "productId": "",
            "productRevisionNumber": "",
            "programmaticCreativeSource": "",
            "proposalId": "",
            "sellerContacts": [
                {
                    "email": "",
                    "name": ""
                }
            ],
            "sharedTargetings": [
                {
                    "exclusions": [
                        {
                            "creativeSizeValue": {
                                "allowedFormats": [],
                                "companionSizes": [
                                    {
                                        "height": 0,
                                        "width": 0
                                    }
                                ],
                                "creativeSizeType": "",
                                "nativeTemplate": "",
                                "size": {},
                                "skippableAdType": ""
                            },
                            "dayPartTargetingValue": {
                                "dayParts": [
                                    {
                                        "dayOfWeek": "",
                                        "endHour": 0,
                                        "endMinute": 0,
                                        "startHour": 0,
                                        "startMinute": 0
                                    }
                                ],
                                "timeZoneType": ""
                            },
                            "demogAgeCriteriaValue": { "demogAgeCriteriaIds": [] },
                            "demogGenderCriteriaValue": { "demogGenderCriteriaIds": [] },
                            "longValue": "",
                            "requestPlatformTargetingValue": { "requestPlatforms": [] },
                            "stringValue": ""
                        }
                    ],
                    "inclusions": [{}],
                    "key": ""
                }
            ],
            "syndicationProduct": "",
            "terms": {
                "brandingType": "",
                "crossListedExternalDealIdType": "",
                "description": "",
                "estimatedGrossSpend": {
                    "amountMicros": "",
                    "currencyCode": "",
                    "expectedCpmMicros": "",
                    "pricingType": ""
                },
                "estimatedImpressionsPerDay": "",
                "guaranteedFixedPriceTerms": {
                    "billingInfo": {
                        "currencyConversionTimeMs": "",
                        "dfpLineItemId": "",
                        "originalContractedQuantity": "",
                        "price": {}
                    },
                    "fixedPrices": [
                        {
                            "auctionTier": "",
                            "billedBuyer": { "accountId": "" },
                            "buyer": {},
                            "price": {}
                        }
                    ],
                    "guaranteedImpressions": "",
                    "guaranteedLooks": "",
                    "minimumDailyLooks": ""
                },
                "nonGuaranteedAuctionTerms": {
                    "autoOptimizePrivateAuction": False,
                    "reservePricePerBuyers": [{}]
                },
                "nonGuaranteedFixedPriceTerms": { "fixedPrices": [{}] },
                "rubiconNonGuaranteedTerms": {
                    "priorityPrice": {},
                    "standardPrice": {}
                },
                "sellerTimeZone": ""
            },
            "webPropertyCode": ""
        }
    ],
    "proposal": {
        "billedBuyer": {},
        "buyer": {},
        "buyerContacts": [{}],
        "buyerPrivateData": {},
        "dbmAdvertiserIds": [],
        "hasBuyerSignedOff": False,
        "hasSellerSignedOff": False,
        "inventorySource": "",
        "isRenegotiating": False,
        "isSetupComplete": False,
        "kind": "",
        "labels": [
            {
                "accountId": "",
                "createTimeMs": "",
                "deprecatedMarketplaceDealParty": {
                    "buyer": {},
                    "seller": {
                        "accountId": "",
                        "subAccountId": ""
                    }
                },
                "label": ""
            }
        ],
        "lastUpdaterOrCommentorRole": "",
        "name": "",
        "negotiationId": "",
        "originatorRole": "",
        "privateAuctionId": "",
        "proposalId": "",
        "proposalState": "",
        "revisionNumber": "",
        "revisionTimeMs": "",
        "seller": {},
        "sellerContacts": [{}]
    },
    "proposalRevisionNumber": "",
    "updateAction": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/proposals/:proposalId/deals/update"

payload <- "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/proposals/:proposalId/deals/update")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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/proposals/:proposalId/deals/update') do |req|
  req.body = "{\n  \"deals\": [\n    {\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"creationTimeMs\": \"\",\n      \"creativePreApprovalPolicy\": \"\",\n      \"creativeSafeFrameCompatibility\": \"\",\n      \"dealId\": \"\",\n      \"dealServingMetadata\": {\n        \"alcoholAdsAllowed\": false,\n        \"dealPauseStatus\": {\n          \"buyerPauseReason\": \"\",\n          \"firstPausedBy\": \"\",\n          \"hasBuyerPaused\": false,\n          \"hasSellerPaused\": false,\n          \"sellerPauseReason\": \"\"\n        }\n      },\n      \"deliveryControl\": {\n        \"creativeBlockingLevel\": \"\",\n        \"deliveryRateType\": \"\",\n        \"frequencyCaps\": [\n          {\n            \"maxImpressions\": 0,\n            \"numTimeUnits\": 0,\n            \"timeUnitType\": \"\"\n          }\n        ]\n      },\n      \"externalDealId\": \"\",\n      \"flightEndTimeMs\": \"\",\n      \"flightStartTimeMs\": \"\",\n      \"inventoryDescription\": \"\",\n      \"isRfpTemplate\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"lastUpdateTimeMs\": \"\",\n      \"makegoodRequestedReason\": \"\",\n      \"name\": \"\",\n      \"productId\": \"\",\n      \"productRevisionNumber\": \"\",\n      \"programmaticCreativeSource\": \"\",\n      \"proposalId\": \"\",\n      \"sellerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"sharedTargetings\": [\n        {\n          \"exclusions\": [\n            {\n              \"creativeSizeValue\": {\n                \"allowedFormats\": [],\n                \"companionSizes\": [\n                  {\n                    \"height\": 0,\n                    \"width\": 0\n                  }\n                ],\n                \"creativeSizeType\": \"\",\n                \"nativeTemplate\": \"\",\n                \"size\": {},\n                \"skippableAdType\": \"\"\n              },\n              \"dayPartTargetingValue\": {\n                \"dayParts\": [\n                  {\n                    \"dayOfWeek\": \"\",\n                    \"endHour\": 0,\n                    \"endMinute\": 0,\n                    \"startHour\": 0,\n                    \"startMinute\": 0\n                  }\n                ],\n                \"timeZoneType\": \"\"\n              },\n              \"demogAgeCriteriaValue\": {\n                \"demogAgeCriteriaIds\": []\n              },\n              \"demogGenderCriteriaValue\": {\n                \"demogGenderCriteriaIds\": []\n              },\n              \"longValue\": \"\",\n              \"requestPlatformTargetingValue\": {\n                \"requestPlatforms\": []\n              },\n              \"stringValue\": \"\"\n            }\n          ],\n          \"inclusions\": [\n            {}\n          ],\n          \"key\": \"\"\n        }\n      ],\n      \"syndicationProduct\": \"\",\n      \"terms\": {\n        \"brandingType\": \"\",\n        \"crossListedExternalDealIdType\": \"\",\n        \"description\": \"\",\n        \"estimatedGrossSpend\": {\n          \"amountMicros\": \"\",\n          \"currencyCode\": \"\",\n          \"expectedCpmMicros\": \"\",\n          \"pricingType\": \"\"\n        },\n        \"estimatedImpressionsPerDay\": \"\",\n        \"guaranteedFixedPriceTerms\": {\n          \"billingInfo\": {\n            \"currencyConversionTimeMs\": \"\",\n            \"dfpLineItemId\": \"\",\n            \"originalContractedQuantity\": \"\",\n            \"price\": {}\n          },\n          \"fixedPrices\": [\n            {\n              \"auctionTier\": \"\",\n              \"billedBuyer\": {\n                \"accountId\": \"\"\n              },\n              \"buyer\": {},\n              \"price\": {}\n            }\n          ],\n          \"guaranteedImpressions\": \"\",\n          \"guaranteedLooks\": \"\",\n          \"minimumDailyLooks\": \"\"\n        },\n        \"nonGuaranteedAuctionTerms\": {\n          \"autoOptimizePrivateAuction\": false,\n          \"reservePricePerBuyers\": [\n            {}\n          ]\n        },\n        \"nonGuaranteedFixedPriceTerms\": {\n          \"fixedPrices\": [\n            {}\n          ]\n        },\n        \"rubiconNonGuaranteedTerms\": {\n          \"priorityPrice\": {},\n          \"standardPrice\": {}\n        },\n        \"sellerTimeZone\": \"\"\n      },\n      \"webPropertyCode\": \"\"\n    }\n  ],\n  \"proposal\": {\n    \"billedBuyer\": {},\n    \"buyer\": {},\n    \"buyerContacts\": [\n      {}\n    ],\n    \"buyerPrivateData\": {},\n    \"dbmAdvertiserIds\": [],\n    \"hasBuyerSignedOff\": false,\n    \"hasSellerSignedOff\": false,\n    \"inventorySource\": \"\",\n    \"isRenegotiating\": false,\n    \"isSetupComplete\": false,\n    \"kind\": \"\",\n    \"labels\": [\n      {\n        \"accountId\": \"\",\n        \"createTimeMs\": \"\",\n        \"deprecatedMarketplaceDealParty\": {\n          \"buyer\": {},\n          \"seller\": {\n            \"accountId\": \"\",\n            \"subAccountId\": \"\"\n          }\n        },\n        \"label\": \"\"\n      }\n    ],\n    \"lastUpdaterOrCommentorRole\": \"\",\n    \"name\": \"\",\n    \"negotiationId\": \"\",\n    \"originatorRole\": \"\",\n    \"privateAuctionId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalState\": \"\",\n    \"revisionNumber\": \"\",\n    \"revisionTimeMs\": \"\",\n    \"seller\": {},\n    \"sellerContacts\": [\n      {}\n    ]\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"
end

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

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

    let payload = json!({
        "deals": (
            json!({
                "buyerPrivateData": json!({
                    "referenceId": "",
                    "referencePayload": ""
                }),
                "creationTimeMs": "",
                "creativePreApprovalPolicy": "",
                "creativeSafeFrameCompatibility": "",
                "dealId": "",
                "dealServingMetadata": json!({
                    "alcoholAdsAllowed": false,
                    "dealPauseStatus": json!({
                        "buyerPauseReason": "",
                        "firstPausedBy": "",
                        "hasBuyerPaused": false,
                        "hasSellerPaused": false,
                        "sellerPauseReason": ""
                    })
                }),
                "deliveryControl": json!({
                    "creativeBlockingLevel": "",
                    "deliveryRateType": "",
                    "frequencyCaps": (
                        json!({
                            "maxImpressions": 0,
                            "numTimeUnits": 0,
                            "timeUnitType": ""
                        })
                    )
                }),
                "externalDealId": "",
                "flightEndTimeMs": "",
                "flightStartTimeMs": "",
                "inventoryDescription": "",
                "isRfpTemplate": false,
                "isSetupComplete": false,
                "kind": "",
                "lastUpdateTimeMs": "",
                "makegoodRequestedReason": "",
                "name": "",
                "productId": "",
                "productRevisionNumber": "",
                "programmaticCreativeSource": "",
                "proposalId": "",
                "sellerContacts": (
                    json!({
                        "email": "",
                        "name": ""
                    })
                ),
                "sharedTargetings": (
                    json!({
                        "exclusions": (
                            json!({
                                "creativeSizeValue": json!({
                                    "allowedFormats": (),
                                    "companionSizes": (
                                        json!({
                                            "height": 0,
                                            "width": 0
                                        })
                                    ),
                                    "creativeSizeType": "",
                                    "nativeTemplate": "",
                                    "size": json!({}),
                                    "skippableAdType": ""
                                }),
                                "dayPartTargetingValue": json!({
                                    "dayParts": (
                                        json!({
                                            "dayOfWeek": "",
                                            "endHour": 0,
                                            "endMinute": 0,
                                            "startHour": 0,
                                            "startMinute": 0
                                        })
                                    ),
                                    "timeZoneType": ""
                                }),
                                "demogAgeCriteriaValue": json!({"demogAgeCriteriaIds": ()}),
                                "demogGenderCriteriaValue": json!({"demogGenderCriteriaIds": ()}),
                                "longValue": "",
                                "requestPlatformTargetingValue": json!({"requestPlatforms": ()}),
                                "stringValue": ""
                            })
                        ),
                        "inclusions": (json!({})),
                        "key": ""
                    })
                ),
                "syndicationProduct": "",
                "terms": json!({
                    "brandingType": "",
                    "crossListedExternalDealIdType": "",
                    "description": "",
                    "estimatedGrossSpend": json!({
                        "amountMicros": "",
                        "currencyCode": "",
                        "expectedCpmMicros": "",
                        "pricingType": ""
                    }),
                    "estimatedImpressionsPerDay": "",
                    "guaranteedFixedPriceTerms": json!({
                        "billingInfo": json!({
                            "currencyConversionTimeMs": "",
                            "dfpLineItemId": "",
                            "originalContractedQuantity": "",
                            "price": json!({})
                        }),
                        "fixedPrices": (
                            json!({
                                "auctionTier": "",
                                "billedBuyer": json!({"accountId": ""}),
                                "buyer": json!({}),
                                "price": json!({})
                            })
                        ),
                        "guaranteedImpressions": "",
                        "guaranteedLooks": "",
                        "minimumDailyLooks": ""
                    }),
                    "nonGuaranteedAuctionTerms": json!({
                        "autoOptimizePrivateAuction": false,
                        "reservePricePerBuyers": (json!({}))
                    }),
                    "nonGuaranteedFixedPriceTerms": json!({"fixedPrices": (json!({}))}),
                    "rubiconNonGuaranteedTerms": json!({
                        "priorityPrice": json!({}),
                        "standardPrice": json!({})
                    }),
                    "sellerTimeZone": ""
                }),
                "webPropertyCode": ""
            })
        ),
        "proposal": json!({
            "billedBuyer": json!({}),
            "buyer": json!({}),
            "buyerContacts": (json!({})),
            "buyerPrivateData": json!({}),
            "dbmAdvertiserIds": (),
            "hasBuyerSignedOff": false,
            "hasSellerSignedOff": false,
            "inventorySource": "",
            "isRenegotiating": false,
            "isSetupComplete": false,
            "kind": "",
            "labels": (
                json!({
                    "accountId": "",
                    "createTimeMs": "",
                    "deprecatedMarketplaceDealParty": json!({
                        "buyer": json!({}),
                        "seller": json!({
                            "accountId": "",
                            "subAccountId": ""
                        })
                    }),
                    "label": ""
                })
            ),
            "lastUpdaterOrCommentorRole": "",
            "name": "",
            "negotiationId": "",
            "originatorRole": "",
            "privateAuctionId": "",
            "proposalId": "",
            "proposalState": "",
            "revisionNumber": "",
            "revisionTimeMs": "",
            "seller": json!({}),
            "sellerContacts": (json!({}))
        }),
        "proposalRevisionNumber": "",
        "updateAction": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/proposals/:proposalId/deals/update \
  --header 'content-type: application/json' \
  --data '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
echo '{
  "deals": [
    {
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": {
        "alcoholAdsAllowed": false,
        "dealPauseStatus": {
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        }
      },
      "deliveryControl": {
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          {
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          }
        ]
      },
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "sharedTargetings": [
        {
          "exclusions": [
            {
              "creativeSizeValue": {
                "allowedFormats": [],
                "companionSizes": [
                  {
                    "height": 0,
                    "width": 0
                  }
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": {},
                "skippableAdType": ""
              },
              "dayPartTargetingValue": {
                "dayParts": [
                  {
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  }
                ],
                "timeZoneType": ""
              },
              "demogAgeCriteriaValue": {
                "demogAgeCriteriaIds": []
              },
              "demogGenderCriteriaValue": {
                "demogGenderCriteriaIds": []
              },
              "longValue": "",
              "requestPlatformTargetingValue": {
                "requestPlatforms": []
              },
              "stringValue": ""
            }
          ],
          "inclusions": [
            {}
          ],
          "key": ""
        }
      ],
      "syndicationProduct": "",
      "terms": {
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": {
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        },
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": {
          "billingInfo": {
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": {}
          },
          "fixedPrices": [
            {
              "auctionTier": "",
              "billedBuyer": {
                "accountId": ""
              },
              "buyer": {},
              "price": {}
            }
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        },
        "nonGuaranteedAuctionTerms": {
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [
            {}
          ]
        },
        "nonGuaranteedFixedPriceTerms": {
          "fixedPrices": [
            {}
          ]
        },
        "rubiconNonGuaranteedTerms": {
          "priorityPrice": {},
          "standardPrice": {}
        },
        "sellerTimeZone": ""
      },
      "webPropertyCode": ""
    }
  ],
  "proposal": {
    "billedBuyer": {},
    "buyer": {},
    "buyerContacts": [
      {}
    ],
    "buyerPrivateData": {},
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      {
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": {
          "buyer": {},
          "seller": {
            "accountId": "",
            "subAccountId": ""
          }
        },
        "label": ""
      }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [
      {}
    ]
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}' |  \
  http POST {{baseUrl}}/proposals/:proposalId/deals/update \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "deals": [\n    {\n      "buyerPrivateData": {\n        "referenceId": "",\n        "referencePayload": ""\n      },\n      "creationTimeMs": "",\n      "creativePreApprovalPolicy": "",\n      "creativeSafeFrameCompatibility": "",\n      "dealId": "",\n      "dealServingMetadata": {\n        "alcoholAdsAllowed": false,\n        "dealPauseStatus": {\n          "buyerPauseReason": "",\n          "firstPausedBy": "",\n          "hasBuyerPaused": false,\n          "hasSellerPaused": false,\n          "sellerPauseReason": ""\n        }\n      },\n      "deliveryControl": {\n        "creativeBlockingLevel": "",\n        "deliveryRateType": "",\n        "frequencyCaps": [\n          {\n            "maxImpressions": 0,\n            "numTimeUnits": 0,\n            "timeUnitType": ""\n          }\n        ]\n      },\n      "externalDealId": "",\n      "flightEndTimeMs": "",\n      "flightStartTimeMs": "",\n      "inventoryDescription": "",\n      "isRfpTemplate": false,\n      "isSetupComplete": false,\n      "kind": "",\n      "lastUpdateTimeMs": "",\n      "makegoodRequestedReason": "",\n      "name": "",\n      "productId": "",\n      "productRevisionNumber": "",\n      "programmaticCreativeSource": "",\n      "proposalId": "",\n      "sellerContacts": [\n        {\n          "email": "",\n          "name": ""\n        }\n      ],\n      "sharedTargetings": [\n        {\n          "exclusions": [\n            {\n              "creativeSizeValue": {\n                "allowedFormats": [],\n                "companionSizes": [\n                  {\n                    "height": 0,\n                    "width": 0\n                  }\n                ],\n                "creativeSizeType": "",\n                "nativeTemplate": "",\n                "size": {},\n                "skippableAdType": ""\n              },\n              "dayPartTargetingValue": {\n                "dayParts": [\n                  {\n                    "dayOfWeek": "",\n                    "endHour": 0,\n                    "endMinute": 0,\n                    "startHour": 0,\n                    "startMinute": 0\n                  }\n                ],\n                "timeZoneType": ""\n              },\n              "demogAgeCriteriaValue": {\n                "demogAgeCriteriaIds": []\n              },\n              "demogGenderCriteriaValue": {\n                "demogGenderCriteriaIds": []\n              },\n              "longValue": "",\n              "requestPlatformTargetingValue": {\n                "requestPlatforms": []\n              },\n              "stringValue": ""\n            }\n          ],\n          "inclusions": [\n            {}\n          ],\n          "key": ""\n        }\n      ],\n      "syndicationProduct": "",\n      "terms": {\n        "brandingType": "",\n        "crossListedExternalDealIdType": "",\n        "description": "",\n        "estimatedGrossSpend": {\n          "amountMicros": "",\n          "currencyCode": "",\n          "expectedCpmMicros": "",\n          "pricingType": ""\n        },\n        "estimatedImpressionsPerDay": "",\n        "guaranteedFixedPriceTerms": {\n          "billingInfo": {\n            "currencyConversionTimeMs": "",\n            "dfpLineItemId": "",\n            "originalContractedQuantity": "",\n            "price": {}\n          },\n          "fixedPrices": [\n            {\n              "auctionTier": "",\n              "billedBuyer": {\n                "accountId": ""\n              },\n              "buyer": {},\n              "price": {}\n            }\n          ],\n          "guaranteedImpressions": "",\n          "guaranteedLooks": "",\n          "minimumDailyLooks": ""\n        },\n        "nonGuaranteedAuctionTerms": {\n          "autoOptimizePrivateAuction": false,\n          "reservePricePerBuyers": [\n            {}\n          ]\n        },\n        "nonGuaranteedFixedPriceTerms": {\n          "fixedPrices": [\n            {}\n          ]\n        },\n        "rubiconNonGuaranteedTerms": {\n          "priorityPrice": {},\n          "standardPrice": {}\n        },\n        "sellerTimeZone": ""\n      },\n      "webPropertyCode": ""\n    }\n  ],\n  "proposal": {\n    "billedBuyer": {},\n    "buyer": {},\n    "buyerContacts": [\n      {}\n    ],\n    "buyerPrivateData": {},\n    "dbmAdvertiserIds": [],\n    "hasBuyerSignedOff": false,\n    "hasSellerSignedOff": false,\n    "inventorySource": "",\n    "isRenegotiating": false,\n    "isSetupComplete": false,\n    "kind": "",\n    "labels": [\n      {\n        "accountId": "",\n        "createTimeMs": "",\n        "deprecatedMarketplaceDealParty": {\n          "buyer": {},\n          "seller": {\n            "accountId": "",\n            "subAccountId": ""\n          }\n        },\n        "label": ""\n      }\n    ],\n    "lastUpdaterOrCommentorRole": "",\n    "name": "",\n    "negotiationId": "",\n    "originatorRole": "",\n    "privateAuctionId": "",\n    "proposalId": "",\n    "proposalState": "",\n    "revisionNumber": "",\n    "revisionTimeMs": "",\n    "seller": {},\n    "sellerContacts": [\n      {}\n    ]\n  },\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}' \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/deals/update
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "deals": [
    [
      "buyerPrivateData": [
        "referenceId": "",
        "referencePayload": ""
      ],
      "creationTimeMs": "",
      "creativePreApprovalPolicy": "",
      "creativeSafeFrameCompatibility": "",
      "dealId": "",
      "dealServingMetadata": [
        "alcoholAdsAllowed": false,
        "dealPauseStatus": [
          "buyerPauseReason": "",
          "firstPausedBy": "",
          "hasBuyerPaused": false,
          "hasSellerPaused": false,
          "sellerPauseReason": ""
        ]
      ],
      "deliveryControl": [
        "creativeBlockingLevel": "",
        "deliveryRateType": "",
        "frequencyCaps": [
          [
            "maxImpressions": 0,
            "numTimeUnits": 0,
            "timeUnitType": ""
          ]
        ]
      ],
      "externalDealId": "",
      "flightEndTimeMs": "",
      "flightStartTimeMs": "",
      "inventoryDescription": "",
      "isRfpTemplate": false,
      "isSetupComplete": false,
      "kind": "",
      "lastUpdateTimeMs": "",
      "makegoodRequestedReason": "",
      "name": "",
      "productId": "",
      "productRevisionNumber": "",
      "programmaticCreativeSource": "",
      "proposalId": "",
      "sellerContacts": [
        [
          "email": "",
          "name": ""
        ]
      ],
      "sharedTargetings": [
        [
          "exclusions": [
            [
              "creativeSizeValue": [
                "allowedFormats": [],
                "companionSizes": [
                  [
                    "height": 0,
                    "width": 0
                  ]
                ],
                "creativeSizeType": "",
                "nativeTemplate": "",
                "size": [],
                "skippableAdType": ""
              ],
              "dayPartTargetingValue": [
                "dayParts": [
                  [
                    "dayOfWeek": "",
                    "endHour": 0,
                    "endMinute": 0,
                    "startHour": 0,
                    "startMinute": 0
                  ]
                ],
                "timeZoneType": ""
              ],
              "demogAgeCriteriaValue": ["demogAgeCriteriaIds": []],
              "demogGenderCriteriaValue": ["demogGenderCriteriaIds": []],
              "longValue": "",
              "requestPlatformTargetingValue": ["requestPlatforms": []],
              "stringValue": ""
            ]
          ],
          "inclusions": [[]],
          "key": ""
        ]
      ],
      "syndicationProduct": "",
      "terms": [
        "brandingType": "",
        "crossListedExternalDealIdType": "",
        "description": "",
        "estimatedGrossSpend": [
          "amountMicros": "",
          "currencyCode": "",
          "expectedCpmMicros": "",
          "pricingType": ""
        ],
        "estimatedImpressionsPerDay": "",
        "guaranteedFixedPriceTerms": [
          "billingInfo": [
            "currencyConversionTimeMs": "",
            "dfpLineItemId": "",
            "originalContractedQuantity": "",
            "price": []
          ],
          "fixedPrices": [
            [
              "auctionTier": "",
              "billedBuyer": ["accountId": ""],
              "buyer": [],
              "price": []
            ]
          ],
          "guaranteedImpressions": "",
          "guaranteedLooks": "",
          "minimumDailyLooks": ""
        ],
        "nonGuaranteedAuctionTerms": [
          "autoOptimizePrivateAuction": false,
          "reservePricePerBuyers": [[]]
        ],
        "nonGuaranteedFixedPriceTerms": ["fixedPrices": [[]]],
        "rubiconNonGuaranteedTerms": [
          "priorityPrice": [],
          "standardPrice": []
        ],
        "sellerTimeZone": ""
      ],
      "webPropertyCode": ""
    ]
  ],
  "proposal": [
    "billedBuyer": [],
    "buyer": [],
    "buyerContacts": [[]],
    "buyerPrivateData": [],
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": false,
    "hasSellerSignedOff": false,
    "inventorySource": "",
    "isRenegotiating": false,
    "isSetupComplete": false,
    "kind": "",
    "labels": [
      [
        "accountId": "",
        "createTimeMs": "",
        "deprecatedMarketplaceDealParty": [
          "buyer": [],
          "seller": [
            "accountId": "",
            "subAccountId": ""
          ]
        ],
        "label": ""
      ]
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": [],
    "sellerContacts": [[]]
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
] as [String : Any]

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

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

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

dataTask.resume()
POST adexchangebuyer.marketplacenotes.insert
{{baseUrl}}/proposals/:proposalId/notes/insert
QUERY PARAMS

proposalId
BODY json

{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/notes/insert");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/proposals/:proposalId/notes/insert" {:content-type :json
                                                                               :form-params {:notes [{:creatorRole ""
                                                                                                      :dealId ""
                                                                                                      :kind ""
                                                                                                      :note ""
                                                                                                      :noteId ""
                                                                                                      :proposalId ""
                                                                                                      :proposalRevisionNumber ""
                                                                                                      :timestampMs ""}]}})
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/notes/insert"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/proposals/:proposalId/notes/insert"),
    Content = new StringContent("{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\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}}/proposals/:proposalId/notes/insert");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/notes/insert"

	payload := strings.NewReader("{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/proposals/:proposalId/notes/insert HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 217

{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/proposals/:proposalId/notes/insert")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/notes/insert"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\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  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/notes/insert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/proposals/:proposalId/notes/insert")
  .header("content-type", "application/json")
  .body("{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  notes: [
    {
      creatorRole: '',
      dealId: '',
      kind: '',
      note: '',
      noteId: '',
      proposalId: '',
      proposalRevisionNumber: '',
      timestampMs: ''
    }
  ]
});

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

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

xhr.open('POST', '{{baseUrl}}/proposals/:proposalId/notes/insert');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/notes/insert',
  headers: {'content-type': 'application/json'},
  data: {
    notes: [
      {
        creatorRole: '',
        dealId: '',
        kind: '',
        note: '',
        noteId: '',
        proposalId: '',
        proposalRevisionNumber: '',
        timestampMs: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/notes/insert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"notes":[{"creatorRole":"","dealId":"","kind":"","note":"","noteId":"","proposalId":"","proposalRevisionNumber":"","timestampMs":""}]}'
};

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}}/proposals/:proposalId/notes/insert',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "notes": [\n    {\n      "creatorRole": "",\n      "dealId": "",\n      "kind": "",\n      "note": "",\n      "noteId": "",\n      "proposalId": "",\n      "proposalRevisionNumber": "",\n      "timestampMs": ""\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  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/notes/insert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  notes: [
    {
      creatorRole: '',
      dealId: '',
      kind: '',
      note: '',
      noteId: '',
      proposalId: '',
      proposalRevisionNumber: '',
      timestampMs: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/notes/insert',
  headers: {'content-type': 'application/json'},
  body: {
    notes: [
      {
        creatorRole: '',
        dealId: '',
        kind: '',
        note: '',
        noteId: '',
        proposalId: '',
        proposalRevisionNumber: '',
        timestampMs: ''
      }
    ]
  },
  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}}/proposals/:proposalId/notes/insert');

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

req.type('json');
req.send({
  notes: [
    {
      creatorRole: '',
      dealId: '',
      kind: '',
      note: '',
      noteId: '',
      proposalId: '',
      proposalRevisionNumber: '',
      timestampMs: ''
    }
  ]
});

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}}/proposals/:proposalId/notes/insert',
  headers: {'content-type': 'application/json'},
  data: {
    notes: [
      {
        creatorRole: '',
        dealId: '',
        kind: '',
        note: '',
        noteId: '',
        proposalId: '',
        proposalRevisionNumber: '',
        timestampMs: ''
      }
    ]
  }
};

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

const url = '{{baseUrl}}/proposals/:proposalId/notes/insert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"notes":[{"creatorRole":"","dealId":"","kind":"","note":"","noteId":"","proposalId":"","proposalRevisionNumber":"","timestampMs":""}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"notes": @[ @{ @"creatorRole": @"", @"dealId": @"", @"kind": @"", @"note": @"", @"noteId": @"", @"proposalId": @"", @"proposalRevisionNumber": @"", @"timestampMs": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/notes/insert"]
                                                       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}}/proposals/:proposalId/notes/insert" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/notes/insert",
  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([
    'notes' => [
        [
                'creatorRole' => '',
                'dealId' => '',
                'kind' => '',
                'note' => '',
                'noteId' => '',
                'proposalId' => '',
                'proposalRevisionNumber' => '',
                'timestampMs' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/proposals/:proposalId/notes/insert', [
  'body' => '{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/notes/insert');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'notes' => [
    [
        'creatorRole' => '',
        'dealId' => '',
        'kind' => '',
        'note' => '',
        'noteId' => '',
        'proposalId' => '',
        'proposalRevisionNumber' => '',
        'timestampMs' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'notes' => [
    [
        'creatorRole' => '',
        'dealId' => '',
        'kind' => '',
        'note' => '',
        'noteId' => '',
        'proposalId' => '',
        'proposalRevisionNumber' => '',
        'timestampMs' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/proposals/:proposalId/notes/insert');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/notes/insert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/notes/insert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/proposals/:proposalId/notes/insert", payload, headers)

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

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

url = "{{baseUrl}}/proposals/:proposalId/notes/insert"

payload = { "notes": [
        {
            "creatorRole": "",
            "dealId": "",
            "kind": "",
            "note": "",
            "noteId": "",
            "proposalId": "",
            "proposalRevisionNumber": "",
            "timestampMs": ""
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/proposals/:proposalId/notes/insert"

payload <- "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/proposals/:proposalId/notes/insert")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/proposals/:proposalId/notes/insert') do |req|
  req.body = "{\n  \"notes\": [\n    {\n      \"creatorRole\": \"\",\n      \"dealId\": \"\",\n      \"kind\": \"\",\n      \"note\": \"\",\n      \"noteId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalRevisionNumber\": \"\",\n      \"timestampMs\": \"\"\n    }\n  ]\n}"
end

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

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

    let payload = json!({"notes": (
            json!({
                "creatorRole": "",
                "dealId": "",
                "kind": "",
                "note": "",
                "noteId": "",
                "proposalId": "",
                "proposalRevisionNumber": "",
                "timestampMs": ""
            })
        )});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/proposals/:proposalId/notes/insert \
  --header 'content-type: application/json' \
  --data '{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}'
echo '{
  "notes": [
    {
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/proposals/:proposalId/notes/insert \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "notes": [\n    {\n      "creatorRole": "",\n      "dealId": "",\n      "kind": "",\n      "note": "",\n      "noteId": "",\n      "proposalId": "",\n      "proposalRevisionNumber": "",\n      "timestampMs": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/notes/insert
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["notes": [
    [
      "creatorRole": "",
      "dealId": "",
      "kind": "",
      "note": "",
      "noteId": "",
      "proposalId": "",
      "proposalRevisionNumber": "",
      "timestampMs": ""
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/notes/insert")! 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()
GET adexchangebuyer.marketplacenotes.list
{{baseUrl}}/proposals/:proposalId/notes
QUERY PARAMS

proposalId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/notes");

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

(client/get "{{baseUrl}}/proposals/:proposalId/notes")
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/notes"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/proposals/:proposalId/notes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/proposals/:proposalId/notes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/notes"

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

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

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

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

}
GET /baseUrl/proposals/:proposalId/notes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/proposals/:proposalId/notes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/notes"))
    .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}}/proposals/:proposalId/notes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/proposals/:proposalId/notes")
  .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}}/proposals/:proposalId/notes');

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

const options = {method: 'GET', url: '{{baseUrl}}/proposals/:proposalId/notes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/notes';
const options = {method: 'GET'};

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}}/proposals/:proposalId/notes',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/notes")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/:proposalId/notes',
  headers: {}
};

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}}/proposals/:proposalId/notes'};

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

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

const req = unirest('GET', '{{baseUrl}}/proposals/:proposalId/notes');

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}}/proposals/:proposalId/notes'};

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

const url = '{{baseUrl}}/proposals/:proposalId/notes';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/notes"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/proposals/:proposalId/notes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/notes",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/proposals/:proposalId/notes');

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/notes');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/proposals/:proposalId/notes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/notes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/notes' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/proposals/:proposalId/notes")

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

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

url = "{{baseUrl}}/proposals/:proposalId/notes"

response = requests.get(url)

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

url <- "{{baseUrl}}/proposals/:proposalId/notes"

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

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

url = URI("{{baseUrl}}/proposals/:proposalId/notes")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/proposals/:proposalId/notes') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/proposals/:proposalId/notes
http GET {{baseUrl}}/proposals/:proposalId/notes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/notes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/notes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.marketplaceprivateauction.updateproposal
{{baseUrl}}/privateauction/:privateAuctionId/updateproposal
QUERY PARAMS

privateAuctionId
BODY json

{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");

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

(client/post "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal" {:content-type :json
                                                                                            :form-params {:externalDealId ""
                                                                                                          :note {:creatorRole ""
                                                                                                                 :dealId ""
                                                                                                                 :kind ""
                                                                                                                 :note ""
                                                                                                                 :noteId ""
                                                                                                                 :proposalId ""
                                                                                                                 :proposalRevisionNumber ""
                                                                                                                 :timestampMs ""}
                                                                                                          :proposalRevisionNumber ""
                                                                                                          :updateAction ""}})
require "http/client"

url = "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/privateauction/:privateAuctionId/updateproposal"),
    Content = new StringContent("{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/privateauction/:privateAuctionId/updateproposal");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal"

	payload := strings.NewReader("{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/privateauction/:privateAuctionId/updateproposal HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 266

{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/privateauction/:privateAuctionId/updateproposal"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/privateauction/:privateAuctionId/updateproposal")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/privateauction/:privateAuctionId/updateproposal")
  .header("content-type", "application/json")
  .body("{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  externalDealId: '',
  note: {
    creatorRole: '',
    dealId: '',
    kind: '',
    note: '',
    noteId: '',
    proposalId: '',
    proposalRevisionNumber: '',
    timestampMs: ''
  },
  proposalRevisionNumber: '',
  updateAction: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal',
  headers: {'content-type': 'application/json'},
  data: {
    externalDealId: '',
    note: {
      creatorRole: '',
      dealId: '',
      kind: '',
      note: '',
      noteId: '',
      proposalId: '',
      proposalRevisionNumber: '',
      timestampMs: ''
    },
    proposalRevisionNumber: '',
    updateAction: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"externalDealId":"","note":{"creatorRole":"","dealId":"","kind":"","note":"","noteId":"","proposalId":"","proposalRevisionNumber":"","timestampMs":""},"proposalRevisionNumber":"","updateAction":""}'
};

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}}/privateauction/:privateAuctionId/updateproposal',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "externalDealId": "",\n  "note": {\n    "creatorRole": "",\n    "dealId": "",\n    "kind": "",\n    "note": "",\n    "noteId": "",\n    "proposalId": "",\n    "proposalRevisionNumber": "",\n    "timestampMs": ""\n  },\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/privateauction/:privateAuctionId/updateproposal")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  externalDealId: '',
  note: {
    creatorRole: '',
    dealId: '',
    kind: '',
    note: '',
    noteId: '',
    proposalId: '',
    proposalRevisionNumber: '',
    timestampMs: ''
  },
  proposalRevisionNumber: '',
  updateAction: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal',
  headers: {'content-type': 'application/json'},
  body: {
    externalDealId: '',
    note: {
      creatorRole: '',
      dealId: '',
      kind: '',
      note: '',
      noteId: '',
      proposalId: '',
      proposalRevisionNumber: '',
      timestampMs: ''
    },
    proposalRevisionNumber: '',
    updateAction: ''
  },
  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}}/privateauction/:privateAuctionId/updateproposal');

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

req.type('json');
req.send({
  externalDealId: '',
  note: {
    creatorRole: '',
    dealId: '',
    kind: '',
    note: '',
    noteId: '',
    proposalId: '',
    proposalRevisionNumber: '',
    timestampMs: ''
  },
  proposalRevisionNumber: '',
  updateAction: ''
});

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}}/privateauction/:privateAuctionId/updateproposal',
  headers: {'content-type': 'application/json'},
  data: {
    externalDealId: '',
    note: {
      creatorRole: '',
      dealId: '',
      kind: '',
      note: '',
      noteId: '',
      proposalId: '',
      proposalRevisionNumber: '',
      timestampMs: ''
    },
    proposalRevisionNumber: '',
    updateAction: ''
  }
};

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

const url = '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"externalDealId":"","note":{"creatorRole":"","dealId":"","kind":"","note":"","noteId":"","proposalId":"","proposalRevisionNumber":"","timestampMs":""},"proposalRevisionNumber":"","updateAction":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"externalDealId": @"",
                              @"note": @{ @"creatorRole": @"", @"dealId": @"", @"kind": @"", @"note": @"", @"noteId": @"", @"proposalId": @"", @"proposalRevisionNumber": @"", @"timestampMs": @"" },
                              @"proposalRevisionNumber": @"",
                              @"updateAction": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/privateauction/:privateAuctionId/updateproposal"]
                                                       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}}/privateauction/:privateAuctionId/updateproposal" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal",
  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([
    'externalDealId' => '',
    'note' => [
        'creatorRole' => '',
        'dealId' => '',
        'kind' => '',
        'note' => '',
        'noteId' => '',
        'proposalId' => '',
        'proposalRevisionNumber' => '',
        'timestampMs' => ''
    ],
    'proposalRevisionNumber' => '',
    'updateAction' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal', [
  'body' => '{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/privateauction/:privateAuctionId/updateproposal');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'externalDealId' => '',
  'note' => [
    'creatorRole' => '',
    'dealId' => '',
    'kind' => '',
    'note' => '',
    'noteId' => '',
    'proposalId' => '',
    'proposalRevisionNumber' => '',
    'timestampMs' => ''
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'externalDealId' => '',
  'note' => [
    'creatorRole' => '',
    'dealId' => '',
    'kind' => '',
    'note' => '',
    'noteId' => '',
    'proposalId' => '',
    'proposalRevisionNumber' => '',
    'timestampMs' => ''
  ],
  'proposalRevisionNumber' => '',
  'updateAction' => ''
]));
$request->setRequestUrl('{{baseUrl}}/privateauction/:privateAuctionId/updateproposal');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/privateauction/:privateAuctionId/updateproposal' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
import http.client

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

payload = "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"

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

conn.request("POST", "/baseUrl/privateauction/:privateAuctionId/updateproposal", payload, headers)

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

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

url = "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal"

payload = {
    "externalDealId": "",
    "note": {
        "creatorRole": "",
        "dealId": "",
        "kind": "",
        "note": "",
        "noteId": "",
        "proposalId": "",
        "proposalRevisionNumber": "",
        "timestampMs": ""
    },
    "proposalRevisionNumber": "",
    "updateAction": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal"

payload <- "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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}}/privateauction/:privateAuctionId/updateproposal")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\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/privateauction/:privateAuctionId/updateproposal') do |req|
  req.body = "{\n  \"externalDealId\": \"\",\n  \"note\": {\n    \"creatorRole\": \"\",\n    \"dealId\": \"\",\n    \"kind\": \"\",\n    \"note\": \"\",\n    \"noteId\": \"\",\n    \"proposalId\": \"\",\n    \"proposalRevisionNumber\": \"\",\n    \"timestampMs\": \"\"\n  },\n  \"proposalRevisionNumber\": \"\",\n  \"updateAction\": \"\"\n}"
end

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

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

    let payload = json!({
        "externalDealId": "",
        "note": json!({
            "creatorRole": "",
            "dealId": "",
            "kind": "",
            "note": "",
            "noteId": "",
            "proposalId": "",
            "proposalRevisionNumber": "",
            "timestampMs": ""
        }),
        "proposalRevisionNumber": "",
        "updateAction": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/privateauction/:privateAuctionId/updateproposal \
  --header 'content-type: application/json' \
  --data '{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}'
echo '{
  "externalDealId": "",
  "note": {
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  },
  "proposalRevisionNumber": "",
  "updateAction": ""
}' |  \
  http POST {{baseUrl}}/privateauction/:privateAuctionId/updateproposal \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "externalDealId": "",\n  "note": {\n    "creatorRole": "",\n    "dealId": "",\n    "kind": "",\n    "note": "",\n    "noteId": "",\n    "proposalId": "",\n    "proposalRevisionNumber": "",\n    "timestampMs": ""\n  },\n  "proposalRevisionNumber": "",\n  "updateAction": ""\n}' \
  --output-document \
  - {{baseUrl}}/privateauction/:privateAuctionId/updateproposal
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "externalDealId": "",
  "note": [
    "creatorRole": "",
    "dealId": "",
    "kind": "",
    "note": "",
    "noteId": "",
    "proposalId": "",
    "proposalRevisionNumber": "",
    "timestampMs": ""
  ],
  "proposalRevisionNumber": "",
  "updateAction": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/privateauction/:privateAuctionId/updateproposal")! 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()
GET adexchangebuyer.performanceReport.list
{{baseUrl}}/performancereport
QUERY PARAMS

accountId
endDateTime
startDateTime
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=");

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

(client/get "{{baseUrl}}/performancereport" {:query-params {:accountId ""
                                                                            :endDateTime ""
                                                                            :startDateTime ""}})
require "http/client"

url = "{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime="

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

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

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

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

}
GET /baseUrl/performancereport?accountId=&endDateTime=&startDateTime= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime="))
    .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}}/performancereport?accountId=&endDateTime=&startDateTime=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=")
  .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}}/performancereport?accountId=&endDateTime=&startDateTime=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/performancereport',
  params: {accountId: '', endDateTime: '', startDateTime: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=';
const options = {method: 'GET'};

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}}/performancereport?accountId=&endDateTime=&startDateTime=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/performancereport?accountId=&endDateTime=&startDateTime=',
  headers: {}
};

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}}/performancereport',
  qs: {accountId: '', endDateTime: '', startDateTime: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/performancereport');

req.query({
  accountId: '',
  endDateTime: '',
  startDateTime: ''
});

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}}/performancereport',
  params: {accountId: '', endDateTime: '', startDateTime: ''}
};

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

const url = '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/performancereport?accountId=&endDateTime=&startDateTime=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=');

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

$request->setQueryData([
  'accountId' => '',
  'endDateTime' => '',
  'startDateTime' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/performancereport');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'accountId' => '',
  'endDateTime' => '',
  'startDateTime' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/performancereport?accountId=&endDateTime=&startDateTime=")

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

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

url = "{{baseUrl}}/performancereport"

querystring = {"accountId":"","endDateTime":"","startDateTime":""}

response = requests.get(url, params=querystring)

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

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

queryString <- list(
  accountId = "",
  endDateTime = "",
  startDateTime = ""
)

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

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

url = URI("{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/performancereport') do |req|
  req.params['accountId'] = ''
  req.params['endDateTime'] = ''
  req.params['startDateTime'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("accountId", ""),
        ("endDateTime", ""),
        ("startDateTime", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime='
http GET '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/performancereport?accountId=&endDateTime=&startDateTime=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
DELETE adexchangebuyer.pretargetingConfig.delete
{{baseUrl}}/pretargetingconfigs/:accountId/:configId
QUERY PARAMS

accountId
configId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pretargetingconfigs/:accountId/:configId");

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

(client/delete "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
require "http/client"

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pretargetingconfigs/:accountId/:configId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

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

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

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

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

}
DELETE /baseUrl/pretargetingconfigs/:accountId/:configId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"))
    .method("DELETE", 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}}/pretargetingconfigs/:accountId/:configId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .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('DELETE', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {method: 'DELETE'};

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}}/pretargetingconfigs/:accountId/:configId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pretargetingconfigs/:accountId/:configId',
  headers: {}
};

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: 'DELETE',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId'
};

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

const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pretargetingconfigs/:accountId/:configId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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}}/pretargetingconfigs/:accountId/:configId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pretargetingconfigs/:accountId/:configId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');

echo $response->getBody();
setUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/pretargetingconfigs/:accountId/:configId")

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

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/pretargetingconfigs/:accountId/:configId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/pretargetingconfigs/:accountId/:configId
http DELETE {{baseUrl}}/pretargetingconfigs/:accountId/:configId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/pretargetingconfigs/:accountId/:configId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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 adexchangebuyer.pretargetingConfig.get
{{baseUrl}}/pretargetingconfigs/:accountId/:configId
QUERY PARAMS

accountId
configId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pretargetingconfigs/:accountId/:configId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
require "http/client"

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pretargetingconfigs/:accountId/:configId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/pretargetingconfigs/:accountId/:configId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"))
    .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}}/pretargetingconfigs/:accountId/:configId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .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}}/pretargetingconfigs/:accountId/:configId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {method: 'GET'};

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}}/pretargetingconfigs/:accountId/:configId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pretargetingconfigs/:accountId/:configId',
  headers: {}
};

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}}/pretargetingconfigs/:accountId/:configId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');

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}}/pretargetingconfigs/:accountId/:configId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pretargetingconfigs/:accountId/:configId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/pretargetingconfigs/:accountId/:configId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pretargetingconfigs/:accountId/:configId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');

echo $response->getBody();
setUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pretargetingconfigs/:accountId/:configId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/pretargetingconfigs/:accountId/:configId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/pretargetingconfigs/:accountId/:configId
http GET {{baseUrl}}/pretargetingconfigs/:accountId/:configId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/pretargetingconfigs/:accountId/:configId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.pretargetingConfig.insert
{{baseUrl}}/pretargetingconfigs/:accountId
QUERY PARAMS

accountId
BODY json

{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pretargetingconfigs/:accountId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/pretargetingconfigs/:accountId" {:content-type :json
                                                                           :form-params {:billingId ""
                                                                                         :configId ""
                                                                                         :configName ""
                                                                                         :creativeType []
                                                                                         :dimensions [{:height ""
                                                                                                       :width ""}]
                                                                                         :excludedContentLabels []
                                                                                         :excludedGeoCriteriaIds []
                                                                                         :excludedPlacements [{:token ""
                                                                                                               :type ""}]
                                                                                         :excludedUserLists []
                                                                                         :excludedVerticals []
                                                                                         :geoCriteriaIds []
                                                                                         :isActive false
                                                                                         :kind ""
                                                                                         :languages []
                                                                                         :maximumQps ""
                                                                                         :minimumViewabilityDecile 0
                                                                                         :mobileCarriers []
                                                                                         :mobileDevices []
                                                                                         :mobileOperatingSystemVersions []
                                                                                         :placements [{:token ""
                                                                                                       :type ""}]
                                                                                         :platforms []
                                                                                         :supportedCreativeAttributes []
                                                                                         :userIdentifierDataRequired []
                                                                                         :userLists []
                                                                                         :vendorTypes []
                                                                                         :verticals []
                                                                                         :videoPlayerSizes [{:aspectRatio ""
                                                                                                             :minHeight ""
                                                                                                             :minWidth ""}]}})
require "http/client"

url = "{{baseUrl}}/pretargetingconfigs/:accountId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/pretargetingconfigs/:accountId"),
    Content = new StringContent("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pretargetingconfigs/:accountId"

	payload := strings.NewReader("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/pretargetingconfigs/:accountId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 899

{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/pretargetingconfigs/:accountId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pretargetingconfigs/:accountId"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/pretargetingconfigs/:accountId")
  .header("content-type", "application/json")
  .body("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [
    {
      height: '',
      width: ''
    }
  ],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [
    {
      token: '',
      type: ''
    }
  ],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [
    {
      token: '',
      type: ''
    }
  ],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [
    {
      aspectRatio: '',
      minHeight: '',
      minWidth: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/pretargetingconfigs/:accountId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pretargetingconfigs/:accountId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"billingId":"","configId":"","configName":"","creativeType":[],"dimensions":[{"height":"","width":""}],"excludedContentLabels":[],"excludedGeoCriteriaIds":[],"excludedPlacements":[{"token":"","type":""}],"excludedUserLists":[],"excludedVerticals":[],"geoCriteriaIds":[],"isActive":false,"kind":"","languages":[],"maximumQps":"","minimumViewabilityDecile":0,"mobileCarriers":[],"mobileDevices":[],"mobileOperatingSystemVersions":[],"placements":[{"token":"","type":""}],"platforms":[],"supportedCreativeAttributes":[],"userIdentifierDataRequired":[],"userLists":[],"vendorTypes":[],"verticals":[],"videoPlayerSizes":[{"aspectRatio":"","minHeight":"","minWidth":""}]}'
};

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}}/pretargetingconfigs/:accountId',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "billingId": "",\n  "configId": "",\n  "configName": "",\n  "creativeType": [],\n  "dimensions": [\n    {\n      "height": "",\n      "width": ""\n    }\n  ],\n  "excludedContentLabels": [],\n  "excludedGeoCriteriaIds": [],\n  "excludedPlacements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "excludedUserLists": [],\n  "excludedVerticals": [],\n  "geoCriteriaIds": [],\n  "isActive": false,\n  "kind": "",\n  "languages": [],\n  "maximumQps": "",\n  "minimumViewabilityDecile": 0,\n  "mobileCarriers": [],\n  "mobileDevices": [],\n  "mobileOperatingSystemVersions": [],\n  "placements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "platforms": [],\n  "supportedCreativeAttributes": [],\n  "userIdentifierDataRequired": [],\n  "userLists": [],\n  "vendorTypes": [],\n  "verticals": [],\n  "videoPlayerSizes": [\n    {\n      "aspectRatio": "",\n      "minHeight": "",\n      "minWidth": ""\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  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pretargetingconfigs/:accountId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [{height: '', width: ''}],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [{token: '', type: ''}],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [{token: '', type: ''}],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId',
  headers: {'content-type': 'application/json'},
  body: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  },
  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}}/pretargetingconfigs/:accountId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [
    {
      height: '',
      width: ''
    }
  ],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [
    {
      token: '',
      type: ''
    }
  ],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [
    {
      token: '',
      type: ''
    }
  ],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [
    {
      aspectRatio: '',
      minHeight: '',
      minWidth: ''
    }
  ]
});

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}}/pretargetingconfigs/:accountId',
  headers: {'content-type': 'application/json'},
  data: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pretargetingconfigs/:accountId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"billingId":"","configId":"","configName":"","creativeType":[],"dimensions":[{"height":"","width":""}],"excludedContentLabels":[],"excludedGeoCriteriaIds":[],"excludedPlacements":[{"token":"","type":""}],"excludedUserLists":[],"excludedVerticals":[],"geoCriteriaIds":[],"isActive":false,"kind":"","languages":[],"maximumQps":"","minimumViewabilityDecile":0,"mobileCarriers":[],"mobileDevices":[],"mobileOperatingSystemVersions":[],"placements":[{"token":"","type":""}],"platforms":[],"supportedCreativeAttributes":[],"userIdentifierDataRequired":[],"userLists":[],"vendorTypes":[],"verticals":[],"videoPlayerSizes":[{"aspectRatio":"","minHeight":"","minWidth":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"billingId": @"",
                              @"configId": @"",
                              @"configName": @"",
                              @"creativeType": @[  ],
                              @"dimensions": @[ @{ @"height": @"", @"width": @"" } ],
                              @"excludedContentLabels": @[  ],
                              @"excludedGeoCriteriaIds": @[  ],
                              @"excludedPlacements": @[ @{ @"token": @"", @"type": @"" } ],
                              @"excludedUserLists": @[  ],
                              @"excludedVerticals": @[  ],
                              @"geoCriteriaIds": @[  ],
                              @"isActive": @NO,
                              @"kind": @"",
                              @"languages": @[  ],
                              @"maximumQps": @"",
                              @"minimumViewabilityDecile": @0,
                              @"mobileCarriers": @[  ],
                              @"mobileDevices": @[  ],
                              @"mobileOperatingSystemVersions": @[  ],
                              @"placements": @[ @{ @"token": @"", @"type": @"" } ],
                              @"platforms": @[  ],
                              @"supportedCreativeAttributes": @[  ],
                              @"userIdentifierDataRequired": @[  ],
                              @"userLists": @[  ],
                              @"vendorTypes": @[  ],
                              @"verticals": @[  ],
                              @"videoPlayerSizes": @[ @{ @"aspectRatio": @"", @"minHeight": @"", @"minWidth": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pretargetingconfigs/:accountId"]
                                                       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}}/pretargetingconfigs/:accountId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pretargetingconfigs/:accountId",
  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([
    'billingId' => '',
    'configId' => '',
    'configName' => '',
    'creativeType' => [
        
    ],
    'dimensions' => [
        [
                'height' => '',
                'width' => ''
        ]
    ],
    'excludedContentLabels' => [
        
    ],
    'excludedGeoCriteriaIds' => [
        
    ],
    'excludedPlacements' => [
        [
                'token' => '',
                'type' => ''
        ]
    ],
    'excludedUserLists' => [
        
    ],
    'excludedVerticals' => [
        
    ],
    'geoCriteriaIds' => [
        
    ],
    'isActive' => null,
    'kind' => '',
    'languages' => [
        
    ],
    'maximumQps' => '',
    'minimumViewabilityDecile' => 0,
    'mobileCarriers' => [
        
    ],
    'mobileDevices' => [
        
    ],
    'mobileOperatingSystemVersions' => [
        
    ],
    'placements' => [
        [
                'token' => '',
                'type' => ''
        ]
    ],
    'platforms' => [
        
    ],
    'supportedCreativeAttributes' => [
        
    ],
    'userIdentifierDataRequired' => [
        
    ],
    'userLists' => [
        
    ],
    'vendorTypes' => [
        
    ],
    'verticals' => [
        
    ],
    'videoPlayerSizes' => [
        [
                'aspectRatio' => '',
                'minHeight' => '',
                'minWidth' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/pretargetingconfigs/:accountId', [
  'body' => '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/pretargetingconfigs/:accountId');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'billingId' => '',
  'configId' => '',
  'configName' => '',
  'creativeType' => [
    
  ],
  'dimensions' => [
    [
        'height' => '',
        'width' => ''
    ]
  ],
  'excludedContentLabels' => [
    
  ],
  'excludedGeoCriteriaIds' => [
    
  ],
  'excludedPlacements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'excludedUserLists' => [
    
  ],
  'excludedVerticals' => [
    
  ],
  'geoCriteriaIds' => [
    
  ],
  'isActive' => null,
  'kind' => '',
  'languages' => [
    
  ],
  'maximumQps' => '',
  'minimumViewabilityDecile' => 0,
  'mobileCarriers' => [
    
  ],
  'mobileDevices' => [
    
  ],
  'mobileOperatingSystemVersions' => [
    
  ],
  'placements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'platforms' => [
    
  ],
  'supportedCreativeAttributes' => [
    
  ],
  'userIdentifierDataRequired' => [
    
  ],
  'userLists' => [
    
  ],
  'vendorTypes' => [
    
  ],
  'verticals' => [
    
  ],
  'videoPlayerSizes' => [
    [
        'aspectRatio' => '',
        'minHeight' => '',
        'minWidth' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'billingId' => '',
  'configId' => '',
  'configName' => '',
  'creativeType' => [
    
  ],
  'dimensions' => [
    [
        'height' => '',
        'width' => ''
    ]
  ],
  'excludedContentLabels' => [
    
  ],
  'excludedGeoCriteriaIds' => [
    
  ],
  'excludedPlacements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'excludedUserLists' => [
    
  ],
  'excludedVerticals' => [
    
  ],
  'geoCriteriaIds' => [
    
  ],
  'isActive' => null,
  'kind' => '',
  'languages' => [
    
  ],
  'maximumQps' => '',
  'minimumViewabilityDecile' => 0,
  'mobileCarriers' => [
    
  ],
  'mobileDevices' => [
    
  ],
  'mobileOperatingSystemVersions' => [
    
  ],
  'placements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'platforms' => [
    
  ],
  'supportedCreativeAttributes' => [
    
  ],
  'userIdentifierDataRequired' => [
    
  ],
  'userLists' => [
    
  ],
  'vendorTypes' => [
    
  ],
  'verticals' => [
    
  ],
  'videoPlayerSizes' => [
    [
        'aspectRatio' => '',
        'minHeight' => '',
        'minWidth' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/pretargetingconfigs/:accountId');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pretargetingconfigs/:accountId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pretargetingconfigs/:accountId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/pretargetingconfigs/:accountId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pretargetingconfigs/:accountId"

payload = {
    "billingId": "",
    "configId": "",
    "configName": "",
    "creativeType": [],
    "dimensions": [
        {
            "height": "",
            "width": ""
        }
    ],
    "excludedContentLabels": [],
    "excludedGeoCriteriaIds": [],
    "excludedPlacements": [
        {
            "token": "",
            "type": ""
        }
    ],
    "excludedUserLists": [],
    "excludedVerticals": [],
    "geoCriteriaIds": [],
    "isActive": False,
    "kind": "",
    "languages": [],
    "maximumQps": "",
    "minimumViewabilityDecile": 0,
    "mobileCarriers": [],
    "mobileDevices": [],
    "mobileOperatingSystemVersions": [],
    "placements": [
        {
            "token": "",
            "type": ""
        }
    ],
    "platforms": [],
    "supportedCreativeAttributes": [],
    "userIdentifierDataRequired": [],
    "userLists": [],
    "vendorTypes": [],
    "verticals": [],
    "videoPlayerSizes": [
        {
            "aspectRatio": "",
            "minHeight": "",
            "minWidth": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pretargetingconfigs/:accountId"

payload <- "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pretargetingconfigs/:accountId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/pretargetingconfigs/:accountId') do |req|
  req.body = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pretargetingconfigs/:accountId";

    let payload = json!({
        "billingId": "",
        "configId": "",
        "configName": "",
        "creativeType": (),
        "dimensions": (
            json!({
                "height": "",
                "width": ""
            })
        ),
        "excludedContentLabels": (),
        "excludedGeoCriteriaIds": (),
        "excludedPlacements": (
            json!({
                "token": "",
                "type": ""
            })
        ),
        "excludedUserLists": (),
        "excludedVerticals": (),
        "geoCriteriaIds": (),
        "isActive": false,
        "kind": "",
        "languages": (),
        "maximumQps": "",
        "minimumViewabilityDecile": 0,
        "mobileCarriers": (),
        "mobileDevices": (),
        "mobileOperatingSystemVersions": (),
        "placements": (
            json!({
                "token": "",
                "type": ""
            })
        ),
        "platforms": (),
        "supportedCreativeAttributes": (),
        "userIdentifierDataRequired": (),
        "userLists": (),
        "vendorTypes": (),
        "verticals": (),
        "videoPlayerSizes": (
            json!({
                "aspectRatio": "",
                "minHeight": "",
                "minWidth": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/pretargetingconfigs/:accountId \
  --header 'content-type: application/json' \
  --data '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
echo '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/pretargetingconfigs/:accountId \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "billingId": "",\n  "configId": "",\n  "configName": "",\n  "creativeType": [],\n  "dimensions": [\n    {\n      "height": "",\n      "width": ""\n    }\n  ],\n  "excludedContentLabels": [],\n  "excludedGeoCriteriaIds": [],\n  "excludedPlacements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "excludedUserLists": [],\n  "excludedVerticals": [],\n  "geoCriteriaIds": [],\n  "isActive": false,\n  "kind": "",\n  "languages": [],\n  "maximumQps": "",\n  "minimumViewabilityDecile": 0,\n  "mobileCarriers": [],\n  "mobileDevices": [],\n  "mobileOperatingSystemVersions": [],\n  "placements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "platforms": [],\n  "supportedCreativeAttributes": [],\n  "userIdentifierDataRequired": [],\n  "userLists": [],\n  "vendorTypes": [],\n  "verticals": [],\n  "videoPlayerSizes": [\n    {\n      "aspectRatio": "",\n      "minHeight": "",\n      "minWidth": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/pretargetingconfigs/:accountId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    [
      "height": "",
      "width": ""
    ]
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    [
      "token": "",
      "type": ""
    ]
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    [
      "token": "",
      "type": ""
    ]
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    [
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pretargetingconfigs/:accountId")! 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()
GET adexchangebuyer.pretargetingConfig.list
{{baseUrl}}/pretargetingconfigs/:accountId
QUERY PARAMS

accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pretargetingconfigs/:accountId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pretargetingconfigs/:accountId")
require "http/client"

url = "{{baseUrl}}/pretargetingconfigs/:accountId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/pretargetingconfigs/:accountId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pretargetingconfigs/:accountId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pretargetingconfigs/:accountId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/pretargetingconfigs/:accountId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pretargetingconfigs/:accountId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pretargetingconfigs/:accountId"))
    .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}}/pretargetingconfigs/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pretargetingconfigs/:accountId")
  .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}}/pretargetingconfigs/:accountId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pretargetingconfigs/:accountId';
const options = {method: 'GET'};

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}}/pretargetingconfigs/:accountId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pretargetingconfigs/:accountId',
  headers: {}
};

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}}/pretargetingconfigs/:accountId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/pretargetingconfigs/:accountId');

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}}/pretargetingconfigs/:accountId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pretargetingconfigs/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pretargetingconfigs/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/pretargetingconfigs/:accountId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pretargetingconfigs/:accountId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/pretargetingconfigs/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/pretargetingconfigs/:accountId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pretargetingconfigs/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pretargetingconfigs/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pretargetingconfigs/:accountId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pretargetingconfigs/:accountId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pretargetingconfigs/:accountId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pretargetingconfigs/:accountId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pretargetingconfigs/:accountId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/pretargetingconfigs/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pretargetingconfigs/:accountId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/pretargetingconfigs/:accountId
http GET {{baseUrl}}/pretargetingconfigs/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/pretargetingconfigs/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pretargetingconfigs/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
PATCH adexchangebuyer.pretargetingConfig.patch
{{baseUrl}}/pretargetingconfigs/:accountId/:configId
QUERY PARAMS

accountId
configId
BODY json

{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pretargetingconfigs/:accountId/:configId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/pretargetingconfigs/:accountId/:configId" {:content-type :json
                                                                                      :form-params {:billingId ""
                                                                                                    :configId ""
                                                                                                    :configName ""
                                                                                                    :creativeType []
                                                                                                    :dimensions [{:height ""
                                                                                                                  :width ""}]
                                                                                                    :excludedContentLabels []
                                                                                                    :excludedGeoCriteriaIds []
                                                                                                    :excludedPlacements [{:token ""
                                                                                                                          :type ""}]
                                                                                                    :excludedUserLists []
                                                                                                    :excludedVerticals []
                                                                                                    :geoCriteriaIds []
                                                                                                    :isActive false
                                                                                                    :kind ""
                                                                                                    :languages []
                                                                                                    :maximumQps ""
                                                                                                    :minimumViewabilityDecile 0
                                                                                                    :mobileCarriers []
                                                                                                    :mobileDevices []
                                                                                                    :mobileOperatingSystemVersions []
                                                                                                    :placements [{:token ""
                                                                                                                  :type ""}]
                                                                                                    :platforms []
                                                                                                    :supportedCreativeAttributes []
                                                                                                    :userIdentifierDataRequired []
                                                                                                    :userLists []
                                                                                                    :vendorTypes []
                                                                                                    :verticals []
                                                                                                    :videoPlayerSizes [{:aspectRatio ""
                                                                                                                        :minHeight ""
                                                                                                                        :minWidth ""}]}})
require "http/client"

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"),
    Content = new StringContent("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId/:configId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

	payload := strings.NewReader("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/pretargetingconfigs/:accountId/:configId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 899

{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .header("content-type", "application/json")
  .body("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [
    {
      height: '',
      width: ''
    }
  ],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [
    {
      token: '',
      type: ''
    }
  ],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [
    {
      token: '',
      type: ''
    }
  ],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [
    {
      aspectRatio: '',
      minHeight: '',
      minWidth: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId',
  headers: {'content-type': 'application/json'},
  data: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"billingId":"","configId":"","configName":"","creativeType":[],"dimensions":[{"height":"","width":""}],"excludedContentLabels":[],"excludedGeoCriteriaIds":[],"excludedPlacements":[{"token":"","type":""}],"excludedUserLists":[],"excludedVerticals":[],"geoCriteriaIds":[],"isActive":false,"kind":"","languages":[],"maximumQps":"","minimumViewabilityDecile":0,"mobileCarriers":[],"mobileDevices":[],"mobileOperatingSystemVersions":[],"placements":[{"token":"","type":""}],"platforms":[],"supportedCreativeAttributes":[],"userIdentifierDataRequired":[],"userLists":[],"vendorTypes":[],"verticals":[],"videoPlayerSizes":[{"aspectRatio":"","minHeight":"","minWidth":""}]}'
};

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}}/pretargetingconfigs/:accountId/:configId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "billingId": "",\n  "configId": "",\n  "configName": "",\n  "creativeType": [],\n  "dimensions": [\n    {\n      "height": "",\n      "width": ""\n    }\n  ],\n  "excludedContentLabels": [],\n  "excludedGeoCriteriaIds": [],\n  "excludedPlacements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "excludedUserLists": [],\n  "excludedVerticals": [],\n  "geoCriteriaIds": [],\n  "isActive": false,\n  "kind": "",\n  "languages": [],\n  "maximumQps": "",\n  "minimumViewabilityDecile": 0,\n  "mobileCarriers": [],\n  "mobileDevices": [],\n  "mobileOperatingSystemVersions": [],\n  "placements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "platforms": [],\n  "supportedCreativeAttributes": [],\n  "userIdentifierDataRequired": [],\n  "userLists": [],\n  "vendorTypes": [],\n  "verticals": [],\n  "videoPlayerSizes": [\n    {\n      "aspectRatio": "",\n      "minHeight": "",\n      "minWidth": ""\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  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pretargetingconfigs/:accountId/:configId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [{height: '', width: ''}],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [{token: '', type: ''}],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [{token: '', type: ''}],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId',
  headers: {'content-type': 'application/json'},
  body: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [
    {
      height: '',
      width: ''
    }
  ],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [
    {
      token: '',
      type: ''
    }
  ],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [
    {
      token: '',
      type: ''
    }
  ],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [
    {
      aspectRatio: '',
      minHeight: '',
      minWidth: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId',
  headers: {'content-type': 'application/json'},
  data: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"billingId":"","configId":"","configName":"","creativeType":[],"dimensions":[{"height":"","width":""}],"excludedContentLabels":[],"excludedGeoCriteriaIds":[],"excludedPlacements":[{"token":"","type":""}],"excludedUserLists":[],"excludedVerticals":[],"geoCriteriaIds":[],"isActive":false,"kind":"","languages":[],"maximumQps":"","minimumViewabilityDecile":0,"mobileCarriers":[],"mobileDevices":[],"mobileOperatingSystemVersions":[],"placements":[{"token":"","type":""}],"platforms":[],"supportedCreativeAttributes":[],"userIdentifierDataRequired":[],"userLists":[],"vendorTypes":[],"verticals":[],"videoPlayerSizes":[{"aspectRatio":"","minHeight":"","minWidth":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"billingId": @"",
                              @"configId": @"",
                              @"configName": @"",
                              @"creativeType": @[  ],
                              @"dimensions": @[ @{ @"height": @"", @"width": @"" } ],
                              @"excludedContentLabels": @[  ],
                              @"excludedGeoCriteriaIds": @[  ],
                              @"excludedPlacements": @[ @{ @"token": @"", @"type": @"" } ],
                              @"excludedUserLists": @[  ],
                              @"excludedVerticals": @[  ],
                              @"geoCriteriaIds": @[  ],
                              @"isActive": @NO,
                              @"kind": @"",
                              @"languages": @[  ],
                              @"maximumQps": @"",
                              @"minimumViewabilityDecile": @0,
                              @"mobileCarriers": @[  ],
                              @"mobileDevices": @[  ],
                              @"mobileOperatingSystemVersions": @[  ],
                              @"placements": @[ @{ @"token": @"", @"type": @"" } ],
                              @"platforms": @[  ],
                              @"supportedCreativeAttributes": @[  ],
                              @"userIdentifierDataRequired": @[  ],
                              @"userLists": @[  ],
                              @"vendorTypes": @[  ],
                              @"verticals": @[  ],
                              @"videoPlayerSizes": @[ @{ @"aspectRatio": @"", @"minHeight": @"", @"minWidth": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pretargetingconfigs/:accountId/:configId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/pretargetingconfigs/:accountId/:configId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pretargetingconfigs/:accountId/:configId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'billingId' => '',
    'configId' => '',
    'configName' => '',
    'creativeType' => [
        
    ],
    'dimensions' => [
        [
                'height' => '',
                'width' => ''
        ]
    ],
    'excludedContentLabels' => [
        
    ],
    'excludedGeoCriteriaIds' => [
        
    ],
    'excludedPlacements' => [
        [
                'token' => '',
                'type' => ''
        ]
    ],
    'excludedUserLists' => [
        
    ],
    'excludedVerticals' => [
        
    ],
    'geoCriteriaIds' => [
        
    ],
    'isActive' => null,
    'kind' => '',
    'languages' => [
        
    ],
    'maximumQps' => '',
    'minimumViewabilityDecile' => 0,
    'mobileCarriers' => [
        
    ],
    'mobileDevices' => [
        
    ],
    'mobileOperatingSystemVersions' => [
        
    ],
    'placements' => [
        [
                'token' => '',
                'type' => ''
        ]
    ],
    'platforms' => [
        
    ],
    'supportedCreativeAttributes' => [
        
    ],
    'userIdentifierDataRequired' => [
        
    ],
    'userLists' => [
        
    ],
    'vendorTypes' => [
        
    ],
    'verticals' => [
        
    ],
    'videoPlayerSizes' => [
        [
                'aspectRatio' => '',
                'minHeight' => '',
                'minWidth' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId', [
  'body' => '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'billingId' => '',
  'configId' => '',
  'configName' => '',
  'creativeType' => [
    
  ],
  'dimensions' => [
    [
        'height' => '',
        'width' => ''
    ]
  ],
  'excludedContentLabels' => [
    
  ],
  'excludedGeoCriteriaIds' => [
    
  ],
  'excludedPlacements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'excludedUserLists' => [
    
  ],
  'excludedVerticals' => [
    
  ],
  'geoCriteriaIds' => [
    
  ],
  'isActive' => null,
  'kind' => '',
  'languages' => [
    
  ],
  'maximumQps' => '',
  'minimumViewabilityDecile' => 0,
  'mobileCarriers' => [
    
  ],
  'mobileDevices' => [
    
  ],
  'mobileOperatingSystemVersions' => [
    
  ],
  'placements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'platforms' => [
    
  ],
  'supportedCreativeAttributes' => [
    
  ],
  'userIdentifierDataRequired' => [
    
  ],
  'userLists' => [
    
  ],
  'vendorTypes' => [
    
  ],
  'verticals' => [
    
  ],
  'videoPlayerSizes' => [
    [
        'aspectRatio' => '',
        'minHeight' => '',
        'minWidth' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'billingId' => '',
  'configId' => '',
  'configName' => '',
  'creativeType' => [
    
  ],
  'dimensions' => [
    [
        'height' => '',
        'width' => ''
    ]
  ],
  'excludedContentLabels' => [
    
  ],
  'excludedGeoCriteriaIds' => [
    
  ],
  'excludedPlacements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'excludedUserLists' => [
    
  ],
  'excludedVerticals' => [
    
  ],
  'geoCriteriaIds' => [
    
  ],
  'isActive' => null,
  'kind' => '',
  'languages' => [
    
  ],
  'maximumQps' => '',
  'minimumViewabilityDecile' => 0,
  'mobileCarriers' => [
    
  ],
  'mobileDevices' => [
    
  ],
  'mobileOperatingSystemVersions' => [
    
  ],
  'placements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'platforms' => [
    
  ],
  'supportedCreativeAttributes' => [
    
  ],
  'userIdentifierDataRequired' => [
    
  ],
  'userLists' => [
    
  ],
  'vendorTypes' => [
    
  ],
  'verticals' => [
    
  ],
  'videoPlayerSizes' => [
    [
        'aspectRatio' => '',
        'minHeight' => '',
        'minWidth' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/pretargetingconfigs/:accountId/:configId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

payload = {
    "billingId": "",
    "configId": "",
    "configName": "",
    "creativeType": [],
    "dimensions": [
        {
            "height": "",
            "width": ""
        }
    ],
    "excludedContentLabels": [],
    "excludedGeoCriteriaIds": [],
    "excludedPlacements": [
        {
            "token": "",
            "type": ""
        }
    ],
    "excludedUserLists": [],
    "excludedVerticals": [],
    "geoCriteriaIds": [],
    "isActive": False,
    "kind": "",
    "languages": [],
    "maximumQps": "",
    "minimumViewabilityDecile": 0,
    "mobileCarriers": [],
    "mobileDevices": [],
    "mobileOperatingSystemVersions": [],
    "placements": [
        {
            "token": "",
            "type": ""
        }
    ],
    "platforms": [],
    "supportedCreativeAttributes": [],
    "userIdentifierDataRequired": [],
    "userLists": [],
    "vendorTypes": [],
    "verticals": [],
    "videoPlayerSizes": [
        {
            "aspectRatio": "",
            "minHeight": "",
            "minWidth": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

payload <- "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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.patch('/baseUrl/pretargetingconfigs/:accountId/:configId') do |req|
  req.body = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId/:configId";

    let payload = json!({
        "billingId": "",
        "configId": "",
        "configName": "",
        "creativeType": (),
        "dimensions": (
            json!({
                "height": "",
                "width": ""
            })
        ),
        "excludedContentLabels": (),
        "excludedGeoCriteriaIds": (),
        "excludedPlacements": (
            json!({
                "token": "",
                "type": ""
            })
        ),
        "excludedUserLists": (),
        "excludedVerticals": (),
        "geoCriteriaIds": (),
        "isActive": false,
        "kind": "",
        "languages": (),
        "maximumQps": "",
        "minimumViewabilityDecile": 0,
        "mobileCarriers": (),
        "mobileDevices": (),
        "mobileOperatingSystemVersions": (),
        "placements": (
            json!({
                "token": "",
                "type": ""
            })
        ),
        "platforms": (),
        "supportedCreativeAttributes": (),
        "userIdentifierDataRequired": (),
        "userLists": (),
        "vendorTypes": (),
        "verticals": (),
        "videoPlayerSizes": (
            json!({
                "aspectRatio": "",
                "minHeight": "",
                "minWidth": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/pretargetingconfigs/:accountId/:configId \
  --header 'content-type: application/json' \
  --data '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
echo '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}' |  \
  http PATCH {{baseUrl}}/pretargetingconfigs/:accountId/:configId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "billingId": "",\n  "configId": "",\n  "configName": "",\n  "creativeType": [],\n  "dimensions": [\n    {\n      "height": "",\n      "width": ""\n    }\n  ],\n  "excludedContentLabels": [],\n  "excludedGeoCriteriaIds": [],\n  "excludedPlacements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "excludedUserLists": [],\n  "excludedVerticals": [],\n  "geoCriteriaIds": [],\n  "isActive": false,\n  "kind": "",\n  "languages": [],\n  "maximumQps": "",\n  "minimumViewabilityDecile": 0,\n  "mobileCarriers": [],\n  "mobileDevices": [],\n  "mobileOperatingSystemVersions": [],\n  "placements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "platforms": [],\n  "supportedCreativeAttributes": [],\n  "userIdentifierDataRequired": [],\n  "userLists": [],\n  "vendorTypes": [],\n  "verticals": [],\n  "videoPlayerSizes": [\n    {\n      "aspectRatio": "",\n      "minHeight": "",\n      "minWidth": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/pretargetingconfigs/:accountId/:configId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    [
      "height": "",
      "width": ""
    ]
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    [
      "token": "",
      "type": ""
    ]
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    [
      "token": "",
      "type": ""
    ]
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    [
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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 adexchangebuyer.pretargetingConfig.update
{{baseUrl}}/pretargetingconfigs/:accountId/:configId
QUERY PARAMS

accountId
configId
BODY json

{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pretargetingconfigs/:accountId/:configId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/pretargetingconfigs/:accountId/:configId" {:content-type :json
                                                                                    :form-params {:billingId ""
                                                                                                  :configId ""
                                                                                                  :configName ""
                                                                                                  :creativeType []
                                                                                                  :dimensions [{:height ""
                                                                                                                :width ""}]
                                                                                                  :excludedContentLabels []
                                                                                                  :excludedGeoCriteriaIds []
                                                                                                  :excludedPlacements [{:token ""
                                                                                                                        :type ""}]
                                                                                                  :excludedUserLists []
                                                                                                  :excludedVerticals []
                                                                                                  :geoCriteriaIds []
                                                                                                  :isActive false
                                                                                                  :kind ""
                                                                                                  :languages []
                                                                                                  :maximumQps ""
                                                                                                  :minimumViewabilityDecile 0
                                                                                                  :mobileCarriers []
                                                                                                  :mobileDevices []
                                                                                                  :mobileOperatingSystemVersions []
                                                                                                  :placements [{:token ""
                                                                                                                :type ""}]
                                                                                                  :platforms []
                                                                                                  :supportedCreativeAttributes []
                                                                                                  :userIdentifierDataRequired []
                                                                                                  :userLists []
                                                                                                  :vendorTypes []
                                                                                                  :verticals []
                                                                                                  :videoPlayerSizes [{:aspectRatio ""
                                                                                                                      :minHeight ""
                                                                                                                      :minWidth ""}]}})
require "http/client"

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId/:configId"),
    Content = new StringContent("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId/:configId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

	payload := strings.NewReader("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/pretargetingconfigs/:accountId/:configId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 899

{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pretargetingconfigs/:accountId/:configId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .header("content-type", "application/json")
  .body("{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [
    {
      height: '',
      width: ''
    }
  ],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [
    {
      token: '',
      type: ''
    }
  ],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [
    {
      token: '',
      type: ''
    }
  ],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [
    {
      aspectRatio: '',
      minHeight: '',
      minWidth: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId',
  headers: {'content-type': 'application/json'},
  data: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"billingId":"","configId":"","configName":"","creativeType":[],"dimensions":[{"height":"","width":""}],"excludedContentLabels":[],"excludedGeoCriteriaIds":[],"excludedPlacements":[{"token":"","type":""}],"excludedUserLists":[],"excludedVerticals":[],"geoCriteriaIds":[],"isActive":false,"kind":"","languages":[],"maximumQps":"","minimumViewabilityDecile":0,"mobileCarriers":[],"mobileDevices":[],"mobileOperatingSystemVersions":[],"placements":[{"token":"","type":""}],"platforms":[],"supportedCreativeAttributes":[],"userIdentifierDataRequired":[],"userLists":[],"vendorTypes":[],"verticals":[],"videoPlayerSizes":[{"aspectRatio":"","minHeight":"","minWidth":""}]}'
};

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}}/pretargetingconfigs/:accountId/:configId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "billingId": "",\n  "configId": "",\n  "configName": "",\n  "creativeType": [],\n  "dimensions": [\n    {\n      "height": "",\n      "width": ""\n    }\n  ],\n  "excludedContentLabels": [],\n  "excludedGeoCriteriaIds": [],\n  "excludedPlacements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "excludedUserLists": [],\n  "excludedVerticals": [],\n  "geoCriteriaIds": [],\n  "isActive": false,\n  "kind": "",\n  "languages": [],\n  "maximumQps": "",\n  "minimumViewabilityDecile": 0,\n  "mobileCarriers": [],\n  "mobileDevices": [],\n  "mobileOperatingSystemVersions": [],\n  "placements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "platforms": [],\n  "supportedCreativeAttributes": [],\n  "userIdentifierDataRequired": [],\n  "userLists": [],\n  "vendorTypes": [],\n  "verticals": [],\n  "videoPlayerSizes": [\n    {\n      "aspectRatio": "",\n      "minHeight": "",\n      "minWidth": ""\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  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pretargetingconfigs/:accountId/:configId")
  .put(body)
  .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/pretargetingconfigs/:accountId/:configId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [{height: '', width: ''}],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [{token: '', type: ''}],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [{token: '', type: ''}],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/pretargetingconfigs/:accountId/:configId',
  headers: {'content-type': 'application/json'},
  body: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  },
  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}}/pretargetingconfigs/:accountId/:configId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  billingId: '',
  configId: '',
  configName: '',
  creativeType: [],
  dimensions: [
    {
      height: '',
      width: ''
    }
  ],
  excludedContentLabels: [],
  excludedGeoCriteriaIds: [],
  excludedPlacements: [
    {
      token: '',
      type: ''
    }
  ],
  excludedUserLists: [],
  excludedVerticals: [],
  geoCriteriaIds: [],
  isActive: false,
  kind: '',
  languages: [],
  maximumQps: '',
  minimumViewabilityDecile: 0,
  mobileCarriers: [],
  mobileDevices: [],
  mobileOperatingSystemVersions: [],
  placements: [
    {
      token: '',
      type: ''
    }
  ],
  platforms: [],
  supportedCreativeAttributes: [],
  userIdentifierDataRequired: [],
  userLists: [],
  vendorTypes: [],
  verticals: [],
  videoPlayerSizes: [
    {
      aspectRatio: '',
      minHeight: '',
      minWidth: ''
    }
  ]
});

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}}/pretargetingconfigs/:accountId/:configId',
  headers: {'content-type': 'application/json'},
  data: {
    billingId: '',
    configId: '',
    configName: '',
    creativeType: [],
    dimensions: [{height: '', width: ''}],
    excludedContentLabels: [],
    excludedGeoCriteriaIds: [],
    excludedPlacements: [{token: '', type: ''}],
    excludedUserLists: [],
    excludedVerticals: [],
    geoCriteriaIds: [],
    isActive: false,
    kind: '',
    languages: [],
    maximumQps: '',
    minimumViewabilityDecile: 0,
    mobileCarriers: [],
    mobileDevices: [],
    mobileOperatingSystemVersions: [],
    placements: [{token: '', type: ''}],
    platforms: [],
    supportedCreativeAttributes: [],
    userIdentifierDataRequired: [],
    userLists: [],
    vendorTypes: [],
    verticals: [],
    videoPlayerSizes: [{aspectRatio: '', minHeight: '', minWidth: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pretargetingconfigs/:accountId/:configId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"billingId":"","configId":"","configName":"","creativeType":[],"dimensions":[{"height":"","width":""}],"excludedContentLabels":[],"excludedGeoCriteriaIds":[],"excludedPlacements":[{"token":"","type":""}],"excludedUserLists":[],"excludedVerticals":[],"geoCriteriaIds":[],"isActive":false,"kind":"","languages":[],"maximumQps":"","minimumViewabilityDecile":0,"mobileCarriers":[],"mobileDevices":[],"mobileOperatingSystemVersions":[],"placements":[{"token":"","type":""}],"platforms":[],"supportedCreativeAttributes":[],"userIdentifierDataRequired":[],"userLists":[],"vendorTypes":[],"verticals":[],"videoPlayerSizes":[{"aspectRatio":"","minHeight":"","minWidth":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"billingId": @"",
                              @"configId": @"",
                              @"configName": @"",
                              @"creativeType": @[  ],
                              @"dimensions": @[ @{ @"height": @"", @"width": @"" } ],
                              @"excludedContentLabels": @[  ],
                              @"excludedGeoCriteriaIds": @[  ],
                              @"excludedPlacements": @[ @{ @"token": @"", @"type": @"" } ],
                              @"excludedUserLists": @[  ],
                              @"excludedVerticals": @[  ],
                              @"geoCriteriaIds": @[  ],
                              @"isActive": @NO,
                              @"kind": @"",
                              @"languages": @[  ],
                              @"maximumQps": @"",
                              @"minimumViewabilityDecile": @0,
                              @"mobileCarriers": @[  ],
                              @"mobileDevices": @[  ],
                              @"mobileOperatingSystemVersions": @[  ],
                              @"placements": @[ @{ @"token": @"", @"type": @"" } ],
                              @"platforms": @[  ],
                              @"supportedCreativeAttributes": @[  ],
                              @"userIdentifierDataRequired": @[  ],
                              @"userLists": @[  ],
                              @"vendorTypes": @[  ],
                              @"verticals": @[  ],
                              @"videoPlayerSizes": @[ @{ @"aspectRatio": @"", @"minHeight": @"", @"minWidth": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pretargetingconfigs/:accountId/:configId"]
                                                       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}}/pretargetingconfigs/:accountId/:configId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pretargetingconfigs/:accountId/:configId",
  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([
    'billingId' => '',
    'configId' => '',
    'configName' => '',
    'creativeType' => [
        
    ],
    'dimensions' => [
        [
                'height' => '',
                'width' => ''
        ]
    ],
    'excludedContentLabels' => [
        
    ],
    'excludedGeoCriteriaIds' => [
        
    ],
    'excludedPlacements' => [
        [
                'token' => '',
                'type' => ''
        ]
    ],
    'excludedUserLists' => [
        
    ],
    'excludedVerticals' => [
        
    ],
    'geoCriteriaIds' => [
        
    ],
    'isActive' => null,
    'kind' => '',
    'languages' => [
        
    ],
    'maximumQps' => '',
    'minimumViewabilityDecile' => 0,
    'mobileCarriers' => [
        
    ],
    'mobileDevices' => [
        
    ],
    'mobileOperatingSystemVersions' => [
        
    ],
    'placements' => [
        [
                'token' => '',
                'type' => ''
        ]
    ],
    'platforms' => [
        
    ],
    'supportedCreativeAttributes' => [
        
    ],
    'userIdentifierDataRequired' => [
        
    ],
    'userLists' => [
        
    ],
    'vendorTypes' => [
        
    ],
    'verticals' => [
        
    ],
    'videoPlayerSizes' => [
        [
                'aspectRatio' => '',
                'minHeight' => '',
                'minWidth' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/pretargetingconfigs/:accountId/:configId', [
  'body' => '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'billingId' => '',
  'configId' => '',
  'configName' => '',
  'creativeType' => [
    
  ],
  'dimensions' => [
    [
        'height' => '',
        'width' => ''
    ]
  ],
  'excludedContentLabels' => [
    
  ],
  'excludedGeoCriteriaIds' => [
    
  ],
  'excludedPlacements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'excludedUserLists' => [
    
  ],
  'excludedVerticals' => [
    
  ],
  'geoCriteriaIds' => [
    
  ],
  'isActive' => null,
  'kind' => '',
  'languages' => [
    
  ],
  'maximumQps' => '',
  'minimumViewabilityDecile' => 0,
  'mobileCarriers' => [
    
  ],
  'mobileDevices' => [
    
  ],
  'mobileOperatingSystemVersions' => [
    
  ],
  'placements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'platforms' => [
    
  ],
  'supportedCreativeAttributes' => [
    
  ],
  'userIdentifierDataRequired' => [
    
  ],
  'userLists' => [
    
  ],
  'vendorTypes' => [
    
  ],
  'verticals' => [
    
  ],
  'videoPlayerSizes' => [
    [
        'aspectRatio' => '',
        'minHeight' => '',
        'minWidth' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'billingId' => '',
  'configId' => '',
  'configName' => '',
  'creativeType' => [
    
  ],
  'dimensions' => [
    [
        'height' => '',
        'width' => ''
    ]
  ],
  'excludedContentLabels' => [
    
  ],
  'excludedGeoCriteriaIds' => [
    
  ],
  'excludedPlacements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'excludedUserLists' => [
    
  ],
  'excludedVerticals' => [
    
  ],
  'geoCriteriaIds' => [
    
  ],
  'isActive' => null,
  'kind' => '',
  'languages' => [
    
  ],
  'maximumQps' => '',
  'minimumViewabilityDecile' => 0,
  'mobileCarriers' => [
    
  ],
  'mobileDevices' => [
    
  ],
  'mobileOperatingSystemVersions' => [
    
  ],
  'placements' => [
    [
        'token' => '',
        'type' => ''
    ]
  ],
  'platforms' => [
    
  ],
  'supportedCreativeAttributes' => [
    
  ],
  'userIdentifierDataRequired' => [
    
  ],
  'userLists' => [
    
  ],
  'vendorTypes' => [
    
  ],
  'verticals' => [
    
  ],
  'videoPlayerSizes' => [
    [
        'aspectRatio' => '',
        'minHeight' => '',
        'minWidth' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/pretargetingconfigs/:accountId/:configId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pretargetingconfigs/:accountId/:configId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/pretargetingconfigs/:accountId/:configId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

payload = {
    "billingId": "",
    "configId": "",
    "configName": "",
    "creativeType": [],
    "dimensions": [
        {
            "height": "",
            "width": ""
        }
    ],
    "excludedContentLabels": [],
    "excludedGeoCriteriaIds": [],
    "excludedPlacements": [
        {
            "token": "",
            "type": ""
        }
    ],
    "excludedUserLists": [],
    "excludedVerticals": [],
    "geoCriteriaIds": [],
    "isActive": False,
    "kind": "",
    "languages": [],
    "maximumQps": "",
    "minimumViewabilityDecile": 0,
    "mobileCarriers": [],
    "mobileDevices": [],
    "mobileOperatingSystemVersions": [],
    "placements": [
        {
            "token": "",
            "type": ""
        }
    ],
    "platforms": [],
    "supportedCreativeAttributes": [],
    "userIdentifierDataRequired": [],
    "userLists": [],
    "vendorTypes": [],
    "verticals": [],
    "videoPlayerSizes": [
        {
            "aspectRatio": "",
            "minHeight": "",
            "minWidth": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pretargetingconfigs/:accountId/:configId"

payload <- "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId/:configId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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/pretargetingconfigs/:accountId/:configId') do |req|
  req.body = "{\n  \"billingId\": \"\",\n  \"configId\": \"\",\n  \"configName\": \"\",\n  \"creativeType\": [],\n  \"dimensions\": [\n    {\n      \"height\": \"\",\n      \"width\": \"\"\n    }\n  ],\n  \"excludedContentLabels\": [],\n  \"excludedGeoCriteriaIds\": [],\n  \"excludedPlacements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"excludedUserLists\": [],\n  \"excludedVerticals\": [],\n  \"geoCriteriaIds\": [],\n  \"isActive\": false,\n  \"kind\": \"\",\n  \"languages\": [],\n  \"maximumQps\": \"\",\n  \"minimumViewabilityDecile\": 0,\n  \"mobileCarriers\": [],\n  \"mobileDevices\": [],\n  \"mobileOperatingSystemVersions\": [],\n  \"placements\": [\n    {\n      \"token\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"platforms\": [],\n  \"supportedCreativeAttributes\": [],\n  \"userIdentifierDataRequired\": [],\n  \"userLists\": [],\n  \"vendorTypes\": [],\n  \"verticals\": [],\n  \"videoPlayerSizes\": [\n    {\n      \"aspectRatio\": \"\",\n      \"minHeight\": \"\",\n      \"minWidth\": \"\"\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}}/pretargetingconfigs/:accountId/:configId";

    let payload = json!({
        "billingId": "",
        "configId": "",
        "configName": "",
        "creativeType": (),
        "dimensions": (
            json!({
                "height": "",
                "width": ""
            })
        ),
        "excludedContentLabels": (),
        "excludedGeoCriteriaIds": (),
        "excludedPlacements": (
            json!({
                "token": "",
                "type": ""
            })
        ),
        "excludedUserLists": (),
        "excludedVerticals": (),
        "geoCriteriaIds": (),
        "isActive": false,
        "kind": "",
        "languages": (),
        "maximumQps": "",
        "minimumViewabilityDecile": 0,
        "mobileCarriers": (),
        "mobileDevices": (),
        "mobileOperatingSystemVersions": (),
        "placements": (
            json!({
                "token": "",
                "type": ""
            })
        ),
        "platforms": (),
        "supportedCreativeAttributes": (),
        "userIdentifierDataRequired": (),
        "userLists": (),
        "vendorTypes": (),
        "verticals": (),
        "videoPlayerSizes": (
            json!({
                "aspectRatio": "",
                "minHeight": "",
                "minWidth": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/pretargetingconfigs/:accountId/:configId \
  --header 'content-type: application/json' \
  --data '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}'
echo '{
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    {
      "height": "",
      "width": ""
    }
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    {
      "token": "",
      "type": ""
    }
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    {
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    }
  ]
}' |  \
  http PUT {{baseUrl}}/pretargetingconfigs/:accountId/:configId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "billingId": "",\n  "configId": "",\n  "configName": "",\n  "creativeType": [],\n  "dimensions": [\n    {\n      "height": "",\n      "width": ""\n    }\n  ],\n  "excludedContentLabels": [],\n  "excludedGeoCriteriaIds": [],\n  "excludedPlacements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "excludedUserLists": [],\n  "excludedVerticals": [],\n  "geoCriteriaIds": [],\n  "isActive": false,\n  "kind": "",\n  "languages": [],\n  "maximumQps": "",\n  "minimumViewabilityDecile": 0,\n  "mobileCarriers": [],\n  "mobileDevices": [],\n  "mobileOperatingSystemVersions": [],\n  "placements": [\n    {\n      "token": "",\n      "type": ""\n    }\n  ],\n  "platforms": [],\n  "supportedCreativeAttributes": [],\n  "userIdentifierDataRequired": [],\n  "userLists": [],\n  "vendorTypes": [],\n  "verticals": [],\n  "videoPlayerSizes": [\n    {\n      "aspectRatio": "",\n      "minHeight": "",\n      "minWidth": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/pretargetingconfigs/:accountId/:configId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "billingId": "",
  "configId": "",
  "configName": "",
  "creativeType": [],
  "dimensions": [
    [
      "height": "",
      "width": ""
    ]
  ],
  "excludedContentLabels": [],
  "excludedGeoCriteriaIds": [],
  "excludedPlacements": [
    [
      "token": "",
      "type": ""
    ]
  ],
  "excludedUserLists": [],
  "excludedVerticals": [],
  "geoCriteriaIds": [],
  "isActive": false,
  "kind": "",
  "languages": [],
  "maximumQps": "",
  "minimumViewabilityDecile": 0,
  "mobileCarriers": [],
  "mobileDevices": [],
  "mobileOperatingSystemVersions": [],
  "placements": [
    [
      "token": "",
      "type": ""
    ]
  ],
  "platforms": [],
  "supportedCreativeAttributes": [],
  "userIdentifierDataRequired": [],
  "userLists": [],
  "vendorTypes": [],
  "verticals": [],
  "videoPlayerSizes": [
    [
      "aspectRatio": "",
      "minHeight": "",
      "minWidth": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pretargetingconfigs/:accountId/:configId")! 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 adexchangebuyer.products.get
{{baseUrl}}/products/:productId
QUERY PARAMS

productId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:productId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:productId")
require "http/client"

url = "{{baseUrl}}/products/:productId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/products/:productId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:productId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:productId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/products/:productId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:productId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:productId"))
    .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}}/products/:productId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:productId")
  .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}}/products/:productId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/products/:productId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:productId';
const options = {method: 'GET'};

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}}/products/:productId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:productId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:productId',
  headers: {}
};

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}}/products/:productId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:productId');

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}}/products/:productId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:productId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:productId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/products/:productId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:productId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/products/:productId');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:productId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:productId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:productId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:productId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:productId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:productId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:productId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:productId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/products/:productId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:productId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/products/:productId
http GET {{baseUrl}}/products/:productId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/products/:productId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:productId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/search")
require "http/client"

url = "{{baseUrl}}/products/search"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/products/search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/search"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/products/search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/search"))
    .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}}/products/search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/search")
  .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}}/products/search');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/products/search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/search';
const options = {method: 'GET'};

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}}/products/search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/search',
  headers: {}
};

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}}/products/search'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/search');

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}}/products/search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/search';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/search"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/products/search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/products/search');

echo $response->getBody();
setUrl('{{baseUrl}}/products/search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/products/search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/search";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/products/search
http GET {{baseUrl}}/products/search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/products/search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.proposals.get
{{baseUrl}}/proposals/:proposalId
QUERY PARAMS

proposalId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/proposals/:proposalId")
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/proposals/:proposalId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/proposals/:proposalId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/proposals/:proposalId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/proposals/:proposalId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/proposals/:proposalId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId"))
    .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}}/proposals/:proposalId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/proposals/:proposalId")
  .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}}/proposals/:proposalId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/proposals/:proposalId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId';
const options = {method: 'GET'};

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}}/proposals/:proposalId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/:proposalId',
  headers: {}
};

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}}/proposals/:proposalId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/proposals/:proposalId');

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}}/proposals/:proposalId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/proposals/:proposalId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/proposals/:proposalId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/proposals/:proposalId');

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/proposals/:proposalId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/proposals/:proposalId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/proposals/:proposalId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/proposals/:proposalId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/proposals/:proposalId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/proposals/:proposalId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/proposals/:proposalId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/proposals/:proposalId
http GET {{baseUrl}}/proposals/:proposalId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.proposals.insert
{{baseUrl}}/proposals/insert
BODY json

{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/insert");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/proposals/insert" {:content-type :json
                                                             :form-params {:proposals [{:billedBuyer {:accountId ""}
                                                                                        :buyer {}
                                                                                        :buyerContacts [{:email ""
                                                                                                         :name ""}]
                                                                                        :buyerPrivateData {:referenceId ""
                                                                                                           :referencePayload ""}
                                                                                        :dbmAdvertiserIds []
                                                                                        :hasBuyerSignedOff false
                                                                                        :hasSellerSignedOff false
                                                                                        :inventorySource ""
                                                                                        :isRenegotiating false
                                                                                        :isSetupComplete false
                                                                                        :kind ""
                                                                                        :labels [{:accountId ""
                                                                                                  :createTimeMs ""
                                                                                                  :deprecatedMarketplaceDealParty {:buyer {}
                                                                                                                                   :seller {:accountId ""
                                                                                                                                            :subAccountId ""}}
                                                                                                  :label ""}]
                                                                                        :lastUpdaterOrCommentorRole ""
                                                                                        :name ""
                                                                                        :negotiationId ""
                                                                                        :originatorRole ""
                                                                                        :privateAuctionId ""
                                                                                        :proposalId ""
                                                                                        :proposalState ""
                                                                                        :revisionNumber ""
                                                                                        :revisionTimeMs ""
                                                                                        :seller {}
                                                                                        :sellerContacts [{}]}]
                                                                           :webPropertyCode ""}})
require "http/client"

url = "{{baseUrl}}/proposals/insert"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\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}}/proposals/insert"),
    Content = new StringContent("{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\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}}/proposals/insert");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/proposals/insert"

	payload := strings.NewReader("{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/proposals/insert HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1166

{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/proposals/insert")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/insert"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\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  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/insert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/proposals/insert")
  .header("content-type", "application/json")
  .body("{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  proposals: [
    {
      billedBuyer: {
        accountId: ''
      },
      buyer: {},
      buyerContacts: [
        {
          email: '',
          name: ''
        }
      ],
      buyerPrivateData: {
        referenceId: '',
        referencePayload: ''
      },
      dbmAdvertiserIds: [],
      hasBuyerSignedOff: false,
      hasSellerSignedOff: false,
      inventorySource: '',
      isRenegotiating: false,
      isSetupComplete: false,
      kind: '',
      labels: [
        {
          accountId: '',
          createTimeMs: '',
          deprecatedMarketplaceDealParty: {
            buyer: {},
            seller: {
              accountId: '',
              subAccountId: ''
            }
          },
          label: ''
        }
      ],
      lastUpdaterOrCommentorRole: '',
      name: '',
      negotiationId: '',
      originatorRole: '',
      privateAuctionId: '',
      proposalId: '',
      proposalState: '',
      revisionNumber: '',
      revisionTimeMs: '',
      seller: {},
      sellerContacts: [
        {}
      ]
    }
  ],
  webPropertyCode: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/proposals/insert');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/insert',
  headers: {'content-type': 'application/json'},
  data: {
    proposals: [
      {
        billedBuyer: {accountId: ''},
        buyer: {},
        buyerContacts: [{email: '', name: ''}],
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        dbmAdvertiserIds: [],
        hasBuyerSignedOff: false,
        hasSellerSignedOff: false,
        inventorySource: '',
        isRenegotiating: false,
        isSetupComplete: false,
        kind: '',
        labels: [
          {
            accountId: '',
            createTimeMs: '',
            deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
            label: ''
          }
        ],
        lastUpdaterOrCommentorRole: '',
        name: '',
        negotiationId: '',
        originatorRole: '',
        privateAuctionId: '',
        proposalId: '',
        proposalState: '',
        revisionNumber: '',
        revisionTimeMs: '',
        seller: {},
        sellerContacts: [{}]
      }
    ],
    webPropertyCode: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/insert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"proposals":[{"billedBuyer":{"accountId":""},"buyer":{},"buyerContacts":[{"email":"","name":""}],"buyerPrivateData":{"referenceId":"","referencePayload":""},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]}],"webPropertyCode":""}'
};

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}}/proposals/insert',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "proposals": [\n    {\n      "billedBuyer": {\n        "accountId": ""\n      },\n      "buyer": {},\n      "buyerContacts": [\n        {\n          "email": "",\n          "name": ""\n        }\n      ],\n      "buyerPrivateData": {\n        "referenceId": "",\n        "referencePayload": ""\n      },\n      "dbmAdvertiserIds": [],\n      "hasBuyerSignedOff": false,\n      "hasSellerSignedOff": false,\n      "inventorySource": "",\n      "isRenegotiating": false,\n      "isSetupComplete": false,\n      "kind": "",\n      "labels": [\n        {\n          "accountId": "",\n          "createTimeMs": "",\n          "deprecatedMarketplaceDealParty": {\n            "buyer": {},\n            "seller": {\n              "accountId": "",\n              "subAccountId": ""\n            }\n          },\n          "label": ""\n        }\n      ],\n      "lastUpdaterOrCommentorRole": "",\n      "name": "",\n      "negotiationId": "",\n      "originatorRole": "",\n      "privateAuctionId": "",\n      "proposalId": "",\n      "proposalState": "",\n      "revisionNumber": "",\n      "revisionTimeMs": "",\n      "seller": {},\n      "sellerContacts": [\n        {}\n      ]\n    }\n  ],\n  "webPropertyCode": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/insert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/insert',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  proposals: [
    {
      billedBuyer: {accountId: ''},
      buyer: {},
      buyerContacts: [{email: '', name: ''}],
      buyerPrivateData: {referenceId: '', referencePayload: ''},
      dbmAdvertiserIds: [],
      hasBuyerSignedOff: false,
      hasSellerSignedOff: false,
      inventorySource: '',
      isRenegotiating: false,
      isSetupComplete: false,
      kind: '',
      labels: [
        {
          accountId: '',
          createTimeMs: '',
          deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
          label: ''
        }
      ],
      lastUpdaterOrCommentorRole: '',
      name: '',
      negotiationId: '',
      originatorRole: '',
      privateAuctionId: '',
      proposalId: '',
      proposalState: '',
      revisionNumber: '',
      revisionTimeMs: '',
      seller: {},
      sellerContacts: [{}]
    }
  ],
  webPropertyCode: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/insert',
  headers: {'content-type': 'application/json'},
  body: {
    proposals: [
      {
        billedBuyer: {accountId: ''},
        buyer: {},
        buyerContacts: [{email: '', name: ''}],
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        dbmAdvertiserIds: [],
        hasBuyerSignedOff: false,
        hasSellerSignedOff: false,
        inventorySource: '',
        isRenegotiating: false,
        isSetupComplete: false,
        kind: '',
        labels: [
          {
            accountId: '',
            createTimeMs: '',
            deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
            label: ''
          }
        ],
        lastUpdaterOrCommentorRole: '',
        name: '',
        negotiationId: '',
        originatorRole: '',
        privateAuctionId: '',
        proposalId: '',
        proposalState: '',
        revisionNumber: '',
        revisionTimeMs: '',
        seller: {},
        sellerContacts: [{}]
      }
    ],
    webPropertyCode: ''
  },
  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}}/proposals/insert');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  proposals: [
    {
      billedBuyer: {
        accountId: ''
      },
      buyer: {},
      buyerContacts: [
        {
          email: '',
          name: ''
        }
      ],
      buyerPrivateData: {
        referenceId: '',
        referencePayload: ''
      },
      dbmAdvertiserIds: [],
      hasBuyerSignedOff: false,
      hasSellerSignedOff: false,
      inventorySource: '',
      isRenegotiating: false,
      isSetupComplete: false,
      kind: '',
      labels: [
        {
          accountId: '',
          createTimeMs: '',
          deprecatedMarketplaceDealParty: {
            buyer: {},
            seller: {
              accountId: '',
              subAccountId: ''
            }
          },
          label: ''
        }
      ],
      lastUpdaterOrCommentorRole: '',
      name: '',
      negotiationId: '',
      originatorRole: '',
      privateAuctionId: '',
      proposalId: '',
      proposalState: '',
      revisionNumber: '',
      revisionTimeMs: '',
      seller: {},
      sellerContacts: [
        {}
      ]
    }
  ],
  webPropertyCode: ''
});

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}}/proposals/insert',
  headers: {'content-type': 'application/json'},
  data: {
    proposals: [
      {
        billedBuyer: {accountId: ''},
        buyer: {},
        buyerContacts: [{email: '', name: ''}],
        buyerPrivateData: {referenceId: '', referencePayload: ''},
        dbmAdvertiserIds: [],
        hasBuyerSignedOff: false,
        hasSellerSignedOff: false,
        inventorySource: '',
        isRenegotiating: false,
        isSetupComplete: false,
        kind: '',
        labels: [
          {
            accountId: '',
            createTimeMs: '',
            deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
            label: ''
          }
        ],
        lastUpdaterOrCommentorRole: '',
        name: '',
        negotiationId: '',
        originatorRole: '',
        privateAuctionId: '',
        proposalId: '',
        proposalState: '',
        revisionNumber: '',
        revisionTimeMs: '',
        seller: {},
        sellerContacts: [{}]
      }
    ],
    webPropertyCode: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/proposals/insert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"proposals":[{"billedBuyer":{"accountId":""},"buyer":{},"buyerContacts":[{"email":"","name":""}],"buyerPrivateData":{"referenceId":"","referencePayload":""},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]}],"webPropertyCode":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"proposals": @[ @{ @"billedBuyer": @{ @"accountId": @"" }, @"buyer": @{  }, @"buyerContacts": @[ @{ @"email": @"", @"name": @"" } ], @"buyerPrivateData": @{ @"referenceId": @"", @"referencePayload": @"" }, @"dbmAdvertiserIds": @[  ], @"hasBuyerSignedOff": @NO, @"hasSellerSignedOff": @NO, @"inventorySource": @"", @"isRenegotiating": @NO, @"isSetupComplete": @NO, @"kind": @"", @"labels": @[ @{ @"accountId": @"", @"createTimeMs": @"", @"deprecatedMarketplaceDealParty": @{ @"buyer": @{  }, @"seller": @{ @"accountId": @"", @"subAccountId": @"" } }, @"label": @"" } ], @"lastUpdaterOrCommentorRole": @"", @"name": @"", @"negotiationId": @"", @"originatorRole": @"", @"privateAuctionId": @"", @"proposalId": @"", @"proposalState": @"", @"revisionNumber": @"", @"revisionTimeMs": @"", @"seller": @{  }, @"sellerContacts": @[ @{  } ] } ],
                              @"webPropertyCode": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/insert"]
                                                       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}}/proposals/insert" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/insert",
  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([
    'proposals' => [
        [
                'billedBuyer' => [
                                'accountId' => ''
                ],
                'buyer' => [
                                
                ],
                'buyerContacts' => [
                                [
                                                                'email' => '',
                                                                'name' => ''
                                ]
                ],
                'buyerPrivateData' => [
                                'referenceId' => '',
                                'referencePayload' => ''
                ],
                'dbmAdvertiserIds' => [
                                
                ],
                'hasBuyerSignedOff' => null,
                'hasSellerSignedOff' => null,
                'inventorySource' => '',
                'isRenegotiating' => null,
                'isSetupComplete' => null,
                'kind' => '',
                'labels' => [
                                [
                                                                'accountId' => '',
                                                                'createTimeMs' => '',
                                                                'deprecatedMarketplaceDealParty' => [
                                                                                                                                'buyer' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'seller' => [
                                                                                                                                                                                                                                                                'accountId' => '',
                                                                                                                                                                                                                                                                'subAccountId' => ''
                                                                                                                                ]
                                                                ],
                                                                'label' => ''
                                ]
                ],
                'lastUpdaterOrCommentorRole' => '',
                'name' => '',
                'negotiationId' => '',
                'originatorRole' => '',
                'privateAuctionId' => '',
                'proposalId' => '',
                'proposalState' => '',
                'revisionNumber' => '',
                'revisionTimeMs' => '',
                'seller' => [
                                
                ],
                'sellerContacts' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'webPropertyCode' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/proposals/insert', [
  'body' => '{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/insert');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'proposals' => [
    [
        'billedBuyer' => [
                'accountId' => ''
        ],
        'buyer' => [
                
        ],
        'buyerContacts' => [
                [
                                'email' => '',
                                'name' => ''
                ]
        ],
        'buyerPrivateData' => [
                'referenceId' => '',
                'referencePayload' => ''
        ],
        'dbmAdvertiserIds' => [
                
        ],
        'hasBuyerSignedOff' => null,
        'hasSellerSignedOff' => null,
        'inventorySource' => '',
        'isRenegotiating' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'labels' => [
                [
                                'accountId' => '',
                                'createTimeMs' => '',
                                'deprecatedMarketplaceDealParty' => [
                                                                'buyer' => [
                                                                                                                                
                                                                ],
                                                                'seller' => [
                                                                                                                                'accountId' => '',
                                                                                                                                'subAccountId' => ''
                                                                ]
                                ],
                                'label' => ''
                ]
        ],
        'lastUpdaterOrCommentorRole' => '',
        'name' => '',
        'negotiationId' => '',
        'originatorRole' => '',
        'privateAuctionId' => '',
        'proposalId' => '',
        'proposalState' => '',
        'revisionNumber' => '',
        'revisionTimeMs' => '',
        'seller' => [
                
        ],
        'sellerContacts' => [
                [
                                
                ]
        ]
    ]
  ],
  'webPropertyCode' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'proposals' => [
    [
        'billedBuyer' => [
                'accountId' => ''
        ],
        'buyer' => [
                
        ],
        'buyerContacts' => [
                [
                                'email' => '',
                                'name' => ''
                ]
        ],
        'buyerPrivateData' => [
                'referenceId' => '',
                'referencePayload' => ''
        ],
        'dbmAdvertiserIds' => [
                
        ],
        'hasBuyerSignedOff' => null,
        'hasSellerSignedOff' => null,
        'inventorySource' => '',
        'isRenegotiating' => null,
        'isSetupComplete' => null,
        'kind' => '',
        'labels' => [
                [
                                'accountId' => '',
                                'createTimeMs' => '',
                                'deprecatedMarketplaceDealParty' => [
                                                                'buyer' => [
                                                                                                                                
                                                                ],
                                                                'seller' => [
                                                                                                                                'accountId' => '',
                                                                                                                                'subAccountId' => ''
                                                                ]
                                ],
                                'label' => ''
                ]
        ],
        'lastUpdaterOrCommentorRole' => '',
        'name' => '',
        'negotiationId' => '',
        'originatorRole' => '',
        'privateAuctionId' => '',
        'proposalId' => '',
        'proposalState' => '',
        'revisionNumber' => '',
        'revisionTimeMs' => '',
        'seller' => [
                
        ],
        'sellerContacts' => [
                [
                                
                ]
        ]
    ]
  ],
  'webPropertyCode' => ''
]));
$request->setRequestUrl('{{baseUrl}}/proposals/insert');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/insert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/insert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/proposals/insert", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/proposals/insert"

payload = {
    "proposals": [
        {
            "billedBuyer": { "accountId": "" },
            "buyer": {},
            "buyerContacts": [
                {
                    "email": "",
                    "name": ""
                }
            ],
            "buyerPrivateData": {
                "referenceId": "",
                "referencePayload": ""
            },
            "dbmAdvertiserIds": [],
            "hasBuyerSignedOff": False,
            "hasSellerSignedOff": False,
            "inventorySource": "",
            "isRenegotiating": False,
            "isSetupComplete": False,
            "kind": "",
            "labels": [
                {
                    "accountId": "",
                    "createTimeMs": "",
                    "deprecatedMarketplaceDealParty": {
                        "buyer": {},
                        "seller": {
                            "accountId": "",
                            "subAccountId": ""
                        }
                    },
                    "label": ""
                }
            ],
            "lastUpdaterOrCommentorRole": "",
            "name": "",
            "negotiationId": "",
            "originatorRole": "",
            "privateAuctionId": "",
            "proposalId": "",
            "proposalState": "",
            "revisionNumber": "",
            "revisionTimeMs": "",
            "seller": {},
            "sellerContacts": [{}]
        }
    ],
    "webPropertyCode": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/proposals/insert"

payload <- "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\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}}/proposals/insert")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\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/proposals/insert') do |req|
  req.body = "{\n  \"proposals\": [\n    {\n      \"billedBuyer\": {\n        \"accountId\": \"\"\n      },\n      \"buyer\": {},\n      \"buyerContacts\": [\n        {\n          \"email\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"buyerPrivateData\": {\n        \"referenceId\": \"\",\n        \"referencePayload\": \"\"\n      },\n      \"dbmAdvertiserIds\": [],\n      \"hasBuyerSignedOff\": false,\n      \"hasSellerSignedOff\": false,\n      \"inventorySource\": \"\",\n      \"isRenegotiating\": false,\n      \"isSetupComplete\": false,\n      \"kind\": \"\",\n      \"labels\": [\n        {\n          \"accountId\": \"\",\n          \"createTimeMs\": \"\",\n          \"deprecatedMarketplaceDealParty\": {\n            \"buyer\": {},\n            \"seller\": {\n              \"accountId\": \"\",\n              \"subAccountId\": \"\"\n            }\n          },\n          \"label\": \"\"\n        }\n      ],\n      \"lastUpdaterOrCommentorRole\": \"\",\n      \"name\": \"\",\n      \"negotiationId\": \"\",\n      \"originatorRole\": \"\",\n      \"privateAuctionId\": \"\",\n      \"proposalId\": \"\",\n      \"proposalState\": \"\",\n      \"revisionNumber\": \"\",\n      \"revisionTimeMs\": \"\",\n      \"seller\": {},\n      \"sellerContacts\": [\n        {}\n      ]\n    }\n  ],\n  \"webPropertyCode\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/proposals/insert";

    let payload = json!({
        "proposals": (
            json!({
                "billedBuyer": json!({"accountId": ""}),
                "buyer": json!({}),
                "buyerContacts": (
                    json!({
                        "email": "",
                        "name": ""
                    })
                ),
                "buyerPrivateData": json!({
                    "referenceId": "",
                    "referencePayload": ""
                }),
                "dbmAdvertiserIds": (),
                "hasBuyerSignedOff": false,
                "hasSellerSignedOff": false,
                "inventorySource": "",
                "isRenegotiating": false,
                "isSetupComplete": false,
                "kind": "",
                "labels": (
                    json!({
                        "accountId": "",
                        "createTimeMs": "",
                        "deprecatedMarketplaceDealParty": json!({
                            "buyer": json!({}),
                            "seller": json!({
                                "accountId": "",
                                "subAccountId": ""
                            })
                        }),
                        "label": ""
                    })
                ),
                "lastUpdaterOrCommentorRole": "",
                "name": "",
                "negotiationId": "",
                "originatorRole": "",
                "privateAuctionId": "",
                "proposalId": "",
                "proposalState": "",
                "revisionNumber": "",
                "revisionTimeMs": "",
                "seller": json!({}),
                "sellerContacts": (json!({}))
            })
        ),
        "webPropertyCode": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/proposals/insert \
  --header 'content-type: application/json' \
  --data '{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}'
echo '{
  "proposals": [
    {
      "billedBuyer": {
        "accountId": ""
      },
      "buyer": {},
      "buyerContacts": [
        {
          "email": "",
          "name": ""
        }
      ],
      "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
      },
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        {
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": {
            "buyer": {},
            "seller": {
              "accountId": "",
              "subAccountId": ""
            }
          },
          "label": ""
        }
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": {},
      "sellerContacts": [
        {}
      ]
    }
  ],
  "webPropertyCode": ""
}' |  \
  http POST {{baseUrl}}/proposals/insert \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "proposals": [\n    {\n      "billedBuyer": {\n        "accountId": ""\n      },\n      "buyer": {},\n      "buyerContacts": [\n        {\n          "email": "",\n          "name": ""\n        }\n      ],\n      "buyerPrivateData": {\n        "referenceId": "",\n        "referencePayload": ""\n      },\n      "dbmAdvertiserIds": [],\n      "hasBuyerSignedOff": false,\n      "hasSellerSignedOff": false,\n      "inventorySource": "",\n      "isRenegotiating": false,\n      "isSetupComplete": false,\n      "kind": "",\n      "labels": [\n        {\n          "accountId": "",\n          "createTimeMs": "",\n          "deprecatedMarketplaceDealParty": {\n            "buyer": {},\n            "seller": {\n              "accountId": "",\n              "subAccountId": ""\n            }\n          },\n          "label": ""\n        }\n      ],\n      "lastUpdaterOrCommentorRole": "",\n      "name": "",\n      "negotiationId": "",\n      "originatorRole": "",\n      "privateAuctionId": "",\n      "proposalId": "",\n      "proposalState": "",\n      "revisionNumber": "",\n      "revisionTimeMs": "",\n      "seller": {},\n      "sellerContacts": [\n        {}\n      ]\n    }\n  ],\n  "webPropertyCode": ""\n}' \
  --output-document \
  - {{baseUrl}}/proposals/insert
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "proposals": [
    [
      "billedBuyer": ["accountId": ""],
      "buyer": [],
      "buyerContacts": [
        [
          "email": "",
          "name": ""
        ]
      ],
      "buyerPrivateData": [
        "referenceId": "",
        "referencePayload": ""
      ],
      "dbmAdvertiserIds": [],
      "hasBuyerSignedOff": false,
      "hasSellerSignedOff": false,
      "inventorySource": "",
      "isRenegotiating": false,
      "isSetupComplete": false,
      "kind": "",
      "labels": [
        [
          "accountId": "",
          "createTimeMs": "",
          "deprecatedMarketplaceDealParty": [
            "buyer": [],
            "seller": [
              "accountId": "",
              "subAccountId": ""
            ]
          ],
          "label": ""
        ]
      ],
      "lastUpdaterOrCommentorRole": "",
      "name": "",
      "negotiationId": "",
      "originatorRole": "",
      "privateAuctionId": "",
      "proposalId": "",
      "proposalState": "",
      "revisionNumber": "",
      "revisionTimeMs": "",
      "seller": [],
      "sellerContacts": [[]]
    ]
  ],
  "webPropertyCode": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/insert")! 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()
PATCH adexchangebuyer.proposals.patch
{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction
QUERY PARAMS

proposalId
revisionNumber
updateAction
BODY json

{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction" {:content-type :json
                                                                                                 :form-params {:billedBuyer {:accountId ""}
                                                                                                               :buyer {}
                                                                                                               :buyerContacts [{:email ""
                                                                                                                                :name ""}]
                                                                                                               :buyerPrivateData {:referenceId ""
                                                                                                                                  :referencePayload ""}
                                                                                                               :dbmAdvertiserIds []
                                                                                                               :hasBuyerSignedOff false
                                                                                                               :hasSellerSignedOff false
                                                                                                               :inventorySource ""
                                                                                                               :isRenegotiating false
                                                                                                               :isSetupComplete false
                                                                                                               :kind ""
                                                                                                               :labels [{:accountId ""
                                                                                                                         :createTimeMs ""
                                                                                                                         :deprecatedMarketplaceDealParty {:buyer {}
                                                                                                                                                          :seller {:accountId ""
                                                                                                                                                                   :subAccountId ""}}
                                                                                                                         :label ""}]
                                                                                                               :lastUpdaterOrCommentorRole ""
                                                                                                               :name ""
                                                                                                               :negotiationId ""
                                                                                                               :originatorRole ""
                                                                                                               :privateAuctionId ""
                                                                                                               :proposalId ""
                                                                                                               :proposalState ""
                                                                                                               :revisionNumber ""
                                                                                                               :revisionTimeMs ""
                                                                                                               :seller {}
                                                                                                               :sellerContacts [{}]}})
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"),
    Content = new StringContent("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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}}/proposals/:proposalId/:revisionNumber/:updateAction");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"

	payload := strings.NewReader("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/proposals/:proposalId/:revisionNumber/:updateAction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 916

{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .header("content-type", "application/json")
  .body("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  billedBuyer: {
    accountId: ''
  },
  buyer: {},
  buyerContacts: [
    {
      email: '',
      name: ''
    }
  ],
  buyerPrivateData: {
    referenceId: '',
    referencePayload: ''
  },
  dbmAdvertiserIds: [],
  hasBuyerSignedOff: false,
  hasSellerSignedOff: false,
  inventorySource: '',
  isRenegotiating: false,
  isSetupComplete: false,
  kind: '',
  labels: [
    {
      accountId: '',
      createTimeMs: '',
      deprecatedMarketplaceDealParty: {
        buyer: {},
        seller: {
          accountId: '',
          subAccountId: ''
        }
      },
      label: ''
    }
  ],
  lastUpdaterOrCommentorRole: '',
  name: '',
  negotiationId: '',
  originatorRole: '',
  privateAuctionId: '',
  proposalId: '',
  proposalState: '',
  revisionNumber: '',
  revisionTimeMs: '',
  seller: {},
  sellerContacts: [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {'content-type': 'application/json'},
  data: {
    billedBuyer: {accountId: ''},
    buyer: {},
    buyerContacts: [{email: '', name: ''}],
    buyerPrivateData: {referenceId: '', referencePayload: ''},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"billedBuyer":{"accountId":""},"buyer":{},"buyerContacts":[{"email":"","name":""}],"buyerPrivateData":{"referenceId":"","referencePayload":""},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]}'
};

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}}/proposals/:proposalId/:revisionNumber/:updateAction',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "billedBuyer": {\n    "accountId": ""\n  },\n  "buyer": {},\n  "buyerContacts": [\n    {\n      "email": "",\n      "name": ""\n    }\n  ],\n  "buyerPrivateData": {\n    "referenceId": "",\n    "referencePayload": ""\n  },\n  "dbmAdvertiserIds": [],\n  "hasBuyerSignedOff": false,\n  "hasSellerSignedOff": false,\n  "inventorySource": "",\n  "isRenegotiating": false,\n  "isSetupComplete": false,\n  "kind": "",\n  "labels": [\n    {\n      "accountId": "",\n      "createTimeMs": "",\n      "deprecatedMarketplaceDealParty": {\n        "buyer": {},\n        "seller": {\n          "accountId": "",\n          "subAccountId": ""\n        }\n      },\n      "label": ""\n    }\n  ],\n  "lastUpdaterOrCommentorRole": "",\n  "name": "",\n  "negotiationId": "",\n  "originatorRole": "",\n  "privateAuctionId": "",\n  "proposalId": "",\n  "proposalState": "",\n  "revisionNumber": "",\n  "revisionTimeMs": "",\n  "seller": {},\n  "sellerContacts": [\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  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  billedBuyer: {accountId: ''},
  buyer: {},
  buyerContacts: [{email: '', name: ''}],
  buyerPrivateData: {referenceId: '', referencePayload: ''},
  dbmAdvertiserIds: [],
  hasBuyerSignedOff: false,
  hasSellerSignedOff: false,
  inventorySource: '',
  isRenegotiating: false,
  isSetupComplete: false,
  kind: '',
  labels: [
    {
      accountId: '',
      createTimeMs: '',
      deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
      label: ''
    }
  ],
  lastUpdaterOrCommentorRole: '',
  name: '',
  negotiationId: '',
  originatorRole: '',
  privateAuctionId: '',
  proposalId: '',
  proposalState: '',
  revisionNumber: '',
  revisionTimeMs: '',
  seller: {},
  sellerContacts: [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {'content-type': 'application/json'},
  body: {
    billedBuyer: {accountId: ''},
    buyer: {},
    buyerContacts: [{email: '', name: ''}],
    buyerPrivateData: {referenceId: '', referencePayload: ''},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  billedBuyer: {
    accountId: ''
  },
  buyer: {},
  buyerContacts: [
    {
      email: '',
      name: ''
    }
  ],
  buyerPrivateData: {
    referenceId: '',
    referencePayload: ''
  },
  dbmAdvertiserIds: [],
  hasBuyerSignedOff: false,
  hasSellerSignedOff: false,
  inventorySource: '',
  isRenegotiating: false,
  isSetupComplete: false,
  kind: '',
  labels: [
    {
      accountId: '',
      createTimeMs: '',
      deprecatedMarketplaceDealParty: {
        buyer: {},
        seller: {
          accountId: '',
          subAccountId: ''
        }
      },
      label: ''
    }
  ],
  lastUpdaterOrCommentorRole: '',
  name: '',
  negotiationId: '',
  originatorRole: '',
  privateAuctionId: '',
  proposalId: '',
  proposalState: '',
  revisionNumber: '',
  revisionTimeMs: '',
  seller: {},
  sellerContacts: [
    {}
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {'content-type': 'application/json'},
  data: {
    billedBuyer: {accountId: ''},
    buyer: {},
    buyerContacts: [{email: '', name: ''}],
    buyerPrivateData: {referenceId: '', referencePayload: ''},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"billedBuyer":{"accountId":""},"buyer":{},"buyerContacts":[{"email":"","name":""}],"buyerPrivateData":{"referenceId":"","referencePayload":""},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"billedBuyer": @{ @"accountId": @"" },
                              @"buyer": @{  },
                              @"buyerContacts": @[ @{ @"email": @"", @"name": @"" } ],
                              @"buyerPrivateData": @{ @"referenceId": @"", @"referencePayload": @"" },
                              @"dbmAdvertiserIds": @[  ],
                              @"hasBuyerSignedOff": @NO,
                              @"hasSellerSignedOff": @NO,
                              @"inventorySource": @"",
                              @"isRenegotiating": @NO,
                              @"isSetupComplete": @NO,
                              @"kind": @"",
                              @"labels": @[ @{ @"accountId": @"", @"createTimeMs": @"", @"deprecatedMarketplaceDealParty": @{ @"buyer": @{  }, @"seller": @{ @"accountId": @"", @"subAccountId": @"" } }, @"label": @"" } ],
                              @"lastUpdaterOrCommentorRole": @"",
                              @"name": @"",
                              @"negotiationId": @"",
                              @"originatorRole": @"",
                              @"privateAuctionId": @"",
                              @"proposalId": @"",
                              @"proposalState": @"",
                              @"revisionNumber": @"",
                              @"revisionTimeMs": @"",
                              @"seller": @{  },
                              @"sellerContacts": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/proposals/:proposalId/:revisionNumber/:updateAction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'billedBuyer' => [
        'accountId' => ''
    ],
    'buyer' => [
        
    ],
    'buyerContacts' => [
        [
                'email' => '',
                'name' => ''
        ]
    ],
    'buyerPrivateData' => [
        'referenceId' => '',
        'referencePayload' => ''
    ],
    'dbmAdvertiserIds' => [
        
    ],
    'hasBuyerSignedOff' => null,
    'hasSellerSignedOff' => null,
    'inventorySource' => '',
    'isRenegotiating' => null,
    'isSetupComplete' => null,
    'kind' => '',
    'labels' => [
        [
                'accountId' => '',
                'createTimeMs' => '',
                'deprecatedMarketplaceDealParty' => [
                                'buyer' => [
                                                                
                                ],
                                'seller' => [
                                                                'accountId' => '',
                                                                'subAccountId' => ''
                                ]
                ],
                'label' => ''
        ]
    ],
    'lastUpdaterOrCommentorRole' => '',
    'name' => '',
    'negotiationId' => '',
    'originatorRole' => '',
    'privateAuctionId' => '',
    'proposalId' => '',
    'proposalState' => '',
    'revisionNumber' => '',
    'revisionTimeMs' => '',
    'seller' => [
        
    ],
    'sellerContacts' => [
        [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction', [
  'body' => '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'billedBuyer' => [
    'accountId' => ''
  ],
  'buyer' => [
    
  ],
  'buyerContacts' => [
    [
        'email' => '',
        'name' => ''
    ]
  ],
  'buyerPrivateData' => [
    'referenceId' => '',
    'referencePayload' => ''
  ],
  'dbmAdvertiserIds' => [
    
  ],
  'hasBuyerSignedOff' => null,
  'hasSellerSignedOff' => null,
  'inventorySource' => '',
  'isRenegotiating' => null,
  'isSetupComplete' => null,
  'kind' => '',
  'labels' => [
    [
        'accountId' => '',
        'createTimeMs' => '',
        'deprecatedMarketplaceDealParty' => [
                'buyer' => [
                                
                ],
                'seller' => [
                                'accountId' => '',
                                'subAccountId' => ''
                ]
        ],
        'label' => ''
    ]
  ],
  'lastUpdaterOrCommentorRole' => '',
  'name' => '',
  'negotiationId' => '',
  'originatorRole' => '',
  'privateAuctionId' => '',
  'proposalId' => '',
  'proposalState' => '',
  'revisionNumber' => '',
  'revisionTimeMs' => '',
  'seller' => [
    
  ],
  'sellerContacts' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'billedBuyer' => [
    'accountId' => ''
  ],
  'buyer' => [
    
  ],
  'buyerContacts' => [
    [
        'email' => '',
        'name' => ''
    ]
  ],
  'buyerPrivateData' => [
    'referenceId' => '',
    'referencePayload' => ''
  ],
  'dbmAdvertiserIds' => [
    
  ],
  'hasBuyerSignedOff' => null,
  'hasSellerSignedOff' => null,
  'inventorySource' => '',
  'isRenegotiating' => null,
  'isSetupComplete' => null,
  'kind' => '',
  'labels' => [
    [
        'accountId' => '',
        'createTimeMs' => '',
        'deprecatedMarketplaceDealParty' => [
                'buyer' => [
                                
                ],
                'seller' => [
                                'accountId' => '',
                                'subAccountId' => ''
                ]
        ],
        'label' => ''
    ]
  ],
  'lastUpdaterOrCommentorRole' => '',
  'name' => '',
  'negotiationId' => '',
  'originatorRole' => '',
  'privateAuctionId' => '',
  'proposalId' => '',
  'proposalState' => '',
  'revisionNumber' => '',
  'revisionTimeMs' => '',
  'seller' => [
    
  ],
  'sellerContacts' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/proposals/:proposalId/:revisionNumber/:updateAction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"

payload = {
    "billedBuyer": { "accountId": "" },
    "buyer": {},
    "buyerContacts": [
        {
            "email": "",
            "name": ""
        }
    ],
    "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
    },
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": False,
    "hasSellerSignedOff": False,
    "inventorySource": "",
    "isRenegotiating": False,
    "isSetupComplete": False,
    "kind": "",
    "labels": [
        {
            "accountId": "",
            "createTimeMs": "",
            "deprecatedMarketplaceDealParty": {
                "buyer": {},
                "seller": {
                    "accountId": "",
                    "subAccountId": ""
                }
            },
            "label": ""
        }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [{}]
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"

payload <- "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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.patch('/baseUrl/proposals/:proposalId/:revisionNumber/:updateAction') do |req|
  req.body = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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}}/proposals/:proposalId/:revisionNumber/:updateAction";

    let payload = json!({
        "billedBuyer": json!({"accountId": ""}),
        "buyer": json!({}),
        "buyerContacts": (
            json!({
                "email": "",
                "name": ""
            })
        ),
        "buyerPrivateData": json!({
            "referenceId": "",
            "referencePayload": ""
        }),
        "dbmAdvertiserIds": (),
        "hasBuyerSignedOff": false,
        "hasSellerSignedOff": false,
        "inventorySource": "",
        "isRenegotiating": false,
        "isSetupComplete": false,
        "kind": "",
        "labels": (
            json!({
                "accountId": "",
                "createTimeMs": "",
                "deprecatedMarketplaceDealParty": json!({
                    "buyer": json!({}),
                    "seller": json!({
                        "accountId": "",
                        "subAccountId": ""
                    })
                }),
                "label": ""
            })
        ),
        "lastUpdaterOrCommentorRole": "",
        "name": "",
        "negotiationId": "",
        "originatorRole": "",
        "privateAuctionId": "",
        "proposalId": "",
        "proposalState": "",
        "revisionNumber": "",
        "revisionTimeMs": "",
        "seller": json!({}),
        "sellerContacts": (json!({}))
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction \
  --header 'content-type: application/json' \
  --data '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}'
echo '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}' |  \
  http PATCH {{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "billedBuyer": {\n    "accountId": ""\n  },\n  "buyer": {},\n  "buyerContacts": [\n    {\n      "email": "",\n      "name": ""\n    }\n  ],\n  "buyerPrivateData": {\n    "referenceId": "",\n    "referencePayload": ""\n  },\n  "dbmAdvertiserIds": [],\n  "hasBuyerSignedOff": false,\n  "hasSellerSignedOff": false,\n  "inventorySource": "",\n  "isRenegotiating": false,\n  "isSetupComplete": false,\n  "kind": "",\n  "labels": [\n    {\n      "accountId": "",\n      "createTimeMs": "",\n      "deprecatedMarketplaceDealParty": {\n        "buyer": {},\n        "seller": {\n          "accountId": "",\n          "subAccountId": ""\n        }\n      },\n      "label": ""\n    }\n  ],\n  "lastUpdaterOrCommentorRole": "",\n  "name": "",\n  "negotiationId": "",\n  "originatorRole": "",\n  "privateAuctionId": "",\n  "proposalId": "",\n  "proposalState": "",\n  "revisionNumber": "",\n  "revisionTimeMs": "",\n  "seller": {},\n  "sellerContacts": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "billedBuyer": ["accountId": ""],
  "buyer": [],
  "buyerContacts": [
    [
      "email": "",
      "name": ""
    ]
  ],
  "buyerPrivateData": [
    "referenceId": "",
    "referencePayload": ""
  ],
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    [
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": [
        "buyer": [],
        "seller": [
          "accountId": "",
          "subAccountId": ""
        ]
      ],
      "label": ""
    ]
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": [],
  "sellerContacts": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/proposals/search")
require "http/client"

url = "{{baseUrl}}/proposals/search"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/proposals/search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/proposals/search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/proposals/search"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/proposals/search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/proposals/search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/search"))
    .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}}/proposals/search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/proposals/search")
  .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}}/proposals/search');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/proposals/search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/search';
const options = {method: 'GET'};

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}}/proposals/search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/proposals/search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/search',
  headers: {}
};

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}}/proposals/search'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/proposals/search');

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}}/proposals/search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/proposals/search';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/search"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/proposals/search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/proposals/search');

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/proposals/search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/proposals/search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/proposals/search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/proposals/search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/proposals/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/proposals/search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/proposals/search";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/proposals/search
http GET {{baseUrl}}/proposals/search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/proposals/search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 adexchangebuyer.proposals.setupcomplete
{{baseUrl}}/proposals/:proposalId/setupcomplete
QUERY PARAMS

proposalId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/setupcomplete");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/proposals/:proposalId/setupcomplete")
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/setupcomplete"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/proposals/:proposalId/setupcomplete"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/proposals/:proposalId/setupcomplete");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/setupcomplete"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/proposals/:proposalId/setupcomplete HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/proposals/:proposalId/setupcomplete")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/setupcomplete"))
    .method("POST", 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}}/proposals/:proposalId/setupcomplete")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/proposals/:proposalId/setupcomplete")
  .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('POST', '{{baseUrl}}/proposals/:proposalId/setupcomplete');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/setupcomplete'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/setupcomplete';
const options = {method: 'POST'};

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}}/proposals/:proposalId/setupcomplete',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/setupcomplete")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/proposals/:proposalId/setupcomplete',
  headers: {}
};

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: 'POST',
  url: '{{baseUrl}}/proposals/:proposalId/setupcomplete'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/proposals/:proposalId/setupcomplete');

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}}/proposals/:proposalId/setupcomplete'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/proposals/:proposalId/setupcomplete';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/setupcomplete"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/proposals/:proposalId/setupcomplete" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/setupcomplete",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/proposals/:proposalId/setupcomplete');

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/setupcomplete');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/proposals/:proposalId/setupcomplete');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/setupcomplete' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/setupcomplete' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/proposals/:proposalId/setupcomplete")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/proposals/:proposalId/setupcomplete"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/proposals/:proposalId/setupcomplete"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/proposals/:proposalId/setupcomplete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/proposals/:proposalId/setupcomplete') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/proposals/:proposalId/setupcomplete";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/proposals/:proposalId/setupcomplete
http POST {{baseUrl}}/proposals/:proposalId/setupcomplete
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/setupcomplete
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/setupcomplete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 adexchangebuyer.proposals.update
{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction
QUERY PARAMS

proposalId
revisionNumber
updateAction
BODY json

{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction" {:content-type :json
                                                                                               :form-params {:billedBuyer {:accountId ""}
                                                                                                             :buyer {}
                                                                                                             :buyerContacts [{:email ""
                                                                                                                              :name ""}]
                                                                                                             :buyerPrivateData {:referenceId ""
                                                                                                                                :referencePayload ""}
                                                                                                             :dbmAdvertiserIds []
                                                                                                             :hasBuyerSignedOff false
                                                                                                             :hasSellerSignedOff false
                                                                                                             :inventorySource ""
                                                                                                             :isRenegotiating false
                                                                                                             :isSetupComplete false
                                                                                                             :kind ""
                                                                                                             :labels [{:accountId ""
                                                                                                                       :createTimeMs ""
                                                                                                                       :deprecatedMarketplaceDealParty {:buyer {}
                                                                                                                                                        :seller {:accountId ""
                                                                                                                                                                 :subAccountId ""}}
                                                                                                                       :label ""}]
                                                                                                             :lastUpdaterOrCommentorRole ""
                                                                                                             :name ""
                                                                                                             :negotiationId ""
                                                                                                             :originatorRole ""
                                                                                                             :privateAuctionId ""
                                                                                                             :proposalId ""
                                                                                                             :proposalState ""
                                                                                                             :revisionNumber ""
                                                                                                             :revisionTimeMs ""
                                                                                                             :seller {}
                                                                                                             :sellerContacts [{}]}})
require "http/client"

url = "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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}}/proposals/:proposalId/:revisionNumber/:updateAction"),
    Content = new StringContent("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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}}/proposals/:proposalId/:revisionNumber/:updateAction");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"

	payload := strings.NewReader("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/proposals/:proposalId/:revisionNumber/:updateAction HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 916

{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .header("content-type", "application/json")
  .body("{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  billedBuyer: {
    accountId: ''
  },
  buyer: {},
  buyerContacts: [
    {
      email: '',
      name: ''
    }
  ],
  buyerPrivateData: {
    referenceId: '',
    referencePayload: ''
  },
  dbmAdvertiserIds: [],
  hasBuyerSignedOff: false,
  hasSellerSignedOff: false,
  inventorySource: '',
  isRenegotiating: false,
  isSetupComplete: false,
  kind: '',
  labels: [
    {
      accountId: '',
      createTimeMs: '',
      deprecatedMarketplaceDealParty: {
        buyer: {},
        seller: {
          accountId: '',
          subAccountId: ''
        }
      },
      label: ''
    }
  ],
  lastUpdaterOrCommentorRole: '',
  name: '',
  negotiationId: '',
  originatorRole: '',
  privateAuctionId: '',
  proposalId: '',
  proposalState: '',
  revisionNumber: '',
  revisionTimeMs: '',
  seller: {},
  sellerContacts: [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {'content-type': 'application/json'},
  data: {
    billedBuyer: {accountId: ''},
    buyer: {},
    buyerContacts: [{email: '', name: ''}],
    buyerPrivateData: {referenceId: '', referencePayload: ''},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"billedBuyer":{"accountId":""},"buyer":{},"buyerContacts":[{"email":"","name":""}],"buyerPrivateData":{"referenceId":"","referencePayload":""},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]}'
};

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}}/proposals/:proposalId/:revisionNumber/:updateAction',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "billedBuyer": {\n    "accountId": ""\n  },\n  "buyer": {},\n  "buyerContacts": [\n    {\n      "email": "",\n      "name": ""\n    }\n  ],\n  "buyerPrivateData": {\n    "referenceId": "",\n    "referencePayload": ""\n  },\n  "dbmAdvertiserIds": [],\n  "hasBuyerSignedOff": false,\n  "hasSellerSignedOff": false,\n  "inventorySource": "",\n  "isRenegotiating": false,\n  "isSetupComplete": false,\n  "kind": "",\n  "labels": [\n    {\n      "accountId": "",\n      "createTimeMs": "",\n      "deprecatedMarketplaceDealParty": {\n        "buyer": {},\n        "seller": {\n          "accountId": "",\n          "subAccountId": ""\n        }\n      },\n      "label": ""\n    }\n  ],\n  "lastUpdaterOrCommentorRole": "",\n  "name": "",\n  "negotiationId": "",\n  "originatorRole": "",\n  "privateAuctionId": "",\n  "proposalId": "",\n  "proposalState": "",\n  "revisionNumber": "",\n  "revisionTimeMs": "",\n  "seller": {},\n  "sellerContacts": [\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  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")
  .put(body)
  .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/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  billedBuyer: {accountId: ''},
  buyer: {},
  buyerContacts: [{email: '', name: ''}],
  buyerPrivateData: {referenceId: '', referencePayload: ''},
  dbmAdvertiserIds: [],
  hasBuyerSignedOff: false,
  hasSellerSignedOff: false,
  inventorySource: '',
  isRenegotiating: false,
  isSetupComplete: false,
  kind: '',
  labels: [
    {
      accountId: '',
      createTimeMs: '',
      deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
      label: ''
    }
  ],
  lastUpdaterOrCommentorRole: '',
  name: '',
  negotiationId: '',
  originatorRole: '',
  privateAuctionId: '',
  proposalId: '',
  proposalState: '',
  revisionNumber: '',
  revisionTimeMs: '',
  seller: {},
  sellerContacts: [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {'content-type': 'application/json'},
  body: {
    billedBuyer: {accountId: ''},
    buyer: {},
    buyerContacts: [{email: '', name: ''}],
    buyerPrivateData: {referenceId: '', referencePayload: ''},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  },
  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}}/proposals/:proposalId/:revisionNumber/:updateAction');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  billedBuyer: {
    accountId: ''
  },
  buyer: {},
  buyerContacts: [
    {
      email: '',
      name: ''
    }
  ],
  buyerPrivateData: {
    referenceId: '',
    referencePayload: ''
  },
  dbmAdvertiserIds: [],
  hasBuyerSignedOff: false,
  hasSellerSignedOff: false,
  inventorySource: '',
  isRenegotiating: false,
  isSetupComplete: false,
  kind: '',
  labels: [
    {
      accountId: '',
      createTimeMs: '',
      deprecatedMarketplaceDealParty: {
        buyer: {},
        seller: {
          accountId: '',
          subAccountId: ''
        }
      },
      label: ''
    }
  ],
  lastUpdaterOrCommentorRole: '',
  name: '',
  negotiationId: '',
  originatorRole: '',
  privateAuctionId: '',
  proposalId: '',
  proposalState: '',
  revisionNumber: '',
  revisionTimeMs: '',
  seller: {},
  sellerContacts: [
    {}
  ]
});

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}}/proposals/:proposalId/:revisionNumber/:updateAction',
  headers: {'content-type': 'application/json'},
  data: {
    billedBuyer: {accountId: ''},
    buyer: {},
    buyerContacts: [{email: '', name: ''}],
    buyerPrivateData: {referenceId: '', referencePayload: ''},
    dbmAdvertiserIds: [],
    hasBuyerSignedOff: false,
    hasSellerSignedOff: false,
    inventorySource: '',
    isRenegotiating: false,
    isSetupComplete: false,
    kind: '',
    labels: [
      {
        accountId: '',
        createTimeMs: '',
        deprecatedMarketplaceDealParty: {buyer: {}, seller: {accountId: '', subAccountId: ''}},
        label: ''
      }
    ],
    lastUpdaterOrCommentorRole: '',
    name: '',
    negotiationId: '',
    originatorRole: '',
    privateAuctionId: '',
    proposalId: '',
    proposalState: '',
    revisionNumber: '',
    revisionTimeMs: '',
    seller: {},
    sellerContacts: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"billedBuyer":{"accountId":""},"buyer":{},"buyerContacts":[{"email":"","name":""}],"buyerPrivateData":{"referenceId":"","referencePayload":""},"dbmAdvertiserIds":[],"hasBuyerSignedOff":false,"hasSellerSignedOff":false,"inventorySource":"","isRenegotiating":false,"isSetupComplete":false,"kind":"","labels":[{"accountId":"","createTimeMs":"","deprecatedMarketplaceDealParty":{"buyer":{},"seller":{"accountId":"","subAccountId":""}},"label":""}],"lastUpdaterOrCommentorRole":"","name":"","negotiationId":"","originatorRole":"","privateAuctionId":"","proposalId":"","proposalState":"","revisionNumber":"","revisionTimeMs":"","seller":{},"sellerContacts":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"billedBuyer": @{ @"accountId": @"" },
                              @"buyer": @{  },
                              @"buyerContacts": @[ @{ @"email": @"", @"name": @"" } ],
                              @"buyerPrivateData": @{ @"referenceId": @"", @"referencePayload": @"" },
                              @"dbmAdvertiserIds": @[  ],
                              @"hasBuyerSignedOff": @NO,
                              @"hasSellerSignedOff": @NO,
                              @"inventorySource": @"",
                              @"isRenegotiating": @NO,
                              @"isSetupComplete": @NO,
                              @"kind": @"",
                              @"labels": @[ @{ @"accountId": @"", @"createTimeMs": @"", @"deprecatedMarketplaceDealParty": @{ @"buyer": @{  }, @"seller": @{ @"accountId": @"", @"subAccountId": @"" } }, @"label": @"" } ],
                              @"lastUpdaterOrCommentorRole": @"",
                              @"name": @"",
                              @"negotiationId": @"",
                              @"originatorRole": @"",
                              @"privateAuctionId": @"",
                              @"proposalId": @"",
                              @"proposalState": @"",
                              @"revisionNumber": @"",
                              @"revisionTimeMs": @"",
                              @"seller": @{  },
                              @"sellerContacts": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"]
                                                       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}}/proposals/:proposalId/:revisionNumber/:updateAction" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction",
  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([
    'billedBuyer' => [
        'accountId' => ''
    ],
    'buyer' => [
        
    ],
    'buyerContacts' => [
        [
                'email' => '',
                'name' => ''
        ]
    ],
    'buyerPrivateData' => [
        'referenceId' => '',
        'referencePayload' => ''
    ],
    'dbmAdvertiserIds' => [
        
    ],
    'hasBuyerSignedOff' => null,
    'hasSellerSignedOff' => null,
    'inventorySource' => '',
    'isRenegotiating' => null,
    'isSetupComplete' => null,
    'kind' => '',
    'labels' => [
        [
                'accountId' => '',
                'createTimeMs' => '',
                'deprecatedMarketplaceDealParty' => [
                                'buyer' => [
                                                                
                                ],
                                'seller' => [
                                                                'accountId' => '',
                                                                'subAccountId' => ''
                                ]
                ],
                'label' => ''
        ]
    ],
    'lastUpdaterOrCommentorRole' => '',
    'name' => '',
    'negotiationId' => '',
    'originatorRole' => '',
    'privateAuctionId' => '',
    'proposalId' => '',
    'proposalState' => '',
    'revisionNumber' => '',
    'revisionTimeMs' => '',
    'seller' => [
        
    ],
    'sellerContacts' => [
        [
                
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction', [
  'body' => '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'billedBuyer' => [
    'accountId' => ''
  ],
  'buyer' => [
    
  ],
  'buyerContacts' => [
    [
        'email' => '',
        'name' => ''
    ]
  ],
  'buyerPrivateData' => [
    'referenceId' => '',
    'referencePayload' => ''
  ],
  'dbmAdvertiserIds' => [
    
  ],
  'hasBuyerSignedOff' => null,
  'hasSellerSignedOff' => null,
  'inventorySource' => '',
  'isRenegotiating' => null,
  'isSetupComplete' => null,
  'kind' => '',
  'labels' => [
    [
        'accountId' => '',
        'createTimeMs' => '',
        'deprecatedMarketplaceDealParty' => [
                'buyer' => [
                                
                ],
                'seller' => [
                                'accountId' => '',
                                'subAccountId' => ''
                ]
        ],
        'label' => ''
    ]
  ],
  'lastUpdaterOrCommentorRole' => '',
  'name' => '',
  'negotiationId' => '',
  'originatorRole' => '',
  'privateAuctionId' => '',
  'proposalId' => '',
  'proposalState' => '',
  'revisionNumber' => '',
  'revisionTimeMs' => '',
  'seller' => [
    
  ],
  'sellerContacts' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'billedBuyer' => [
    'accountId' => ''
  ],
  'buyer' => [
    
  ],
  'buyerContacts' => [
    [
        'email' => '',
        'name' => ''
    ]
  ],
  'buyerPrivateData' => [
    'referenceId' => '',
    'referencePayload' => ''
  ],
  'dbmAdvertiserIds' => [
    
  ],
  'hasBuyerSignedOff' => null,
  'hasSellerSignedOff' => null,
  'inventorySource' => '',
  'isRenegotiating' => null,
  'isSetupComplete' => null,
  'kind' => '',
  'labels' => [
    [
        'accountId' => '',
        'createTimeMs' => '',
        'deprecatedMarketplaceDealParty' => [
                'buyer' => [
                                
                ],
                'seller' => [
                                'accountId' => '',
                                'subAccountId' => ''
                ]
        ],
        'label' => ''
    ]
  ],
  'lastUpdaterOrCommentorRole' => '',
  'name' => '',
  'negotiationId' => '',
  'originatorRole' => '',
  'privateAuctionId' => '',
  'proposalId' => '',
  'proposalState' => '',
  'revisionNumber' => '',
  'revisionTimeMs' => '',
  'seller' => [
    
  ],
  'sellerContacts' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/proposals/:proposalId/:revisionNumber/:updateAction", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"

payload = {
    "billedBuyer": { "accountId": "" },
    "buyer": {},
    "buyerContacts": [
        {
            "email": "",
            "name": ""
        }
    ],
    "buyerPrivateData": {
        "referenceId": "",
        "referencePayload": ""
    },
    "dbmAdvertiserIds": [],
    "hasBuyerSignedOff": False,
    "hasSellerSignedOff": False,
    "inventorySource": "",
    "isRenegotiating": False,
    "isSetupComplete": False,
    "kind": "",
    "labels": [
        {
            "accountId": "",
            "createTimeMs": "",
            "deprecatedMarketplaceDealParty": {
                "buyer": {},
                "seller": {
                    "accountId": "",
                    "subAccountId": ""
                }
            },
            "label": ""
        }
    ],
    "lastUpdaterOrCommentorRole": "",
    "name": "",
    "negotiationId": "",
    "originatorRole": "",
    "privateAuctionId": "",
    "proposalId": "",
    "proposalState": "",
    "revisionNumber": "",
    "revisionTimeMs": "",
    "seller": {},
    "sellerContacts": [{}]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction"

payload <- "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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}}/proposals/:proposalId/:revisionNumber/:updateAction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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/proposals/:proposalId/:revisionNumber/:updateAction') do |req|
  req.body = "{\n  \"billedBuyer\": {\n    \"accountId\": \"\"\n  },\n  \"buyer\": {},\n  \"buyerContacts\": [\n    {\n      \"email\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"buyerPrivateData\": {\n    \"referenceId\": \"\",\n    \"referencePayload\": \"\"\n  },\n  \"dbmAdvertiserIds\": [],\n  \"hasBuyerSignedOff\": false,\n  \"hasSellerSignedOff\": false,\n  \"inventorySource\": \"\",\n  \"isRenegotiating\": false,\n  \"isSetupComplete\": false,\n  \"kind\": \"\",\n  \"labels\": [\n    {\n      \"accountId\": \"\",\n      \"createTimeMs\": \"\",\n      \"deprecatedMarketplaceDealParty\": {\n        \"buyer\": {},\n        \"seller\": {\n          \"accountId\": \"\",\n          \"subAccountId\": \"\"\n        }\n      },\n      \"label\": \"\"\n    }\n  ],\n  \"lastUpdaterOrCommentorRole\": \"\",\n  \"name\": \"\",\n  \"negotiationId\": \"\",\n  \"originatorRole\": \"\",\n  \"privateAuctionId\": \"\",\n  \"proposalId\": \"\",\n  \"proposalState\": \"\",\n  \"revisionNumber\": \"\",\n  \"revisionTimeMs\": \"\",\n  \"seller\": {},\n  \"sellerContacts\": [\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}}/proposals/:proposalId/:revisionNumber/:updateAction";

    let payload = json!({
        "billedBuyer": json!({"accountId": ""}),
        "buyer": json!({}),
        "buyerContacts": (
            json!({
                "email": "",
                "name": ""
            })
        ),
        "buyerPrivateData": json!({
            "referenceId": "",
            "referencePayload": ""
        }),
        "dbmAdvertiserIds": (),
        "hasBuyerSignedOff": false,
        "hasSellerSignedOff": false,
        "inventorySource": "",
        "isRenegotiating": false,
        "isSetupComplete": false,
        "kind": "",
        "labels": (
            json!({
                "accountId": "",
                "createTimeMs": "",
                "deprecatedMarketplaceDealParty": json!({
                    "buyer": json!({}),
                    "seller": json!({
                        "accountId": "",
                        "subAccountId": ""
                    })
                }),
                "label": ""
            })
        ),
        "lastUpdaterOrCommentorRole": "",
        "name": "",
        "negotiationId": "",
        "originatorRole": "",
        "privateAuctionId": "",
        "proposalId": "",
        "proposalState": "",
        "revisionNumber": "",
        "revisionTimeMs": "",
        "seller": json!({}),
        "sellerContacts": (json!({}))
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/proposals/:proposalId/:revisionNumber/:updateAction \
  --header 'content-type: application/json' \
  --data '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}'
echo '{
  "billedBuyer": {
    "accountId": ""
  },
  "buyer": {},
  "buyerContacts": [
    {
      "email": "",
      "name": ""
    }
  ],
  "buyerPrivateData": {
    "referenceId": "",
    "referencePayload": ""
  },
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    {
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": {
        "buyer": {},
        "seller": {
          "accountId": "",
          "subAccountId": ""
        }
      },
      "label": ""
    }
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": {},
  "sellerContacts": [
    {}
  ]
}' |  \
  http PUT {{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "billedBuyer": {\n    "accountId": ""\n  },\n  "buyer": {},\n  "buyerContacts": [\n    {\n      "email": "",\n      "name": ""\n    }\n  ],\n  "buyerPrivateData": {\n    "referenceId": "",\n    "referencePayload": ""\n  },\n  "dbmAdvertiserIds": [],\n  "hasBuyerSignedOff": false,\n  "hasSellerSignedOff": false,\n  "inventorySource": "",\n  "isRenegotiating": false,\n  "isSetupComplete": false,\n  "kind": "",\n  "labels": [\n    {\n      "accountId": "",\n      "createTimeMs": "",\n      "deprecatedMarketplaceDealParty": {\n        "buyer": {},\n        "seller": {\n          "accountId": "",\n          "subAccountId": ""\n        }\n      },\n      "label": ""\n    }\n  ],\n  "lastUpdaterOrCommentorRole": "",\n  "name": "",\n  "negotiationId": "",\n  "originatorRole": "",\n  "privateAuctionId": "",\n  "proposalId": "",\n  "proposalState": "",\n  "revisionNumber": "",\n  "revisionTimeMs": "",\n  "seller": {},\n  "sellerContacts": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "billedBuyer": ["accountId": ""],
  "buyer": [],
  "buyerContacts": [
    [
      "email": "",
      "name": ""
    ]
  ],
  "buyerPrivateData": [
    "referenceId": "",
    "referencePayload": ""
  ],
  "dbmAdvertiserIds": [],
  "hasBuyerSignedOff": false,
  "hasSellerSignedOff": false,
  "inventorySource": "",
  "isRenegotiating": false,
  "isSetupComplete": false,
  "kind": "",
  "labels": [
    [
      "accountId": "",
      "createTimeMs": "",
      "deprecatedMarketplaceDealParty": [
        "buyer": [],
        "seller": [
          "accountId": "",
          "subAccountId": ""
        ]
      ],
      "label": ""
    ]
  ],
  "lastUpdaterOrCommentorRole": "",
  "name": "",
  "negotiationId": "",
  "originatorRole": "",
  "privateAuctionId": "",
  "proposalId": "",
  "proposalState": "",
  "revisionNumber": "",
  "revisionTimeMs": "",
  "seller": [],
  "sellerContacts": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/proposals/:proposalId/:revisionNumber/:updateAction")! 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 adexchangebuyer.pubprofiles.list
{{baseUrl}}/publisher/:accountId/profiles
QUERY PARAMS

accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/publisher/:accountId/profiles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/publisher/:accountId/profiles")
require "http/client"

url = "{{baseUrl}}/publisher/:accountId/profiles"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/publisher/:accountId/profiles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/publisher/:accountId/profiles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/publisher/:accountId/profiles"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/publisher/:accountId/profiles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/publisher/:accountId/profiles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/publisher/:accountId/profiles"))
    .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}}/publisher/:accountId/profiles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/publisher/:accountId/profiles")
  .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}}/publisher/:accountId/profiles');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/publisher/:accountId/profiles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/publisher/:accountId/profiles';
const options = {method: 'GET'};

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}}/publisher/:accountId/profiles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/publisher/:accountId/profiles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/publisher/:accountId/profiles',
  headers: {}
};

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}}/publisher/:accountId/profiles'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/publisher/:accountId/profiles');

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}}/publisher/:accountId/profiles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/publisher/:accountId/profiles';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/publisher/:accountId/profiles"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/publisher/:accountId/profiles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/publisher/:accountId/profiles",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/publisher/:accountId/profiles');

echo $response->getBody();
setUrl('{{baseUrl}}/publisher/:accountId/profiles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/publisher/:accountId/profiles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/publisher/:accountId/profiles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/publisher/:accountId/profiles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/publisher/:accountId/profiles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/publisher/:accountId/profiles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/publisher/:accountId/profiles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/publisher/:accountId/profiles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/publisher/:accountId/profiles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/publisher/:accountId/profiles";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/publisher/:accountId/profiles
http GET {{baseUrl}}/publisher/:accountId/profiles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/publisher/:accountId/profiles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/publisher/:accountId/profiles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()