GET people.contactGroups.batchGet
{{baseUrl}}/v1/contactGroups:batchGet
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/contactGroups:batchGet");

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

(client/get "{{baseUrl}}/v1/contactGroups:batchGet")
require "http/client"

url = "{{baseUrl}}/v1/contactGroups:batchGet"

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}}/v1/contactGroups:batchGet"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/contactGroups:batchGet");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/contactGroups:batchGet"

	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/v1/contactGroups:batchGet HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/contactGroups:batchGet'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/contactGroups:batchGet';
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}}/v1/contactGroups:batchGet',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/contactGroups:batchGet")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/contactGroups:batchGet',
  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}}/v1/contactGroups:batchGet'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/contactGroups:batchGet');

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}}/v1/contactGroups:batchGet'};

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

const url = '{{baseUrl}}/v1/contactGroups:batchGet';
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}}/v1/contactGroups:batchGet"]
                                                       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}}/v1/contactGroups:batchGet" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/contactGroups:batchGet",
  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}}/v1/contactGroups:batchGet');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/contactGroups:batchGet');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/contactGroups:batchGet")

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

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

url = "{{baseUrl}}/v1/contactGroups:batchGet"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/contactGroups:batchGet"

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

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

url = URI("{{baseUrl}}/v1/contactGroups:batchGet")

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/v1/contactGroups:batchGet') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/contactGroups:batchGet
http GET {{baseUrl}}/v1/contactGroups:batchGet
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/contactGroups:batchGet
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/contactGroups:batchGet")! 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 people.contactGroups.create
{{baseUrl}}/v1/contactGroups
BODY json

{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/contactGroups" {:content-type :json
                                                             :form-params {:contactGroup {:clientData [{:key ""
                                                                                                        :value ""}]
                                                                                          :etag ""
                                                                                          :formattedName ""
                                                                                          :groupType ""
                                                                                          :memberCount 0
                                                                                          :memberResourceNames []
                                                                                          :metadata {:deleted false
                                                                                                     :updateTime ""}
                                                                                          :name ""
                                                                                          :resourceName ""}
                                                                           :readGroupFields ""}})
require "http/client"

url = "{{baseUrl}}/v1/contactGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\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}}/v1/contactGroups"),
    Content = new StringContent("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\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}}/v1/contactGroups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/contactGroups"

	payload := strings.NewReader("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\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/v1/contactGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 360

{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/contactGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/contactGroups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\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  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/contactGroups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/contactGroups")
  .header("content-type", "application/json")
  .body("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contactGroup: {
    clientData: [
      {
        key: '',
        value: ''
      }
    ],
    etag: '',
    formattedName: '',
    groupType: '',
    memberCount: 0,
    memberResourceNames: [],
    metadata: {
      deleted: false,
      updateTime: ''
    },
    name: '',
    resourceName: ''
  },
  readGroupFields: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/contactGroups',
  headers: {'content-type': 'application/json'},
  data: {
    contactGroup: {
      clientData: [{key: '', value: ''}],
      etag: '',
      formattedName: '',
      groupType: '',
      memberCount: 0,
      memberResourceNames: [],
      metadata: {deleted: false, updateTime: ''},
      name: '',
      resourceName: ''
    },
    readGroupFields: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/contactGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contactGroup":{"clientData":[{"key":"","value":""}],"etag":"","formattedName":"","groupType":"","memberCount":0,"memberResourceNames":[],"metadata":{"deleted":false,"updateTime":""},"name":"","resourceName":""},"readGroupFields":""}'
};

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}}/v1/contactGroups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contactGroup": {\n    "clientData": [\n      {\n        "key": "",\n        "value": ""\n      }\n    ],\n    "etag": "",\n    "formattedName": "",\n    "groupType": "",\n    "memberCount": 0,\n    "memberResourceNames": [],\n    "metadata": {\n      "deleted": false,\n      "updateTime": ""\n    },\n    "name": "",\n    "resourceName": ""\n  },\n  "readGroupFields": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/contactGroups")
  .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/v1/contactGroups',
  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({
  contactGroup: {
    clientData: [{key: '', value: ''}],
    etag: '',
    formattedName: '',
    groupType: '',
    memberCount: 0,
    memberResourceNames: [],
    metadata: {deleted: false, updateTime: ''},
    name: '',
    resourceName: ''
  },
  readGroupFields: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/contactGroups',
  headers: {'content-type': 'application/json'},
  body: {
    contactGroup: {
      clientData: [{key: '', value: ''}],
      etag: '',
      formattedName: '',
      groupType: '',
      memberCount: 0,
      memberResourceNames: [],
      metadata: {deleted: false, updateTime: ''},
      name: '',
      resourceName: ''
    },
    readGroupFields: ''
  },
  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}}/v1/contactGroups');

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

req.type('json');
req.send({
  contactGroup: {
    clientData: [
      {
        key: '',
        value: ''
      }
    ],
    etag: '',
    formattedName: '',
    groupType: '',
    memberCount: 0,
    memberResourceNames: [],
    metadata: {
      deleted: false,
      updateTime: ''
    },
    name: '',
    resourceName: ''
  },
  readGroupFields: ''
});

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}}/v1/contactGroups',
  headers: {'content-type': 'application/json'},
  data: {
    contactGroup: {
      clientData: [{key: '', value: ''}],
      etag: '',
      formattedName: '',
      groupType: '',
      memberCount: 0,
      memberResourceNames: [],
      metadata: {deleted: false, updateTime: ''},
      name: '',
      resourceName: ''
    },
    readGroupFields: ''
  }
};

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

const url = '{{baseUrl}}/v1/contactGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contactGroup":{"clientData":[{"key":"","value":""}],"etag":"","formattedName":"","groupType":"","memberCount":0,"memberResourceNames":[],"metadata":{"deleted":false,"updateTime":""},"name":"","resourceName":""},"readGroupFields":""}'
};

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 = @{ @"contactGroup": @{ @"clientData": @[ @{ @"key": @"", @"value": @"" } ], @"etag": @"", @"formattedName": @"", @"groupType": @"", @"memberCount": @0, @"memberResourceNames": @[  ], @"metadata": @{ @"deleted": @NO, @"updateTime": @"" }, @"name": @"", @"resourceName": @"" },
                              @"readGroupFields": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/contactGroups"]
                                                       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}}/v1/contactGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/contactGroups",
  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([
    'contactGroup' => [
        'clientData' => [
                [
                                'key' => '',
                                'value' => ''
                ]
        ],
        'etag' => '',
        'formattedName' => '',
        'groupType' => '',
        'memberCount' => 0,
        'memberResourceNames' => [
                
        ],
        'metadata' => [
                'deleted' => null,
                'updateTime' => ''
        ],
        'name' => '',
        'resourceName' => ''
    ],
    'readGroupFields' => ''
  ]),
  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}}/v1/contactGroups', [
  'body' => '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contactGroup' => [
    'clientData' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'etag' => '',
    'formattedName' => '',
    'groupType' => '',
    'memberCount' => 0,
    'memberResourceNames' => [
        
    ],
    'metadata' => [
        'deleted' => null,
        'updateTime' => ''
    ],
    'name' => '',
    'resourceName' => ''
  ],
  'readGroupFields' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contactGroup' => [
    'clientData' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'etag' => '',
    'formattedName' => '',
    'groupType' => '',
    'memberCount' => 0,
    'memberResourceNames' => [
        
    ],
    'metadata' => [
        'deleted' => null,
        'updateTime' => ''
    ],
    'name' => '',
    'resourceName' => ''
  ],
  'readGroupFields' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/contactGroups');
$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}}/v1/contactGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/contactGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}'
import http.client

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

payload = "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/v1/contactGroups"

payload = {
    "contactGroup": {
        "clientData": [
            {
                "key": "",
                "value": ""
            }
        ],
        "etag": "",
        "formattedName": "",
        "groupType": "",
        "memberCount": 0,
        "memberResourceNames": [],
        "metadata": {
            "deleted": False,
            "updateTime": ""
        },
        "name": "",
        "resourceName": ""
    },
    "readGroupFields": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/contactGroups"

payload <- "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\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}}/v1/contactGroups")

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  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\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/v1/contactGroups') do |req|
  req.body = "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\"\n}"
end

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

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

    let payload = json!({
        "contactGroup": json!({
            "clientData": (
                json!({
                    "key": "",
                    "value": ""
                })
            ),
            "etag": "",
            "formattedName": "",
            "groupType": "",
            "memberCount": 0,
            "memberResourceNames": (),
            "metadata": json!({
                "deleted": false,
                "updateTime": ""
            }),
            "name": "",
            "resourceName": ""
        }),
        "readGroupFields": ""
    });

    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}}/v1/contactGroups \
  --header 'content-type: application/json' \
  --data '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}'
echo '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": ""
}' |  \
  http POST {{baseUrl}}/v1/contactGroups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contactGroup": {\n    "clientData": [\n      {\n        "key": "",\n        "value": ""\n      }\n    ],\n    "etag": "",\n    "formattedName": "",\n    "groupType": "",\n    "memberCount": 0,\n    "memberResourceNames": [],\n    "metadata": {\n      "deleted": false,\n      "updateTime": ""\n    },\n    "name": "",\n    "resourceName": ""\n  },\n  "readGroupFields": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/contactGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contactGroup": [
    "clientData": [
      [
        "key": "",
        "value": ""
      ]
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": [
      "deleted": false,
      "updateTime": ""
    ],
    "name": "",
    "resourceName": ""
  ],
  "readGroupFields": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/contactGroups")! 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()
DELETE people.contactGroups.delete
{{baseUrl}}/v1/:resourceName
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName");

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

(client/delete "{{baseUrl}}/v1/:resourceName")
require "http/client"

url = "{{baseUrl}}/v1/:resourceName"

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}}/v1/:resourceName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:resourceName");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName"

	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/v1/:resourceName HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/v1/:resourceName'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName';
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}}/v1/:resourceName',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:resourceName',
  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}}/v1/:resourceName'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v1/:resourceName');

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}}/v1/:resourceName'};

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

const url = '{{baseUrl}}/v1/:resourceName';
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}}/v1/:resourceName"]
                                                       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}}/v1/:resourceName" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName",
  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}}/v1/:resourceName');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:resourceName');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/v1/:resourceName")

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

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

url = "{{baseUrl}}/v1/:resourceName"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v1/:resourceName"

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

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

url = URI("{{baseUrl}}/v1/:resourceName")

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/v1/:resourceName') do |req|
end

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

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

    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}}/v1/:resourceName
http DELETE {{baseUrl}}/v1/:resourceName
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1/:resourceName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName")! 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 people.contactGroups.list
{{baseUrl}}/v1/contactGroups
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1/contactGroups")
require "http/client"

url = "{{baseUrl}}/v1/contactGroups"

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}}/v1/contactGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/contactGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/contactGroups"

	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/v1/contactGroups HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/contactGroups';
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}}/v1/contactGroups',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/contactGroups',
  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}}/v1/contactGroups'};

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

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

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

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

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

const url = '{{baseUrl}}/v1/contactGroups';
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}}/v1/contactGroups"]
                                                       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}}/v1/contactGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/contactGroups",
  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}}/v1/contactGroups');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/contactGroups")

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

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

url = "{{baseUrl}}/v1/contactGroups"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/contactGroups"

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

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

url = URI("{{baseUrl}}/v1/contactGroups")

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/v1/contactGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/contactGroups
http GET {{baseUrl}}/v1/contactGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/contactGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/contactGroups")! 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 people.contactGroups.members.modify
{{baseUrl}}/v1/:resourceName/members:modify
QUERY PARAMS

resourceName
BODY json

{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName/members:modify");

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  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}");

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

(client/post "{{baseUrl}}/v1/:resourceName/members:modify" {:content-type :json
                                                                            :form-params {:resourceNamesToAdd []
                                                                                          :resourceNamesToRemove []}})
require "http/client"

url = "{{baseUrl}}/v1/:resourceName/members:modify"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\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}}/v1/:resourceName/members:modify"),
    Content = new StringContent("{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\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}}/v1/:resourceName/members:modify");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName/members:modify"

	payload := strings.NewReader("{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\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/v1/:resourceName/members:modify HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:resourceName/members:modify")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName/members:modify"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\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  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName/members:modify")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:resourceName/members:modify")
  .header("content-type", "application/json")
  .body("{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}")
  .asString();
const data = JSON.stringify({
  resourceNamesToAdd: [],
  resourceNamesToRemove: []
});

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

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

xhr.open('POST', '{{baseUrl}}/v1/:resourceName/members:modify');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:resourceName/members:modify',
  headers: {'content-type': 'application/json'},
  data: {resourceNamesToAdd: [], resourceNamesToRemove: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName/members:modify';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"resourceNamesToAdd":[],"resourceNamesToRemove":[]}'
};

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}}/v1/:resourceName/members:modify',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "resourceNamesToAdd": [],\n  "resourceNamesToRemove": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName/members:modify")
  .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/v1/:resourceName/members:modify',
  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({resourceNamesToAdd: [], resourceNamesToRemove: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:resourceName/members:modify',
  headers: {'content-type': 'application/json'},
  body: {resourceNamesToAdd: [], resourceNamesToRemove: []},
  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}}/v1/:resourceName/members:modify');

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

req.type('json');
req.send({
  resourceNamesToAdd: [],
  resourceNamesToRemove: []
});

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}}/v1/:resourceName/members:modify',
  headers: {'content-type': 'application/json'},
  data: {resourceNamesToAdd: [], resourceNamesToRemove: []}
};

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

const url = '{{baseUrl}}/v1/:resourceName/members:modify';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"resourceNamesToAdd":[],"resourceNamesToRemove":[]}'
};

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 = @{ @"resourceNamesToAdd": @[  ],
                              @"resourceNamesToRemove": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:resourceName/members:modify"]
                                                       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}}/v1/:resourceName/members:modify" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName/members:modify",
  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([
    'resourceNamesToAdd' => [
        
    ],
    'resourceNamesToRemove' => [
        
    ]
  ]),
  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}}/v1/:resourceName/members:modify', [
  'body' => '{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:resourceName/members:modify');
$request->setMethod(HTTP_METH_POST);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'resourceNamesToAdd' => [
    
  ],
  'resourceNamesToRemove' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:resourceName/members:modify');
$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}}/v1/:resourceName/members:modify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName/members:modify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}'
import http.client

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

payload = "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}"

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

conn.request("POST", "/baseUrl/v1/:resourceName/members:modify", payload, headers)

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

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

url = "{{baseUrl}}/v1/:resourceName/members:modify"

payload = {
    "resourceNamesToAdd": [],
    "resourceNamesToRemove": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:resourceName/members:modify"

payload <- "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\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}}/v1/:resourceName/members:modify")

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  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\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/v1/:resourceName/members:modify') do |req|
  req.body = "{\n  \"resourceNamesToAdd\": [],\n  \"resourceNamesToRemove\": []\n}"
end

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

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

    let payload = json!({
        "resourceNamesToAdd": (),
        "resourceNamesToRemove": ()
    });

    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}}/v1/:resourceName/members:modify \
  --header 'content-type: application/json' \
  --data '{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}'
echo '{
  "resourceNamesToAdd": [],
  "resourceNamesToRemove": []
}' |  \
  http POST {{baseUrl}}/v1/:resourceName/members:modify \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "resourceNamesToAdd": [],\n  "resourceNamesToRemove": []\n}' \
  --output-document \
  - {{baseUrl}}/v1/:resourceName/members:modify
import Foundation

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

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

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

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

dataTask.resume()
PUT people.contactGroups.update
{{baseUrl}}/v1/:resourceName
QUERY PARAMS

resourceName
BODY json

{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName");

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  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}");

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

(client/put "{{baseUrl}}/v1/:resourceName" {:content-type :json
                                                            :form-params {:contactGroup {:clientData [{:key ""
                                                                                                       :value ""}]
                                                                                         :etag ""
                                                                                         :formattedName ""
                                                                                         :groupType ""
                                                                                         :memberCount 0
                                                                                         :memberResourceNames []
                                                                                         :metadata {:deleted false
                                                                                                    :updateTime ""}
                                                                                         :name ""
                                                                                         :resourceName ""}
                                                                          :readGroupFields ""
                                                                          :updateGroupFields ""}})
require "http/client"

url = "{{baseUrl}}/v1/:resourceName"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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}}/v1/:resourceName"),
    Content = new StringContent("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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}}/v1/:resourceName");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName"

	payload := strings.NewReader("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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/v1/:resourceName HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 387

{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/v1/:resourceName")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/v1/:resourceName")
  .header("content-type", "application/json")
  .body("{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contactGroup: {
    clientData: [
      {
        key: '',
        value: ''
      }
    ],
    etag: '',
    formattedName: '',
    groupType: '',
    memberCount: 0,
    memberResourceNames: [],
    metadata: {
      deleted: false,
      updateTime: ''
    },
    name: '',
    resourceName: ''
  },
  readGroupFields: '',
  updateGroupFields: ''
});

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

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

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/v1/:resourceName',
  headers: {'content-type': 'application/json'},
  data: {
    contactGroup: {
      clientData: [{key: '', value: ''}],
      etag: '',
      formattedName: '',
      groupType: '',
      memberCount: 0,
      memberResourceNames: [],
      metadata: {deleted: false, updateTime: ''},
      name: '',
      resourceName: ''
    },
    readGroupFields: '',
    updateGroupFields: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"contactGroup":{"clientData":[{"key":"","value":""}],"etag":"","formattedName":"","groupType":"","memberCount":0,"memberResourceNames":[],"metadata":{"deleted":false,"updateTime":""},"name":"","resourceName":""},"readGroupFields":"","updateGroupFields":""}'
};

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}}/v1/:resourceName',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contactGroup": {\n    "clientData": [\n      {\n        "key": "",\n        "value": ""\n      }\n    ],\n    "etag": "",\n    "formattedName": "",\n    "groupType": "",\n    "memberCount": 0,\n    "memberResourceNames": [],\n    "metadata": {\n      "deleted": false,\n      "updateTime": ""\n    },\n    "name": "",\n    "resourceName": ""\n  },\n  "readGroupFields": "",\n  "updateGroupFields": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName")
  .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/v1/:resourceName',
  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({
  contactGroup: {
    clientData: [{key: '', value: ''}],
    etag: '',
    formattedName: '',
    groupType: '',
    memberCount: 0,
    memberResourceNames: [],
    metadata: {deleted: false, updateTime: ''},
    name: '',
    resourceName: ''
  },
  readGroupFields: '',
  updateGroupFields: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/v1/:resourceName',
  headers: {'content-type': 'application/json'},
  body: {
    contactGroup: {
      clientData: [{key: '', value: ''}],
      etag: '',
      formattedName: '',
      groupType: '',
      memberCount: 0,
      memberResourceNames: [],
      metadata: {deleted: false, updateTime: ''},
      name: '',
      resourceName: ''
    },
    readGroupFields: '',
    updateGroupFields: ''
  },
  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}}/v1/:resourceName');

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

req.type('json');
req.send({
  contactGroup: {
    clientData: [
      {
        key: '',
        value: ''
      }
    ],
    etag: '',
    formattedName: '',
    groupType: '',
    memberCount: 0,
    memberResourceNames: [],
    metadata: {
      deleted: false,
      updateTime: ''
    },
    name: '',
    resourceName: ''
  },
  readGroupFields: '',
  updateGroupFields: ''
});

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}}/v1/:resourceName',
  headers: {'content-type': 'application/json'},
  data: {
    contactGroup: {
      clientData: [{key: '', value: ''}],
      etag: '',
      formattedName: '',
      groupType: '',
      memberCount: 0,
      memberResourceNames: [],
      metadata: {deleted: false, updateTime: ''},
      name: '',
      resourceName: ''
    },
    readGroupFields: '',
    updateGroupFields: ''
  }
};

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

const url = '{{baseUrl}}/v1/:resourceName';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"contactGroup":{"clientData":[{"key":"","value":""}],"etag":"","formattedName":"","groupType":"","memberCount":0,"memberResourceNames":[],"metadata":{"deleted":false,"updateTime":""},"name":"","resourceName":""},"readGroupFields":"","updateGroupFields":""}'
};

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 = @{ @"contactGroup": @{ @"clientData": @[ @{ @"key": @"", @"value": @"" } ], @"etag": @"", @"formattedName": @"", @"groupType": @"", @"memberCount": @0, @"memberResourceNames": @[  ], @"metadata": @{ @"deleted": @NO, @"updateTime": @"" }, @"name": @"", @"resourceName": @"" },
                              @"readGroupFields": @"",
                              @"updateGroupFields": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:resourceName"]
                                                       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}}/v1/:resourceName" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName",
  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([
    'contactGroup' => [
        'clientData' => [
                [
                                'key' => '',
                                'value' => ''
                ]
        ],
        'etag' => '',
        'formattedName' => '',
        'groupType' => '',
        'memberCount' => 0,
        'memberResourceNames' => [
                
        ],
        'metadata' => [
                'deleted' => null,
                'updateTime' => ''
        ],
        'name' => '',
        'resourceName' => ''
    ],
    'readGroupFields' => '',
    'updateGroupFields' => ''
  ]),
  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}}/v1/:resourceName', [
  'body' => '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contactGroup' => [
    'clientData' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'etag' => '',
    'formattedName' => '',
    'groupType' => '',
    'memberCount' => 0,
    'memberResourceNames' => [
        
    ],
    'metadata' => [
        'deleted' => null,
        'updateTime' => ''
    ],
    'name' => '',
    'resourceName' => ''
  ],
  'readGroupFields' => '',
  'updateGroupFields' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contactGroup' => [
    'clientData' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'etag' => '',
    'formattedName' => '',
    'groupType' => '',
    'memberCount' => 0,
    'memberResourceNames' => [
        
    ],
    'metadata' => [
        'deleted' => null,
        'updateTime' => ''
    ],
    'name' => '',
    'resourceName' => ''
  ],
  'readGroupFields' => '',
  'updateGroupFields' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:resourceName');
$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}}/v1/:resourceName' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}'
import http.client

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

payload = "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/v1/:resourceName", payload, headers)

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

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

url = "{{baseUrl}}/v1/:resourceName"

payload = {
    "contactGroup": {
        "clientData": [
            {
                "key": "",
                "value": ""
            }
        ],
        "etag": "",
        "formattedName": "",
        "groupType": "",
        "memberCount": 0,
        "memberResourceNames": [],
        "metadata": {
            "deleted": False,
            "updateTime": ""
        },
        "name": "",
        "resourceName": ""
    },
    "readGroupFields": "",
    "updateGroupFields": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:resourceName"

payload <- "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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}}/v1/:resourceName")

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  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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/v1/:resourceName') do |req|
  req.body = "{\n  \"contactGroup\": {\n    \"clientData\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"formattedName\": \"\",\n    \"groupType\": \"\",\n    \"memberCount\": 0,\n    \"memberResourceNames\": [],\n    \"metadata\": {\n      \"deleted\": false,\n      \"updateTime\": \"\"\n    },\n    \"name\": \"\",\n    \"resourceName\": \"\"\n  },\n  \"readGroupFields\": \"\",\n  \"updateGroupFields\": \"\"\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}}/v1/:resourceName";

    let payload = json!({
        "contactGroup": json!({
            "clientData": (
                json!({
                    "key": "",
                    "value": ""
                })
            ),
            "etag": "",
            "formattedName": "",
            "groupType": "",
            "memberCount": 0,
            "memberResourceNames": (),
            "metadata": json!({
                "deleted": false,
                "updateTime": ""
            }),
            "name": "",
            "resourceName": ""
        }),
        "readGroupFields": "",
        "updateGroupFields": ""
    });

    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}}/v1/:resourceName \
  --header 'content-type: application/json' \
  --data '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}'
echo '{
  "contactGroup": {
    "clientData": [
      {
        "key": "",
        "value": ""
      }
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": {
      "deleted": false,
      "updateTime": ""
    },
    "name": "",
    "resourceName": ""
  },
  "readGroupFields": "",
  "updateGroupFields": ""
}' |  \
  http PUT {{baseUrl}}/v1/:resourceName \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "contactGroup": {\n    "clientData": [\n      {\n        "key": "",\n        "value": ""\n      }\n    ],\n    "etag": "",\n    "formattedName": "",\n    "groupType": "",\n    "memberCount": 0,\n    "memberResourceNames": [],\n    "metadata": {\n      "deleted": false,\n      "updateTime": ""\n    },\n    "name": "",\n    "resourceName": ""\n  },\n  "readGroupFields": "",\n  "updateGroupFields": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:resourceName
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contactGroup": [
    "clientData": [
      [
        "key": "",
        "value": ""
      ]
    ],
    "etag": "",
    "formattedName": "",
    "groupType": "",
    "memberCount": 0,
    "memberResourceNames": [],
    "metadata": [
      "deleted": false,
      "updateTime": ""
    ],
    "name": "",
    "resourceName": ""
  ],
  "readGroupFields": "",
  "updateGroupFields": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName")! 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 people.otherContacts.copyOtherContactToMyContactsGroup
{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup
QUERY PARAMS

resourceName
BODY json

{
  "copyMask": "",
  "readMask": "",
  "sources": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup");

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  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}");

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

(client/post "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup" {:content-type :json
                                                                                               :form-params {:copyMask ""
                                                                                                             :readMask ""
                                                                                                             :sources []}})
require "http/client"

url = "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:copyOtherContactToMyContactsGroup"),
    Content = new StringContent("{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:copyOtherContactToMyContactsGroup");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup"

	payload := strings.NewReader("{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\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/v1/:resourceName:copyOtherContactToMyContactsGroup HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 55

{
  "copyMask": "",
  "readMask": "",
  "sources": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\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  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup")
  .header("content-type", "application/json")
  .body("{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}")
  .asString();
const data = JSON.stringify({
  copyMask: '',
  readMask: '',
  sources: []
});

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

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

xhr.open('POST', '{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup',
  headers: {'content-type': 'application/json'},
  data: {copyMask: '', readMask: '', sources: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"copyMask":"","readMask":"","sources":[]}'
};

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}}/v1/:resourceName:copyOtherContactToMyContactsGroup',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "copyMask": "",\n  "readMask": "",\n  "sources": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup")
  .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/v1/:resourceName:copyOtherContactToMyContactsGroup',
  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({copyMask: '', readMask: '', sources: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup',
  headers: {'content-type': 'application/json'},
  body: {copyMask: '', readMask: '', sources: []},
  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}}/v1/:resourceName:copyOtherContactToMyContactsGroup');

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

req.type('json');
req.send({
  copyMask: '',
  readMask: '',
  sources: []
});

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}}/v1/:resourceName:copyOtherContactToMyContactsGroup',
  headers: {'content-type': 'application/json'},
  data: {copyMask: '', readMask: '', sources: []}
};

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

const url = '{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"copyMask":"","readMask":"","sources":[]}'
};

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 = @{ @"copyMask": @"",
                              @"readMask": @"",
                              @"sources": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup"]
                                                       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}}/v1/:resourceName:copyOtherContactToMyContactsGroup" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup",
  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([
    'copyMask' => '',
    'readMask' => '',
    'sources' => [
        
    ]
  ]),
  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}}/v1/:resourceName:copyOtherContactToMyContactsGroup', [
  'body' => '{
  "copyMask": "",
  "readMask": "",
  "sources": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'copyMask' => '',
  'readMask' => '',
  'sources' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'copyMask' => '',
  'readMask' => '',
  'sources' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup');
$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}}/v1/:resourceName:copyOtherContactToMyContactsGroup' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "copyMask": "",
  "readMask": "",
  "sources": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "copyMask": "",
  "readMask": "",
  "sources": []
}'
import http.client

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

payload = "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}"

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

conn.request("POST", "/baseUrl/v1/:resourceName:copyOtherContactToMyContactsGroup", payload, headers)

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

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

url = "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup"

payload = {
    "copyMask": "",
    "readMask": "",
    "sources": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup"

payload <- "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:copyOtherContactToMyContactsGroup")

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  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\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/v1/:resourceName:copyOtherContactToMyContactsGroup') do |req|
  req.body = "{\n  \"copyMask\": \"\",\n  \"readMask\": \"\",\n  \"sources\": []\n}"
end

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

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

    let payload = json!({
        "copyMask": "",
        "readMask": "",
        "sources": ()
    });

    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}}/v1/:resourceName:copyOtherContactToMyContactsGroup \
  --header 'content-type: application/json' \
  --data '{
  "copyMask": "",
  "readMask": "",
  "sources": []
}'
echo '{
  "copyMask": "",
  "readMask": "",
  "sources": []
}' |  \
  http POST {{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "copyMask": "",\n  "readMask": "",\n  "sources": []\n}' \
  --output-document \
  - {{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "copyMask": "",
  "readMask": "",
  "sources": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName:copyOtherContactToMyContactsGroup")! 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 people.otherContacts.list
{{baseUrl}}/v1/otherContacts
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1/otherContacts")
require "http/client"

url = "{{baseUrl}}/v1/otherContacts"

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}}/v1/otherContacts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/otherContacts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/otherContacts"

	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/v1/otherContacts HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/otherContacts';
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}}/v1/otherContacts',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/otherContacts',
  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}}/v1/otherContacts'};

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

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

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

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

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

const url = '{{baseUrl}}/v1/otherContacts';
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}}/v1/otherContacts"]
                                                       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}}/v1/otherContacts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/otherContacts",
  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}}/v1/otherContacts');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/otherContacts")

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

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

url = "{{baseUrl}}/v1/otherContacts"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/otherContacts"

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

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

url = URI("{{baseUrl}}/v1/otherContacts")

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/v1/otherContacts') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/otherContacts
http GET {{baseUrl}}/v1/otherContacts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/otherContacts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/otherContacts")! 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}}/v1/otherContacts:search");

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

(client/get "{{baseUrl}}/v1/otherContacts:search")
require "http/client"

url = "{{baseUrl}}/v1/otherContacts: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}}/v1/otherContacts:search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/otherContacts:search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/otherContacts: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/v1/otherContacts:search HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/otherContacts:search'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/otherContacts: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}}/v1/otherContacts:search',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/otherContacts:search")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/otherContacts: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}}/v1/otherContacts: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}}/v1/otherContacts: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}}/v1/otherContacts:search'};

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

const url = '{{baseUrl}}/v1/otherContacts: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}}/v1/otherContacts: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}}/v1/otherContacts:search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/otherContacts: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}}/v1/otherContacts:search');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/otherContacts:search');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/otherContacts:search")

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

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

url = "{{baseUrl}}/v1/otherContacts:search"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/otherContacts:search"

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

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

url = URI("{{baseUrl}}/v1/otherContacts: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/v1/otherContacts:search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/otherContacts: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}}/v1/otherContacts:search
http GET {{baseUrl}}/v1/otherContacts:search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/otherContacts:search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/otherContacts: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 people.people.batchCreateContacts
{{baseUrl}}/v1/people:batchCreateContacts
BODY json

{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:batchCreateContacts");

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  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}");

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

(client/post "{{baseUrl}}/v1/people:batchCreateContacts" {:content-type :json
                                                                          :form-params {:contacts [{:contactPerson {:addresses [{:city ""
                                                                                                                                 :country ""
                                                                                                                                 :countryCode ""
                                                                                                                                 :extendedAddress ""
                                                                                                                                 :formattedType ""
                                                                                                                                 :formattedValue ""
                                                                                                                                 :metadata {:primary false
                                                                                                                                            :source {:etag ""
                                                                                                                                                     :id ""
                                                                                                                                                     :profileMetadata {:objectType ""
                                                                                                                                                                       :userTypes []}
                                                                                                                                                     :type ""
                                                                                                                                                     :updateTime ""}
                                                                                                                                            :sourcePrimary false
                                                                                                                                            :verified false}
                                                                                                                                 :poBox ""
                                                                                                                                 :postalCode ""
                                                                                                                                 :region ""
                                                                                                                                 :streetAddress ""
                                                                                                                                 :type ""}]
                                                                                                                    :ageRange ""
                                                                                                                    :ageRanges [{:ageRange ""
                                                                                                                                 :metadata {}}]
                                                                                                                    :biographies [{:contentType ""
                                                                                                                                   :metadata {}
                                                                                                                                   :value ""}]
                                                                                                                    :birthdays [{:date {:day 0
                                                                                                                                        :month 0
                                                                                                                                        :year 0}
                                                                                                                                 :metadata {}
                                                                                                                                 :text ""}]
                                                                                                                    :braggingRights [{:metadata {}
                                                                                                                                      :value ""}]
                                                                                                                    :calendarUrls [{:formattedType ""
                                                                                                                                    :metadata {}
                                                                                                                                    :type ""
                                                                                                                                    :url ""}]
                                                                                                                    :clientData [{:key ""
                                                                                                                                  :metadata {}
                                                                                                                                  :value ""}]
                                                                                                                    :coverPhotos [{:metadata {}
                                                                                                                                   :url ""}]
                                                                                                                    :emailAddresses [{:displayName ""
                                                                                                                                      :formattedType ""
                                                                                                                                      :metadata {}
                                                                                                                                      :type ""
                                                                                                                                      :value ""}]
                                                                                                                    :etag ""
                                                                                                                    :events [{:date {}
                                                                                                                              :formattedType ""
                                                                                                                              :metadata {}
                                                                                                                              :type ""}]
                                                                                                                    :externalIds [{:formattedType ""
                                                                                                                                   :metadata {}
                                                                                                                                   :type ""
                                                                                                                                   :value ""}]
                                                                                                                    :fileAses [{:metadata {}
                                                                                                                                :value ""}]
                                                                                                                    :genders [{:addressMeAs ""
                                                                                                                               :formattedValue ""
                                                                                                                               :metadata {}
                                                                                                                               :value ""}]
                                                                                                                    :imClients [{:formattedProtocol ""
                                                                                                                                 :formattedType ""
                                                                                                                                 :metadata {}
                                                                                                                                 :protocol ""
                                                                                                                                 :type ""
                                                                                                                                 :username ""}]
                                                                                                                    :interests [{:metadata {}
                                                                                                                                 :value ""}]
                                                                                                                    :locales [{:metadata {}
                                                                                                                               :value ""}]
                                                                                                                    :locations [{:buildingId ""
                                                                                                                                 :current false
                                                                                                                                 :deskCode ""
                                                                                                                                 :floor ""
                                                                                                                                 :floorSection ""
                                                                                                                                 :metadata {}
                                                                                                                                 :type ""
                                                                                                                                 :value ""}]
                                                                                                                    :memberships [{:contactGroupMembership {:contactGroupId ""
                                                                                                                                                            :contactGroupResourceName ""}
                                                                                                                                   :domainMembership {:inViewerDomain false}
                                                                                                                                   :metadata {}}]
                                                                                                                    :metadata {:deleted false
                                                                                                                               :linkedPeopleResourceNames []
                                                                                                                               :objectType ""
                                                                                                                               :previousResourceNames []
                                                                                                                               :sources [{}]}
                                                                                                                    :miscKeywords [{:formattedType ""
                                                                                                                                    :metadata {}
                                                                                                                                    :type ""
                                                                                                                                    :value ""}]
                                                                                                                    :names [{:displayName ""
                                                                                                                             :displayNameLastFirst ""
                                                                                                                             :familyName ""
                                                                                                                             :givenName ""
                                                                                                                             :honorificPrefix ""
                                                                                                                             :honorificSuffix ""
                                                                                                                             :metadata {}
                                                                                                                             :middleName ""
                                                                                                                             :phoneticFamilyName ""
                                                                                                                             :phoneticFullName ""
                                                                                                                             :phoneticGivenName ""
                                                                                                                             :phoneticHonorificPrefix ""
                                                                                                                             :phoneticHonorificSuffix ""
                                                                                                                             :phoneticMiddleName ""
                                                                                                                             :unstructuredName ""}]
                                                                                                                    :nicknames [{:metadata {}
                                                                                                                                 :type ""
                                                                                                                                 :value ""}]
                                                                                                                    :occupations [{:metadata {}
                                                                                                                                   :value ""}]
                                                                                                                    :organizations [{:costCenter ""
                                                                                                                                     :current false
                                                                                                                                     :department ""
                                                                                                                                     :domain ""
                                                                                                                                     :endDate {}
                                                                                                                                     :formattedType ""
                                                                                                                                     :fullTimeEquivalentMillipercent 0
                                                                                                                                     :jobDescription ""
                                                                                                                                     :location ""
                                                                                                                                     :metadata {}
                                                                                                                                     :name ""
                                                                                                                                     :phoneticName ""
                                                                                                                                     :startDate {}
                                                                                                                                     :symbol ""
                                                                                                                                     :title ""
                                                                                                                                     :type ""}]
                                                                                                                    :phoneNumbers [{:canonicalForm ""
                                                                                                                                    :formattedType ""
                                                                                                                                    :metadata {}
                                                                                                                                    :type ""
                                                                                                                                    :value ""}]
                                                                                                                    :photos [{:metadata {}
                                                                                                                              :url ""}]
                                                                                                                    :relations [{:formattedType ""
                                                                                                                                 :metadata {}
                                                                                                                                 :person ""
                                                                                                                                 :type ""}]
                                                                                                                    :relationshipInterests [{:formattedValue ""
                                                                                                                                             :metadata {}
                                                                                                                                             :value ""}]
                                                                                                                    :relationshipStatuses [{:formattedValue ""
                                                                                                                                            :metadata {}
                                                                                                                                            :value ""}]
                                                                                                                    :residences [{:current false
                                                                                                                                  :metadata {}
                                                                                                                                  :value ""}]
                                                                                                                    :resourceName ""
                                                                                                                    :sipAddresses [{:formattedType ""
                                                                                                                                    :metadata {}
                                                                                                                                    :type ""
                                                                                                                                    :value ""}]
                                                                                                                    :skills [{:metadata {}
                                                                                                                              :value ""}]
                                                                                                                    :taglines [{:metadata {}
                                                                                                                                :value ""}]
                                                                                                                    :urls [{:formattedType ""
                                                                                                                            :metadata {}
                                                                                                                            :type ""
                                                                                                                            :value ""}]
                                                                                                                    :userDefined [{:key ""
                                                                                                                                   :metadata {}
                                                                                                                                   :value ""}]}}]
                                                                                        :readMask ""
                                                                                        :sources []}})
require "http/client"

url = "{{baseUrl}}/v1/people:batchCreateContacts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\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}}/v1/people:batchCreateContacts"),
    Content = new StringContent("{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\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}}/v1/people:batchCreateContacts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:batchCreateContacts"

	payload := strings.NewReader("{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\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/v1/people:batchCreateContacts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 7208

{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/people:batchCreateContacts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/people:batchCreateContacts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\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  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/people:batchCreateContacts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/people:batchCreateContacts")
  .header("content-type", "application/json")
  .body("{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}")
  .asString();
const data = JSON.stringify({
  contacts: [
    {
      contactPerson: {
        addresses: [
          {
            city: '',
            country: '',
            countryCode: '',
            extendedAddress: '',
            formattedType: '',
            formattedValue: '',
            metadata: {
              primary: false,
              source: {
                etag: '',
                id: '',
                profileMetadata: {
                  objectType: '',
                  userTypes: []
                },
                type: '',
                updateTime: ''
              },
              sourcePrimary: false,
              verified: false
            },
            poBox: '',
            postalCode: '',
            region: '',
            streetAddress: '',
            type: ''
          }
        ],
        ageRange: '',
        ageRanges: [
          {
            ageRange: '',
            metadata: {}
          }
        ],
        biographies: [
          {
            contentType: '',
            metadata: {},
            value: ''
          }
        ],
        birthdays: [
          {
            date: {
              day: 0,
              month: 0,
              year: 0
            },
            metadata: {},
            text: ''
          }
        ],
        braggingRights: [
          {
            metadata: {},
            value: ''
          }
        ],
        calendarUrls: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            url: ''
          }
        ],
        clientData: [
          {
            key: '',
            metadata: {},
            value: ''
          }
        ],
        coverPhotos: [
          {
            metadata: {},
            url: ''
          }
        ],
        emailAddresses: [
          {
            displayName: '',
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        etag: '',
        events: [
          {
            date: {},
            formattedType: '',
            metadata: {},
            type: ''
          }
        ],
        externalIds: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        fileAses: [
          {
            metadata: {},
            value: ''
          }
        ],
        genders: [
          {
            addressMeAs: '',
            formattedValue: '',
            metadata: {},
            value: ''
          }
        ],
        imClients: [
          {
            formattedProtocol: '',
            formattedType: '',
            metadata: {},
            protocol: '',
            type: '',
            username: ''
          }
        ],
        interests: [
          {
            metadata: {},
            value: ''
          }
        ],
        locales: [
          {
            metadata: {},
            value: ''
          }
        ],
        locations: [
          {
            buildingId: '',
            current: false,
            deskCode: '',
            floor: '',
            floorSection: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        memberships: [
          {
            contactGroupMembership: {
              contactGroupId: '',
              contactGroupResourceName: ''
            },
            domainMembership: {
              inViewerDomain: false
            },
            metadata: {}
          }
        ],
        metadata: {
          deleted: false,
          linkedPeopleResourceNames: [],
          objectType: '',
          previousResourceNames: [],
          sources: [
            {}
          ]
        },
        miscKeywords: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        names: [
          {
            displayName: '',
            displayNameLastFirst: '',
            familyName: '',
            givenName: '',
            honorificPrefix: '',
            honorificSuffix: '',
            metadata: {},
            middleName: '',
            phoneticFamilyName: '',
            phoneticFullName: '',
            phoneticGivenName: '',
            phoneticHonorificPrefix: '',
            phoneticHonorificSuffix: '',
            phoneticMiddleName: '',
            unstructuredName: ''
          }
        ],
        nicknames: [
          {
            metadata: {},
            type: '',
            value: ''
          }
        ],
        occupations: [
          {
            metadata: {},
            value: ''
          }
        ],
        organizations: [
          {
            costCenter: '',
            current: false,
            department: '',
            domain: '',
            endDate: {},
            formattedType: '',
            fullTimeEquivalentMillipercent: 0,
            jobDescription: '',
            location: '',
            metadata: {},
            name: '',
            phoneticName: '',
            startDate: {},
            symbol: '',
            title: '',
            type: ''
          }
        ],
        phoneNumbers: [
          {
            canonicalForm: '',
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        photos: [
          {
            metadata: {},
            url: ''
          }
        ],
        relations: [
          {
            formattedType: '',
            metadata: {},
            person: '',
            type: ''
          }
        ],
        relationshipInterests: [
          {
            formattedValue: '',
            metadata: {},
            value: ''
          }
        ],
        relationshipStatuses: [
          {
            formattedValue: '',
            metadata: {},
            value: ''
          }
        ],
        residences: [
          {
            current: false,
            metadata: {},
            value: ''
          }
        ],
        resourceName: '',
        sipAddresses: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        skills: [
          {
            metadata: {},
            value: ''
          }
        ],
        taglines: [
          {
            metadata: {},
            value: ''
          }
        ],
        urls: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        userDefined: [
          {
            key: '',
            metadata: {},
            value: ''
          }
        ]
      }
    }
  ],
  readMask: '',
  sources: []
});

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

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

xhr.open('POST', '{{baseUrl}}/v1/people:batchCreateContacts');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:batchCreateContacts',
  headers: {'content-type': 'application/json'},
  data: {
    contacts: [
      {
        contactPerson: {
          addresses: [
            {
              city: '',
              country: '',
              countryCode: '',
              extendedAddress: '',
              formattedType: '',
              formattedValue: '',
              metadata: {
                primary: false,
                source: {
                  etag: '',
                  id: '',
                  profileMetadata: {objectType: '', userTypes: []},
                  type: '',
                  updateTime: ''
                },
                sourcePrimary: false,
                verified: false
              },
              poBox: '',
              postalCode: '',
              region: '',
              streetAddress: '',
              type: ''
            }
          ],
          ageRange: '',
          ageRanges: [{ageRange: '', metadata: {}}],
          biographies: [{contentType: '', metadata: {}, value: ''}],
          birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
          braggingRights: [{metadata: {}, value: ''}],
          calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
          clientData: [{key: '', metadata: {}, value: ''}],
          coverPhotos: [{metadata: {}, url: ''}],
          emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
          etag: '',
          events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
          externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
          fileAses: [{metadata: {}, value: ''}],
          genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
          imClients: [
            {
              formattedProtocol: '',
              formattedType: '',
              metadata: {},
              protocol: '',
              type: '',
              username: ''
            }
          ],
          interests: [{metadata: {}, value: ''}],
          locales: [{metadata: {}, value: ''}],
          locations: [
            {
              buildingId: '',
              current: false,
              deskCode: '',
              floor: '',
              floorSection: '',
              metadata: {},
              type: '',
              value: ''
            }
          ],
          memberships: [
            {
              contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
              domainMembership: {inViewerDomain: false},
              metadata: {}
            }
          ],
          metadata: {
            deleted: false,
            linkedPeopleResourceNames: [],
            objectType: '',
            previousResourceNames: [],
            sources: [{}]
          },
          miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
          names: [
            {
              displayName: '',
              displayNameLastFirst: '',
              familyName: '',
              givenName: '',
              honorificPrefix: '',
              honorificSuffix: '',
              metadata: {},
              middleName: '',
              phoneticFamilyName: '',
              phoneticFullName: '',
              phoneticGivenName: '',
              phoneticHonorificPrefix: '',
              phoneticHonorificSuffix: '',
              phoneticMiddleName: '',
              unstructuredName: ''
            }
          ],
          nicknames: [{metadata: {}, type: '', value: ''}],
          occupations: [{metadata: {}, value: ''}],
          organizations: [
            {
              costCenter: '',
              current: false,
              department: '',
              domain: '',
              endDate: {},
              formattedType: '',
              fullTimeEquivalentMillipercent: 0,
              jobDescription: '',
              location: '',
              metadata: {},
              name: '',
              phoneticName: '',
              startDate: {},
              symbol: '',
              title: '',
              type: ''
            }
          ],
          phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
          photos: [{metadata: {}, url: ''}],
          relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
          relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
          relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
          residences: [{current: false, metadata: {}, value: ''}],
          resourceName: '',
          sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
          skills: [{metadata: {}, value: ''}],
          taglines: [{metadata: {}, value: ''}],
          urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
          userDefined: [{key: '', metadata: {}, value: ''}]
        }
      }
    ],
    readMask: '',
    sources: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:batchCreateContacts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contacts":[{"contactPerson":{"addresses":[{"city":"","country":"","countryCode":"","extendedAddress":"","formattedType":"","formattedValue":"","metadata":{"primary":false,"source":{"etag":"","id":"","profileMetadata":{"objectType":"","userTypes":[]},"type":"","updateTime":""},"sourcePrimary":false,"verified":false},"poBox":"","postalCode":"","region":"","streetAddress":"","type":""}],"ageRange":"","ageRanges":[{"ageRange":"","metadata":{}}],"biographies":[{"contentType":"","metadata":{},"value":""}],"birthdays":[{"date":{"day":0,"month":0,"year":0},"metadata":{},"text":""}],"braggingRights":[{"metadata":{},"value":""}],"calendarUrls":[{"formattedType":"","metadata":{},"type":"","url":""}],"clientData":[{"key":"","metadata":{},"value":""}],"coverPhotos":[{"metadata":{},"url":""}],"emailAddresses":[{"displayName":"","formattedType":"","metadata":{},"type":"","value":""}],"etag":"","events":[{"date":{},"formattedType":"","metadata":{},"type":""}],"externalIds":[{"formattedType":"","metadata":{},"type":"","value":""}],"fileAses":[{"metadata":{},"value":""}],"genders":[{"addressMeAs":"","formattedValue":"","metadata":{},"value":""}],"imClients":[{"formattedProtocol":"","formattedType":"","metadata":{},"protocol":"","type":"","username":""}],"interests":[{"metadata":{},"value":""}],"locales":[{"metadata":{},"value":""}],"locations":[{"buildingId":"","current":false,"deskCode":"","floor":"","floorSection":"","metadata":{},"type":"","value":""}],"memberships":[{"contactGroupMembership":{"contactGroupId":"","contactGroupResourceName":""},"domainMembership":{"inViewerDomain":false},"metadata":{}}],"metadata":{"deleted":false,"linkedPeopleResourceNames":[],"objectType":"","previousResourceNames":[],"sources":[{}]},"miscKeywords":[{"formattedType":"","metadata":{},"type":"","value":""}],"names":[{"displayName":"","displayNameLastFirst":"","familyName":"","givenName":"","honorificPrefix":"","honorificSuffix":"","metadata":{},"middleName":"","phoneticFamilyName":"","phoneticFullName":"","phoneticGivenName":"","phoneticHonorificPrefix":"","phoneticHonorificSuffix":"","phoneticMiddleName":"","unstructuredName":""}],"nicknames":[{"metadata":{},"type":"","value":""}],"occupations":[{"metadata":{},"value":""}],"organizations":[{"costCenter":"","current":false,"department":"","domain":"","endDate":{},"formattedType":"","fullTimeEquivalentMillipercent":0,"jobDescription":"","location":"","metadata":{},"name":"","phoneticName":"","startDate":{},"symbol":"","title":"","type":""}],"phoneNumbers":[{"canonicalForm":"","formattedType":"","metadata":{},"type":"","value":""}],"photos":[{"metadata":{},"url":""}],"relations":[{"formattedType":"","metadata":{},"person":"","type":""}],"relationshipInterests":[{"formattedValue":"","metadata":{},"value":""}],"relationshipStatuses":[{"formattedValue":"","metadata":{},"value":""}],"residences":[{"current":false,"metadata":{},"value":""}],"resourceName":"","sipAddresses":[{"formattedType":"","metadata":{},"type":"","value":""}],"skills":[{"metadata":{},"value":""}],"taglines":[{"metadata":{},"value":""}],"urls":[{"formattedType":"","metadata":{},"type":"","value":""}],"userDefined":[{"key":"","metadata":{},"value":""}]}}],"readMask":"","sources":[]}'
};

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}}/v1/people:batchCreateContacts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contacts": [\n    {\n      "contactPerson": {\n        "addresses": [\n          {\n            "city": "",\n            "country": "",\n            "countryCode": "",\n            "extendedAddress": "",\n            "formattedType": "",\n            "formattedValue": "",\n            "metadata": {\n              "primary": false,\n              "source": {\n                "etag": "",\n                "id": "",\n                "profileMetadata": {\n                  "objectType": "",\n                  "userTypes": []\n                },\n                "type": "",\n                "updateTime": ""\n              },\n              "sourcePrimary": false,\n              "verified": false\n            },\n            "poBox": "",\n            "postalCode": "",\n            "region": "",\n            "streetAddress": "",\n            "type": ""\n          }\n        ],\n        "ageRange": "",\n        "ageRanges": [\n          {\n            "ageRange": "",\n            "metadata": {}\n          }\n        ],\n        "biographies": [\n          {\n            "contentType": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "birthdays": [\n          {\n            "date": {\n              "day": 0,\n              "month": 0,\n              "year": 0\n            },\n            "metadata": {},\n            "text": ""\n          }\n        ],\n        "braggingRights": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "calendarUrls": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "url": ""\n          }\n        ],\n        "clientData": [\n          {\n            "key": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "coverPhotos": [\n          {\n            "metadata": {},\n            "url": ""\n          }\n        ],\n        "emailAddresses": [\n          {\n            "displayName": "",\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "etag": "",\n        "events": [\n          {\n            "date": {},\n            "formattedType": "",\n            "metadata": {},\n            "type": ""\n          }\n        ],\n        "externalIds": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "fileAses": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "genders": [\n          {\n            "addressMeAs": "",\n            "formattedValue": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "imClients": [\n          {\n            "formattedProtocol": "",\n            "formattedType": "",\n            "metadata": {},\n            "protocol": "",\n            "type": "",\n            "username": ""\n          }\n        ],\n        "interests": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "locales": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "locations": [\n          {\n            "buildingId": "",\n            "current": false,\n            "deskCode": "",\n            "floor": "",\n            "floorSection": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "memberships": [\n          {\n            "contactGroupMembership": {\n              "contactGroupId": "",\n              "contactGroupResourceName": ""\n            },\n            "domainMembership": {\n              "inViewerDomain": false\n            },\n            "metadata": {}\n          }\n        ],\n        "metadata": {\n          "deleted": false,\n          "linkedPeopleResourceNames": [],\n          "objectType": "",\n          "previousResourceNames": [],\n          "sources": [\n            {}\n          ]\n        },\n        "miscKeywords": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "names": [\n          {\n            "displayName": "",\n            "displayNameLastFirst": "",\n            "familyName": "",\n            "givenName": "",\n            "honorificPrefix": "",\n            "honorificSuffix": "",\n            "metadata": {},\n            "middleName": "",\n            "phoneticFamilyName": "",\n            "phoneticFullName": "",\n            "phoneticGivenName": "",\n            "phoneticHonorificPrefix": "",\n            "phoneticHonorificSuffix": "",\n            "phoneticMiddleName": "",\n            "unstructuredName": ""\n          }\n        ],\n        "nicknames": [\n          {\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "occupations": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "organizations": [\n          {\n            "costCenter": "",\n            "current": false,\n            "department": "",\n            "domain": "",\n            "endDate": {},\n            "formattedType": "",\n            "fullTimeEquivalentMillipercent": 0,\n            "jobDescription": "",\n            "location": "",\n            "metadata": {},\n            "name": "",\n            "phoneticName": "",\n            "startDate": {},\n            "symbol": "",\n            "title": "",\n            "type": ""\n          }\n        ],\n        "phoneNumbers": [\n          {\n            "canonicalForm": "",\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "photos": [\n          {\n            "metadata": {},\n            "url": ""\n          }\n        ],\n        "relations": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "person": "",\n            "type": ""\n          }\n        ],\n        "relationshipInterests": [\n          {\n            "formattedValue": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "relationshipStatuses": [\n          {\n            "formattedValue": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "residences": [\n          {\n            "current": false,\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "resourceName": "",\n        "sipAddresses": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "skills": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "taglines": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "urls": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "userDefined": [\n          {\n            "key": "",\n            "metadata": {},\n            "value": ""\n          }\n        ]\n      }\n    }\n  ],\n  "readMask": "",\n  "sources": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:batchCreateContacts")
  .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/v1/people:batchCreateContacts',
  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({
  contacts: [
    {
      contactPerson: {
        addresses: [
          {
            city: '',
            country: '',
            countryCode: '',
            extendedAddress: '',
            formattedType: '',
            formattedValue: '',
            metadata: {
              primary: false,
              source: {
                etag: '',
                id: '',
                profileMetadata: {objectType: '', userTypes: []},
                type: '',
                updateTime: ''
              },
              sourcePrimary: false,
              verified: false
            },
            poBox: '',
            postalCode: '',
            region: '',
            streetAddress: '',
            type: ''
          }
        ],
        ageRange: '',
        ageRanges: [{ageRange: '', metadata: {}}],
        biographies: [{contentType: '', metadata: {}, value: ''}],
        birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
        braggingRights: [{metadata: {}, value: ''}],
        calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
        clientData: [{key: '', metadata: {}, value: ''}],
        coverPhotos: [{metadata: {}, url: ''}],
        emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
        etag: '',
        events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
        externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
        fileAses: [{metadata: {}, value: ''}],
        genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
        imClients: [
          {
            formattedProtocol: '',
            formattedType: '',
            metadata: {},
            protocol: '',
            type: '',
            username: ''
          }
        ],
        interests: [{metadata: {}, value: ''}],
        locales: [{metadata: {}, value: ''}],
        locations: [
          {
            buildingId: '',
            current: false,
            deskCode: '',
            floor: '',
            floorSection: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        memberships: [
          {
            contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
            domainMembership: {inViewerDomain: false},
            metadata: {}
          }
        ],
        metadata: {
          deleted: false,
          linkedPeopleResourceNames: [],
          objectType: '',
          previousResourceNames: [],
          sources: [{}]
        },
        miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
        names: [
          {
            displayName: '',
            displayNameLastFirst: '',
            familyName: '',
            givenName: '',
            honorificPrefix: '',
            honorificSuffix: '',
            metadata: {},
            middleName: '',
            phoneticFamilyName: '',
            phoneticFullName: '',
            phoneticGivenName: '',
            phoneticHonorificPrefix: '',
            phoneticHonorificSuffix: '',
            phoneticMiddleName: '',
            unstructuredName: ''
          }
        ],
        nicknames: [{metadata: {}, type: '', value: ''}],
        occupations: [{metadata: {}, value: ''}],
        organizations: [
          {
            costCenter: '',
            current: false,
            department: '',
            domain: '',
            endDate: {},
            formattedType: '',
            fullTimeEquivalentMillipercent: 0,
            jobDescription: '',
            location: '',
            metadata: {},
            name: '',
            phoneticName: '',
            startDate: {},
            symbol: '',
            title: '',
            type: ''
          }
        ],
        phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
        photos: [{metadata: {}, url: ''}],
        relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
        relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
        relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
        residences: [{current: false, metadata: {}, value: ''}],
        resourceName: '',
        sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
        skills: [{metadata: {}, value: ''}],
        taglines: [{metadata: {}, value: ''}],
        urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
        userDefined: [{key: '', metadata: {}, value: ''}]
      }
    }
  ],
  readMask: '',
  sources: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:batchCreateContacts',
  headers: {'content-type': 'application/json'},
  body: {
    contacts: [
      {
        contactPerson: {
          addresses: [
            {
              city: '',
              country: '',
              countryCode: '',
              extendedAddress: '',
              formattedType: '',
              formattedValue: '',
              metadata: {
                primary: false,
                source: {
                  etag: '',
                  id: '',
                  profileMetadata: {objectType: '', userTypes: []},
                  type: '',
                  updateTime: ''
                },
                sourcePrimary: false,
                verified: false
              },
              poBox: '',
              postalCode: '',
              region: '',
              streetAddress: '',
              type: ''
            }
          ],
          ageRange: '',
          ageRanges: [{ageRange: '', metadata: {}}],
          biographies: [{contentType: '', metadata: {}, value: ''}],
          birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
          braggingRights: [{metadata: {}, value: ''}],
          calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
          clientData: [{key: '', metadata: {}, value: ''}],
          coverPhotos: [{metadata: {}, url: ''}],
          emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
          etag: '',
          events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
          externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
          fileAses: [{metadata: {}, value: ''}],
          genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
          imClients: [
            {
              formattedProtocol: '',
              formattedType: '',
              metadata: {},
              protocol: '',
              type: '',
              username: ''
            }
          ],
          interests: [{metadata: {}, value: ''}],
          locales: [{metadata: {}, value: ''}],
          locations: [
            {
              buildingId: '',
              current: false,
              deskCode: '',
              floor: '',
              floorSection: '',
              metadata: {},
              type: '',
              value: ''
            }
          ],
          memberships: [
            {
              contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
              domainMembership: {inViewerDomain: false},
              metadata: {}
            }
          ],
          metadata: {
            deleted: false,
            linkedPeopleResourceNames: [],
            objectType: '',
            previousResourceNames: [],
            sources: [{}]
          },
          miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
          names: [
            {
              displayName: '',
              displayNameLastFirst: '',
              familyName: '',
              givenName: '',
              honorificPrefix: '',
              honorificSuffix: '',
              metadata: {},
              middleName: '',
              phoneticFamilyName: '',
              phoneticFullName: '',
              phoneticGivenName: '',
              phoneticHonorificPrefix: '',
              phoneticHonorificSuffix: '',
              phoneticMiddleName: '',
              unstructuredName: ''
            }
          ],
          nicknames: [{metadata: {}, type: '', value: ''}],
          occupations: [{metadata: {}, value: ''}],
          organizations: [
            {
              costCenter: '',
              current: false,
              department: '',
              domain: '',
              endDate: {},
              formattedType: '',
              fullTimeEquivalentMillipercent: 0,
              jobDescription: '',
              location: '',
              metadata: {},
              name: '',
              phoneticName: '',
              startDate: {},
              symbol: '',
              title: '',
              type: ''
            }
          ],
          phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
          photos: [{metadata: {}, url: ''}],
          relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
          relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
          relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
          residences: [{current: false, metadata: {}, value: ''}],
          resourceName: '',
          sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
          skills: [{metadata: {}, value: ''}],
          taglines: [{metadata: {}, value: ''}],
          urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
          userDefined: [{key: '', metadata: {}, value: ''}]
        }
      }
    ],
    readMask: '',
    sources: []
  },
  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}}/v1/people:batchCreateContacts');

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

req.type('json');
req.send({
  contacts: [
    {
      contactPerson: {
        addresses: [
          {
            city: '',
            country: '',
            countryCode: '',
            extendedAddress: '',
            formattedType: '',
            formattedValue: '',
            metadata: {
              primary: false,
              source: {
                etag: '',
                id: '',
                profileMetadata: {
                  objectType: '',
                  userTypes: []
                },
                type: '',
                updateTime: ''
              },
              sourcePrimary: false,
              verified: false
            },
            poBox: '',
            postalCode: '',
            region: '',
            streetAddress: '',
            type: ''
          }
        ],
        ageRange: '',
        ageRanges: [
          {
            ageRange: '',
            metadata: {}
          }
        ],
        biographies: [
          {
            contentType: '',
            metadata: {},
            value: ''
          }
        ],
        birthdays: [
          {
            date: {
              day: 0,
              month: 0,
              year: 0
            },
            metadata: {},
            text: ''
          }
        ],
        braggingRights: [
          {
            metadata: {},
            value: ''
          }
        ],
        calendarUrls: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            url: ''
          }
        ],
        clientData: [
          {
            key: '',
            metadata: {},
            value: ''
          }
        ],
        coverPhotos: [
          {
            metadata: {},
            url: ''
          }
        ],
        emailAddresses: [
          {
            displayName: '',
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        etag: '',
        events: [
          {
            date: {},
            formattedType: '',
            metadata: {},
            type: ''
          }
        ],
        externalIds: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        fileAses: [
          {
            metadata: {},
            value: ''
          }
        ],
        genders: [
          {
            addressMeAs: '',
            formattedValue: '',
            metadata: {},
            value: ''
          }
        ],
        imClients: [
          {
            formattedProtocol: '',
            formattedType: '',
            metadata: {},
            protocol: '',
            type: '',
            username: ''
          }
        ],
        interests: [
          {
            metadata: {},
            value: ''
          }
        ],
        locales: [
          {
            metadata: {},
            value: ''
          }
        ],
        locations: [
          {
            buildingId: '',
            current: false,
            deskCode: '',
            floor: '',
            floorSection: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        memberships: [
          {
            contactGroupMembership: {
              contactGroupId: '',
              contactGroupResourceName: ''
            },
            domainMembership: {
              inViewerDomain: false
            },
            metadata: {}
          }
        ],
        metadata: {
          deleted: false,
          linkedPeopleResourceNames: [],
          objectType: '',
          previousResourceNames: [],
          sources: [
            {}
          ]
        },
        miscKeywords: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        names: [
          {
            displayName: '',
            displayNameLastFirst: '',
            familyName: '',
            givenName: '',
            honorificPrefix: '',
            honorificSuffix: '',
            metadata: {},
            middleName: '',
            phoneticFamilyName: '',
            phoneticFullName: '',
            phoneticGivenName: '',
            phoneticHonorificPrefix: '',
            phoneticHonorificSuffix: '',
            phoneticMiddleName: '',
            unstructuredName: ''
          }
        ],
        nicknames: [
          {
            metadata: {},
            type: '',
            value: ''
          }
        ],
        occupations: [
          {
            metadata: {},
            value: ''
          }
        ],
        organizations: [
          {
            costCenter: '',
            current: false,
            department: '',
            domain: '',
            endDate: {},
            formattedType: '',
            fullTimeEquivalentMillipercent: 0,
            jobDescription: '',
            location: '',
            metadata: {},
            name: '',
            phoneticName: '',
            startDate: {},
            symbol: '',
            title: '',
            type: ''
          }
        ],
        phoneNumbers: [
          {
            canonicalForm: '',
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        photos: [
          {
            metadata: {},
            url: ''
          }
        ],
        relations: [
          {
            formattedType: '',
            metadata: {},
            person: '',
            type: ''
          }
        ],
        relationshipInterests: [
          {
            formattedValue: '',
            metadata: {},
            value: ''
          }
        ],
        relationshipStatuses: [
          {
            formattedValue: '',
            metadata: {},
            value: ''
          }
        ],
        residences: [
          {
            current: false,
            metadata: {},
            value: ''
          }
        ],
        resourceName: '',
        sipAddresses: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        skills: [
          {
            metadata: {},
            value: ''
          }
        ],
        taglines: [
          {
            metadata: {},
            value: ''
          }
        ],
        urls: [
          {
            formattedType: '',
            metadata: {},
            type: '',
            value: ''
          }
        ],
        userDefined: [
          {
            key: '',
            metadata: {},
            value: ''
          }
        ]
      }
    }
  ],
  readMask: '',
  sources: []
});

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}}/v1/people:batchCreateContacts',
  headers: {'content-type': 'application/json'},
  data: {
    contacts: [
      {
        contactPerson: {
          addresses: [
            {
              city: '',
              country: '',
              countryCode: '',
              extendedAddress: '',
              formattedType: '',
              formattedValue: '',
              metadata: {
                primary: false,
                source: {
                  etag: '',
                  id: '',
                  profileMetadata: {objectType: '', userTypes: []},
                  type: '',
                  updateTime: ''
                },
                sourcePrimary: false,
                verified: false
              },
              poBox: '',
              postalCode: '',
              region: '',
              streetAddress: '',
              type: ''
            }
          ],
          ageRange: '',
          ageRanges: [{ageRange: '', metadata: {}}],
          biographies: [{contentType: '', metadata: {}, value: ''}],
          birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
          braggingRights: [{metadata: {}, value: ''}],
          calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
          clientData: [{key: '', metadata: {}, value: ''}],
          coverPhotos: [{metadata: {}, url: ''}],
          emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
          etag: '',
          events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
          externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
          fileAses: [{metadata: {}, value: ''}],
          genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
          imClients: [
            {
              formattedProtocol: '',
              formattedType: '',
              metadata: {},
              protocol: '',
              type: '',
              username: ''
            }
          ],
          interests: [{metadata: {}, value: ''}],
          locales: [{metadata: {}, value: ''}],
          locations: [
            {
              buildingId: '',
              current: false,
              deskCode: '',
              floor: '',
              floorSection: '',
              metadata: {},
              type: '',
              value: ''
            }
          ],
          memberships: [
            {
              contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
              domainMembership: {inViewerDomain: false},
              metadata: {}
            }
          ],
          metadata: {
            deleted: false,
            linkedPeopleResourceNames: [],
            objectType: '',
            previousResourceNames: [],
            sources: [{}]
          },
          miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
          names: [
            {
              displayName: '',
              displayNameLastFirst: '',
              familyName: '',
              givenName: '',
              honorificPrefix: '',
              honorificSuffix: '',
              metadata: {},
              middleName: '',
              phoneticFamilyName: '',
              phoneticFullName: '',
              phoneticGivenName: '',
              phoneticHonorificPrefix: '',
              phoneticHonorificSuffix: '',
              phoneticMiddleName: '',
              unstructuredName: ''
            }
          ],
          nicknames: [{metadata: {}, type: '', value: ''}],
          occupations: [{metadata: {}, value: ''}],
          organizations: [
            {
              costCenter: '',
              current: false,
              department: '',
              domain: '',
              endDate: {},
              formattedType: '',
              fullTimeEquivalentMillipercent: 0,
              jobDescription: '',
              location: '',
              metadata: {},
              name: '',
              phoneticName: '',
              startDate: {},
              symbol: '',
              title: '',
              type: ''
            }
          ],
          phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
          photos: [{metadata: {}, url: ''}],
          relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
          relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
          relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
          residences: [{current: false, metadata: {}, value: ''}],
          resourceName: '',
          sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
          skills: [{metadata: {}, value: ''}],
          taglines: [{metadata: {}, value: ''}],
          urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
          userDefined: [{key: '', metadata: {}, value: ''}]
        }
      }
    ],
    readMask: '',
    sources: []
  }
};

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

const url = '{{baseUrl}}/v1/people:batchCreateContacts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contacts":[{"contactPerson":{"addresses":[{"city":"","country":"","countryCode":"","extendedAddress":"","formattedType":"","formattedValue":"","metadata":{"primary":false,"source":{"etag":"","id":"","profileMetadata":{"objectType":"","userTypes":[]},"type":"","updateTime":""},"sourcePrimary":false,"verified":false},"poBox":"","postalCode":"","region":"","streetAddress":"","type":""}],"ageRange":"","ageRanges":[{"ageRange":"","metadata":{}}],"biographies":[{"contentType":"","metadata":{},"value":""}],"birthdays":[{"date":{"day":0,"month":0,"year":0},"metadata":{},"text":""}],"braggingRights":[{"metadata":{},"value":""}],"calendarUrls":[{"formattedType":"","metadata":{},"type":"","url":""}],"clientData":[{"key":"","metadata":{},"value":""}],"coverPhotos":[{"metadata":{},"url":""}],"emailAddresses":[{"displayName":"","formattedType":"","metadata":{},"type":"","value":""}],"etag":"","events":[{"date":{},"formattedType":"","metadata":{},"type":""}],"externalIds":[{"formattedType":"","metadata":{},"type":"","value":""}],"fileAses":[{"metadata":{},"value":""}],"genders":[{"addressMeAs":"","formattedValue":"","metadata":{},"value":""}],"imClients":[{"formattedProtocol":"","formattedType":"","metadata":{},"protocol":"","type":"","username":""}],"interests":[{"metadata":{},"value":""}],"locales":[{"metadata":{},"value":""}],"locations":[{"buildingId":"","current":false,"deskCode":"","floor":"","floorSection":"","metadata":{},"type":"","value":""}],"memberships":[{"contactGroupMembership":{"contactGroupId":"","contactGroupResourceName":""},"domainMembership":{"inViewerDomain":false},"metadata":{}}],"metadata":{"deleted":false,"linkedPeopleResourceNames":[],"objectType":"","previousResourceNames":[],"sources":[{}]},"miscKeywords":[{"formattedType":"","metadata":{},"type":"","value":""}],"names":[{"displayName":"","displayNameLastFirst":"","familyName":"","givenName":"","honorificPrefix":"","honorificSuffix":"","metadata":{},"middleName":"","phoneticFamilyName":"","phoneticFullName":"","phoneticGivenName":"","phoneticHonorificPrefix":"","phoneticHonorificSuffix":"","phoneticMiddleName":"","unstructuredName":""}],"nicknames":[{"metadata":{},"type":"","value":""}],"occupations":[{"metadata":{},"value":""}],"organizations":[{"costCenter":"","current":false,"department":"","domain":"","endDate":{},"formattedType":"","fullTimeEquivalentMillipercent":0,"jobDescription":"","location":"","metadata":{},"name":"","phoneticName":"","startDate":{},"symbol":"","title":"","type":""}],"phoneNumbers":[{"canonicalForm":"","formattedType":"","metadata":{},"type":"","value":""}],"photos":[{"metadata":{},"url":""}],"relations":[{"formattedType":"","metadata":{},"person":"","type":""}],"relationshipInterests":[{"formattedValue":"","metadata":{},"value":""}],"relationshipStatuses":[{"formattedValue":"","metadata":{},"value":""}],"residences":[{"current":false,"metadata":{},"value":""}],"resourceName":"","sipAddresses":[{"formattedType":"","metadata":{},"type":"","value":""}],"skills":[{"metadata":{},"value":""}],"taglines":[{"metadata":{},"value":""}],"urls":[{"formattedType":"","metadata":{},"type":"","value":""}],"userDefined":[{"key":"","metadata":{},"value":""}]}}],"readMask":"","sources":[]}'
};

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 = @{ @"contacts": @[ @{ @"contactPerson": @{ @"addresses": @[ @{ @"city": @"", @"country": @"", @"countryCode": @"", @"extendedAddress": @"", @"formattedType": @"", @"formattedValue": @"", @"metadata": @{ @"primary": @NO, @"source": @{ @"etag": @"", @"id": @"", @"profileMetadata": @{ @"objectType": @"", @"userTypes": @[  ] }, @"type": @"", @"updateTime": @"" }, @"sourcePrimary": @NO, @"verified": @NO }, @"poBox": @"", @"postalCode": @"", @"region": @"", @"streetAddress": @"", @"type": @"" } ], @"ageRange": @"", @"ageRanges": @[ @{ @"ageRange": @"", @"metadata": @{  } } ], @"biographies": @[ @{ @"contentType": @"", @"metadata": @{  }, @"value": @"" } ], @"birthdays": @[ @{ @"date": @{ @"day": @0, @"month": @0, @"year": @0 }, @"metadata": @{  }, @"text": @"" } ], @"braggingRights": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"calendarUrls": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"url": @"" } ], @"clientData": @[ @{ @"key": @"", @"metadata": @{  }, @"value": @"" } ], @"coverPhotos": @[ @{ @"metadata": @{  }, @"url": @"" } ], @"emailAddresses": @[ @{ @"displayName": @"", @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"etag": @"", @"events": @[ @{ @"date": @{  }, @"formattedType": @"", @"metadata": @{  }, @"type": @"" } ], @"externalIds": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"fileAses": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"genders": @[ @{ @"addressMeAs": @"", @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ], @"imClients": @[ @{ @"formattedProtocol": @"", @"formattedType": @"", @"metadata": @{  }, @"protocol": @"", @"type": @"", @"username": @"" } ], @"interests": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"locales": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"locations": @[ @{ @"buildingId": @"", @"current": @NO, @"deskCode": @"", @"floor": @"", @"floorSection": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"memberships": @[ @{ @"contactGroupMembership": @{ @"contactGroupId": @"", @"contactGroupResourceName": @"" }, @"domainMembership": @{ @"inViewerDomain": @NO }, @"metadata": @{  } } ], @"metadata": @{ @"deleted": @NO, @"linkedPeopleResourceNames": @[  ], @"objectType": @"", @"previousResourceNames": @[  ], @"sources": @[ @{  } ] }, @"miscKeywords": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"names": @[ @{ @"displayName": @"", @"displayNameLastFirst": @"", @"familyName": @"", @"givenName": @"", @"honorificPrefix": @"", @"honorificSuffix": @"", @"metadata": @{  }, @"middleName": @"", @"phoneticFamilyName": @"", @"phoneticFullName": @"", @"phoneticGivenName": @"", @"phoneticHonorificPrefix": @"", @"phoneticHonorificSuffix": @"", @"phoneticMiddleName": @"", @"unstructuredName": @"" } ], @"nicknames": @[ @{ @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"occupations": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"organizations": @[ @{ @"costCenter": @"", @"current": @NO, @"department": @"", @"domain": @"", @"endDate": @{  }, @"formattedType": @"", @"fullTimeEquivalentMillipercent": @0, @"jobDescription": @"", @"location": @"", @"metadata": @{  }, @"name": @"", @"phoneticName": @"", @"startDate": @{  }, @"symbol": @"", @"title": @"", @"type": @"" } ], @"phoneNumbers": @[ @{ @"canonicalForm": @"", @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"photos": @[ @{ @"metadata": @{  }, @"url": @"" } ], @"relations": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"person": @"", @"type": @"" } ], @"relationshipInterests": @[ @{ @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ], @"relationshipStatuses": @[ @{ @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ], @"residences": @[ @{ @"current": @NO, @"metadata": @{  }, @"value": @"" } ], @"resourceName": @"", @"sipAddresses": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"skills": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"taglines": @[ @{ @"metadata": @{  }, @"value": @"" } ], @"urls": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ], @"userDefined": @[ @{ @"key": @"", @"metadata": @{  }, @"value": @"" } ] } } ],
                              @"readMask": @"",
                              @"sources": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/people:batchCreateContacts"]
                                                       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}}/v1/people:batchCreateContacts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:batchCreateContacts",
  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([
    'contacts' => [
        [
                'contactPerson' => [
                                'addresses' => [
                                                                [
                                                                                                                                'city' => '',
                                                                                                                                'country' => '',
                                                                                                                                'countryCode' => '',
                                                                                                                                'extendedAddress' => '',
                                                                                                                                'formattedType' => '',
                                                                                                                                'formattedValue' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                'primary' => null,
                                                                                                                                                                                                                                                                'source' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'etag' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'profileMetadata' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'objectType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'userTypes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'updateTime' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'sourcePrimary' => null,
                                                                                                                                                                                                                                                                'verified' => null
                                                                                                                                ],
                                                                                                                                'poBox' => '',
                                                                                                                                'postalCode' => '',
                                                                                                                                'region' => '',
                                                                                                                                'streetAddress' => '',
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'ageRange' => '',
                                'ageRanges' => [
                                                                [
                                                                                                                                'ageRange' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'biographies' => [
                                                                [
                                                                                                                                'contentType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'birthdays' => [
                                                                [
                                                                                                                                'date' => [
                                                                                                                                                                                                                                                                'day' => 0,
                                                                                                                                                                                                                                                                'month' => 0,
                                                                                                                                                                                                                                                                'year' => 0
                                                                                                                                ],
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'text' => ''
                                                                ]
                                ],
                                'braggingRights' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'calendarUrls' => [
                                                                [
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'url' => ''
                                                                ]
                                ],
                                'clientData' => [
                                                                [
                                                                                                                                'key' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'coverPhotos' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'url' => ''
                                                                ]
                                ],
                                'emailAddresses' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'etag' => '',
                                'events' => [
                                                                [
                                                                                                                                'date' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'externalIds' => [
                                                                [
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'fileAses' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'genders' => [
                                                                [
                                                                                                                                'addressMeAs' => '',
                                                                                                                                'formattedValue' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'imClients' => [
                                                                [
                                                                                                                                'formattedProtocol' => '',
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'protocol' => '',
                                                                                                                                'type' => '',
                                                                                                                                'username' => ''
                                                                ]
                                ],
                                'interests' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'locales' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'locations' => [
                                                                [
                                                                                                                                'buildingId' => '',
                                                                                                                                'current' => null,
                                                                                                                                'deskCode' => '',
                                                                                                                                'floor' => '',
                                                                                                                                'floorSection' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'memberships' => [
                                                                [
                                                                                                                                'contactGroupMembership' => [
                                                                                                                                                                                                                                                                'contactGroupId' => '',
                                                                                                                                                                                                                                                                'contactGroupResourceName' => ''
                                                                                                                                ],
                                                                                                                                'domainMembership' => [
                                                                                                                                                                                                                                                                'inViewerDomain' => null
                                                                                                                                ],
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'metadata' => [
                                                                'deleted' => null,
                                                                'linkedPeopleResourceNames' => [
                                                                                                                                
                                                                ],
                                                                'objectType' => '',
                                                                'previousResourceNames' => [
                                                                                                                                
                                                                ],
                                                                'sources' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'miscKeywords' => [
                                                                [
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'names' => [
                                                                [
                                                                                                                                'displayName' => '',
                                                                                                                                'displayNameLastFirst' => '',
                                                                                                                                'familyName' => '',
                                                                                                                                'givenName' => '',
                                                                                                                                'honorificPrefix' => '',
                                                                                                                                'honorificSuffix' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'middleName' => '',
                                                                                                                                'phoneticFamilyName' => '',
                                                                                                                                'phoneticFullName' => '',
                                                                                                                                'phoneticGivenName' => '',
                                                                                                                                'phoneticHonorificPrefix' => '',
                                                                                                                                'phoneticHonorificSuffix' => '',
                                                                                                                                'phoneticMiddleName' => '',
                                                                                                                                'unstructuredName' => ''
                                                                ]
                                ],
                                'nicknames' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'occupations' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'organizations' => [
                                                                [
                                                                                                                                'costCenter' => '',
                                                                                                                                'current' => null,
                                                                                                                                'department' => '',
                                                                                                                                'domain' => '',
                                                                                                                                'endDate' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'formattedType' => '',
                                                                                                                                'fullTimeEquivalentMillipercent' => 0,
                                                                                                                                'jobDescription' => '',
                                                                                                                                'location' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => '',
                                                                                                                                'phoneticName' => '',
                                                                                                                                'startDate' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'symbol' => '',
                                                                                                                                'title' => '',
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'phoneNumbers' => [
                                                                [
                                                                                                                                'canonicalForm' => '',
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'photos' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'url' => ''
                                                                ]
                                ],
                                'relations' => [
                                                                [
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'person' => '',
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'relationshipInterests' => [
                                                                [
                                                                                                                                'formattedValue' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'relationshipStatuses' => [
                                                                [
                                                                                                                                'formattedValue' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'residences' => [
                                                                [
                                                                                                                                'current' => null,
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'resourceName' => '',
                                'sipAddresses' => [
                                                                [
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'skills' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'taglines' => [
                                                                [
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'urls' => [
                                                                [
                                                                                                                                'formattedType' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'userDefined' => [
                                                                [
                                                                                                                                'key' => '',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'value' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'readMask' => '',
    'sources' => [
        
    ]
  ]),
  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}}/v1/people:batchCreateContacts', [
  'body' => '{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:batchCreateContacts');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contacts' => [
    [
        'contactPerson' => [
                'addresses' => [
                                [
                                                                'city' => '',
                                                                'country' => '',
                                                                'countryCode' => '',
                                                                'extendedAddress' => '',
                                                                'formattedType' => '',
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                'primary' => null,
                                                                                                                                'source' => [
                                                                                                                                                                                                                                                                'etag' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'profileMetadata' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'objectType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'userTypes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'updateTime' => ''
                                                                                                                                ],
                                                                                                                                'sourcePrimary' => null,
                                                                                                                                'verified' => null
                                                                ],
                                                                'poBox' => '',
                                                                'postalCode' => '',
                                                                'region' => '',
                                                                'streetAddress' => '',
                                                                'type' => ''
                                ]
                ],
                'ageRange' => '',
                'ageRanges' => [
                                [
                                                                'ageRange' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'biographies' => [
                                [
                                                                'contentType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'birthdays' => [
                                [
                                                                'date' => [
                                                                                                                                'day' => 0,
                                                                                                                                'month' => 0,
                                                                                                                                'year' => 0
                                                                ],
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'text' => ''
                                ]
                ],
                'braggingRights' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'calendarUrls' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'url' => ''
                                ]
                ],
                'clientData' => [
                                [
                                                                'key' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'coverPhotos' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'url' => ''
                                ]
                ],
                'emailAddresses' => [
                                [
                                                                'displayName' => '',
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'etag' => '',
                'events' => [
                                [
                                                                'date' => [
                                                                                                                                
                                                                ],
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'externalIds' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'fileAses' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'genders' => [
                                [
                                                                'addressMeAs' => '',
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'imClients' => [
                                [
                                                                'formattedProtocol' => '',
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'protocol' => '',
                                                                'type' => '',
                                                                'username' => ''
                                ]
                ],
                'interests' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'locales' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'locations' => [
                                [
                                                                'buildingId' => '',
                                                                'current' => null,
                                                                'deskCode' => '',
                                                                'floor' => '',
                                                                'floorSection' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'memberships' => [
                                [
                                                                'contactGroupMembership' => [
                                                                                                                                'contactGroupId' => '',
                                                                                                                                'contactGroupResourceName' => ''
                                                                ],
                                                                'domainMembership' => [
                                                                                                                                'inViewerDomain' => null
                                                                ],
                                                                'metadata' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'metadata' => [
                                'deleted' => null,
                                'linkedPeopleResourceNames' => [
                                                                
                                ],
                                'objectType' => '',
                                'previousResourceNames' => [
                                                                
                                ],
                                'sources' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'miscKeywords' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'names' => [
                                [
                                                                'displayName' => '',
                                                                'displayNameLastFirst' => '',
                                                                'familyName' => '',
                                                                'givenName' => '',
                                                                'honorificPrefix' => '',
                                                                'honorificSuffix' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'middleName' => '',
                                                                'phoneticFamilyName' => '',
                                                                'phoneticFullName' => '',
                                                                'phoneticGivenName' => '',
                                                                'phoneticHonorificPrefix' => '',
                                                                'phoneticHonorificSuffix' => '',
                                                                'phoneticMiddleName' => '',
                                                                'unstructuredName' => ''
                                ]
                ],
                'nicknames' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'occupations' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'organizations' => [
                                [
                                                                'costCenter' => '',
                                                                'current' => null,
                                                                'department' => '',
                                                                'domain' => '',
                                                                'endDate' => [
                                                                                                                                
                                                                ],
                                                                'formattedType' => '',
                                                                'fullTimeEquivalentMillipercent' => 0,
                                                                'jobDescription' => '',
                                                                'location' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'name' => '',
                                                                'phoneticName' => '',
                                                                'startDate' => [
                                                                                                                                
                                                                ],
                                                                'symbol' => '',
                                                                'title' => '',
                                                                'type' => ''
                                ]
                ],
                'phoneNumbers' => [
                                [
                                                                'canonicalForm' => '',
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'photos' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'url' => ''
                                ]
                ],
                'relations' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'person' => '',
                                                                'type' => ''
                                ]
                ],
                'relationshipInterests' => [
                                [
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'relationshipStatuses' => [
                                [
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'residences' => [
                                [
                                                                'current' => null,
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'resourceName' => '',
                'sipAddresses' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'skills' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'taglines' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'urls' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'userDefined' => [
                                [
                                                                'key' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ]
        ]
    ]
  ],
  'readMask' => '',
  'sources' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contacts' => [
    [
        'contactPerson' => [
                'addresses' => [
                                [
                                                                'city' => '',
                                                                'country' => '',
                                                                'countryCode' => '',
                                                                'extendedAddress' => '',
                                                                'formattedType' => '',
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                'primary' => null,
                                                                                                                                'source' => [
                                                                                                                                                                                                                                                                'etag' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'profileMetadata' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'objectType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'userTypes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'updateTime' => ''
                                                                                                                                ],
                                                                                                                                'sourcePrimary' => null,
                                                                                                                                'verified' => null
                                                                ],
                                                                'poBox' => '',
                                                                'postalCode' => '',
                                                                'region' => '',
                                                                'streetAddress' => '',
                                                                'type' => ''
                                ]
                ],
                'ageRange' => '',
                'ageRanges' => [
                                [
                                                                'ageRange' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'biographies' => [
                                [
                                                                'contentType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'birthdays' => [
                                [
                                                                'date' => [
                                                                                                                                'day' => 0,
                                                                                                                                'month' => 0,
                                                                                                                                'year' => 0
                                                                ],
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'text' => ''
                                ]
                ],
                'braggingRights' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'calendarUrls' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'url' => ''
                                ]
                ],
                'clientData' => [
                                [
                                                                'key' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'coverPhotos' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'url' => ''
                                ]
                ],
                'emailAddresses' => [
                                [
                                                                'displayName' => '',
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'etag' => '',
                'events' => [
                                [
                                                                'date' => [
                                                                                                                                
                                                                ],
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'externalIds' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'fileAses' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'genders' => [
                                [
                                                                'addressMeAs' => '',
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'imClients' => [
                                [
                                                                'formattedProtocol' => '',
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'protocol' => '',
                                                                'type' => '',
                                                                'username' => ''
                                ]
                ],
                'interests' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'locales' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'locations' => [
                                [
                                                                'buildingId' => '',
                                                                'current' => null,
                                                                'deskCode' => '',
                                                                'floor' => '',
                                                                'floorSection' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'memberships' => [
                                [
                                                                'contactGroupMembership' => [
                                                                                                                                'contactGroupId' => '',
                                                                                                                                'contactGroupResourceName' => ''
                                                                ],
                                                                'domainMembership' => [
                                                                                                                                'inViewerDomain' => null
                                                                ],
                                                                'metadata' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'metadata' => [
                                'deleted' => null,
                                'linkedPeopleResourceNames' => [
                                                                
                                ],
                                'objectType' => '',
                                'previousResourceNames' => [
                                                                
                                ],
                                'sources' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'miscKeywords' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'names' => [
                                [
                                                                'displayName' => '',
                                                                'displayNameLastFirst' => '',
                                                                'familyName' => '',
                                                                'givenName' => '',
                                                                'honorificPrefix' => '',
                                                                'honorificSuffix' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'middleName' => '',
                                                                'phoneticFamilyName' => '',
                                                                'phoneticFullName' => '',
                                                                'phoneticGivenName' => '',
                                                                'phoneticHonorificPrefix' => '',
                                                                'phoneticHonorificSuffix' => '',
                                                                'phoneticMiddleName' => '',
                                                                'unstructuredName' => ''
                                ]
                ],
                'nicknames' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'occupations' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'organizations' => [
                                [
                                                                'costCenter' => '',
                                                                'current' => null,
                                                                'department' => '',
                                                                'domain' => '',
                                                                'endDate' => [
                                                                                                                                
                                                                ],
                                                                'formattedType' => '',
                                                                'fullTimeEquivalentMillipercent' => 0,
                                                                'jobDescription' => '',
                                                                'location' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'name' => '',
                                                                'phoneticName' => '',
                                                                'startDate' => [
                                                                                                                                
                                                                ],
                                                                'symbol' => '',
                                                                'title' => '',
                                                                'type' => ''
                                ]
                ],
                'phoneNumbers' => [
                                [
                                                                'canonicalForm' => '',
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'photos' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'url' => ''
                                ]
                ],
                'relations' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'person' => '',
                                                                'type' => ''
                                ]
                ],
                'relationshipInterests' => [
                                [
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'relationshipStatuses' => [
                                [
                                                                'formattedValue' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'residences' => [
                                [
                                                                'current' => null,
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'resourceName' => '',
                'sipAddresses' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'skills' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'taglines' => [
                                [
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ],
                'urls' => [
                                [
                                                                'formattedType' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'userDefined' => [
                                [
                                                                'key' => '',
                                                                'metadata' => [
                                                                                                                                
                                                                ],
                                                                'value' => ''
                                ]
                ]
        ]
    ]
  ],
  'readMask' => '',
  'sources' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/people:batchCreateContacts');
$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}}/v1/people:batchCreateContacts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/people:batchCreateContacts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}'
import http.client

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

payload = "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}"

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

conn.request("POST", "/baseUrl/v1/people:batchCreateContacts", payload, headers)

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

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

url = "{{baseUrl}}/v1/people:batchCreateContacts"

payload = {
    "contacts": [{ "contactPerson": {
                "addresses": [
                    {
                        "city": "",
                        "country": "",
                        "countryCode": "",
                        "extendedAddress": "",
                        "formattedType": "",
                        "formattedValue": "",
                        "metadata": {
                            "primary": False,
                            "source": {
                                "etag": "",
                                "id": "",
                                "profileMetadata": {
                                    "objectType": "",
                                    "userTypes": []
                                },
                                "type": "",
                                "updateTime": ""
                            },
                            "sourcePrimary": False,
                            "verified": False
                        },
                        "poBox": "",
                        "postalCode": "",
                        "region": "",
                        "streetAddress": "",
                        "type": ""
                    }
                ],
                "ageRange": "",
                "ageRanges": [
                    {
                        "ageRange": "",
                        "metadata": {}
                    }
                ],
                "biographies": [
                    {
                        "contentType": "",
                        "metadata": {},
                        "value": ""
                    }
                ],
                "birthdays": [
                    {
                        "date": {
                            "day": 0,
                            "month": 0,
                            "year": 0
                        },
                        "metadata": {},
                        "text": ""
                    }
                ],
                "braggingRights": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "calendarUrls": [
                    {
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "url": ""
                    }
                ],
                "clientData": [
                    {
                        "key": "",
                        "metadata": {},
                        "value": ""
                    }
                ],
                "coverPhotos": [
                    {
                        "metadata": {},
                        "url": ""
                    }
                ],
                "emailAddresses": [
                    {
                        "displayName": "",
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "etag": "",
                "events": [
                    {
                        "date": {},
                        "formattedType": "",
                        "metadata": {},
                        "type": ""
                    }
                ],
                "externalIds": [
                    {
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "fileAses": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "genders": [
                    {
                        "addressMeAs": "",
                        "formattedValue": "",
                        "metadata": {},
                        "value": ""
                    }
                ],
                "imClients": [
                    {
                        "formattedProtocol": "",
                        "formattedType": "",
                        "metadata": {},
                        "protocol": "",
                        "type": "",
                        "username": ""
                    }
                ],
                "interests": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "locales": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "locations": [
                    {
                        "buildingId": "",
                        "current": False,
                        "deskCode": "",
                        "floor": "",
                        "floorSection": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "memberships": [
                    {
                        "contactGroupMembership": {
                            "contactGroupId": "",
                            "contactGroupResourceName": ""
                        },
                        "domainMembership": { "inViewerDomain": False },
                        "metadata": {}
                    }
                ],
                "metadata": {
                    "deleted": False,
                    "linkedPeopleResourceNames": [],
                    "objectType": "",
                    "previousResourceNames": [],
                    "sources": [{}]
                },
                "miscKeywords": [
                    {
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "names": [
                    {
                        "displayName": "",
                        "displayNameLastFirst": "",
                        "familyName": "",
                        "givenName": "",
                        "honorificPrefix": "",
                        "honorificSuffix": "",
                        "metadata": {},
                        "middleName": "",
                        "phoneticFamilyName": "",
                        "phoneticFullName": "",
                        "phoneticGivenName": "",
                        "phoneticHonorificPrefix": "",
                        "phoneticHonorificSuffix": "",
                        "phoneticMiddleName": "",
                        "unstructuredName": ""
                    }
                ],
                "nicknames": [
                    {
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "occupations": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "organizations": [
                    {
                        "costCenter": "",
                        "current": False,
                        "department": "",
                        "domain": "",
                        "endDate": {},
                        "formattedType": "",
                        "fullTimeEquivalentMillipercent": 0,
                        "jobDescription": "",
                        "location": "",
                        "metadata": {},
                        "name": "",
                        "phoneticName": "",
                        "startDate": {},
                        "symbol": "",
                        "title": "",
                        "type": ""
                    }
                ],
                "phoneNumbers": [
                    {
                        "canonicalForm": "",
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "photos": [
                    {
                        "metadata": {},
                        "url": ""
                    }
                ],
                "relations": [
                    {
                        "formattedType": "",
                        "metadata": {},
                        "person": "",
                        "type": ""
                    }
                ],
                "relationshipInterests": [
                    {
                        "formattedValue": "",
                        "metadata": {},
                        "value": ""
                    }
                ],
                "relationshipStatuses": [
                    {
                        "formattedValue": "",
                        "metadata": {},
                        "value": ""
                    }
                ],
                "residences": [
                    {
                        "current": False,
                        "metadata": {},
                        "value": ""
                    }
                ],
                "resourceName": "",
                "sipAddresses": [
                    {
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "skills": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "taglines": [
                    {
                        "metadata": {},
                        "value": ""
                    }
                ],
                "urls": [
                    {
                        "formattedType": "",
                        "metadata": {},
                        "type": "",
                        "value": ""
                    }
                ],
                "userDefined": [
                    {
                        "key": "",
                        "metadata": {},
                        "value": ""
                    }
                ]
            } }],
    "readMask": "",
    "sources": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/people:batchCreateContacts"

payload <- "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\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}}/v1/people:batchCreateContacts")

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  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\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/v1/people:batchCreateContacts') do |req|
  req.body = "{\n  \"contacts\": [\n    {\n      \"contactPerson\": {\n        \"addresses\": [\n          {\n            \"city\": \"\",\n            \"country\": \"\",\n            \"countryCode\": \"\",\n            \"extendedAddress\": \"\",\n            \"formattedType\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {\n              \"primary\": false,\n              \"source\": {\n                \"etag\": \"\",\n                \"id\": \"\",\n                \"profileMetadata\": {\n                  \"objectType\": \"\",\n                  \"userTypes\": []\n                },\n                \"type\": \"\",\n                \"updateTime\": \"\"\n              },\n              \"sourcePrimary\": false,\n              \"verified\": false\n            },\n            \"poBox\": \"\",\n            \"postalCode\": \"\",\n            \"region\": \"\",\n            \"streetAddress\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"ageRange\": \"\",\n        \"ageRanges\": [\n          {\n            \"ageRange\": \"\",\n            \"metadata\": {}\n          }\n        ],\n        \"biographies\": [\n          {\n            \"contentType\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"birthdays\": [\n          {\n            \"date\": {\n              \"day\": 0,\n              \"month\": 0,\n              \"year\": 0\n            },\n            \"metadata\": {},\n            \"text\": \"\"\n          }\n        ],\n        \"braggingRights\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"calendarUrls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"clientData\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"coverPhotos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"emailAddresses\": [\n          {\n            \"displayName\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"etag\": \"\",\n        \"events\": [\n          {\n            \"date\": {},\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\"\n          }\n        ],\n        \"externalIds\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"fileAses\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"genders\": [\n          {\n            \"addressMeAs\": \"\",\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"imClients\": [\n          {\n            \"formattedProtocol\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"protocol\": \"\",\n            \"type\": \"\",\n            \"username\": \"\"\n          }\n        ],\n        \"interests\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locales\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"locations\": [\n          {\n            \"buildingId\": \"\",\n            \"current\": false,\n            \"deskCode\": \"\",\n            \"floor\": \"\",\n            \"floorSection\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"memberships\": [\n          {\n            \"contactGroupMembership\": {\n              \"contactGroupId\": \"\",\n              \"contactGroupResourceName\": \"\"\n            },\n            \"domainMembership\": {\n              \"inViewerDomain\": false\n            },\n            \"metadata\": {}\n          }\n        ],\n        \"metadata\": {\n          \"deleted\": false,\n          \"linkedPeopleResourceNames\": [],\n          \"objectType\": \"\",\n          \"previousResourceNames\": [],\n          \"sources\": [\n            {}\n          ]\n        },\n        \"miscKeywords\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"names\": [\n          {\n            \"displayName\": \"\",\n            \"displayNameLastFirst\": \"\",\n            \"familyName\": \"\",\n            \"givenName\": \"\",\n            \"honorificPrefix\": \"\",\n            \"honorificSuffix\": \"\",\n            \"metadata\": {},\n            \"middleName\": \"\",\n            \"phoneticFamilyName\": \"\",\n            \"phoneticFullName\": \"\",\n            \"phoneticGivenName\": \"\",\n            \"phoneticHonorificPrefix\": \"\",\n            \"phoneticHonorificSuffix\": \"\",\n            \"phoneticMiddleName\": \"\",\n            \"unstructuredName\": \"\"\n          }\n        ],\n        \"nicknames\": [\n          {\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"occupations\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"organizations\": [\n          {\n            \"costCenter\": \"\",\n            \"current\": false,\n            \"department\": \"\",\n            \"domain\": \"\",\n            \"endDate\": {},\n            \"formattedType\": \"\",\n            \"fullTimeEquivalentMillipercent\": 0,\n            \"jobDescription\": \"\",\n            \"location\": \"\",\n            \"metadata\": {},\n            \"name\": \"\",\n            \"phoneticName\": \"\",\n            \"startDate\": {},\n            \"symbol\": \"\",\n            \"title\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"phoneNumbers\": [\n          {\n            \"canonicalForm\": \"\",\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"photos\": [\n          {\n            \"metadata\": {},\n            \"url\": \"\"\n          }\n        ],\n        \"relations\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"person\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"relationshipInterests\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"relationshipStatuses\": [\n          {\n            \"formattedValue\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"residences\": [\n          {\n            \"current\": false,\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"resourceName\": \"\",\n        \"sipAddresses\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"skills\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"taglines\": [\n          {\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ],\n        \"urls\": [\n          {\n            \"formattedType\": \"\",\n            \"metadata\": {},\n            \"type\": \"\",\n            \"value\": \"\"\n          }\n        ],\n        \"userDefined\": [\n          {\n            \"key\": \"\",\n            \"metadata\": {},\n            \"value\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"readMask\": \"\",\n  \"sources\": []\n}"
end

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

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

    let payload = json!({
        "contacts": (json!({"contactPerson": json!({
                    "addresses": (
                        json!({
                            "city": "",
                            "country": "",
                            "countryCode": "",
                            "extendedAddress": "",
                            "formattedType": "",
                            "formattedValue": "",
                            "metadata": json!({
                                "primary": false,
                                "source": json!({
                                    "etag": "",
                                    "id": "",
                                    "profileMetadata": json!({
                                        "objectType": "",
                                        "userTypes": ()
                                    }),
                                    "type": "",
                                    "updateTime": ""
                                }),
                                "sourcePrimary": false,
                                "verified": false
                            }),
                            "poBox": "",
                            "postalCode": "",
                            "region": "",
                            "streetAddress": "",
                            "type": ""
                        })
                    ),
                    "ageRange": "",
                    "ageRanges": (
                        json!({
                            "ageRange": "",
                            "metadata": json!({})
                        })
                    ),
                    "biographies": (
                        json!({
                            "contentType": "",
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "birthdays": (
                        json!({
                            "date": json!({
                                "day": 0,
                                "month": 0,
                                "year": 0
                            }),
                            "metadata": json!({}),
                            "text": ""
                        })
                    ),
                    "braggingRights": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "calendarUrls": (
                        json!({
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "url": ""
                        })
                    ),
                    "clientData": (
                        json!({
                            "key": "",
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "coverPhotos": (
                        json!({
                            "metadata": json!({}),
                            "url": ""
                        })
                    ),
                    "emailAddresses": (
                        json!({
                            "displayName": "",
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "etag": "",
                    "events": (
                        json!({
                            "date": json!({}),
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": ""
                        })
                    ),
                    "externalIds": (
                        json!({
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "fileAses": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "genders": (
                        json!({
                            "addressMeAs": "",
                            "formattedValue": "",
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "imClients": (
                        json!({
                            "formattedProtocol": "",
                            "formattedType": "",
                            "metadata": json!({}),
                            "protocol": "",
                            "type": "",
                            "username": ""
                        })
                    ),
                    "interests": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "locales": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "locations": (
                        json!({
                            "buildingId": "",
                            "current": false,
                            "deskCode": "",
                            "floor": "",
                            "floorSection": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "memberships": (
                        json!({
                            "contactGroupMembership": json!({
                                "contactGroupId": "",
                                "contactGroupResourceName": ""
                            }),
                            "domainMembership": json!({"inViewerDomain": false}),
                            "metadata": json!({})
                        })
                    ),
                    "metadata": json!({
                        "deleted": false,
                        "linkedPeopleResourceNames": (),
                        "objectType": "",
                        "previousResourceNames": (),
                        "sources": (json!({}))
                    }),
                    "miscKeywords": (
                        json!({
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "names": (
                        json!({
                            "displayName": "",
                            "displayNameLastFirst": "",
                            "familyName": "",
                            "givenName": "",
                            "honorificPrefix": "",
                            "honorificSuffix": "",
                            "metadata": json!({}),
                            "middleName": "",
                            "phoneticFamilyName": "",
                            "phoneticFullName": "",
                            "phoneticGivenName": "",
                            "phoneticHonorificPrefix": "",
                            "phoneticHonorificSuffix": "",
                            "phoneticMiddleName": "",
                            "unstructuredName": ""
                        })
                    ),
                    "nicknames": (
                        json!({
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "occupations": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "organizations": (
                        json!({
                            "costCenter": "",
                            "current": false,
                            "department": "",
                            "domain": "",
                            "endDate": json!({}),
                            "formattedType": "",
                            "fullTimeEquivalentMillipercent": 0,
                            "jobDescription": "",
                            "location": "",
                            "metadata": json!({}),
                            "name": "",
                            "phoneticName": "",
                            "startDate": json!({}),
                            "symbol": "",
                            "title": "",
                            "type": ""
                        })
                    ),
                    "phoneNumbers": (
                        json!({
                            "canonicalForm": "",
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "photos": (
                        json!({
                            "metadata": json!({}),
                            "url": ""
                        })
                    ),
                    "relations": (
                        json!({
                            "formattedType": "",
                            "metadata": json!({}),
                            "person": "",
                            "type": ""
                        })
                    ),
                    "relationshipInterests": (
                        json!({
                            "formattedValue": "",
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "relationshipStatuses": (
                        json!({
                            "formattedValue": "",
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "residences": (
                        json!({
                            "current": false,
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "resourceName": "",
                    "sipAddresses": (
                        json!({
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "skills": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "taglines": (
                        json!({
                            "metadata": json!({}),
                            "value": ""
                        })
                    ),
                    "urls": (
                        json!({
                            "formattedType": "",
                            "metadata": json!({}),
                            "type": "",
                            "value": ""
                        })
                    ),
                    "userDefined": (
                        json!({
                            "key": "",
                            "metadata": json!({}),
                            "value": ""
                        })
                    )
                })})),
        "readMask": "",
        "sources": ()
    });

    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}}/v1/people:batchCreateContacts \
  --header 'content-type: application/json' \
  --data '{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}'
echo '{
  "contacts": [
    {
      "contactPerson": {
        "addresses": [
          {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
              "primary": false,
              "source": {
                "etag": "",
                "id": "",
                "profileMetadata": {
                  "objectType": "",
                  "userTypes": []
                },
                "type": "",
                "updateTime": ""
              },
              "sourcePrimary": false,
              "verified": false
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          }
        ],
        "ageRange": "",
        "ageRanges": [
          {
            "ageRange": "",
            "metadata": {}
          }
        ],
        "biographies": [
          {
            "contentType": "",
            "metadata": {},
            "value": ""
          }
        ],
        "birthdays": [
          {
            "date": {
              "day": 0,
              "month": 0,
              "year": 0
            },
            "metadata": {},
            "text": ""
          }
        ],
        "braggingRights": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "calendarUrls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
          }
        ],
        "clientData": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ],
        "coverPhotos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "emailAddresses": [
          {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "etag": "",
        "events": [
          {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
          }
        ],
        "externalIds": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "fileAses": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "genders": [
          {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "imClients": [
          {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
          }
        ],
        "interests": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locales": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "locations": [
          {
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "memberships": [
          {
            "contactGroupMembership": {
              "contactGroupId": "",
              "contactGroupResourceName": ""
            },
            "domainMembership": {
              "inViewerDomain": false
            },
            "metadata": {}
          }
        ],
        "metadata": {
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [
            {}
          ]
        },
        "miscKeywords": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "names": [
          {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          }
        ],
        "nicknames": [
          {
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "occupations": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "organizations": [
          {
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
          }
        ],
        "phoneNumbers": [
          {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "photos": [
          {
            "metadata": {},
            "url": ""
          }
        ],
        "relations": [
          {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
          }
        ],
        "relationshipInterests": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "relationshipStatuses": [
          {
            "formattedValue": "",
            "metadata": {},
            "value": ""
          }
        ],
        "residences": [
          {
            "current": false,
            "metadata": {},
            "value": ""
          }
        ],
        "resourceName": "",
        "sipAddresses": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "skills": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "taglines": [
          {
            "metadata": {},
            "value": ""
          }
        ],
        "urls": [
          {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
          }
        ],
        "userDefined": [
          {
            "key": "",
            "metadata": {},
            "value": ""
          }
        ]
      }
    }
  ],
  "readMask": "",
  "sources": []
}' |  \
  http POST {{baseUrl}}/v1/people:batchCreateContacts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contacts": [\n    {\n      "contactPerson": {\n        "addresses": [\n          {\n            "city": "",\n            "country": "",\n            "countryCode": "",\n            "extendedAddress": "",\n            "formattedType": "",\n            "formattedValue": "",\n            "metadata": {\n              "primary": false,\n              "source": {\n                "etag": "",\n                "id": "",\n                "profileMetadata": {\n                  "objectType": "",\n                  "userTypes": []\n                },\n                "type": "",\n                "updateTime": ""\n              },\n              "sourcePrimary": false,\n              "verified": false\n            },\n            "poBox": "",\n            "postalCode": "",\n            "region": "",\n            "streetAddress": "",\n            "type": ""\n          }\n        ],\n        "ageRange": "",\n        "ageRanges": [\n          {\n            "ageRange": "",\n            "metadata": {}\n          }\n        ],\n        "biographies": [\n          {\n            "contentType": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "birthdays": [\n          {\n            "date": {\n              "day": 0,\n              "month": 0,\n              "year": 0\n            },\n            "metadata": {},\n            "text": ""\n          }\n        ],\n        "braggingRights": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "calendarUrls": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "url": ""\n          }\n        ],\n        "clientData": [\n          {\n            "key": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "coverPhotos": [\n          {\n            "metadata": {},\n            "url": ""\n          }\n        ],\n        "emailAddresses": [\n          {\n            "displayName": "",\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "etag": "",\n        "events": [\n          {\n            "date": {},\n            "formattedType": "",\n            "metadata": {},\n            "type": ""\n          }\n        ],\n        "externalIds": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "fileAses": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "genders": [\n          {\n            "addressMeAs": "",\n            "formattedValue": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "imClients": [\n          {\n            "formattedProtocol": "",\n            "formattedType": "",\n            "metadata": {},\n            "protocol": "",\n            "type": "",\n            "username": ""\n          }\n        ],\n        "interests": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "locales": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "locations": [\n          {\n            "buildingId": "",\n            "current": false,\n            "deskCode": "",\n            "floor": "",\n            "floorSection": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "memberships": [\n          {\n            "contactGroupMembership": {\n              "contactGroupId": "",\n              "contactGroupResourceName": ""\n            },\n            "domainMembership": {\n              "inViewerDomain": false\n            },\n            "metadata": {}\n          }\n        ],\n        "metadata": {\n          "deleted": false,\n          "linkedPeopleResourceNames": [],\n          "objectType": "",\n          "previousResourceNames": [],\n          "sources": [\n            {}\n          ]\n        },\n        "miscKeywords": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "names": [\n          {\n            "displayName": "",\n            "displayNameLastFirst": "",\n            "familyName": "",\n            "givenName": "",\n            "honorificPrefix": "",\n            "honorificSuffix": "",\n            "metadata": {},\n            "middleName": "",\n            "phoneticFamilyName": "",\n            "phoneticFullName": "",\n            "phoneticGivenName": "",\n            "phoneticHonorificPrefix": "",\n            "phoneticHonorificSuffix": "",\n            "phoneticMiddleName": "",\n            "unstructuredName": ""\n          }\n        ],\n        "nicknames": [\n          {\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "occupations": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "organizations": [\n          {\n            "costCenter": "",\n            "current": false,\n            "department": "",\n            "domain": "",\n            "endDate": {},\n            "formattedType": "",\n            "fullTimeEquivalentMillipercent": 0,\n            "jobDescription": "",\n            "location": "",\n            "metadata": {},\n            "name": "",\n            "phoneticName": "",\n            "startDate": {},\n            "symbol": "",\n            "title": "",\n            "type": ""\n          }\n        ],\n        "phoneNumbers": [\n          {\n            "canonicalForm": "",\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "photos": [\n          {\n            "metadata": {},\n            "url": ""\n          }\n        ],\n        "relations": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "person": "",\n            "type": ""\n          }\n        ],\n        "relationshipInterests": [\n          {\n            "formattedValue": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "relationshipStatuses": [\n          {\n            "formattedValue": "",\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "residences": [\n          {\n            "current": false,\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "resourceName": "",\n        "sipAddresses": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "skills": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "taglines": [\n          {\n            "metadata": {},\n            "value": ""\n          }\n        ],\n        "urls": [\n          {\n            "formattedType": "",\n            "metadata": {},\n            "type": "",\n            "value": ""\n          }\n        ],\n        "userDefined": [\n          {\n            "key": "",\n            "metadata": {},\n            "value": ""\n          }\n        ]\n      }\n    }\n  ],\n  "readMask": "",\n  "sources": []\n}' \
  --output-document \
  - {{baseUrl}}/v1/people:batchCreateContacts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contacts": [["contactPerson": [
        "addresses": [
          [
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": [
              "primary": false,
              "source": [
                "etag": "",
                "id": "",
                "profileMetadata": [
                  "objectType": "",
                  "userTypes": []
                ],
                "type": "",
                "updateTime": ""
              ],
              "sourcePrimary": false,
              "verified": false
            ],
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
          ]
        ],
        "ageRange": "",
        "ageRanges": [
          [
            "ageRange": "",
            "metadata": []
          ]
        ],
        "biographies": [
          [
            "contentType": "",
            "metadata": [],
            "value": ""
          ]
        ],
        "birthdays": [
          [
            "date": [
              "day": 0,
              "month": 0,
              "year": 0
            ],
            "metadata": [],
            "text": ""
          ]
        ],
        "braggingRights": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "calendarUrls": [
          [
            "formattedType": "",
            "metadata": [],
            "type": "",
            "url": ""
          ]
        ],
        "clientData": [
          [
            "key": "",
            "metadata": [],
            "value": ""
          ]
        ],
        "coverPhotos": [
          [
            "metadata": [],
            "url": ""
          ]
        ],
        "emailAddresses": [
          [
            "displayName": "",
            "formattedType": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "etag": "",
        "events": [
          [
            "date": [],
            "formattedType": "",
            "metadata": [],
            "type": ""
          ]
        ],
        "externalIds": [
          [
            "formattedType": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "fileAses": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "genders": [
          [
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": [],
            "value": ""
          ]
        ],
        "imClients": [
          [
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": [],
            "protocol": "",
            "type": "",
            "username": ""
          ]
        ],
        "interests": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "locales": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "locations": [
          [
            "buildingId": "",
            "current": false,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "memberships": [
          [
            "contactGroupMembership": [
              "contactGroupId": "",
              "contactGroupResourceName": ""
            ],
            "domainMembership": ["inViewerDomain": false],
            "metadata": []
          ]
        ],
        "metadata": [
          "deleted": false,
          "linkedPeopleResourceNames": [],
          "objectType": "",
          "previousResourceNames": [],
          "sources": [[]]
        ],
        "miscKeywords": [
          [
            "formattedType": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "names": [
          [
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": [],
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
          ]
        ],
        "nicknames": [
          [
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "occupations": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "organizations": [
          [
            "costCenter": "",
            "current": false,
            "department": "",
            "domain": "",
            "endDate": [],
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": [],
            "name": "",
            "phoneticName": "",
            "startDate": [],
            "symbol": "",
            "title": "",
            "type": ""
          ]
        ],
        "phoneNumbers": [
          [
            "canonicalForm": "",
            "formattedType": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "photos": [
          [
            "metadata": [],
            "url": ""
          ]
        ],
        "relations": [
          [
            "formattedType": "",
            "metadata": [],
            "person": "",
            "type": ""
          ]
        ],
        "relationshipInterests": [
          [
            "formattedValue": "",
            "metadata": [],
            "value": ""
          ]
        ],
        "relationshipStatuses": [
          [
            "formattedValue": "",
            "metadata": [],
            "value": ""
          ]
        ],
        "residences": [
          [
            "current": false,
            "metadata": [],
            "value": ""
          ]
        ],
        "resourceName": "",
        "sipAddresses": [
          [
            "formattedType": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "skills": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "taglines": [
          [
            "metadata": [],
            "value": ""
          ]
        ],
        "urls": [
          [
            "formattedType": "",
            "metadata": [],
            "type": "",
            "value": ""
          ]
        ],
        "userDefined": [
          [
            "key": "",
            "metadata": [],
            "value": ""
          ]
        ]
      ]]],
  "readMask": "",
  "sources": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:batchCreateContacts")! 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 people.people.batchDeleteContacts
{{baseUrl}}/v1/people:batchDeleteContacts
BODY json

{
  "resourceNames": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:batchDeleteContacts");

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  \"resourceNames\": []\n}");

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

(client/post "{{baseUrl}}/v1/people:batchDeleteContacts" {:content-type :json
                                                                          :form-params {:resourceNames []}})
require "http/client"

url = "{{baseUrl}}/v1/people:batchDeleteContacts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"resourceNames\": []\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}}/v1/people:batchDeleteContacts"),
    Content = new StringContent("{\n  \"resourceNames\": []\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}}/v1/people:batchDeleteContacts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"resourceNames\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:batchDeleteContacts"

	payload := strings.NewReader("{\n  \"resourceNames\": []\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/v1/people:batchDeleteContacts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 25

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/people:batchDeleteContacts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"resourceNames\": []\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  \"resourceNames\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/people:batchDeleteContacts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

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

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

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

xhr.open('POST', '{{baseUrl}}/v1/people:batchDeleteContacts');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:batchDeleteContacts',
  headers: {'content-type': 'application/json'},
  data: {resourceNames: []}
};

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

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}}/v1/people:batchDeleteContacts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "resourceNames": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"resourceNames\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:batchDeleteContacts")
  .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/v1/people:batchDeleteContacts',
  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({resourceNames: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:batchDeleteContacts',
  headers: {'content-type': 'application/json'},
  body: {resourceNames: []},
  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}}/v1/people:batchDeleteContacts');

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

req.type('json');
req.send({
  resourceNames: []
});

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}}/v1/people:batchDeleteContacts',
  headers: {'content-type': 'application/json'},
  data: {resourceNames: []}
};

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

const url = '{{baseUrl}}/v1/people:batchDeleteContacts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"resourceNames":[]}'
};

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 = @{ @"resourceNames": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/people:batchDeleteContacts"]
                                                       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}}/v1/people:batchDeleteContacts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"resourceNames\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:batchDeleteContacts",
  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([
    'resourceNames' => [
        
    ]
  ]),
  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}}/v1/people:batchDeleteContacts', [
  'body' => '{
  "resourceNames": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:batchDeleteContacts');
$request->setMethod(HTTP_METH_POST);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'resourceNames' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/people:batchDeleteContacts');
$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}}/v1/people:batchDeleteContacts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "resourceNames": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/people:batchDeleteContacts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "resourceNames": []
}'
import http.client

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

payload = "{\n  \"resourceNames\": []\n}"

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

conn.request("POST", "/baseUrl/v1/people:batchDeleteContacts", payload, headers)

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

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

url = "{{baseUrl}}/v1/people:batchDeleteContacts"

payload = { "resourceNames": [] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/people:batchDeleteContacts"

payload <- "{\n  \"resourceNames\": []\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}}/v1/people:batchDeleteContacts")

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  \"resourceNames\": []\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/v1/people:batchDeleteContacts') do |req|
  req.body = "{\n  \"resourceNames\": []\n}"
end

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

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

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

    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}}/v1/people:batchDeleteContacts \
  --header 'content-type: application/json' \
  --data '{
  "resourceNames": []
}'
echo '{
  "resourceNames": []
}' |  \
  http POST {{baseUrl}}/v1/people:batchDeleteContacts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "resourceNames": []\n}' \
  --output-document \
  - {{baseUrl}}/v1/people:batchDeleteContacts
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:batchDeleteContacts")! 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 people.people.batchUpdateContacts
{{baseUrl}}/v1/people:batchUpdateContacts
BODY json

{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:batchUpdateContacts");

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  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/people:batchUpdateContacts" {:content-type :json
                                                                          :form-params {:contacts {}
                                                                                        :readMask ""
                                                                                        :sources []
                                                                                        :updateMask ""}})
require "http/client"

url = "{{baseUrl}}/v1/people:batchUpdateContacts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\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}}/v1/people:batchUpdateContacts"),
    Content = new StringContent("{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\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}}/v1/people:batchUpdateContacts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:batchUpdateContacts"

	payload := strings.NewReader("{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\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/v1/people:batchUpdateContacts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 75

{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/people:batchUpdateContacts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/people:batchUpdateContacts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\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  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/people:batchUpdateContacts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/people:batchUpdateContacts")
  .header("content-type", "application/json")
  .body("{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contacts: {},
  readMask: '',
  sources: [],
  updateMask: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v1/people:batchUpdateContacts');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:batchUpdateContacts',
  headers: {'content-type': 'application/json'},
  data: {contacts: {}, readMask: '', sources: [], updateMask: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:batchUpdateContacts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contacts":{},"readMask":"","sources":[],"updateMask":""}'
};

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}}/v1/people:batchUpdateContacts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contacts": {},\n  "readMask": "",\n  "sources": [],\n  "updateMask": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:batchUpdateContacts")
  .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/v1/people:batchUpdateContacts',
  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({contacts: {}, readMask: '', sources: [], updateMask: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:batchUpdateContacts',
  headers: {'content-type': 'application/json'},
  body: {contacts: {}, readMask: '', sources: [], updateMask: ''},
  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}}/v1/people:batchUpdateContacts');

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

req.type('json');
req.send({
  contacts: {},
  readMask: '',
  sources: [],
  updateMask: ''
});

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}}/v1/people:batchUpdateContacts',
  headers: {'content-type': 'application/json'},
  data: {contacts: {}, readMask: '', sources: [], updateMask: ''}
};

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

const url = '{{baseUrl}}/v1/people:batchUpdateContacts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contacts":{},"readMask":"","sources":[],"updateMask":""}'
};

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 = @{ @"contacts": @{  },
                              @"readMask": @"",
                              @"sources": @[  ],
                              @"updateMask": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/people:batchUpdateContacts"]
                                                       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}}/v1/people:batchUpdateContacts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:batchUpdateContacts",
  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([
    'contacts' => [
        
    ],
    'readMask' => '',
    'sources' => [
        
    ],
    'updateMask' => ''
  ]),
  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}}/v1/people:batchUpdateContacts', [
  'body' => '{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:batchUpdateContacts');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contacts' => [
    
  ],
  'readMask' => '',
  'sources' => [
    
  ],
  'updateMask' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contacts' => [
    
  ],
  'readMask' => '',
  'sources' => [
    
  ],
  'updateMask' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/people:batchUpdateContacts');
$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}}/v1/people:batchUpdateContacts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/people:batchUpdateContacts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}'
import http.client

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

payload = "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/people:batchUpdateContacts", payload, headers)

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

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

url = "{{baseUrl}}/v1/people:batchUpdateContacts"

payload = {
    "contacts": {},
    "readMask": "",
    "sources": [],
    "updateMask": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/people:batchUpdateContacts"

payload <- "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\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}}/v1/people:batchUpdateContacts")

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  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\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/v1/people:batchUpdateContacts') do |req|
  req.body = "{\n  \"contacts\": {},\n  \"readMask\": \"\",\n  \"sources\": [],\n  \"updateMask\": \"\"\n}"
end

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

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

    let payload = json!({
        "contacts": json!({}),
        "readMask": "",
        "sources": (),
        "updateMask": ""
    });

    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}}/v1/people:batchUpdateContacts \
  --header 'content-type: application/json' \
  --data '{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}'
echo '{
  "contacts": {},
  "readMask": "",
  "sources": [],
  "updateMask": ""
}' |  \
  http POST {{baseUrl}}/v1/people:batchUpdateContacts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contacts": {},\n  "readMask": "",\n  "sources": [],\n  "updateMask": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/people:batchUpdateContacts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contacts": [],
  "readMask": "",
  "sources": [],
  "updateMask": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:batchUpdateContacts")! 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 people.people.connections.list
{{baseUrl}}/v1/:resourceName/connections
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName/connections");

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

(client/get "{{baseUrl}}/v1/:resourceName/connections")
require "http/client"

url = "{{baseUrl}}/v1/:resourceName/connections"

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}}/v1/:resourceName/connections"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:resourceName/connections");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName/connections"

	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/v1/:resourceName/connections HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/:resourceName/connections'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName/connections';
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}}/v1/:resourceName/connections',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName/connections")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:resourceName/connections',
  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}}/v1/:resourceName/connections'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/:resourceName/connections');

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}}/v1/:resourceName/connections'};

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

const url = '{{baseUrl}}/v1/:resourceName/connections';
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}}/v1/:resourceName/connections"]
                                                       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}}/v1/:resourceName/connections" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName/connections",
  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}}/v1/:resourceName/connections');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:resourceName/connections');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/:resourceName/connections")

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

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

url = "{{baseUrl}}/v1/:resourceName/connections"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:resourceName/connections"

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

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

url = URI("{{baseUrl}}/v1/:resourceName/connections")

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/v1/:resourceName/connections') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/:resourceName/connections
http GET {{baseUrl}}/v1/:resourceName/connections
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:resourceName/connections
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName/connections")! 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 people.people.createContact
{{baseUrl}}/v1/people:createContact
BODY json

{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:createContact");

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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/v1/people:createContact" {:content-type :json
                                                                    :form-params {:addresses [{:city ""
                                                                                               :country ""
                                                                                               :countryCode ""
                                                                                               :extendedAddress ""
                                                                                               :formattedType ""
                                                                                               :formattedValue ""
                                                                                               :metadata {:primary false
                                                                                                          :source {:etag ""
                                                                                                                   :id ""
                                                                                                                   :profileMetadata {:objectType ""
                                                                                                                                     :userTypes []}
                                                                                                                   :type ""
                                                                                                                   :updateTime ""}
                                                                                                          :sourcePrimary false
                                                                                                          :verified false}
                                                                                               :poBox ""
                                                                                               :postalCode ""
                                                                                               :region ""
                                                                                               :streetAddress ""
                                                                                               :type ""}]
                                                                                  :ageRange ""
                                                                                  :ageRanges [{:ageRange ""
                                                                                               :metadata {}}]
                                                                                  :biographies [{:contentType ""
                                                                                                 :metadata {}
                                                                                                 :value ""}]
                                                                                  :birthdays [{:date {:day 0
                                                                                                      :month 0
                                                                                                      :year 0}
                                                                                               :metadata {}
                                                                                               :text ""}]
                                                                                  :braggingRights [{:metadata {}
                                                                                                    :value ""}]
                                                                                  :calendarUrls [{:formattedType ""
                                                                                                  :metadata {}
                                                                                                  :type ""
                                                                                                  :url ""}]
                                                                                  :clientData [{:key ""
                                                                                                :metadata {}
                                                                                                :value ""}]
                                                                                  :coverPhotos [{:metadata {}
                                                                                                 :url ""}]
                                                                                  :emailAddresses [{:displayName ""
                                                                                                    :formattedType ""
                                                                                                    :metadata {}
                                                                                                    :type ""
                                                                                                    :value ""}]
                                                                                  :etag ""
                                                                                  :events [{:date {}
                                                                                            :formattedType ""
                                                                                            :metadata {}
                                                                                            :type ""}]
                                                                                  :externalIds [{:formattedType ""
                                                                                                 :metadata {}
                                                                                                 :type ""
                                                                                                 :value ""}]
                                                                                  :fileAses [{:metadata {}
                                                                                              :value ""}]
                                                                                  :genders [{:addressMeAs ""
                                                                                             :formattedValue ""
                                                                                             :metadata {}
                                                                                             :value ""}]
                                                                                  :imClients [{:formattedProtocol ""
                                                                                               :formattedType ""
                                                                                               :metadata {}
                                                                                               :protocol ""
                                                                                               :type ""
                                                                                               :username ""}]
                                                                                  :interests [{:metadata {}
                                                                                               :value ""}]
                                                                                  :locales [{:metadata {}
                                                                                             :value ""}]
                                                                                  :locations [{:buildingId ""
                                                                                               :current false
                                                                                               :deskCode ""
                                                                                               :floor ""
                                                                                               :floorSection ""
                                                                                               :metadata {}
                                                                                               :type ""
                                                                                               :value ""}]
                                                                                  :memberships [{:contactGroupMembership {:contactGroupId ""
                                                                                                                          :contactGroupResourceName ""}
                                                                                                 :domainMembership {:inViewerDomain false}
                                                                                                 :metadata {}}]
                                                                                  :metadata {:deleted false
                                                                                             :linkedPeopleResourceNames []
                                                                                             :objectType ""
                                                                                             :previousResourceNames []
                                                                                             :sources [{}]}
                                                                                  :miscKeywords [{:formattedType ""
                                                                                                  :metadata {}
                                                                                                  :type ""
                                                                                                  :value ""}]
                                                                                  :names [{:displayName ""
                                                                                           :displayNameLastFirst ""
                                                                                           :familyName ""
                                                                                           :givenName ""
                                                                                           :honorificPrefix ""
                                                                                           :honorificSuffix ""
                                                                                           :metadata {}
                                                                                           :middleName ""
                                                                                           :phoneticFamilyName ""
                                                                                           :phoneticFullName ""
                                                                                           :phoneticGivenName ""
                                                                                           :phoneticHonorificPrefix ""
                                                                                           :phoneticHonorificSuffix ""
                                                                                           :phoneticMiddleName ""
                                                                                           :unstructuredName ""}]
                                                                                  :nicknames [{:metadata {}
                                                                                               :type ""
                                                                                               :value ""}]
                                                                                  :occupations [{:metadata {}
                                                                                                 :value ""}]
                                                                                  :organizations [{:costCenter ""
                                                                                                   :current false
                                                                                                   :department ""
                                                                                                   :domain ""
                                                                                                   :endDate {}
                                                                                                   :formattedType ""
                                                                                                   :fullTimeEquivalentMillipercent 0
                                                                                                   :jobDescription ""
                                                                                                   :location ""
                                                                                                   :metadata {}
                                                                                                   :name ""
                                                                                                   :phoneticName ""
                                                                                                   :startDate {}
                                                                                                   :symbol ""
                                                                                                   :title ""
                                                                                                   :type ""}]
                                                                                  :phoneNumbers [{:canonicalForm ""
                                                                                                  :formattedType ""
                                                                                                  :metadata {}
                                                                                                  :type ""
                                                                                                  :value ""}]
                                                                                  :photos [{:metadata {}
                                                                                            :url ""}]
                                                                                  :relations [{:formattedType ""
                                                                                               :metadata {}
                                                                                               :person ""
                                                                                               :type ""}]
                                                                                  :relationshipInterests [{:formattedValue ""
                                                                                                           :metadata {}
                                                                                                           :value ""}]
                                                                                  :relationshipStatuses [{:formattedValue ""
                                                                                                          :metadata {}
                                                                                                          :value ""}]
                                                                                  :residences [{:current false
                                                                                                :metadata {}
                                                                                                :value ""}]
                                                                                  :resourceName ""
                                                                                  :sipAddresses [{:formattedType ""
                                                                                                  :metadata {}
                                                                                                  :type ""
                                                                                                  :value ""}]
                                                                                  :skills [{:metadata {}
                                                                                            :value ""}]
                                                                                  :taglines [{:metadata {}
                                                                                              :value ""}]
                                                                                  :urls [{:formattedType ""
                                                                                          :metadata {}
                                                                                          :type ""
                                                                                          :value ""}]
                                                                                  :userDefined [{:key ""
                                                                                                 :metadata {}
                                                                                                 :value ""}]}})
require "http/client"

url = "{{baseUrl}}/v1/people:createContact"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/people:createContact"),
    Content = new StringContent("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/people:createContact");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:createContact"

	payload := strings.NewReader("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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/v1/people:createContact HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 5206

{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/people:createContact")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/people:createContact"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/people:createContact")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/people:createContact")
  .header("content-type", "application/json")
  .body("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  addresses: [
    {
      city: '',
      country: '',
      countryCode: '',
      extendedAddress: '',
      formattedType: '',
      formattedValue: '',
      metadata: {
        primary: false,
        source: {
          etag: '',
          id: '',
          profileMetadata: {
            objectType: '',
            userTypes: []
          },
          type: '',
          updateTime: ''
        },
        sourcePrimary: false,
        verified: false
      },
      poBox: '',
      postalCode: '',
      region: '',
      streetAddress: '',
      type: ''
    }
  ],
  ageRange: '',
  ageRanges: [
    {
      ageRange: '',
      metadata: {}
    }
  ],
  biographies: [
    {
      contentType: '',
      metadata: {},
      value: ''
    }
  ],
  birthdays: [
    {
      date: {
        day: 0,
        month: 0,
        year: 0
      },
      metadata: {},
      text: ''
    }
  ],
  braggingRights: [
    {
      metadata: {},
      value: ''
    }
  ],
  calendarUrls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      url: ''
    }
  ],
  clientData: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ],
  coverPhotos: [
    {
      metadata: {},
      url: ''
    }
  ],
  emailAddresses: [
    {
      displayName: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  etag: '',
  events: [
    {
      date: {},
      formattedType: '',
      metadata: {},
      type: ''
    }
  ],
  externalIds: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  fileAses: [
    {
      metadata: {},
      value: ''
    }
  ],
  genders: [
    {
      addressMeAs: '',
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  imClients: [
    {
      formattedProtocol: '',
      formattedType: '',
      metadata: {},
      protocol: '',
      type: '',
      username: ''
    }
  ],
  interests: [
    {
      metadata: {},
      value: ''
    }
  ],
  locales: [
    {
      metadata: {},
      value: ''
    }
  ],
  locations: [
    {
      buildingId: '',
      current: false,
      deskCode: '',
      floor: '',
      floorSection: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  memberships: [
    {
      contactGroupMembership: {
        contactGroupId: '',
        contactGroupResourceName: ''
      },
      domainMembership: {
        inViewerDomain: false
      },
      metadata: {}
    }
  ],
  metadata: {
    deleted: false,
    linkedPeopleResourceNames: [],
    objectType: '',
    previousResourceNames: [],
    sources: [
      {}
    ]
  },
  miscKeywords: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  names: [
    {
      displayName: '',
      displayNameLastFirst: '',
      familyName: '',
      givenName: '',
      honorificPrefix: '',
      honorificSuffix: '',
      metadata: {},
      middleName: '',
      phoneticFamilyName: '',
      phoneticFullName: '',
      phoneticGivenName: '',
      phoneticHonorificPrefix: '',
      phoneticHonorificSuffix: '',
      phoneticMiddleName: '',
      unstructuredName: ''
    }
  ],
  nicknames: [
    {
      metadata: {},
      type: '',
      value: ''
    }
  ],
  occupations: [
    {
      metadata: {},
      value: ''
    }
  ],
  organizations: [
    {
      costCenter: '',
      current: false,
      department: '',
      domain: '',
      endDate: {},
      formattedType: '',
      fullTimeEquivalentMillipercent: 0,
      jobDescription: '',
      location: '',
      metadata: {},
      name: '',
      phoneticName: '',
      startDate: {},
      symbol: '',
      title: '',
      type: ''
    }
  ],
  phoneNumbers: [
    {
      canonicalForm: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  photos: [
    {
      metadata: {},
      url: ''
    }
  ],
  relations: [
    {
      formattedType: '',
      metadata: {},
      person: '',
      type: ''
    }
  ],
  relationshipInterests: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  relationshipStatuses: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  residences: [
    {
      current: false,
      metadata: {},
      value: ''
    }
  ],
  resourceName: '',
  sipAddresses: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  skills: [
    {
      metadata: {},
      value: ''
    }
  ],
  taglines: [
    {
      metadata: {},
      value: ''
    }
  ],
  urls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  userDefined: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ]
});

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

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

xhr.open('POST', '{{baseUrl}}/v1/people:createContact');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:createContact',
  headers: {'content-type': 'application/json'},
  data: {
    addresses: [
      {
        city: '',
        country: '',
        countryCode: '',
        extendedAddress: '',
        formattedType: '',
        formattedValue: '',
        metadata: {
          primary: false,
          source: {
            etag: '',
            id: '',
            profileMetadata: {objectType: '', userTypes: []},
            type: '',
            updateTime: ''
          },
          sourcePrimary: false,
          verified: false
        },
        poBox: '',
        postalCode: '',
        region: '',
        streetAddress: '',
        type: ''
      }
    ],
    ageRange: '',
    ageRanges: [{ageRange: '', metadata: {}}],
    biographies: [{contentType: '', metadata: {}, value: ''}],
    birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
    braggingRights: [{metadata: {}, value: ''}],
    calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
    clientData: [{key: '', metadata: {}, value: ''}],
    coverPhotos: [{metadata: {}, url: ''}],
    emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
    etag: '',
    events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
    externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
    fileAses: [{metadata: {}, value: ''}],
    genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
    imClients: [
      {
        formattedProtocol: '',
        formattedType: '',
        metadata: {},
        protocol: '',
        type: '',
        username: ''
      }
    ],
    interests: [{metadata: {}, value: ''}],
    locales: [{metadata: {}, value: ''}],
    locations: [
      {
        buildingId: '',
        current: false,
        deskCode: '',
        floor: '',
        floorSection: '',
        metadata: {},
        type: '',
        value: ''
      }
    ],
    memberships: [
      {
        contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
        domainMembership: {inViewerDomain: false},
        metadata: {}
      }
    ],
    metadata: {
      deleted: false,
      linkedPeopleResourceNames: [],
      objectType: '',
      previousResourceNames: [],
      sources: [{}]
    },
    miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
    names: [
      {
        displayName: '',
        displayNameLastFirst: '',
        familyName: '',
        givenName: '',
        honorificPrefix: '',
        honorificSuffix: '',
        metadata: {},
        middleName: '',
        phoneticFamilyName: '',
        phoneticFullName: '',
        phoneticGivenName: '',
        phoneticHonorificPrefix: '',
        phoneticHonorificSuffix: '',
        phoneticMiddleName: '',
        unstructuredName: ''
      }
    ],
    nicknames: [{metadata: {}, type: '', value: ''}],
    occupations: [{metadata: {}, value: ''}],
    organizations: [
      {
        costCenter: '',
        current: false,
        department: '',
        domain: '',
        endDate: {},
        formattedType: '',
        fullTimeEquivalentMillipercent: 0,
        jobDescription: '',
        location: '',
        metadata: {},
        name: '',
        phoneticName: '',
        startDate: {},
        symbol: '',
        title: '',
        type: ''
      }
    ],
    phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
    photos: [{metadata: {}, url: ''}],
    relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
    relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
    relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
    residences: [{current: false, metadata: {}, value: ''}],
    resourceName: '',
    sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
    skills: [{metadata: {}, value: ''}],
    taglines: [{metadata: {}, value: ''}],
    urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
    userDefined: [{key: '', metadata: {}, value: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:createContact';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addresses":[{"city":"","country":"","countryCode":"","extendedAddress":"","formattedType":"","formattedValue":"","metadata":{"primary":false,"source":{"etag":"","id":"","profileMetadata":{"objectType":"","userTypes":[]},"type":"","updateTime":""},"sourcePrimary":false,"verified":false},"poBox":"","postalCode":"","region":"","streetAddress":"","type":""}],"ageRange":"","ageRanges":[{"ageRange":"","metadata":{}}],"biographies":[{"contentType":"","metadata":{},"value":""}],"birthdays":[{"date":{"day":0,"month":0,"year":0},"metadata":{},"text":""}],"braggingRights":[{"metadata":{},"value":""}],"calendarUrls":[{"formattedType":"","metadata":{},"type":"","url":""}],"clientData":[{"key":"","metadata":{},"value":""}],"coverPhotos":[{"metadata":{},"url":""}],"emailAddresses":[{"displayName":"","formattedType":"","metadata":{},"type":"","value":""}],"etag":"","events":[{"date":{},"formattedType":"","metadata":{},"type":""}],"externalIds":[{"formattedType":"","metadata":{},"type":"","value":""}],"fileAses":[{"metadata":{},"value":""}],"genders":[{"addressMeAs":"","formattedValue":"","metadata":{},"value":""}],"imClients":[{"formattedProtocol":"","formattedType":"","metadata":{},"protocol":"","type":"","username":""}],"interests":[{"metadata":{},"value":""}],"locales":[{"metadata":{},"value":""}],"locations":[{"buildingId":"","current":false,"deskCode":"","floor":"","floorSection":"","metadata":{},"type":"","value":""}],"memberships":[{"contactGroupMembership":{"contactGroupId":"","contactGroupResourceName":""},"domainMembership":{"inViewerDomain":false},"metadata":{}}],"metadata":{"deleted":false,"linkedPeopleResourceNames":[],"objectType":"","previousResourceNames":[],"sources":[{}]},"miscKeywords":[{"formattedType":"","metadata":{},"type":"","value":""}],"names":[{"displayName":"","displayNameLastFirst":"","familyName":"","givenName":"","honorificPrefix":"","honorificSuffix":"","metadata":{},"middleName":"","phoneticFamilyName":"","phoneticFullName":"","phoneticGivenName":"","phoneticHonorificPrefix":"","phoneticHonorificSuffix":"","phoneticMiddleName":"","unstructuredName":""}],"nicknames":[{"metadata":{},"type":"","value":""}],"occupations":[{"metadata":{},"value":""}],"organizations":[{"costCenter":"","current":false,"department":"","domain":"","endDate":{},"formattedType":"","fullTimeEquivalentMillipercent":0,"jobDescription":"","location":"","metadata":{},"name":"","phoneticName":"","startDate":{},"symbol":"","title":"","type":""}],"phoneNumbers":[{"canonicalForm":"","formattedType":"","metadata":{},"type":"","value":""}],"photos":[{"metadata":{},"url":""}],"relations":[{"formattedType":"","metadata":{},"person":"","type":""}],"relationshipInterests":[{"formattedValue":"","metadata":{},"value":""}],"relationshipStatuses":[{"formattedValue":"","metadata":{},"value":""}],"residences":[{"current":false,"metadata":{},"value":""}],"resourceName":"","sipAddresses":[{"formattedType":"","metadata":{},"type":"","value":""}],"skills":[{"metadata":{},"value":""}],"taglines":[{"metadata":{},"value":""}],"urls":[{"formattedType":"","metadata":{},"type":"","value":""}],"userDefined":[{"key":"","metadata":{},"value":""}]}'
};

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}}/v1/people:createContact',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "addresses": [\n    {\n      "city": "",\n      "country": "",\n      "countryCode": "",\n      "extendedAddress": "",\n      "formattedType": "",\n      "formattedValue": "",\n      "metadata": {\n        "primary": false,\n        "source": {\n          "etag": "",\n          "id": "",\n          "profileMetadata": {\n            "objectType": "",\n            "userTypes": []\n          },\n          "type": "",\n          "updateTime": ""\n        },\n        "sourcePrimary": false,\n        "verified": false\n      },\n      "poBox": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": "",\n      "type": ""\n    }\n  ],\n  "ageRange": "",\n  "ageRanges": [\n    {\n      "ageRange": "",\n      "metadata": {}\n    }\n  ],\n  "biographies": [\n    {\n      "contentType": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "birthdays": [\n    {\n      "date": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "metadata": {},\n      "text": ""\n    }\n  ],\n  "braggingRights": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "calendarUrls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "url": ""\n    }\n  ],\n  "clientData": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "coverPhotos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "emailAddresses": [\n    {\n      "displayName": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "etag": "",\n  "events": [\n    {\n      "date": {},\n      "formattedType": "",\n      "metadata": {},\n      "type": ""\n    }\n  ],\n  "externalIds": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "fileAses": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "genders": [\n    {\n      "addressMeAs": "",\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "imClients": [\n    {\n      "formattedProtocol": "",\n      "formattedType": "",\n      "metadata": {},\n      "protocol": "",\n      "type": "",\n      "username": ""\n    }\n  ],\n  "interests": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locales": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locations": [\n    {\n      "buildingId": "",\n      "current": false,\n      "deskCode": "",\n      "floor": "",\n      "floorSection": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "memberships": [\n    {\n      "contactGroupMembership": {\n        "contactGroupId": "",\n        "contactGroupResourceName": ""\n      },\n      "domainMembership": {\n        "inViewerDomain": false\n      },\n      "metadata": {}\n    }\n  ],\n  "metadata": {\n    "deleted": false,\n    "linkedPeopleResourceNames": [],\n    "objectType": "",\n    "previousResourceNames": [],\n    "sources": [\n      {}\n    ]\n  },\n  "miscKeywords": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "names": [\n    {\n      "displayName": "",\n      "displayNameLastFirst": "",\n      "familyName": "",\n      "givenName": "",\n      "honorificPrefix": "",\n      "honorificSuffix": "",\n      "metadata": {},\n      "middleName": "",\n      "phoneticFamilyName": "",\n      "phoneticFullName": "",\n      "phoneticGivenName": "",\n      "phoneticHonorificPrefix": "",\n      "phoneticHonorificSuffix": "",\n      "phoneticMiddleName": "",\n      "unstructuredName": ""\n    }\n  ],\n  "nicknames": [\n    {\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "occupations": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "organizations": [\n    {\n      "costCenter": "",\n      "current": false,\n      "department": "",\n      "domain": "",\n      "endDate": {},\n      "formattedType": "",\n      "fullTimeEquivalentMillipercent": 0,\n      "jobDescription": "",\n      "location": "",\n      "metadata": {},\n      "name": "",\n      "phoneticName": "",\n      "startDate": {},\n      "symbol": "",\n      "title": "",\n      "type": ""\n    }\n  ],\n  "phoneNumbers": [\n    {\n      "canonicalForm": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "photos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "relations": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "person": "",\n      "type": ""\n    }\n  ],\n  "relationshipInterests": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "relationshipStatuses": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "residences": [\n    {\n      "current": false,\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "resourceName": "",\n  "sipAddresses": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "skills": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "taglines": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "urls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "userDefined": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:createContact")
  .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/v1/people:createContact',
  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({
  addresses: [
    {
      city: '',
      country: '',
      countryCode: '',
      extendedAddress: '',
      formattedType: '',
      formattedValue: '',
      metadata: {
        primary: false,
        source: {
          etag: '',
          id: '',
          profileMetadata: {objectType: '', userTypes: []},
          type: '',
          updateTime: ''
        },
        sourcePrimary: false,
        verified: false
      },
      poBox: '',
      postalCode: '',
      region: '',
      streetAddress: '',
      type: ''
    }
  ],
  ageRange: '',
  ageRanges: [{ageRange: '', metadata: {}}],
  biographies: [{contentType: '', metadata: {}, value: ''}],
  birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
  braggingRights: [{metadata: {}, value: ''}],
  calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
  clientData: [{key: '', metadata: {}, value: ''}],
  coverPhotos: [{metadata: {}, url: ''}],
  emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
  etag: '',
  events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
  externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
  fileAses: [{metadata: {}, value: ''}],
  genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
  imClients: [
    {
      formattedProtocol: '',
      formattedType: '',
      metadata: {},
      protocol: '',
      type: '',
      username: ''
    }
  ],
  interests: [{metadata: {}, value: ''}],
  locales: [{metadata: {}, value: ''}],
  locations: [
    {
      buildingId: '',
      current: false,
      deskCode: '',
      floor: '',
      floorSection: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  memberships: [
    {
      contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
      domainMembership: {inViewerDomain: false},
      metadata: {}
    }
  ],
  metadata: {
    deleted: false,
    linkedPeopleResourceNames: [],
    objectType: '',
    previousResourceNames: [],
    sources: [{}]
  },
  miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
  names: [
    {
      displayName: '',
      displayNameLastFirst: '',
      familyName: '',
      givenName: '',
      honorificPrefix: '',
      honorificSuffix: '',
      metadata: {},
      middleName: '',
      phoneticFamilyName: '',
      phoneticFullName: '',
      phoneticGivenName: '',
      phoneticHonorificPrefix: '',
      phoneticHonorificSuffix: '',
      phoneticMiddleName: '',
      unstructuredName: ''
    }
  ],
  nicknames: [{metadata: {}, type: '', value: ''}],
  occupations: [{metadata: {}, value: ''}],
  organizations: [
    {
      costCenter: '',
      current: false,
      department: '',
      domain: '',
      endDate: {},
      formattedType: '',
      fullTimeEquivalentMillipercent: 0,
      jobDescription: '',
      location: '',
      metadata: {},
      name: '',
      phoneticName: '',
      startDate: {},
      symbol: '',
      title: '',
      type: ''
    }
  ],
  phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
  photos: [{metadata: {}, url: ''}],
  relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
  relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
  relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
  residences: [{current: false, metadata: {}, value: ''}],
  resourceName: '',
  sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
  skills: [{metadata: {}, value: ''}],
  taglines: [{metadata: {}, value: ''}],
  urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
  userDefined: [{key: '', metadata: {}, value: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/people:createContact',
  headers: {'content-type': 'application/json'},
  body: {
    addresses: [
      {
        city: '',
        country: '',
        countryCode: '',
        extendedAddress: '',
        formattedType: '',
        formattedValue: '',
        metadata: {
          primary: false,
          source: {
            etag: '',
            id: '',
            profileMetadata: {objectType: '', userTypes: []},
            type: '',
            updateTime: ''
          },
          sourcePrimary: false,
          verified: false
        },
        poBox: '',
        postalCode: '',
        region: '',
        streetAddress: '',
        type: ''
      }
    ],
    ageRange: '',
    ageRanges: [{ageRange: '', metadata: {}}],
    biographies: [{contentType: '', metadata: {}, value: ''}],
    birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
    braggingRights: [{metadata: {}, value: ''}],
    calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
    clientData: [{key: '', metadata: {}, value: ''}],
    coverPhotos: [{metadata: {}, url: ''}],
    emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
    etag: '',
    events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
    externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
    fileAses: [{metadata: {}, value: ''}],
    genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
    imClients: [
      {
        formattedProtocol: '',
        formattedType: '',
        metadata: {},
        protocol: '',
        type: '',
        username: ''
      }
    ],
    interests: [{metadata: {}, value: ''}],
    locales: [{metadata: {}, value: ''}],
    locations: [
      {
        buildingId: '',
        current: false,
        deskCode: '',
        floor: '',
        floorSection: '',
        metadata: {},
        type: '',
        value: ''
      }
    ],
    memberships: [
      {
        contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
        domainMembership: {inViewerDomain: false},
        metadata: {}
      }
    ],
    metadata: {
      deleted: false,
      linkedPeopleResourceNames: [],
      objectType: '',
      previousResourceNames: [],
      sources: [{}]
    },
    miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
    names: [
      {
        displayName: '',
        displayNameLastFirst: '',
        familyName: '',
        givenName: '',
        honorificPrefix: '',
        honorificSuffix: '',
        metadata: {},
        middleName: '',
        phoneticFamilyName: '',
        phoneticFullName: '',
        phoneticGivenName: '',
        phoneticHonorificPrefix: '',
        phoneticHonorificSuffix: '',
        phoneticMiddleName: '',
        unstructuredName: ''
      }
    ],
    nicknames: [{metadata: {}, type: '', value: ''}],
    occupations: [{metadata: {}, value: ''}],
    organizations: [
      {
        costCenter: '',
        current: false,
        department: '',
        domain: '',
        endDate: {},
        formattedType: '',
        fullTimeEquivalentMillipercent: 0,
        jobDescription: '',
        location: '',
        metadata: {},
        name: '',
        phoneticName: '',
        startDate: {},
        symbol: '',
        title: '',
        type: ''
      }
    ],
    phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
    photos: [{metadata: {}, url: ''}],
    relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
    relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
    relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
    residences: [{current: false, metadata: {}, value: ''}],
    resourceName: '',
    sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
    skills: [{metadata: {}, value: ''}],
    taglines: [{metadata: {}, value: ''}],
    urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
    userDefined: [{key: '', metadata: {}, value: ''}]
  },
  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}}/v1/people:createContact');

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

req.type('json');
req.send({
  addresses: [
    {
      city: '',
      country: '',
      countryCode: '',
      extendedAddress: '',
      formattedType: '',
      formattedValue: '',
      metadata: {
        primary: false,
        source: {
          etag: '',
          id: '',
          profileMetadata: {
            objectType: '',
            userTypes: []
          },
          type: '',
          updateTime: ''
        },
        sourcePrimary: false,
        verified: false
      },
      poBox: '',
      postalCode: '',
      region: '',
      streetAddress: '',
      type: ''
    }
  ],
  ageRange: '',
  ageRanges: [
    {
      ageRange: '',
      metadata: {}
    }
  ],
  biographies: [
    {
      contentType: '',
      metadata: {},
      value: ''
    }
  ],
  birthdays: [
    {
      date: {
        day: 0,
        month: 0,
        year: 0
      },
      metadata: {},
      text: ''
    }
  ],
  braggingRights: [
    {
      metadata: {},
      value: ''
    }
  ],
  calendarUrls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      url: ''
    }
  ],
  clientData: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ],
  coverPhotos: [
    {
      metadata: {},
      url: ''
    }
  ],
  emailAddresses: [
    {
      displayName: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  etag: '',
  events: [
    {
      date: {},
      formattedType: '',
      metadata: {},
      type: ''
    }
  ],
  externalIds: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  fileAses: [
    {
      metadata: {},
      value: ''
    }
  ],
  genders: [
    {
      addressMeAs: '',
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  imClients: [
    {
      formattedProtocol: '',
      formattedType: '',
      metadata: {},
      protocol: '',
      type: '',
      username: ''
    }
  ],
  interests: [
    {
      metadata: {},
      value: ''
    }
  ],
  locales: [
    {
      metadata: {},
      value: ''
    }
  ],
  locations: [
    {
      buildingId: '',
      current: false,
      deskCode: '',
      floor: '',
      floorSection: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  memberships: [
    {
      contactGroupMembership: {
        contactGroupId: '',
        contactGroupResourceName: ''
      },
      domainMembership: {
        inViewerDomain: false
      },
      metadata: {}
    }
  ],
  metadata: {
    deleted: false,
    linkedPeopleResourceNames: [],
    objectType: '',
    previousResourceNames: [],
    sources: [
      {}
    ]
  },
  miscKeywords: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  names: [
    {
      displayName: '',
      displayNameLastFirst: '',
      familyName: '',
      givenName: '',
      honorificPrefix: '',
      honorificSuffix: '',
      metadata: {},
      middleName: '',
      phoneticFamilyName: '',
      phoneticFullName: '',
      phoneticGivenName: '',
      phoneticHonorificPrefix: '',
      phoneticHonorificSuffix: '',
      phoneticMiddleName: '',
      unstructuredName: ''
    }
  ],
  nicknames: [
    {
      metadata: {},
      type: '',
      value: ''
    }
  ],
  occupations: [
    {
      metadata: {},
      value: ''
    }
  ],
  organizations: [
    {
      costCenter: '',
      current: false,
      department: '',
      domain: '',
      endDate: {},
      formattedType: '',
      fullTimeEquivalentMillipercent: 0,
      jobDescription: '',
      location: '',
      metadata: {},
      name: '',
      phoneticName: '',
      startDate: {},
      symbol: '',
      title: '',
      type: ''
    }
  ],
  phoneNumbers: [
    {
      canonicalForm: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  photos: [
    {
      metadata: {},
      url: ''
    }
  ],
  relations: [
    {
      formattedType: '',
      metadata: {},
      person: '',
      type: ''
    }
  ],
  relationshipInterests: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  relationshipStatuses: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  residences: [
    {
      current: false,
      metadata: {},
      value: ''
    }
  ],
  resourceName: '',
  sipAddresses: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  skills: [
    {
      metadata: {},
      value: ''
    }
  ],
  taglines: [
    {
      metadata: {},
      value: ''
    }
  ],
  urls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  userDefined: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ]
});

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}}/v1/people:createContact',
  headers: {'content-type': 'application/json'},
  data: {
    addresses: [
      {
        city: '',
        country: '',
        countryCode: '',
        extendedAddress: '',
        formattedType: '',
        formattedValue: '',
        metadata: {
          primary: false,
          source: {
            etag: '',
            id: '',
            profileMetadata: {objectType: '', userTypes: []},
            type: '',
            updateTime: ''
          },
          sourcePrimary: false,
          verified: false
        },
        poBox: '',
        postalCode: '',
        region: '',
        streetAddress: '',
        type: ''
      }
    ],
    ageRange: '',
    ageRanges: [{ageRange: '', metadata: {}}],
    biographies: [{contentType: '', metadata: {}, value: ''}],
    birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
    braggingRights: [{metadata: {}, value: ''}],
    calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
    clientData: [{key: '', metadata: {}, value: ''}],
    coverPhotos: [{metadata: {}, url: ''}],
    emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
    etag: '',
    events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
    externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
    fileAses: [{metadata: {}, value: ''}],
    genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
    imClients: [
      {
        formattedProtocol: '',
        formattedType: '',
        metadata: {},
        protocol: '',
        type: '',
        username: ''
      }
    ],
    interests: [{metadata: {}, value: ''}],
    locales: [{metadata: {}, value: ''}],
    locations: [
      {
        buildingId: '',
        current: false,
        deskCode: '',
        floor: '',
        floorSection: '',
        metadata: {},
        type: '',
        value: ''
      }
    ],
    memberships: [
      {
        contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
        domainMembership: {inViewerDomain: false},
        metadata: {}
      }
    ],
    metadata: {
      deleted: false,
      linkedPeopleResourceNames: [],
      objectType: '',
      previousResourceNames: [],
      sources: [{}]
    },
    miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
    names: [
      {
        displayName: '',
        displayNameLastFirst: '',
        familyName: '',
        givenName: '',
        honorificPrefix: '',
        honorificSuffix: '',
        metadata: {},
        middleName: '',
        phoneticFamilyName: '',
        phoneticFullName: '',
        phoneticGivenName: '',
        phoneticHonorificPrefix: '',
        phoneticHonorificSuffix: '',
        phoneticMiddleName: '',
        unstructuredName: ''
      }
    ],
    nicknames: [{metadata: {}, type: '', value: ''}],
    occupations: [{metadata: {}, value: ''}],
    organizations: [
      {
        costCenter: '',
        current: false,
        department: '',
        domain: '',
        endDate: {},
        formattedType: '',
        fullTimeEquivalentMillipercent: 0,
        jobDescription: '',
        location: '',
        metadata: {},
        name: '',
        phoneticName: '',
        startDate: {},
        symbol: '',
        title: '',
        type: ''
      }
    ],
    phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
    photos: [{metadata: {}, url: ''}],
    relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
    relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
    relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
    residences: [{current: false, metadata: {}, value: ''}],
    resourceName: '',
    sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
    skills: [{metadata: {}, value: ''}],
    taglines: [{metadata: {}, value: ''}],
    urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
    userDefined: [{key: '', metadata: {}, value: ''}]
  }
};

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

const url = '{{baseUrl}}/v1/people:createContact';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addresses":[{"city":"","country":"","countryCode":"","extendedAddress":"","formattedType":"","formattedValue":"","metadata":{"primary":false,"source":{"etag":"","id":"","profileMetadata":{"objectType":"","userTypes":[]},"type":"","updateTime":""},"sourcePrimary":false,"verified":false},"poBox":"","postalCode":"","region":"","streetAddress":"","type":""}],"ageRange":"","ageRanges":[{"ageRange":"","metadata":{}}],"biographies":[{"contentType":"","metadata":{},"value":""}],"birthdays":[{"date":{"day":0,"month":0,"year":0},"metadata":{},"text":""}],"braggingRights":[{"metadata":{},"value":""}],"calendarUrls":[{"formattedType":"","metadata":{},"type":"","url":""}],"clientData":[{"key":"","metadata":{},"value":""}],"coverPhotos":[{"metadata":{},"url":""}],"emailAddresses":[{"displayName":"","formattedType":"","metadata":{},"type":"","value":""}],"etag":"","events":[{"date":{},"formattedType":"","metadata":{},"type":""}],"externalIds":[{"formattedType":"","metadata":{},"type":"","value":""}],"fileAses":[{"metadata":{},"value":""}],"genders":[{"addressMeAs":"","formattedValue":"","metadata":{},"value":""}],"imClients":[{"formattedProtocol":"","formattedType":"","metadata":{},"protocol":"","type":"","username":""}],"interests":[{"metadata":{},"value":""}],"locales":[{"metadata":{},"value":""}],"locations":[{"buildingId":"","current":false,"deskCode":"","floor":"","floorSection":"","metadata":{},"type":"","value":""}],"memberships":[{"contactGroupMembership":{"contactGroupId":"","contactGroupResourceName":""},"domainMembership":{"inViewerDomain":false},"metadata":{}}],"metadata":{"deleted":false,"linkedPeopleResourceNames":[],"objectType":"","previousResourceNames":[],"sources":[{}]},"miscKeywords":[{"formattedType":"","metadata":{},"type":"","value":""}],"names":[{"displayName":"","displayNameLastFirst":"","familyName":"","givenName":"","honorificPrefix":"","honorificSuffix":"","metadata":{},"middleName":"","phoneticFamilyName":"","phoneticFullName":"","phoneticGivenName":"","phoneticHonorificPrefix":"","phoneticHonorificSuffix":"","phoneticMiddleName":"","unstructuredName":""}],"nicknames":[{"metadata":{},"type":"","value":""}],"occupations":[{"metadata":{},"value":""}],"organizations":[{"costCenter":"","current":false,"department":"","domain":"","endDate":{},"formattedType":"","fullTimeEquivalentMillipercent":0,"jobDescription":"","location":"","metadata":{},"name":"","phoneticName":"","startDate":{},"symbol":"","title":"","type":""}],"phoneNumbers":[{"canonicalForm":"","formattedType":"","metadata":{},"type":"","value":""}],"photos":[{"metadata":{},"url":""}],"relations":[{"formattedType":"","metadata":{},"person":"","type":""}],"relationshipInterests":[{"formattedValue":"","metadata":{},"value":""}],"relationshipStatuses":[{"formattedValue":"","metadata":{},"value":""}],"residences":[{"current":false,"metadata":{},"value":""}],"resourceName":"","sipAddresses":[{"formattedType":"","metadata":{},"type":"","value":""}],"skills":[{"metadata":{},"value":""}],"taglines":[{"metadata":{},"value":""}],"urls":[{"formattedType":"","metadata":{},"type":"","value":""}],"userDefined":[{"key":"","metadata":{},"value":""}]}'
};

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 = @{ @"addresses": @[ @{ @"city": @"", @"country": @"", @"countryCode": @"", @"extendedAddress": @"", @"formattedType": @"", @"formattedValue": @"", @"metadata": @{ @"primary": @NO, @"source": @{ @"etag": @"", @"id": @"", @"profileMetadata": @{ @"objectType": @"", @"userTypes": @[  ] }, @"type": @"", @"updateTime": @"" }, @"sourcePrimary": @NO, @"verified": @NO }, @"poBox": @"", @"postalCode": @"", @"region": @"", @"streetAddress": @"", @"type": @"" } ],
                              @"ageRange": @"",
                              @"ageRanges": @[ @{ @"ageRange": @"", @"metadata": @{  } } ],
                              @"biographies": @[ @{ @"contentType": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"birthdays": @[ @{ @"date": @{ @"day": @0, @"month": @0, @"year": @0 }, @"metadata": @{  }, @"text": @"" } ],
                              @"braggingRights": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"calendarUrls": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"url": @"" } ],
                              @"clientData": @[ @{ @"key": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"coverPhotos": @[ @{ @"metadata": @{  }, @"url": @"" } ],
                              @"emailAddresses": @[ @{ @"displayName": @"", @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"etag": @"",
                              @"events": @[ @{ @"date": @{  }, @"formattedType": @"", @"metadata": @{  }, @"type": @"" } ],
                              @"externalIds": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"fileAses": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"genders": @[ @{ @"addressMeAs": @"", @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"imClients": @[ @{ @"formattedProtocol": @"", @"formattedType": @"", @"metadata": @{  }, @"protocol": @"", @"type": @"", @"username": @"" } ],
                              @"interests": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"locales": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"locations": @[ @{ @"buildingId": @"", @"current": @NO, @"deskCode": @"", @"floor": @"", @"floorSection": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"memberships": @[ @{ @"contactGroupMembership": @{ @"contactGroupId": @"", @"contactGroupResourceName": @"" }, @"domainMembership": @{ @"inViewerDomain": @NO }, @"metadata": @{  } } ],
                              @"metadata": @{ @"deleted": @NO, @"linkedPeopleResourceNames": @[  ], @"objectType": @"", @"previousResourceNames": @[  ], @"sources": @[ @{  } ] },
                              @"miscKeywords": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"names": @[ @{ @"displayName": @"", @"displayNameLastFirst": @"", @"familyName": @"", @"givenName": @"", @"honorificPrefix": @"", @"honorificSuffix": @"", @"metadata": @{  }, @"middleName": @"", @"phoneticFamilyName": @"", @"phoneticFullName": @"", @"phoneticGivenName": @"", @"phoneticHonorificPrefix": @"", @"phoneticHonorificSuffix": @"", @"phoneticMiddleName": @"", @"unstructuredName": @"" } ],
                              @"nicknames": @[ @{ @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"occupations": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"organizations": @[ @{ @"costCenter": @"", @"current": @NO, @"department": @"", @"domain": @"", @"endDate": @{  }, @"formattedType": @"", @"fullTimeEquivalentMillipercent": @0, @"jobDescription": @"", @"location": @"", @"metadata": @{  }, @"name": @"", @"phoneticName": @"", @"startDate": @{  }, @"symbol": @"", @"title": @"", @"type": @"" } ],
                              @"phoneNumbers": @[ @{ @"canonicalForm": @"", @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"photos": @[ @{ @"metadata": @{  }, @"url": @"" } ],
                              @"relations": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"person": @"", @"type": @"" } ],
                              @"relationshipInterests": @[ @{ @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"relationshipStatuses": @[ @{ @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"residences": @[ @{ @"current": @NO, @"metadata": @{  }, @"value": @"" } ],
                              @"resourceName": @"",
                              @"sipAddresses": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"skills": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"taglines": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"urls": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"userDefined": @[ @{ @"key": @"", @"metadata": @{  }, @"value": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/people:createContact"]
                                                       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}}/v1/people:createContact" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:createContact",
  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([
    'addresses' => [
        [
                'city' => '',
                'country' => '',
                'countryCode' => '',
                'extendedAddress' => '',
                'formattedType' => '',
                'formattedValue' => '',
                'metadata' => [
                                'primary' => null,
                                'source' => [
                                                                'etag' => '',
                                                                'id' => '',
                                                                'profileMetadata' => [
                                                                                                                                'objectType' => '',
                                                                                                                                'userTypes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => '',
                                                                'updateTime' => ''
                                ],
                                'sourcePrimary' => null,
                                'verified' => null
                ],
                'poBox' => '',
                'postalCode' => '',
                'region' => '',
                'streetAddress' => '',
                'type' => ''
        ]
    ],
    'ageRange' => '',
    'ageRanges' => [
        [
                'ageRange' => '',
                'metadata' => [
                                
                ]
        ]
    ],
    'biographies' => [
        [
                'contentType' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'birthdays' => [
        [
                'date' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'metadata' => [
                                
                ],
                'text' => ''
        ]
    ],
    'braggingRights' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'calendarUrls' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'url' => ''
        ]
    ],
    'clientData' => [
        [
                'key' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'coverPhotos' => [
        [
                'metadata' => [
                                
                ],
                'url' => ''
        ]
    ],
    'emailAddresses' => [
        [
                'displayName' => '',
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'etag' => '',
    'events' => [
        [
                'date' => [
                                
                ],
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => ''
        ]
    ],
    'externalIds' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'fileAses' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'genders' => [
        [
                'addressMeAs' => '',
                'formattedValue' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'imClients' => [
        [
                'formattedProtocol' => '',
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'protocol' => '',
                'type' => '',
                'username' => ''
        ]
    ],
    'interests' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'locales' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'locations' => [
        [
                'buildingId' => '',
                'current' => null,
                'deskCode' => '',
                'floor' => '',
                'floorSection' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'memberships' => [
        [
                'contactGroupMembership' => [
                                'contactGroupId' => '',
                                'contactGroupResourceName' => ''
                ],
                'domainMembership' => [
                                'inViewerDomain' => null
                ],
                'metadata' => [
                                
                ]
        ]
    ],
    'metadata' => [
        'deleted' => null,
        'linkedPeopleResourceNames' => [
                
        ],
        'objectType' => '',
        'previousResourceNames' => [
                
        ],
        'sources' => [
                [
                                
                ]
        ]
    ],
    'miscKeywords' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'names' => [
        [
                'displayName' => '',
                'displayNameLastFirst' => '',
                'familyName' => '',
                'givenName' => '',
                'honorificPrefix' => '',
                'honorificSuffix' => '',
                'metadata' => [
                                
                ],
                'middleName' => '',
                'phoneticFamilyName' => '',
                'phoneticFullName' => '',
                'phoneticGivenName' => '',
                'phoneticHonorificPrefix' => '',
                'phoneticHonorificSuffix' => '',
                'phoneticMiddleName' => '',
                'unstructuredName' => ''
        ]
    ],
    'nicknames' => [
        [
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'occupations' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'organizations' => [
        [
                'costCenter' => '',
                'current' => null,
                'department' => '',
                'domain' => '',
                'endDate' => [
                                
                ],
                'formattedType' => '',
                'fullTimeEquivalentMillipercent' => 0,
                'jobDescription' => '',
                'location' => '',
                'metadata' => [
                                
                ],
                'name' => '',
                'phoneticName' => '',
                'startDate' => [
                                
                ],
                'symbol' => '',
                'title' => '',
                'type' => ''
        ]
    ],
    'phoneNumbers' => [
        [
                'canonicalForm' => '',
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'photos' => [
        [
                'metadata' => [
                                
                ],
                'url' => ''
        ]
    ],
    'relations' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'person' => '',
                'type' => ''
        ]
    ],
    'relationshipInterests' => [
        [
                'formattedValue' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'relationshipStatuses' => [
        [
                'formattedValue' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'residences' => [
        [
                'current' => null,
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'resourceName' => '',
    'sipAddresses' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'skills' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'taglines' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'urls' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'userDefined' => [
        [
                'key' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ]
  ]),
  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}}/v1/people:createContact', [
  'body' => '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:createContact');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'addresses' => [
    [
        'city' => '',
        'country' => '',
        'countryCode' => '',
        'extendedAddress' => '',
        'formattedType' => '',
        'formattedValue' => '',
        'metadata' => [
                'primary' => null,
                'source' => [
                                'etag' => '',
                                'id' => '',
                                'profileMetadata' => [
                                                                'objectType' => '',
                                                                'userTypes' => [
                                                                                                                                
                                                                ]
                                ],
                                'type' => '',
                                'updateTime' => ''
                ],
                'sourcePrimary' => null,
                'verified' => null
        ],
        'poBox' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => '',
        'type' => ''
    ]
  ],
  'ageRange' => '',
  'ageRanges' => [
    [
        'ageRange' => '',
        'metadata' => [
                
        ]
    ]
  ],
  'biographies' => [
    [
        'contentType' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'birthdays' => [
    [
        'date' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'metadata' => [
                
        ],
        'text' => ''
    ]
  ],
  'braggingRights' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'calendarUrls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'url' => ''
    ]
  ],
  'clientData' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'coverPhotos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'emailAddresses' => [
    [
        'displayName' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'etag' => '',
  'events' => [
    [
        'date' => [
                
        ],
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => ''
    ]
  ],
  'externalIds' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'fileAses' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'genders' => [
    [
        'addressMeAs' => '',
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'imClients' => [
    [
        'formattedProtocol' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'protocol' => '',
        'type' => '',
        'username' => ''
    ]
  ],
  'interests' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locales' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locations' => [
    [
        'buildingId' => '',
        'current' => null,
        'deskCode' => '',
        'floor' => '',
        'floorSection' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'memberships' => [
    [
        'contactGroupMembership' => [
                'contactGroupId' => '',
                'contactGroupResourceName' => ''
        ],
        'domainMembership' => [
                'inViewerDomain' => null
        ],
        'metadata' => [
                
        ]
    ]
  ],
  'metadata' => [
    'deleted' => null,
    'linkedPeopleResourceNames' => [
        
    ],
    'objectType' => '',
    'previousResourceNames' => [
        
    ],
    'sources' => [
        [
                
        ]
    ]
  ],
  'miscKeywords' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'names' => [
    [
        'displayName' => '',
        'displayNameLastFirst' => '',
        'familyName' => '',
        'givenName' => '',
        'honorificPrefix' => '',
        'honorificSuffix' => '',
        'metadata' => [
                
        ],
        'middleName' => '',
        'phoneticFamilyName' => '',
        'phoneticFullName' => '',
        'phoneticGivenName' => '',
        'phoneticHonorificPrefix' => '',
        'phoneticHonorificSuffix' => '',
        'phoneticMiddleName' => '',
        'unstructuredName' => ''
    ]
  ],
  'nicknames' => [
    [
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'occupations' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'organizations' => [
    [
        'costCenter' => '',
        'current' => null,
        'department' => '',
        'domain' => '',
        'endDate' => [
                
        ],
        'formattedType' => '',
        'fullTimeEquivalentMillipercent' => 0,
        'jobDescription' => '',
        'location' => '',
        'metadata' => [
                
        ],
        'name' => '',
        'phoneticName' => '',
        'startDate' => [
                
        ],
        'symbol' => '',
        'title' => '',
        'type' => ''
    ]
  ],
  'phoneNumbers' => [
    [
        'canonicalForm' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'photos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'relations' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'person' => '',
        'type' => ''
    ]
  ],
  'relationshipInterests' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'relationshipStatuses' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'residences' => [
    [
        'current' => null,
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'resourceName' => '',
  'sipAddresses' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'skills' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'taglines' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'urls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'userDefined' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'addresses' => [
    [
        'city' => '',
        'country' => '',
        'countryCode' => '',
        'extendedAddress' => '',
        'formattedType' => '',
        'formattedValue' => '',
        'metadata' => [
                'primary' => null,
                'source' => [
                                'etag' => '',
                                'id' => '',
                                'profileMetadata' => [
                                                                'objectType' => '',
                                                                'userTypes' => [
                                                                                                                                
                                                                ]
                                ],
                                'type' => '',
                                'updateTime' => ''
                ],
                'sourcePrimary' => null,
                'verified' => null
        ],
        'poBox' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => '',
        'type' => ''
    ]
  ],
  'ageRange' => '',
  'ageRanges' => [
    [
        'ageRange' => '',
        'metadata' => [
                
        ]
    ]
  ],
  'biographies' => [
    [
        'contentType' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'birthdays' => [
    [
        'date' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'metadata' => [
                
        ],
        'text' => ''
    ]
  ],
  'braggingRights' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'calendarUrls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'url' => ''
    ]
  ],
  'clientData' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'coverPhotos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'emailAddresses' => [
    [
        'displayName' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'etag' => '',
  'events' => [
    [
        'date' => [
                
        ],
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => ''
    ]
  ],
  'externalIds' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'fileAses' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'genders' => [
    [
        'addressMeAs' => '',
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'imClients' => [
    [
        'formattedProtocol' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'protocol' => '',
        'type' => '',
        'username' => ''
    ]
  ],
  'interests' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locales' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locations' => [
    [
        'buildingId' => '',
        'current' => null,
        'deskCode' => '',
        'floor' => '',
        'floorSection' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'memberships' => [
    [
        'contactGroupMembership' => [
                'contactGroupId' => '',
                'contactGroupResourceName' => ''
        ],
        'domainMembership' => [
                'inViewerDomain' => null
        ],
        'metadata' => [
                
        ]
    ]
  ],
  'metadata' => [
    'deleted' => null,
    'linkedPeopleResourceNames' => [
        
    ],
    'objectType' => '',
    'previousResourceNames' => [
        
    ],
    'sources' => [
        [
                
        ]
    ]
  ],
  'miscKeywords' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'names' => [
    [
        'displayName' => '',
        'displayNameLastFirst' => '',
        'familyName' => '',
        'givenName' => '',
        'honorificPrefix' => '',
        'honorificSuffix' => '',
        'metadata' => [
                
        ],
        'middleName' => '',
        'phoneticFamilyName' => '',
        'phoneticFullName' => '',
        'phoneticGivenName' => '',
        'phoneticHonorificPrefix' => '',
        'phoneticHonorificSuffix' => '',
        'phoneticMiddleName' => '',
        'unstructuredName' => ''
    ]
  ],
  'nicknames' => [
    [
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'occupations' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'organizations' => [
    [
        'costCenter' => '',
        'current' => null,
        'department' => '',
        'domain' => '',
        'endDate' => [
                
        ],
        'formattedType' => '',
        'fullTimeEquivalentMillipercent' => 0,
        'jobDescription' => '',
        'location' => '',
        'metadata' => [
                
        ],
        'name' => '',
        'phoneticName' => '',
        'startDate' => [
                
        ],
        'symbol' => '',
        'title' => '',
        'type' => ''
    ]
  ],
  'phoneNumbers' => [
    [
        'canonicalForm' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'photos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'relations' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'person' => '',
        'type' => ''
    ]
  ],
  'relationshipInterests' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'relationshipStatuses' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'residences' => [
    [
        'current' => null,
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'resourceName' => '',
  'sipAddresses' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'skills' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'taglines' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'urls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'userDefined' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/people:createContact');
$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}}/v1/people:createContact' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/people:createContact' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/v1/people:createContact", payload, headers)

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

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

url = "{{baseUrl}}/v1/people:createContact"

payload = {
    "addresses": [
        {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
                "primary": False,
                "source": {
                    "etag": "",
                    "id": "",
                    "profileMetadata": {
                        "objectType": "",
                        "userTypes": []
                    },
                    "type": "",
                    "updateTime": ""
                },
                "sourcePrimary": False,
                "verified": False
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
        }
    ],
    "ageRange": "",
    "ageRanges": [
        {
            "ageRange": "",
            "metadata": {}
        }
    ],
    "biographies": [
        {
            "contentType": "",
            "metadata": {},
            "value": ""
        }
    ],
    "birthdays": [
        {
            "date": {
                "day": 0,
                "month": 0,
                "year": 0
            },
            "metadata": {},
            "text": ""
        }
    ],
    "braggingRights": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "calendarUrls": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
        }
    ],
    "clientData": [
        {
            "key": "",
            "metadata": {},
            "value": ""
        }
    ],
    "coverPhotos": [
        {
            "metadata": {},
            "url": ""
        }
    ],
    "emailAddresses": [
        {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "etag": "",
    "events": [
        {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
        }
    ],
    "externalIds": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "fileAses": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "genders": [
        {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
        }
    ],
    "imClients": [
        {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
        }
    ],
    "interests": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "locales": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "locations": [
        {
            "buildingId": "",
            "current": False,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "memberships": [
        {
            "contactGroupMembership": {
                "contactGroupId": "",
                "contactGroupResourceName": ""
            },
            "domainMembership": { "inViewerDomain": False },
            "metadata": {}
        }
    ],
    "metadata": {
        "deleted": False,
        "linkedPeopleResourceNames": [],
        "objectType": "",
        "previousResourceNames": [],
        "sources": [{}]
    },
    "miscKeywords": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "names": [
        {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
        }
    ],
    "nicknames": [
        {
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "occupations": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "organizations": [
        {
            "costCenter": "",
            "current": False,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
        }
    ],
    "phoneNumbers": [
        {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "photos": [
        {
            "metadata": {},
            "url": ""
        }
    ],
    "relations": [
        {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
        }
    ],
    "relationshipInterests": [
        {
            "formattedValue": "",
            "metadata": {},
            "value": ""
        }
    ],
    "relationshipStatuses": [
        {
            "formattedValue": "",
            "metadata": {},
            "value": ""
        }
    ],
    "residences": [
        {
            "current": False,
            "metadata": {},
            "value": ""
        }
    ],
    "resourceName": "",
    "sipAddresses": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "skills": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "taglines": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "urls": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "userDefined": [
        {
            "key": "",
            "metadata": {},
            "value": ""
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/people:createContact"

payload <- "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/people:createContact")

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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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/v1/people:createContact') do |req|
  req.body = "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/people:createContact";

    let payload = json!({
        "addresses": (
            json!({
                "city": "",
                "country": "",
                "countryCode": "",
                "extendedAddress": "",
                "formattedType": "",
                "formattedValue": "",
                "metadata": json!({
                    "primary": false,
                    "source": json!({
                        "etag": "",
                        "id": "",
                        "profileMetadata": json!({
                            "objectType": "",
                            "userTypes": ()
                        }),
                        "type": "",
                        "updateTime": ""
                    }),
                    "sourcePrimary": false,
                    "verified": false
                }),
                "poBox": "",
                "postalCode": "",
                "region": "",
                "streetAddress": "",
                "type": ""
            })
        ),
        "ageRange": "",
        "ageRanges": (
            json!({
                "ageRange": "",
                "metadata": json!({})
            })
        ),
        "biographies": (
            json!({
                "contentType": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "birthdays": (
            json!({
                "date": json!({
                    "day": 0,
                    "month": 0,
                    "year": 0
                }),
                "metadata": json!({}),
                "text": ""
            })
        ),
        "braggingRights": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "calendarUrls": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "url": ""
            })
        ),
        "clientData": (
            json!({
                "key": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "coverPhotos": (
            json!({
                "metadata": json!({}),
                "url": ""
            })
        ),
        "emailAddresses": (
            json!({
                "displayName": "",
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "etag": "",
        "events": (
            json!({
                "date": json!({}),
                "formattedType": "",
                "metadata": json!({}),
                "type": ""
            })
        ),
        "externalIds": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "fileAses": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "genders": (
            json!({
                "addressMeAs": "",
                "formattedValue": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "imClients": (
            json!({
                "formattedProtocol": "",
                "formattedType": "",
                "metadata": json!({}),
                "protocol": "",
                "type": "",
                "username": ""
            })
        ),
        "interests": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "locales": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "locations": (
            json!({
                "buildingId": "",
                "current": false,
                "deskCode": "",
                "floor": "",
                "floorSection": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "memberships": (
            json!({
                "contactGroupMembership": json!({
                    "contactGroupId": "",
                    "contactGroupResourceName": ""
                }),
                "domainMembership": json!({"inViewerDomain": false}),
                "metadata": json!({})
            })
        ),
        "metadata": json!({
            "deleted": false,
            "linkedPeopleResourceNames": (),
            "objectType": "",
            "previousResourceNames": (),
            "sources": (json!({}))
        }),
        "miscKeywords": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "names": (
            json!({
                "displayName": "",
                "displayNameLastFirst": "",
                "familyName": "",
                "givenName": "",
                "honorificPrefix": "",
                "honorificSuffix": "",
                "metadata": json!({}),
                "middleName": "",
                "phoneticFamilyName": "",
                "phoneticFullName": "",
                "phoneticGivenName": "",
                "phoneticHonorificPrefix": "",
                "phoneticHonorificSuffix": "",
                "phoneticMiddleName": "",
                "unstructuredName": ""
            })
        ),
        "nicknames": (
            json!({
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "occupations": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "organizations": (
            json!({
                "costCenter": "",
                "current": false,
                "department": "",
                "domain": "",
                "endDate": json!({}),
                "formattedType": "",
                "fullTimeEquivalentMillipercent": 0,
                "jobDescription": "",
                "location": "",
                "metadata": json!({}),
                "name": "",
                "phoneticName": "",
                "startDate": json!({}),
                "symbol": "",
                "title": "",
                "type": ""
            })
        ),
        "phoneNumbers": (
            json!({
                "canonicalForm": "",
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "photos": (
            json!({
                "metadata": json!({}),
                "url": ""
            })
        ),
        "relations": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "person": "",
                "type": ""
            })
        ),
        "relationshipInterests": (
            json!({
                "formattedValue": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "relationshipStatuses": (
            json!({
                "formattedValue": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "residences": (
            json!({
                "current": false,
                "metadata": json!({}),
                "value": ""
            })
        ),
        "resourceName": "",
        "sipAddresses": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "skills": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "taglines": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "urls": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "userDefined": (
            json!({
                "key": "",
                "metadata": json!({}),
                "value": ""
            })
        )
    });

    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}}/v1/people:createContact \
  --header 'content-type: application/json' \
  --data '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}'
echo '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/v1/people:createContact \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "addresses": [\n    {\n      "city": "",\n      "country": "",\n      "countryCode": "",\n      "extendedAddress": "",\n      "formattedType": "",\n      "formattedValue": "",\n      "metadata": {\n        "primary": false,\n        "source": {\n          "etag": "",\n          "id": "",\n          "profileMetadata": {\n            "objectType": "",\n            "userTypes": []\n          },\n          "type": "",\n          "updateTime": ""\n        },\n        "sourcePrimary": false,\n        "verified": false\n      },\n      "poBox": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": "",\n      "type": ""\n    }\n  ],\n  "ageRange": "",\n  "ageRanges": [\n    {\n      "ageRange": "",\n      "metadata": {}\n    }\n  ],\n  "biographies": [\n    {\n      "contentType": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "birthdays": [\n    {\n      "date": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "metadata": {},\n      "text": ""\n    }\n  ],\n  "braggingRights": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "calendarUrls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "url": ""\n    }\n  ],\n  "clientData": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "coverPhotos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "emailAddresses": [\n    {\n      "displayName": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "etag": "",\n  "events": [\n    {\n      "date": {},\n      "formattedType": "",\n      "metadata": {},\n      "type": ""\n    }\n  ],\n  "externalIds": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "fileAses": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "genders": [\n    {\n      "addressMeAs": "",\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "imClients": [\n    {\n      "formattedProtocol": "",\n      "formattedType": "",\n      "metadata": {},\n      "protocol": "",\n      "type": "",\n      "username": ""\n    }\n  ],\n  "interests": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locales": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locations": [\n    {\n      "buildingId": "",\n      "current": false,\n      "deskCode": "",\n      "floor": "",\n      "floorSection": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "memberships": [\n    {\n      "contactGroupMembership": {\n        "contactGroupId": "",\n        "contactGroupResourceName": ""\n      },\n      "domainMembership": {\n        "inViewerDomain": false\n      },\n      "metadata": {}\n    }\n  ],\n  "metadata": {\n    "deleted": false,\n    "linkedPeopleResourceNames": [],\n    "objectType": "",\n    "previousResourceNames": [],\n    "sources": [\n      {}\n    ]\n  },\n  "miscKeywords": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "names": [\n    {\n      "displayName": "",\n      "displayNameLastFirst": "",\n      "familyName": "",\n      "givenName": "",\n      "honorificPrefix": "",\n      "honorificSuffix": "",\n      "metadata": {},\n      "middleName": "",\n      "phoneticFamilyName": "",\n      "phoneticFullName": "",\n      "phoneticGivenName": "",\n      "phoneticHonorificPrefix": "",\n      "phoneticHonorificSuffix": "",\n      "phoneticMiddleName": "",\n      "unstructuredName": ""\n    }\n  ],\n  "nicknames": [\n    {\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "occupations": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "organizations": [\n    {\n      "costCenter": "",\n      "current": false,\n      "department": "",\n      "domain": "",\n      "endDate": {},\n      "formattedType": "",\n      "fullTimeEquivalentMillipercent": 0,\n      "jobDescription": "",\n      "location": "",\n      "metadata": {},\n      "name": "",\n      "phoneticName": "",\n      "startDate": {},\n      "symbol": "",\n      "title": "",\n      "type": ""\n    }\n  ],\n  "phoneNumbers": [\n    {\n      "canonicalForm": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "photos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "relations": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "person": "",\n      "type": ""\n    }\n  ],\n  "relationshipInterests": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "relationshipStatuses": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "residences": [\n    {\n      "current": false,\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "resourceName": "",\n  "sipAddresses": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "skills": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "taglines": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "urls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "userDefined": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v1/people:createContact
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "addresses": [
    [
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": [
        "primary": false,
        "source": [
          "etag": "",
          "id": "",
          "profileMetadata": [
            "objectType": "",
            "userTypes": []
          ],
          "type": "",
          "updateTime": ""
        ],
        "sourcePrimary": false,
        "verified": false
      ],
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    ]
  ],
  "ageRange": "",
  "ageRanges": [
    [
      "ageRange": "",
      "metadata": []
    ]
  ],
  "biographies": [
    [
      "contentType": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "birthdays": [
    [
      "date": [
        "day": 0,
        "month": 0,
        "year": 0
      ],
      "metadata": [],
      "text": ""
    ]
  ],
  "braggingRights": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "calendarUrls": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "url": ""
    ]
  ],
  "clientData": [
    [
      "key": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "coverPhotos": [
    [
      "metadata": [],
      "url": ""
    ]
  ],
  "emailAddresses": [
    [
      "displayName": "",
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "etag": "",
  "events": [
    [
      "date": [],
      "formattedType": "",
      "metadata": [],
      "type": ""
    ]
  ],
  "externalIds": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "fileAses": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "genders": [
    [
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "imClients": [
    [
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": [],
      "protocol": "",
      "type": "",
      "username": ""
    ]
  ],
  "interests": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "locales": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "locations": [
    [
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "memberships": [
    [
      "contactGroupMembership": [
        "contactGroupId": "",
        "contactGroupResourceName": ""
      ],
      "domainMembership": ["inViewerDomain": false],
      "metadata": []
    ]
  ],
  "metadata": [
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [[]]
  ],
  "miscKeywords": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "names": [
    [
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": [],
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    ]
  ],
  "nicknames": [
    [
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "occupations": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "organizations": [
    [
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": [],
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": [],
      "name": "",
      "phoneticName": "",
      "startDate": [],
      "symbol": "",
      "title": "",
      "type": ""
    ]
  ],
  "phoneNumbers": [
    [
      "canonicalForm": "",
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "photos": [
    [
      "metadata": [],
      "url": ""
    ]
  ],
  "relations": [
    [
      "formattedType": "",
      "metadata": [],
      "person": "",
      "type": ""
    ]
  ],
  "relationshipInterests": [
    [
      "formattedValue": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "relationshipStatuses": [
    [
      "formattedValue": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "residences": [
    [
      "current": false,
      "metadata": [],
      "value": ""
    ]
  ],
  "resourceName": "",
  "sipAddresses": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "skills": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "taglines": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "urls": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "userDefined": [
    [
      "key": "",
      "metadata": [],
      "value": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:createContact")! 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()
DELETE people.people.deleteContact
{{baseUrl}}/v1/:resourceName:deleteContact
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName:deleteContact");

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

(client/delete "{{baseUrl}}/v1/:resourceName:deleteContact")
require "http/client"

url = "{{baseUrl}}/v1/:resourceName:deleteContact"

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}}/v1/:resourceName:deleteContact"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:resourceName:deleteContact");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName:deleteContact"

	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/v1/:resourceName:deleteContact HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName:deleteContact"))
    .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}}/v1/:resourceName:deleteContact")
  .delete(null)
  .build();

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/:resourceName:deleteContact'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName:deleteContact';
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}}/v1/:resourceName:deleteContact',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:deleteContact")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:resourceName:deleteContact',
  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}}/v1/:resourceName:deleteContact'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v1/:resourceName:deleteContact');

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}}/v1/:resourceName:deleteContact'
};

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

const url = '{{baseUrl}}/v1/:resourceName:deleteContact';
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}}/v1/:resourceName:deleteContact"]
                                                       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}}/v1/:resourceName:deleteContact" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName:deleteContact",
  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}}/v1/:resourceName:deleteContact');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:resourceName:deleteContact');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:resourceName:deleteContact');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:resourceName:deleteContact' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName:deleteContact' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v1/:resourceName:deleteContact")

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

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

url = "{{baseUrl}}/v1/:resourceName:deleteContact"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v1/:resourceName:deleteContact"

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

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

url = URI("{{baseUrl}}/v1/:resourceName:deleteContact")

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/v1/:resourceName:deleteContact') do |req|
end

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

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

    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}}/v1/:resourceName:deleteContact
http DELETE {{baseUrl}}/v1/:resourceName:deleteContact
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1/:resourceName:deleteContact
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName:deleteContact")! 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()
DELETE people.people.deleteContactPhoto
{{baseUrl}}/v1/:resourceName:deleteContactPhoto
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName:deleteContactPhoto");

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

(client/delete "{{baseUrl}}/v1/:resourceName:deleteContactPhoto")
require "http/client"

url = "{{baseUrl}}/v1/:resourceName:deleteContactPhoto"

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}}/v1/:resourceName:deleteContactPhoto"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:resourceName:deleteContactPhoto");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName:deleteContactPhoto"

	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/v1/:resourceName:deleteContactPhoto HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName:deleteContactPhoto"))
    .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}}/v1/:resourceName:deleteContactPhoto")
  .delete(null)
  .build();

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v1/:resourceName:deleteContactPhoto'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName:deleteContactPhoto';
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}}/v1/:resourceName:deleteContactPhoto',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:deleteContactPhoto")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:resourceName:deleteContactPhoto',
  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}}/v1/:resourceName:deleteContactPhoto'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v1/:resourceName:deleteContactPhoto');

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}}/v1/:resourceName:deleteContactPhoto'
};

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

const url = '{{baseUrl}}/v1/:resourceName:deleteContactPhoto';
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}}/v1/:resourceName:deleteContactPhoto"]
                                                       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}}/v1/:resourceName:deleteContactPhoto" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName:deleteContactPhoto",
  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}}/v1/:resourceName:deleteContactPhoto');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:resourceName:deleteContactPhoto');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/:resourceName:deleteContactPhoto');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:resourceName:deleteContactPhoto' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName:deleteContactPhoto' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v1/:resourceName:deleteContactPhoto")

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

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

url = "{{baseUrl}}/v1/:resourceName:deleteContactPhoto"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v1/:resourceName:deleteContactPhoto"

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

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

url = URI("{{baseUrl}}/v1/:resourceName:deleteContactPhoto")

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/v1/:resourceName:deleteContactPhoto') do |req|
end

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

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

    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}}/v1/:resourceName:deleteContactPhoto
http DELETE {{baseUrl}}/v1/:resourceName:deleteContactPhoto
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v1/:resourceName:deleteContactPhoto
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName:deleteContactPhoto")! 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 people.people.get
{{baseUrl}}/v1/:resourceName
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName");

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

(client/get "{{baseUrl}}/v1/:resourceName")
require "http/client"

url = "{{baseUrl}}/v1/:resourceName"

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}}/v1/:resourceName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:resourceName");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName"

	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/v1/:resourceName HTTP/1.1
Host: example.com

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName';
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}}/v1/:resourceName',
  method: 'GET',
  headers: {}
};

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:resourceName',
  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}}/v1/:resourceName'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/:resourceName');

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}}/v1/:resourceName'};

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

const url = '{{baseUrl}}/v1/:resourceName';
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}}/v1/:resourceName"]
                                                       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}}/v1/:resourceName" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName",
  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}}/v1/:resourceName');

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:resourceName")

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

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

url = "{{baseUrl}}/v1/:resourceName"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:resourceName"

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

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

url = URI("{{baseUrl}}/v1/:resourceName")

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/v1/:resourceName') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/:resourceName
http GET {{baseUrl}}/v1/:resourceName
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/:resourceName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName")! 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 people.people.getBatchGet
{{baseUrl}}/v1/people:batchGet
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:batchGet");

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

(client/get "{{baseUrl}}/v1/people:batchGet")
require "http/client"

url = "{{baseUrl}}/v1/people:batchGet"

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}}/v1/people:batchGet"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/people:batchGet");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:batchGet"

	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/v1/people:batchGet HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/people:batchGet'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:batchGet';
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}}/v1/people:batchGet',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:batchGet")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/people:batchGet',
  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}}/v1/people:batchGet'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/people:batchGet');

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}}/v1/people:batchGet'};

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

const url = '{{baseUrl}}/v1/people:batchGet';
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}}/v1/people:batchGet"]
                                                       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}}/v1/people:batchGet" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:batchGet",
  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}}/v1/people:batchGet');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:batchGet');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/people:batchGet")

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

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

url = "{{baseUrl}}/v1/people:batchGet"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/people:batchGet"

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

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

url = URI("{{baseUrl}}/v1/people:batchGet")

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/v1/people:batchGet') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/people:batchGet
http GET {{baseUrl}}/v1/people:batchGet
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/people:batchGet
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:batchGet")! 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 people.people.listDirectoryPeople
{{baseUrl}}/v1/people:listDirectoryPeople
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:listDirectoryPeople");

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

(client/get "{{baseUrl}}/v1/people:listDirectoryPeople")
require "http/client"

url = "{{baseUrl}}/v1/people:listDirectoryPeople"

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}}/v1/people:listDirectoryPeople"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/people:listDirectoryPeople");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:listDirectoryPeople"

	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/v1/people:listDirectoryPeople HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/people:listDirectoryPeople'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:listDirectoryPeople';
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}}/v1/people:listDirectoryPeople',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:listDirectoryPeople")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/people:listDirectoryPeople',
  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}}/v1/people:listDirectoryPeople'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/people:listDirectoryPeople');

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}}/v1/people:listDirectoryPeople'
};

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

const url = '{{baseUrl}}/v1/people:listDirectoryPeople';
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}}/v1/people:listDirectoryPeople"]
                                                       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}}/v1/people:listDirectoryPeople" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:listDirectoryPeople",
  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}}/v1/people:listDirectoryPeople');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:listDirectoryPeople');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/people:listDirectoryPeople")

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

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

url = "{{baseUrl}}/v1/people:listDirectoryPeople"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/people:listDirectoryPeople"

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

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

url = URI("{{baseUrl}}/v1/people:listDirectoryPeople")

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/v1/people:listDirectoryPeople') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/people:listDirectoryPeople
http GET {{baseUrl}}/v1/people:listDirectoryPeople
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/people:listDirectoryPeople
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:listDirectoryPeople")! 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 people.people.searchContacts
{{baseUrl}}/v1/people:searchContacts
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:searchContacts");

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

(client/get "{{baseUrl}}/v1/people:searchContacts")
require "http/client"

url = "{{baseUrl}}/v1/people:searchContacts"

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}}/v1/people:searchContacts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/people:searchContacts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:searchContacts"

	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/v1/people:searchContacts HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1/people:searchContacts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:searchContacts';
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}}/v1/people:searchContacts',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:searchContacts")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/people:searchContacts',
  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}}/v1/people:searchContacts'};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/people:searchContacts');

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}}/v1/people:searchContacts'};

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

const url = '{{baseUrl}}/v1/people:searchContacts';
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}}/v1/people:searchContacts"]
                                                       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}}/v1/people:searchContacts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:searchContacts",
  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}}/v1/people:searchContacts');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:searchContacts');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/people:searchContacts")

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

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

url = "{{baseUrl}}/v1/people:searchContacts"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/people:searchContacts"

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

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

url = URI("{{baseUrl}}/v1/people:searchContacts")

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/v1/people:searchContacts') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/people:searchContacts
http GET {{baseUrl}}/v1/people:searchContacts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/people:searchContacts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:searchContacts")! 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 people.people.searchDirectoryPeople
{{baseUrl}}/v1/people:searchDirectoryPeople
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/people:searchDirectoryPeople");

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

(client/get "{{baseUrl}}/v1/people:searchDirectoryPeople")
require "http/client"

url = "{{baseUrl}}/v1/people:searchDirectoryPeople"

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}}/v1/people:searchDirectoryPeople"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/people:searchDirectoryPeople");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/people:searchDirectoryPeople"

	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/v1/people:searchDirectoryPeople HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/people:searchDirectoryPeople'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/people:searchDirectoryPeople';
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}}/v1/people:searchDirectoryPeople',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/people:searchDirectoryPeople")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/people:searchDirectoryPeople',
  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}}/v1/people:searchDirectoryPeople'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v1/people:searchDirectoryPeople');

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}}/v1/people:searchDirectoryPeople'
};

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

const url = '{{baseUrl}}/v1/people:searchDirectoryPeople';
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}}/v1/people:searchDirectoryPeople"]
                                                       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}}/v1/people:searchDirectoryPeople" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/people:searchDirectoryPeople",
  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}}/v1/people:searchDirectoryPeople');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/people:searchDirectoryPeople');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v1/people:searchDirectoryPeople")

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

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

url = "{{baseUrl}}/v1/people:searchDirectoryPeople"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/people:searchDirectoryPeople"

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

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

url = URI("{{baseUrl}}/v1/people:searchDirectoryPeople")

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/v1/people:searchDirectoryPeople') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1/people:searchDirectoryPeople
http GET {{baseUrl}}/v1/people:searchDirectoryPeople
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1/people:searchDirectoryPeople
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/people:searchDirectoryPeople")! 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 people.people.updateContact
{{baseUrl}}/v1/:resourceName:updateContact
QUERY PARAMS

resourceName
BODY json

{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName:updateContact");

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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}");

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

(client/patch "{{baseUrl}}/v1/:resourceName:updateContact" {:content-type :json
                                                                            :form-params {:addresses [{:city ""
                                                                                                       :country ""
                                                                                                       :countryCode ""
                                                                                                       :extendedAddress ""
                                                                                                       :formattedType ""
                                                                                                       :formattedValue ""
                                                                                                       :metadata {:primary false
                                                                                                                  :source {:etag ""
                                                                                                                           :id ""
                                                                                                                           :profileMetadata {:objectType ""
                                                                                                                                             :userTypes []}
                                                                                                                           :type ""
                                                                                                                           :updateTime ""}
                                                                                                                  :sourcePrimary false
                                                                                                                  :verified false}
                                                                                                       :poBox ""
                                                                                                       :postalCode ""
                                                                                                       :region ""
                                                                                                       :streetAddress ""
                                                                                                       :type ""}]
                                                                                          :ageRange ""
                                                                                          :ageRanges [{:ageRange ""
                                                                                                       :metadata {}}]
                                                                                          :biographies [{:contentType ""
                                                                                                         :metadata {}
                                                                                                         :value ""}]
                                                                                          :birthdays [{:date {:day 0
                                                                                                              :month 0
                                                                                                              :year 0}
                                                                                                       :metadata {}
                                                                                                       :text ""}]
                                                                                          :braggingRights [{:metadata {}
                                                                                                            :value ""}]
                                                                                          :calendarUrls [{:formattedType ""
                                                                                                          :metadata {}
                                                                                                          :type ""
                                                                                                          :url ""}]
                                                                                          :clientData [{:key ""
                                                                                                        :metadata {}
                                                                                                        :value ""}]
                                                                                          :coverPhotos [{:metadata {}
                                                                                                         :url ""}]
                                                                                          :emailAddresses [{:displayName ""
                                                                                                            :formattedType ""
                                                                                                            :metadata {}
                                                                                                            :type ""
                                                                                                            :value ""}]
                                                                                          :etag ""
                                                                                          :events [{:date {}
                                                                                                    :formattedType ""
                                                                                                    :metadata {}
                                                                                                    :type ""}]
                                                                                          :externalIds [{:formattedType ""
                                                                                                         :metadata {}
                                                                                                         :type ""
                                                                                                         :value ""}]
                                                                                          :fileAses [{:metadata {}
                                                                                                      :value ""}]
                                                                                          :genders [{:addressMeAs ""
                                                                                                     :formattedValue ""
                                                                                                     :metadata {}
                                                                                                     :value ""}]
                                                                                          :imClients [{:formattedProtocol ""
                                                                                                       :formattedType ""
                                                                                                       :metadata {}
                                                                                                       :protocol ""
                                                                                                       :type ""
                                                                                                       :username ""}]
                                                                                          :interests [{:metadata {}
                                                                                                       :value ""}]
                                                                                          :locales [{:metadata {}
                                                                                                     :value ""}]
                                                                                          :locations [{:buildingId ""
                                                                                                       :current false
                                                                                                       :deskCode ""
                                                                                                       :floor ""
                                                                                                       :floorSection ""
                                                                                                       :metadata {}
                                                                                                       :type ""
                                                                                                       :value ""}]
                                                                                          :memberships [{:contactGroupMembership {:contactGroupId ""
                                                                                                                                  :contactGroupResourceName ""}
                                                                                                         :domainMembership {:inViewerDomain false}
                                                                                                         :metadata {}}]
                                                                                          :metadata {:deleted false
                                                                                                     :linkedPeopleResourceNames []
                                                                                                     :objectType ""
                                                                                                     :previousResourceNames []
                                                                                                     :sources [{}]}
                                                                                          :miscKeywords [{:formattedType ""
                                                                                                          :metadata {}
                                                                                                          :type ""
                                                                                                          :value ""}]
                                                                                          :names [{:displayName ""
                                                                                                   :displayNameLastFirst ""
                                                                                                   :familyName ""
                                                                                                   :givenName ""
                                                                                                   :honorificPrefix ""
                                                                                                   :honorificSuffix ""
                                                                                                   :metadata {}
                                                                                                   :middleName ""
                                                                                                   :phoneticFamilyName ""
                                                                                                   :phoneticFullName ""
                                                                                                   :phoneticGivenName ""
                                                                                                   :phoneticHonorificPrefix ""
                                                                                                   :phoneticHonorificSuffix ""
                                                                                                   :phoneticMiddleName ""
                                                                                                   :unstructuredName ""}]
                                                                                          :nicknames [{:metadata {}
                                                                                                       :type ""
                                                                                                       :value ""}]
                                                                                          :occupations [{:metadata {}
                                                                                                         :value ""}]
                                                                                          :organizations [{:costCenter ""
                                                                                                           :current false
                                                                                                           :department ""
                                                                                                           :domain ""
                                                                                                           :endDate {}
                                                                                                           :formattedType ""
                                                                                                           :fullTimeEquivalentMillipercent 0
                                                                                                           :jobDescription ""
                                                                                                           :location ""
                                                                                                           :metadata {}
                                                                                                           :name ""
                                                                                                           :phoneticName ""
                                                                                                           :startDate {}
                                                                                                           :symbol ""
                                                                                                           :title ""
                                                                                                           :type ""}]
                                                                                          :phoneNumbers [{:canonicalForm ""
                                                                                                          :formattedType ""
                                                                                                          :metadata {}
                                                                                                          :type ""
                                                                                                          :value ""}]
                                                                                          :photos [{:metadata {}
                                                                                                    :url ""}]
                                                                                          :relations [{:formattedType ""
                                                                                                       :metadata {}
                                                                                                       :person ""
                                                                                                       :type ""}]
                                                                                          :relationshipInterests [{:formattedValue ""
                                                                                                                   :metadata {}
                                                                                                                   :value ""}]
                                                                                          :relationshipStatuses [{:formattedValue ""
                                                                                                                  :metadata {}
                                                                                                                  :value ""}]
                                                                                          :residences [{:current false
                                                                                                        :metadata {}
                                                                                                        :value ""}]
                                                                                          :resourceName ""
                                                                                          :sipAddresses [{:formattedType ""
                                                                                                          :metadata {}
                                                                                                          :type ""
                                                                                                          :value ""}]
                                                                                          :skills [{:metadata {}
                                                                                                    :value ""}]
                                                                                          :taglines [{:metadata {}
                                                                                                      :value ""}]
                                                                                          :urls [{:formattedType ""
                                                                                                  :metadata {}
                                                                                                  :type ""
                                                                                                  :value ""}]
                                                                                          :userDefined [{:key ""
                                                                                                         :metadata {}
                                                                                                         :value ""}]}})
require "http/client"

url = "{{baseUrl}}/v1/:resourceName:updateContact"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/:resourceName:updateContact"),
    Content = new StringContent("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/:resourceName:updateContact");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName:updateContact"

	payload := strings.NewReader("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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/v1/:resourceName:updateContact HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 5206

{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:resourceName:updateContact")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName:updateContact"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:updateContact")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:resourceName:updateContact")
  .header("content-type", "application/json")
  .body("{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  addresses: [
    {
      city: '',
      country: '',
      countryCode: '',
      extendedAddress: '',
      formattedType: '',
      formattedValue: '',
      metadata: {
        primary: false,
        source: {
          etag: '',
          id: '',
          profileMetadata: {
            objectType: '',
            userTypes: []
          },
          type: '',
          updateTime: ''
        },
        sourcePrimary: false,
        verified: false
      },
      poBox: '',
      postalCode: '',
      region: '',
      streetAddress: '',
      type: ''
    }
  ],
  ageRange: '',
  ageRanges: [
    {
      ageRange: '',
      metadata: {}
    }
  ],
  biographies: [
    {
      contentType: '',
      metadata: {},
      value: ''
    }
  ],
  birthdays: [
    {
      date: {
        day: 0,
        month: 0,
        year: 0
      },
      metadata: {},
      text: ''
    }
  ],
  braggingRights: [
    {
      metadata: {},
      value: ''
    }
  ],
  calendarUrls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      url: ''
    }
  ],
  clientData: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ],
  coverPhotos: [
    {
      metadata: {},
      url: ''
    }
  ],
  emailAddresses: [
    {
      displayName: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  etag: '',
  events: [
    {
      date: {},
      formattedType: '',
      metadata: {},
      type: ''
    }
  ],
  externalIds: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  fileAses: [
    {
      metadata: {},
      value: ''
    }
  ],
  genders: [
    {
      addressMeAs: '',
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  imClients: [
    {
      formattedProtocol: '',
      formattedType: '',
      metadata: {},
      protocol: '',
      type: '',
      username: ''
    }
  ],
  interests: [
    {
      metadata: {},
      value: ''
    }
  ],
  locales: [
    {
      metadata: {},
      value: ''
    }
  ],
  locations: [
    {
      buildingId: '',
      current: false,
      deskCode: '',
      floor: '',
      floorSection: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  memberships: [
    {
      contactGroupMembership: {
        contactGroupId: '',
        contactGroupResourceName: ''
      },
      domainMembership: {
        inViewerDomain: false
      },
      metadata: {}
    }
  ],
  metadata: {
    deleted: false,
    linkedPeopleResourceNames: [],
    objectType: '',
    previousResourceNames: [],
    sources: [
      {}
    ]
  },
  miscKeywords: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  names: [
    {
      displayName: '',
      displayNameLastFirst: '',
      familyName: '',
      givenName: '',
      honorificPrefix: '',
      honorificSuffix: '',
      metadata: {},
      middleName: '',
      phoneticFamilyName: '',
      phoneticFullName: '',
      phoneticGivenName: '',
      phoneticHonorificPrefix: '',
      phoneticHonorificSuffix: '',
      phoneticMiddleName: '',
      unstructuredName: ''
    }
  ],
  nicknames: [
    {
      metadata: {},
      type: '',
      value: ''
    }
  ],
  occupations: [
    {
      metadata: {},
      value: ''
    }
  ],
  organizations: [
    {
      costCenter: '',
      current: false,
      department: '',
      domain: '',
      endDate: {},
      formattedType: '',
      fullTimeEquivalentMillipercent: 0,
      jobDescription: '',
      location: '',
      metadata: {},
      name: '',
      phoneticName: '',
      startDate: {},
      symbol: '',
      title: '',
      type: ''
    }
  ],
  phoneNumbers: [
    {
      canonicalForm: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  photos: [
    {
      metadata: {},
      url: ''
    }
  ],
  relations: [
    {
      formattedType: '',
      metadata: {},
      person: '',
      type: ''
    }
  ],
  relationshipInterests: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  relationshipStatuses: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  residences: [
    {
      current: false,
      metadata: {},
      value: ''
    }
  ],
  resourceName: '',
  sipAddresses: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  skills: [
    {
      metadata: {},
      value: ''
    }
  ],
  taglines: [
    {
      metadata: {},
      value: ''
    }
  ],
  urls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  userDefined: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ]
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:resourceName:updateContact',
  headers: {'content-type': 'application/json'},
  data: {
    addresses: [
      {
        city: '',
        country: '',
        countryCode: '',
        extendedAddress: '',
        formattedType: '',
        formattedValue: '',
        metadata: {
          primary: false,
          source: {
            etag: '',
            id: '',
            profileMetadata: {objectType: '', userTypes: []},
            type: '',
            updateTime: ''
          },
          sourcePrimary: false,
          verified: false
        },
        poBox: '',
        postalCode: '',
        region: '',
        streetAddress: '',
        type: ''
      }
    ],
    ageRange: '',
    ageRanges: [{ageRange: '', metadata: {}}],
    biographies: [{contentType: '', metadata: {}, value: ''}],
    birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
    braggingRights: [{metadata: {}, value: ''}],
    calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
    clientData: [{key: '', metadata: {}, value: ''}],
    coverPhotos: [{metadata: {}, url: ''}],
    emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
    etag: '',
    events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
    externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
    fileAses: [{metadata: {}, value: ''}],
    genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
    imClients: [
      {
        formattedProtocol: '',
        formattedType: '',
        metadata: {},
        protocol: '',
        type: '',
        username: ''
      }
    ],
    interests: [{metadata: {}, value: ''}],
    locales: [{metadata: {}, value: ''}],
    locations: [
      {
        buildingId: '',
        current: false,
        deskCode: '',
        floor: '',
        floorSection: '',
        metadata: {},
        type: '',
        value: ''
      }
    ],
    memberships: [
      {
        contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
        domainMembership: {inViewerDomain: false},
        metadata: {}
      }
    ],
    metadata: {
      deleted: false,
      linkedPeopleResourceNames: [],
      objectType: '',
      previousResourceNames: [],
      sources: [{}]
    },
    miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
    names: [
      {
        displayName: '',
        displayNameLastFirst: '',
        familyName: '',
        givenName: '',
        honorificPrefix: '',
        honorificSuffix: '',
        metadata: {},
        middleName: '',
        phoneticFamilyName: '',
        phoneticFullName: '',
        phoneticGivenName: '',
        phoneticHonorificPrefix: '',
        phoneticHonorificSuffix: '',
        phoneticMiddleName: '',
        unstructuredName: ''
      }
    ],
    nicknames: [{metadata: {}, type: '', value: ''}],
    occupations: [{metadata: {}, value: ''}],
    organizations: [
      {
        costCenter: '',
        current: false,
        department: '',
        domain: '',
        endDate: {},
        formattedType: '',
        fullTimeEquivalentMillipercent: 0,
        jobDescription: '',
        location: '',
        metadata: {},
        name: '',
        phoneticName: '',
        startDate: {},
        symbol: '',
        title: '',
        type: ''
      }
    ],
    phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
    photos: [{metadata: {}, url: ''}],
    relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
    relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
    relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
    residences: [{current: false, metadata: {}, value: ''}],
    resourceName: '',
    sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
    skills: [{metadata: {}, value: ''}],
    taglines: [{metadata: {}, value: ''}],
    urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
    userDefined: [{key: '', metadata: {}, value: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName:updateContact';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"addresses":[{"city":"","country":"","countryCode":"","extendedAddress":"","formattedType":"","formattedValue":"","metadata":{"primary":false,"source":{"etag":"","id":"","profileMetadata":{"objectType":"","userTypes":[]},"type":"","updateTime":""},"sourcePrimary":false,"verified":false},"poBox":"","postalCode":"","region":"","streetAddress":"","type":""}],"ageRange":"","ageRanges":[{"ageRange":"","metadata":{}}],"biographies":[{"contentType":"","metadata":{},"value":""}],"birthdays":[{"date":{"day":0,"month":0,"year":0},"metadata":{},"text":""}],"braggingRights":[{"metadata":{},"value":""}],"calendarUrls":[{"formattedType":"","metadata":{},"type":"","url":""}],"clientData":[{"key":"","metadata":{},"value":""}],"coverPhotos":[{"metadata":{},"url":""}],"emailAddresses":[{"displayName":"","formattedType":"","metadata":{},"type":"","value":""}],"etag":"","events":[{"date":{},"formattedType":"","metadata":{},"type":""}],"externalIds":[{"formattedType":"","metadata":{},"type":"","value":""}],"fileAses":[{"metadata":{},"value":""}],"genders":[{"addressMeAs":"","formattedValue":"","metadata":{},"value":""}],"imClients":[{"formattedProtocol":"","formattedType":"","metadata":{},"protocol":"","type":"","username":""}],"interests":[{"metadata":{},"value":""}],"locales":[{"metadata":{},"value":""}],"locations":[{"buildingId":"","current":false,"deskCode":"","floor":"","floorSection":"","metadata":{},"type":"","value":""}],"memberships":[{"contactGroupMembership":{"contactGroupId":"","contactGroupResourceName":""},"domainMembership":{"inViewerDomain":false},"metadata":{}}],"metadata":{"deleted":false,"linkedPeopleResourceNames":[],"objectType":"","previousResourceNames":[],"sources":[{}]},"miscKeywords":[{"formattedType":"","metadata":{},"type":"","value":""}],"names":[{"displayName":"","displayNameLastFirst":"","familyName":"","givenName":"","honorificPrefix":"","honorificSuffix":"","metadata":{},"middleName":"","phoneticFamilyName":"","phoneticFullName":"","phoneticGivenName":"","phoneticHonorificPrefix":"","phoneticHonorificSuffix":"","phoneticMiddleName":"","unstructuredName":""}],"nicknames":[{"metadata":{},"type":"","value":""}],"occupations":[{"metadata":{},"value":""}],"organizations":[{"costCenter":"","current":false,"department":"","domain":"","endDate":{},"formattedType":"","fullTimeEquivalentMillipercent":0,"jobDescription":"","location":"","metadata":{},"name":"","phoneticName":"","startDate":{},"symbol":"","title":"","type":""}],"phoneNumbers":[{"canonicalForm":"","formattedType":"","metadata":{},"type":"","value":""}],"photos":[{"metadata":{},"url":""}],"relations":[{"formattedType":"","metadata":{},"person":"","type":""}],"relationshipInterests":[{"formattedValue":"","metadata":{},"value":""}],"relationshipStatuses":[{"formattedValue":"","metadata":{},"value":""}],"residences":[{"current":false,"metadata":{},"value":""}],"resourceName":"","sipAddresses":[{"formattedType":"","metadata":{},"type":"","value":""}],"skills":[{"metadata":{},"value":""}],"taglines":[{"metadata":{},"value":""}],"urls":[{"formattedType":"","metadata":{},"type":"","value":""}],"userDefined":[{"key":"","metadata":{},"value":""}]}'
};

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}}/v1/:resourceName:updateContact',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "addresses": [\n    {\n      "city": "",\n      "country": "",\n      "countryCode": "",\n      "extendedAddress": "",\n      "formattedType": "",\n      "formattedValue": "",\n      "metadata": {\n        "primary": false,\n        "source": {\n          "etag": "",\n          "id": "",\n          "profileMetadata": {\n            "objectType": "",\n            "userTypes": []\n          },\n          "type": "",\n          "updateTime": ""\n        },\n        "sourcePrimary": false,\n        "verified": false\n      },\n      "poBox": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": "",\n      "type": ""\n    }\n  ],\n  "ageRange": "",\n  "ageRanges": [\n    {\n      "ageRange": "",\n      "metadata": {}\n    }\n  ],\n  "biographies": [\n    {\n      "contentType": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "birthdays": [\n    {\n      "date": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "metadata": {},\n      "text": ""\n    }\n  ],\n  "braggingRights": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "calendarUrls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "url": ""\n    }\n  ],\n  "clientData": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "coverPhotos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "emailAddresses": [\n    {\n      "displayName": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "etag": "",\n  "events": [\n    {\n      "date": {},\n      "formattedType": "",\n      "metadata": {},\n      "type": ""\n    }\n  ],\n  "externalIds": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "fileAses": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "genders": [\n    {\n      "addressMeAs": "",\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "imClients": [\n    {\n      "formattedProtocol": "",\n      "formattedType": "",\n      "metadata": {},\n      "protocol": "",\n      "type": "",\n      "username": ""\n    }\n  ],\n  "interests": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locales": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locations": [\n    {\n      "buildingId": "",\n      "current": false,\n      "deskCode": "",\n      "floor": "",\n      "floorSection": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "memberships": [\n    {\n      "contactGroupMembership": {\n        "contactGroupId": "",\n        "contactGroupResourceName": ""\n      },\n      "domainMembership": {\n        "inViewerDomain": false\n      },\n      "metadata": {}\n    }\n  ],\n  "metadata": {\n    "deleted": false,\n    "linkedPeopleResourceNames": [],\n    "objectType": "",\n    "previousResourceNames": [],\n    "sources": [\n      {}\n    ]\n  },\n  "miscKeywords": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "names": [\n    {\n      "displayName": "",\n      "displayNameLastFirst": "",\n      "familyName": "",\n      "givenName": "",\n      "honorificPrefix": "",\n      "honorificSuffix": "",\n      "metadata": {},\n      "middleName": "",\n      "phoneticFamilyName": "",\n      "phoneticFullName": "",\n      "phoneticGivenName": "",\n      "phoneticHonorificPrefix": "",\n      "phoneticHonorificSuffix": "",\n      "phoneticMiddleName": "",\n      "unstructuredName": ""\n    }\n  ],\n  "nicknames": [\n    {\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "occupations": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "organizations": [\n    {\n      "costCenter": "",\n      "current": false,\n      "department": "",\n      "domain": "",\n      "endDate": {},\n      "formattedType": "",\n      "fullTimeEquivalentMillipercent": 0,\n      "jobDescription": "",\n      "location": "",\n      "metadata": {},\n      "name": "",\n      "phoneticName": "",\n      "startDate": {},\n      "symbol": "",\n      "title": "",\n      "type": ""\n    }\n  ],\n  "phoneNumbers": [\n    {\n      "canonicalForm": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "photos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "relations": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "person": "",\n      "type": ""\n    }\n  ],\n  "relationshipInterests": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "relationshipStatuses": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "residences": [\n    {\n      "current": false,\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "resourceName": "",\n  "sipAddresses": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "skills": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "taglines": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "urls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "userDefined": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:updateContact")
  .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/v1/:resourceName:updateContact',
  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({
  addresses: [
    {
      city: '',
      country: '',
      countryCode: '',
      extendedAddress: '',
      formattedType: '',
      formattedValue: '',
      metadata: {
        primary: false,
        source: {
          etag: '',
          id: '',
          profileMetadata: {objectType: '', userTypes: []},
          type: '',
          updateTime: ''
        },
        sourcePrimary: false,
        verified: false
      },
      poBox: '',
      postalCode: '',
      region: '',
      streetAddress: '',
      type: ''
    }
  ],
  ageRange: '',
  ageRanges: [{ageRange: '', metadata: {}}],
  biographies: [{contentType: '', metadata: {}, value: ''}],
  birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
  braggingRights: [{metadata: {}, value: ''}],
  calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
  clientData: [{key: '', metadata: {}, value: ''}],
  coverPhotos: [{metadata: {}, url: ''}],
  emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
  etag: '',
  events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
  externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
  fileAses: [{metadata: {}, value: ''}],
  genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
  imClients: [
    {
      formattedProtocol: '',
      formattedType: '',
      metadata: {},
      protocol: '',
      type: '',
      username: ''
    }
  ],
  interests: [{metadata: {}, value: ''}],
  locales: [{metadata: {}, value: ''}],
  locations: [
    {
      buildingId: '',
      current: false,
      deskCode: '',
      floor: '',
      floorSection: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  memberships: [
    {
      contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
      domainMembership: {inViewerDomain: false},
      metadata: {}
    }
  ],
  metadata: {
    deleted: false,
    linkedPeopleResourceNames: [],
    objectType: '',
    previousResourceNames: [],
    sources: [{}]
  },
  miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
  names: [
    {
      displayName: '',
      displayNameLastFirst: '',
      familyName: '',
      givenName: '',
      honorificPrefix: '',
      honorificSuffix: '',
      metadata: {},
      middleName: '',
      phoneticFamilyName: '',
      phoneticFullName: '',
      phoneticGivenName: '',
      phoneticHonorificPrefix: '',
      phoneticHonorificSuffix: '',
      phoneticMiddleName: '',
      unstructuredName: ''
    }
  ],
  nicknames: [{metadata: {}, type: '', value: ''}],
  occupations: [{metadata: {}, value: ''}],
  organizations: [
    {
      costCenter: '',
      current: false,
      department: '',
      domain: '',
      endDate: {},
      formattedType: '',
      fullTimeEquivalentMillipercent: 0,
      jobDescription: '',
      location: '',
      metadata: {},
      name: '',
      phoneticName: '',
      startDate: {},
      symbol: '',
      title: '',
      type: ''
    }
  ],
  phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
  photos: [{metadata: {}, url: ''}],
  relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
  relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
  relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
  residences: [{current: false, metadata: {}, value: ''}],
  resourceName: '',
  sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
  skills: [{metadata: {}, value: ''}],
  taglines: [{metadata: {}, value: ''}],
  urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
  userDefined: [{key: '', metadata: {}, value: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:resourceName:updateContact',
  headers: {'content-type': 'application/json'},
  body: {
    addresses: [
      {
        city: '',
        country: '',
        countryCode: '',
        extendedAddress: '',
        formattedType: '',
        formattedValue: '',
        metadata: {
          primary: false,
          source: {
            etag: '',
            id: '',
            profileMetadata: {objectType: '', userTypes: []},
            type: '',
            updateTime: ''
          },
          sourcePrimary: false,
          verified: false
        },
        poBox: '',
        postalCode: '',
        region: '',
        streetAddress: '',
        type: ''
      }
    ],
    ageRange: '',
    ageRanges: [{ageRange: '', metadata: {}}],
    biographies: [{contentType: '', metadata: {}, value: ''}],
    birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
    braggingRights: [{metadata: {}, value: ''}],
    calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
    clientData: [{key: '', metadata: {}, value: ''}],
    coverPhotos: [{metadata: {}, url: ''}],
    emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
    etag: '',
    events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
    externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
    fileAses: [{metadata: {}, value: ''}],
    genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
    imClients: [
      {
        formattedProtocol: '',
        formattedType: '',
        metadata: {},
        protocol: '',
        type: '',
        username: ''
      }
    ],
    interests: [{metadata: {}, value: ''}],
    locales: [{metadata: {}, value: ''}],
    locations: [
      {
        buildingId: '',
        current: false,
        deskCode: '',
        floor: '',
        floorSection: '',
        metadata: {},
        type: '',
        value: ''
      }
    ],
    memberships: [
      {
        contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
        domainMembership: {inViewerDomain: false},
        metadata: {}
      }
    ],
    metadata: {
      deleted: false,
      linkedPeopleResourceNames: [],
      objectType: '',
      previousResourceNames: [],
      sources: [{}]
    },
    miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
    names: [
      {
        displayName: '',
        displayNameLastFirst: '',
        familyName: '',
        givenName: '',
        honorificPrefix: '',
        honorificSuffix: '',
        metadata: {},
        middleName: '',
        phoneticFamilyName: '',
        phoneticFullName: '',
        phoneticGivenName: '',
        phoneticHonorificPrefix: '',
        phoneticHonorificSuffix: '',
        phoneticMiddleName: '',
        unstructuredName: ''
      }
    ],
    nicknames: [{metadata: {}, type: '', value: ''}],
    occupations: [{metadata: {}, value: ''}],
    organizations: [
      {
        costCenter: '',
        current: false,
        department: '',
        domain: '',
        endDate: {},
        formattedType: '',
        fullTimeEquivalentMillipercent: 0,
        jobDescription: '',
        location: '',
        metadata: {},
        name: '',
        phoneticName: '',
        startDate: {},
        symbol: '',
        title: '',
        type: ''
      }
    ],
    phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
    photos: [{metadata: {}, url: ''}],
    relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
    relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
    relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
    residences: [{current: false, metadata: {}, value: ''}],
    resourceName: '',
    sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
    skills: [{metadata: {}, value: ''}],
    taglines: [{metadata: {}, value: ''}],
    urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
    userDefined: [{key: '', metadata: {}, value: ''}]
  },
  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}}/v1/:resourceName:updateContact');

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

req.type('json');
req.send({
  addresses: [
    {
      city: '',
      country: '',
      countryCode: '',
      extendedAddress: '',
      formattedType: '',
      formattedValue: '',
      metadata: {
        primary: false,
        source: {
          etag: '',
          id: '',
          profileMetadata: {
            objectType: '',
            userTypes: []
          },
          type: '',
          updateTime: ''
        },
        sourcePrimary: false,
        verified: false
      },
      poBox: '',
      postalCode: '',
      region: '',
      streetAddress: '',
      type: ''
    }
  ],
  ageRange: '',
  ageRanges: [
    {
      ageRange: '',
      metadata: {}
    }
  ],
  biographies: [
    {
      contentType: '',
      metadata: {},
      value: ''
    }
  ],
  birthdays: [
    {
      date: {
        day: 0,
        month: 0,
        year: 0
      },
      metadata: {},
      text: ''
    }
  ],
  braggingRights: [
    {
      metadata: {},
      value: ''
    }
  ],
  calendarUrls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      url: ''
    }
  ],
  clientData: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ],
  coverPhotos: [
    {
      metadata: {},
      url: ''
    }
  ],
  emailAddresses: [
    {
      displayName: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  etag: '',
  events: [
    {
      date: {},
      formattedType: '',
      metadata: {},
      type: ''
    }
  ],
  externalIds: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  fileAses: [
    {
      metadata: {},
      value: ''
    }
  ],
  genders: [
    {
      addressMeAs: '',
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  imClients: [
    {
      formattedProtocol: '',
      formattedType: '',
      metadata: {},
      protocol: '',
      type: '',
      username: ''
    }
  ],
  interests: [
    {
      metadata: {},
      value: ''
    }
  ],
  locales: [
    {
      metadata: {},
      value: ''
    }
  ],
  locations: [
    {
      buildingId: '',
      current: false,
      deskCode: '',
      floor: '',
      floorSection: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  memberships: [
    {
      contactGroupMembership: {
        contactGroupId: '',
        contactGroupResourceName: ''
      },
      domainMembership: {
        inViewerDomain: false
      },
      metadata: {}
    }
  ],
  metadata: {
    deleted: false,
    linkedPeopleResourceNames: [],
    objectType: '',
    previousResourceNames: [],
    sources: [
      {}
    ]
  },
  miscKeywords: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  names: [
    {
      displayName: '',
      displayNameLastFirst: '',
      familyName: '',
      givenName: '',
      honorificPrefix: '',
      honorificSuffix: '',
      metadata: {},
      middleName: '',
      phoneticFamilyName: '',
      phoneticFullName: '',
      phoneticGivenName: '',
      phoneticHonorificPrefix: '',
      phoneticHonorificSuffix: '',
      phoneticMiddleName: '',
      unstructuredName: ''
    }
  ],
  nicknames: [
    {
      metadata: {},
      type: '',
      value: ''
    }
  ],
  occupations: [
    {
      metadata: {},
      value: ''
    }
  ],
  organizations: [
    {
      costCenter: '',
      current: false,
      department: '',
      domain: '',
      endDate: {},
      formattedType: '',
      fullTimeEquivalentMillipercent: 0,
      jobDescription: '',
      location: '',
      metadata: {},
      name: '',
      phoneticName: '',
      startDate: {},
      symbol: '',
      title: '',
      type: ''
    }
  ],
  phoneNumbers: [
    {
      canonicalForm: '',
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  photos: [
    {
      metadata: {},
      url: ''
    }
  ],
  relations: [
    {
      formattedType: '',
      metadata: {},
      person: '',
      type: ''
    }
  ],
  relationshipInterests: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  relationshipStatuses: [
    {
      formattedValue: '',
      metadata: {},
      value: ''
    }
  ],
  residences: [
    {
      current: false,
      metadata: {},
      value: ''
    }
  ],
  resourceName: '',
  sipAddresses: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  skills: [
    {
      metadata: {},
      value: ''
    }
  ],
  taglines: [
    {
      metadata: {},
      value: ''
    }
  ],
  urls: [
    {
      formattedType: '',
      metadata: {},
      type: '',
      value: ''
    }
  ],
  userDefined: [
    {
      key: '',
      metadata: {},
      value: ''
    }
  ]
});

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}}/v1/:resourceName:updateContact',
  headers: {'content-type': 'application/json'},
  data: {
    addresses: [
      {
        city: '',
        country: '',
        countryCode: '',
        extendedAddress: '',
        formattedType: '',
        formattedValue: '',
        metadata: {
          primary: false,
          source: {
            etag: '',
            id: '',
            profileMetadata: {objectType: '', userTypes: []},
            type: '',
            updateTime: ''
          },
          sourcePrimary: false,
          verified: false
        },
        poBox: '',
        postalCode: '',
        region: '',
        streetAddress: '',
        type: ''
      }
    ],
    ageRange: '',
    ageRanges: [{ageRange: '', metadata: {}}],
    biographies: [{contentType: '', metadata: {}, value: ''}],
    birthdays: [{date: {day: 0, month: 0, year: 0}, metadata: {}, text: ''}],
    braggingRights: [{metadata: {}, value: ''}],
    calendarUrls: [{formattedType: '', metadata: {}, type: '', url: ''}],
    clientData: [{key: '', metadata: {}, value: ''}],
    coverPhotos: [{metadata: {}, url: ''}],
    emailAddresses: [{displayName: '', formattedType: '', metadata: {}, type: '', value: ''}],
    etag: '',
    events: [{date: {}, formattedType: '', metadata: {}, type: ''}],
    externalIds: [{formattedType: '', metadata: {}, type: '', value: ''}],
    fileAses: [{metadata: {}, value: ''}],
    genders: [{addressMeAs: '', formattedValue: '', metadata: {}, value: ''}],
    imClients: [
      {
        formattedProtocol: '',
        formattedType: '',
        metadata: {},
        protocol: '',
        type: '',
        username: ''
      }
    ],
    interests: [{metadata: {}, value: ''}],
    locales: [{metadata: {}, value: ''}],
    locations: [
      {
        buildingId: '',
        current: false,
        deskCode: '',
        floor: '',
        floorSection: '',
        metadata: {},
        type: '',
        value: ''
      }
    ],
    memberships: [
      {
        contactGroupMembership: {contactGroupId: '', contactGroupResourceName: ''},
        domainMembership: {inViewerDomain: false},
        metadata: {}
      }
    ],
    metadata: {
      deleted: false,
      linkedPeopleResourceNames: [],
      objectType: '',
      previousResourceNames: [],
      sources: [{}]
    },
    miscKeywords: [{formattedType: '', metadata: {}, type: '', value: ''}],
    names: [
      {
        displayName: '',
        displayNameLastFirst: '',
        familyName: '',
        givenName: '',
        honorificPrefix: '',
        honorificSuffix: '',
        metadata: {},
        middleName: '',
        phoneticFamilyName: '',
        phoneticFullName: '',
        phoneticGivenName: '',
        phoneticHonorificPrefix: '',
        phoneticHonorificSuffix: '',
        phoneticMiddleName: '',
        unstructuredName: ''
      }
    ],
    nicknames: [{metadata: {}, type: '', value: ''}],
    occupations: [{metadata: {}, value: ''}],
    organizations: [
      {
        costCenter: '',
        current: false,
        department: '',
        domain: '',
        endDate: {},
        formattedType: '',
        fullTimeEquivalentMillipercent: 0,
        jobDescription: '',
        location: '',
        metadata: {},
        name: '',
        phoneticName: '',
        startDate: {},
        symbol: '',
        title: '',
        type: ''
      }
    ],
    phoneNumbers: [{canonicalForm: '', formattedType: '', metadata: {}, type: '', value: ''}],
    photos: [{metadata: {}, url: ''}],
    relations: [{formattedType: '', metadata: {}, person: '', type: ''}],
    relationshipInterests: [{formattedValue: '', metadata: {}, value: ''}],
    relationshipStatuses: [{formattedValue: '', metadata: {}, value: ''}],
    residences: [{current: false, metadata: {}, value: ''}],
    resourceName: '',
    sipAddresses: [{formattedType: '', metadata: {}, type: '', value: ''}],
    skills: [{metadata: {}, value: ''}],
    taglines: [{metadata: {}, value: ''}],
    urls: [{formattedType: '', metadata: {}, type: '', value: ''}],
    userDefined: [{key: '', metadata: {}, value: ''}]
  }
};

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

const url = '{{baseUrl}}/v1/:resourceName:updateContact';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"addresses":[{"city":"","country":"","countryCode":"","extendedAddress":"","formattedType":"","formattedValue":"","metadata":{"primary":false,"source":{"etag":"","id":"","profileMetadata":{"objectType":"","userTypes":[]},"type":"","updateTime":""},"sourcePrimary":false,"verified":false},"poBox":"","postalCode":"","region":"","streetAddress":"","type":""}],"ageRange":"","ageRanges":[{"ageRange":"","metadata":{}}],"biographies":[{"contentType":"","metadata":{},"value":""}],"birthdays":[{"date":{"day":0,"month":0,"year":0},"metadata":{},"text":""}],"braggingRights":[{"metadata":{},"value":""}],"calendarUrls":[{"formattedType":"","metadata":{},"type":"","url":""}],"clientData":[{"key":"","metadata":{},"value":""}],"coverPhotos":[{"metadata":{},"url":""}],"emailAddresses":[{"displayName":"","formattedType":"","metadata":{},"type":"","value":""}],"etag":"","events":[{"date":{},"formattedType":"","metadata":{},"type":""}],"externalIds":[{"formattedType":"","metadata":{},"type":"","value":""}],"fileAses":[{"metadata":{},"value":""}],"genders":[{"addressMeAs":"","formattedValue":"","metadata":{},"value":""}],"imClients":[{"formattedProtocol":"","formattedType":"","metadata":{},"protocol":"","type":"","username":""}],"interests":[{"metadata":{},"value":""}],"locales":[{"metadata":{},"value":""}],"locations":[{"buildingId":"","current":false,"deskCode":"","floor":"","floorSection":"","metadata":{},"type":"","value":""}],"memberships":[{"contactGroupMembership":{"contactGroupId":"","contactGroupResourceName":""},"domainMembership":{"inViewerDomain":false},"metadata":{}}],"metadata":{"deleted":false,"linkedPeopleResourceNames":[],"objectType":"","previousResourceNames":[],"sources":[{}]},"miscKeywords":[{"formattedType":"","metadata":{},"type":"","value":""}],"names":[{"displayName":"","displayNameLastFirst":"","familyName":"","givenName":"","honorificPrefix":"","honorificSuffix":"","metadata":{},"middleName":"","phoneticFamilyName":"","phoneticFullName":"","phoneticGivenName":"","phoneticHonorificPrefix":"","phoneticHonorificSuffix":"","phoneticMiddleName":"","unstructuredName":""}],"nicknames":[{"metadata":{},"type":"","value":""}],"occupations":[{"metadata":{},"value":""}],"organizations":[{"costCenter":"","current":false,"department":"","domain":"","endDate":{},"formattedType":"","fullTimeEquivalentMillipercent":0,"jobDescription":"","location":"","metadata":{},"name":"","phoneticName":"","startDate":{},"symbol":"","title":"","type":""}],"phoneNumbers":[{"canonicalForm":"","formattedType":"","metadata":{},"type":"","value":""}],"photos":[{"metadata":{},"url":""}],"relations":[{"formattedType":"","metadata":{},"person":"","type":""}],"relationshipInterests":[{"formattedValue":"","metadata":{},"value":""}],"relationshipStatuses":[{"formattedValue":"","metadata":{},"value":""}],"residences":[{"current":false,"metadata":{},"value":""}],"resourceName":"","sipAddresses":[{"formattedType":"","metadata":{},"type":"","value":""}],"skills":[{"metadata":{},"value":""}],"taglines":[{"metadata":{},"value":""}],"urls":[{"formattedType":"","metadata":{},"type":"","value":""}],"userDefined":[{"key":"","metadata":{},"value":""}]}'
};

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 = @{ @"addresses": @[ @{ @"city": @"", @"country": @"", @"countryCode": @"", @"extendedAddress": @"", @"formattedType": @"", @"formattedValue": @"", @"metadata": @{ @"primary": @NO, @"source": @{ @"etag": @"", @"id": @"", @"profileMetadata": @{ @"objectType": @"", @"userTypes": @[  ] }, @"type": @"", @"updateTime": @"" }, @"sourcePrimary": @NO, @"verified": @NO }, @"poBox": @"", @"postalCode": @"", @"region": @"", @"streetAddress": @"", @"type": @"" } ],
                              @"ageRange": @"",
                              @"ageRanges": @[ @{ @"ageRange": @"", @"metadata": @{  } } ],
                              @"biographies": @[ @{ @"contentType": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"birthdays": @[ @{ @"date": @{ @"day": @0, @"month": @0, @"year": @0 }, @"metadata": @{  }, @"text": @"" } ],
                              @"braggingRights": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"calendarUrls": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"url": @"" } ],
                              @"clientData": @[ @{ @"key": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"coverPhotos": @[ @{ @"metadata": @{  }, @"url": @"" } ],
                              @"emailAddresses": @[ @{ @"displayName": @"", @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"etag": @"",
                              @"events": @[ @{ @"date": @{  }, @"formattedType": @"", @"metadata": @{  }, @"type": @"" } ],
                              @"externalIds": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"fileAses": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"genders": @[ @{ @"addressMeAs": @"", @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"imClients": @[ @{ @"formattedProtocol": @"", @"formattedType": @"", @"metadata": @{  }, @"protocol": @"", @"type": @"", @"username": @"" } ],
                              @"interests": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"locales": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"locations": @[ @{ @"buildingId": @"", @"current": @NO, @"deskCode": @"", @"floor": @"", @"floorSection": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"memberships": @[ @{ @"contactGroupMembership": @{ @"contactGroupId": @"", @"contactGroupResourceName": @"" }, @"domainMembership": @{ @"inViewerDomain": @NO }, @"metadata": @{  } } ],
                              @"metadata": @{ @"deleted": @NO, @"linkedPeopleResourceNames": @[  ], @"objectType": @"", @"previousResourceNames": @[  ], @"sources": @[ @{  } ] },
                              @"miscKeywords": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"names": @[ @{ @"displayName": @"", @"displayNameLastFirst": @"", @"familyName": @"", @"givenName": @"", @"honorificPrefix": @"", @"honorificSuffix": @"", @"metadata": @{  }, @"middleName": @"", @"phoneticFamilyName": @"", @"phoneticFullName": @"", @"phoneticGivenName": @"", @"phoneticHonorificPrefix": @"", @"phoneticHonorificSuffix": @"", @"phoneticMiddleName": @"", @"unstructuredName": @"" } ],
                              @"nicknames": @[ @{ @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"occupations": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"organizations": @[ @{ @"costCenter": @"", @"current": @NO, @"department": @"", @"domain": @"", @"endDate": @{  }, @"formattedType": @"", @"fullTimeEquivalentMillipercent": @0, @"jobDescription": @"", @"location": @"", @"metadata": @{  }, @"name": @"", @"phoneticName": @"", @"startDate": @{  }, @"symbol": @"", @"title": @"", @"type": @"" } ],
                              @"phoneNumbers": @[ @{ @"canonicalForm": @"", @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"photos": @[ @{ @"metadata": @{  }, @"url": @"" } ],
                              @"relations": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"person": @"", @"type": @"" } ],
                              @"relationshipInterests": @[ @{ @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"relationshipStatuses": @[ @{ @"formattedValue": @"", @"metadata": @{  }, @"value": @"" } ],
                              @"residences": @[ @{ @"current": @NO, @"metadata": @{  }, @"value": @"" } ],
                              @"resourceName": @"",
                              @"sipAddresses": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"skills": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"taglines": @[ @{ @"metadata": @{  }, @"value": @"" } ],
                              @"urls": @[ @{ @"formattedType": @"", @"metadata": @{  }, @"type": @"", @"value": @"" } ],
                              @"userDefined": @[ @{ @"key": @"", @"metadata": @{  }, @"value": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:resourceName:updateContact"]
                                                       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}}/v1/:resourceName:updateContact" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName:updateContact",
  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([
    'addresses' => [
        [
                'city' => '',
                'country' => '',
                'countryCode' => '',
                'extendedAddress' => '',
                'formattedType' => '',
                'formattedValue' => '',
                'metadata' => [
                                'primary' => null,
                                'source' => [
                                                                'etag' => '',
                                                                'id' => '',
                                                                'profileMetadata' => [
                                                                                                                                'objectType' => '',
                                                                                                                                'userTypes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => '',
                                                                'updateTime' => ''
                                ],
                                'sourcePrimary' => null,
                                'verified' => null
                ],
                'poBox' => '',
                'postalCode' => '',
                'region' => '',
                'streetAddress' => '',
                'type' => ''
        ]
    ],
    'ageRange' => '',
    'ageRanges' => [
        [
                'ageRange' => '',
                'metadata' => [
                                
                ]
        ]
    ],
    'biographies' => [
        [
                'contentType' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'birthdays' => [
        [
                'date' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'metadata' => [
                                
                ],
                'text' => ''
        ]
    ],
    'braggingRights' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'calendarUrls' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'url' => ''
        ]
    ],
    'clientData' => [
        [
                'key' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'coverPhotos' => [
        [
                'metadata' => [
                                
                ],
                'url' => ''
        ]
    ],
    'emailAddresses' => [
        [
                'displayName' => '',
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'etag' => '',
    'events' => [
        [
                'date' => [
                                
                ],
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => ''
        ]
    ],
    'externalIds' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'fileAses' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'genders' => [
        [
                'addressMeAs' => '',
                'formattedValue' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'imClients' => [
        [
                'formattedProtocol' => '',
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'protocol' => '',
                'type' => '',
                'username' => ''
        ]
    ],
    'interests' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'locales' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'locations' => [
        [
                'buildingId' => '',
                'current' => null,
                'deskCode' => '',
                'floor' => '',
                'floorSection' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'memberships' => [
        [
                'contactGroupMembership' => [
                                'contactGroupId' => '',
                                'contactGroupResourceName' => ''
                ],
                'domainMembership' => [
                                'inViewerDomain' => null
                ],
                'metadata' => [
                                
                ]
        ]
    ],
    'metadata' => [
        'deleted' => null,
        'linkedPeopleResourceNames' => [
                
        ],
        'objectType' => '',
        'previousResourceNames' => [
                
        ],
        'sources' => [
                [
                                
                ]
        ]
    ],
    'miscKeywords' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'names' => [
        [
                'displayName' => '',
                'displayNameLastFirst' => '',
                'familyName' => '',
                'givenName' => '',
                'honorificPrefix' => '',
                'honorificSuffix' => '',
                'metadata' => [
                                
                ],
                'middleName' => '',
                'phoneticFamilyName' => '',
                'phoneticFullName' => '',
                'phoneticGivenName' => '',
                'phoneticHonorificPrefix' => '',
                'phoneticHonorificSuffix' => '',
                'phoneticMiddleName' => '',
                'unstructuredName' => ''
        ]
    ],
    'nicknames' => [
        [
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'occupations' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'organizations' => [
        [
                'costCenter' => '',
                'current' => null,
                'department' => '',
                'domain' => '',
                'endDate' => [
                                
                ],
                'formattedType' => '',
                'fullTimeEquivalentMillipercent' => 0,
                'jobDescription' => '',
                'location' => '',
                'metadata' => [
                                
                ],
                'name' => '',
                'phoneticName' => '',
                'startDate' => [
                                
                ],
                'symbol' => '',
                'title' => '',
                'type' => ''
        ]
    ],
    'phoneNumbers' => [
        [
                'canonicalForm' => '',
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'photos' => [
        [
                'metadata' => [
                                
                ],
                'url' => ''
        ]
    ],
    'relations' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'person' => '',
                'type' => ''
        ]
    ],
    'relationshipInterests' => [
        [
                'formattedValue' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'relationshipStatuses' => [
        [
                'formattedValue' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'residences' => [
        [
                'current' => null,
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'resourceName' => '',
    'sipAddresses' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'skills' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'taglines' => [
        [
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ],
    'urls' => [
        [
                'formattedType' => '',
                'metadata' => [
                                
                ],
                'type' => '',
                'value' => ''
        ]
    ],
    'userDefined' => [
        [
                'key' => '',
                'metadata' => [
                                
                ],
                'value' => ''
        ]
    ]
  ]),
  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}}/v1/:resourceName:updateContact', [
  'body' => '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'addresses' => [
    [
        'city' => '',
        'country' => '',
        'countryCode' => '',
        'extendedAddress' => '',
        'formattedType' => '',
        'formattedValue' => '',
        'metadata' => [
                'primary' => null,
                'source' => [
                                'etag' => '',
                                'id' => '',
                                'profileMetadata' => [
                                                                'objectType' => '',
                                                                'userTypes' => [
                                                                                                                                
                                                                ]
                                ],
                                'type' => '',
                                'updateTime' => ''
                ],
                'sourcePrimary' => null,
                'verified' => null
        ],
        'poBox' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => '',
        'type' => ''
    ]
  ],
  'ageRange' => '',
  'ageRanges' => [
    [
        'ageRange' => '',
        'metadata' => [
                
        ]
    ]
  ],
  'biographies' => [
    [
        'contentType' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'birthdays' => [
    [
        'date' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'metadata' => [
                
        ],
        'text' => ''
    ]
  ],
  'braggingRights' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'calendarUrls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'url' => ''
    ]
  ],
  'clientData' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'coverPhotos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'emailAddresses' => [
    [
        'displayName' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'etag' => '',
  'events' => [
    [
        'date' => [
                
        ],
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => ''
    ]
  ],
  'externalIds' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'fileAses' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'genders' => [
    [
        'addressMeAs' => '',
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'imClients' => [
    [
        'formattedProtocol' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'protocol' => '',
        'type' => '',
        'username' => ''
    ]
  ],
  'interests' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locales' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locations' => [
    [
        'buildingId' => '',
        'current' => null,
        'deskCode' => '',
        'floor' => '',
        'floorSection' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'memberships' => [
    [
        'contactGroupMembership' => [
                'contactGroupId' => '',
                'contactGroupResourceName' => ''
        ],
        'domainMembership' => [
                'inViewerDomain' => null
        ],
        'metadata' => [
                
        ]
    ]
  ],
  'metadata' => [
    'deleted' => null,
    'linkedPeopleResourceNames' => [
        
    ],
    'objectType' => '',
    'previousResourceNames' => [
        
    ],
    'sources' => [
        [
                
        ]
    ]
  ],
  'miscKeywords' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'names' => [
    [
        'displayName' => '',
        'displayNameLastFirst' => '',
        'familyName' => '',
        'givenName' => '',
        'honorificPrefix' => '',
        'honorificSuffix' => '',
        'metadata' => [
                
        ],
        'middleName' => '',
        'phoneticFamilyName' => '',
        'phoneticFullName' => '',
        'phoneticGivenName' => '',
        'phoneticHonorificPrefix' => '',
        'phoneticHonorificSuffix' => '',
        'phoneticMiddleName' => '',
        'unstructuredName' => ''
    ]
  ],
  'nicknames' => [
    [
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'occupations' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'organizations' => [
    [
        'costCenter' => '',
        'current' => null,
        'department' => '',
        'domain' => '',
        'endDate' => [
                
        ],
        'formattedType' => '',
        'fullTimeEquivalentMillipercent' => 0,
        'jobDescription' => '',
        'location' => '',
        'metadata' => [
                
        ],
        'name' => '',
        'phoneticName' => '',
        'startDate' => [
                
        ],
        'symbol' => '',
        'title' => '',
        'type' => ''
    ]
  ],
  'phoneNumbers' => [
    [
        'canonicalForm' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'photos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'relations' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'person' => '',
        'type' => ''
    ]
  ],
  'relationshipInterests' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'relationshipStatuses' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'residences' => [
    [
        'current' => null,
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'resourceName' => '',
  'sipAddresses' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'skills' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'taglines' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'urls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'userDefined' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'addresses' => [
    [
        'city' => '',
        'country' => '',
        'countryCode' => '',
        'extendedAddress' => '',
        'formattedType' => '',
        'formattedValue' => '',
        'metadata' => [
                'primary' => null,
                'source' => [
                                'etag' => '',
                                'id' => '',
                                'profileMetadata' => [
                                                                'objectType' => '',
                                                                'userTypes' => [
                                                                                                                                
                                                                ]
                                ],
                                'type' => '',
                                'updateTime' => ''
                ],
                'sourcePrimary' => null,
                'verified' => null
        ],
        'poBox' => '',
        'postalCode' => '',
        'region' => '',
        'streetAddress' => '',
        'type' => ''
    ]
  ],
  'ageRange' => '',
  'ageRanges' => [
    [
        'ageRange' => '',
        'metadata' => [
                
        ]
    ]
  ],
  'biographies' => [
    [
        'contentType' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'birthdays' => [
    [
        'date' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'metadata' => [
                
        ],
        'text' => ''
    ]
  ],
  'braggingRights' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'calendarUrls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'url' => ''
    ]
  ],
  'clientData' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'coverPhotos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'emailAddresses' => [
    [
        'displayName' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'etag' => '',
  'events' => [
    [
        'date' => [
                
        ],
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => ''
    ]
  ],
  'externalIds' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'fileAses' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'genders' => [
    [
        'addressMeAs' => '',
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'imClients' => [
    [
        'formattedProtocol' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'protocol' => '',
        'type' => '',
        'username' => ''
    ]
  ],
  'interests' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locales' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'locations' => [
    [
        'buildingId' => '',
        'current' => null,
        'deskCode' => '',
        'floor' => '',
        'floorSection' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'memberships' => [
    [
        'contactGroupMembership' => [
                'contactGroupId' => '',
                'contactGroupResourceName' => ''
        ],
        'domainMembership' => [
                'inViewerDomain' => null
        ],
        'metadata' => [
                
        ]
    ]
  ],
  'metadata' => [
    'deleted' => null,
    'linkedPeopleResourceNames' => [
        
    ],
    'objectType' => '',
    'previousResourceNames' => [
        
    ],
    'sources' => [
        [
                
        ]
    ]
  ],
  'miscKeywords' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'names' => [
    [
        'displayName' => '',
        'displayNameLastFirst' => '',
        'familyName' => '',
        'givenName' => '',
        'honorificPrefix' => '',
        'honorificSuffix' => '',
        'metadata' => [
                
        ],
        'middleName' => '',
        'phoneticFamilyName' => '',
        'phoneticFullName' => '',
        'phoneticGivenName' => '',
        'phoneticHonorificPrefix' => '',
        'phoneticHonorificSuffix' => '',
        'phoneticMiddleName' => '',
        'unstructuredName' => ''
    ]
  ],
  'nicknames' => [
    [
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'occupations' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'organizations' => [
    [
        'costCenter' => '',
        'current' => null,
        'department' => '',
        'domain' => '',
        'endDate' => [
                
        ],
        'formattedType' => '',
        'fullTimeEquivalentMillipercent' => 0,
        'jobDescription' => '',
        'location' => '',
        'metadata' => [
                
        ],
        'name' => '',
        'phoneticName' => '',
        'startDate' => [
                
        ],
        'symbol' => '',
        'title' => '',
        'type' => ''
    ]
  ],
  'phoneNumbers' => [
    [
        'canonicalForm' => '',
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'photos' => [
    [
        'metadata' => [
                
        ],
        'url' => ''
    ]
  ],
  'relations' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'person' => '',
        'type' => ''
    ]
  ],
  'relationshipInterests' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'relationshipStatuses' => [
    [
        'formattedValue' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'residences' => [
    [
        'current' => null,
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'resourceName' => '',
  'sipAddresses' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'skills' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'taglines' => [
    [
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ],
  'urls' => [
    [
        'formattedType' => '',
        'metadata' => [
                
        ],
        'type' => '',
        'value' => ''
    ]
  ],
  'userDefined' => [
    [
        'key' => '',
        'metadata' => [
                
        ],
        'value' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:resourceName:updateContact');
$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}}/v1/:resourceName:updateContact' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName:updateContact' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ]\n}"

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

conn.request("PATCH", "/baseUrl/v1/:resourceName:updateContact", payload, headers)

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

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

url = "{{baseUrl}}/v1/:resourceName:updateContact"

payload = {
    "addresses": [
        {
            "city": "",
            "country": "",
            "countryCode": "",
            "extendedAddress": "",
            "formattedType": "",
            "formattedValue": "",
            "metadata": {
                "primary": False,
                "source": {
                    "etag": "",
                    "id": "",
                    "profileMetadata": {
                        "objectType": "",
                        "userTypes": []
                    },
                    "type": "",
                    "updateTime": ""
                },
                "sourcePrimary": False,
                "verified": False
            },
            "poBox": "",
            "postalCode": "",
            "region": "",
            "streetAddress": "",
            "type": ""
        }
    ],
    "ageRange": "",
    "ageRanges": [
        {
            "ageRange": "",
            "metadata": {}
        }
    ],
    "biographies": [
        {
            "contentType": "",
            "metadata": {},
            "value": ""
        }
    ],
    "birthdays": [
        {
            "date": {
                "day": 0,
                "month": 0,
                "year": 0
            },
            "metadata": {},
            "text": ""
        }
    ],
    "braggingRights": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "calendarUrls": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "url": ""
        }
    ],
    "clientData": [
        {
            "key": "",
            "metadata": {},
            "value": ""
        }
    ],
    "coverPhotos": [
        {
            "metadata": {},
            "url": ""
        }
    ],
    "emailAddresses": [
        {
            "displayName": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "etag": "",
    "events": [
        {
            "date": {},
            "formattedType": "",
            "metadata": {},
            "type": ""
        }
    ],
    "externalIds": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "fileAses": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "genders": [
        {
            "addressMeAs": "",
            "formattedValue": "",
            "metadata": {},
            "value": ""
        }
    ],
    "imClients": [
        {
            "formattedProtocol": "",
            "formattedType": "",
            "metadata": {},
            "protocol": "",
            "type": "",
            "username": ""
        }
    ],
    "interests": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "locales": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "locations": [
        {
            "buildingId": "",
            "current": False,
            "deskCode": "",
            "floor": "",
            "floorSection": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "memberships": [
        {
            "contactGroupMembership": {
                "contactGroupId": "",
                "contactGroupResourceName": ""
            },
            "domainMembership": { "inViewerDomain": False },
            "metadata": {}
        }
    ],
    "metadata": {
        "deleted": False,
        "linkedPeopleResourceNames": [],
        "objectType": "",
        "previousResourceNames": [],
        "sources": [{}]
    },
    "miscKeywords": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "names": [
        {
            "displayName": "",
            "displayNameLastFirst": "",
            "familyName": "",
            "givenName": "",
            "honorificPrefix": "",
            "honorificSuffix": "",
            "metadata": {},
            "middleName": "",
            "phoneticFamilyName": "",
            "phoneticFullName": "",
            "phoneticGivenName": "",
            "phoneticHonorificPrefix": "",
            "phoneticHonorificSuffix": "",
            "phoneticMiddleName": "",
            "unstructuredName": ""
        }
    ],
    "nicknames": [
        {
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "occupations": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "organizations": [
        {
            "costCenter": "",
            "current": False,
            "department": "",
            "domain": "",
            "endDate": {},
            "formattedType": "",
            "fullTimeEquivalentMillipercent": 0,
            "jobDescription": "",
            "location": "",
            "metadata": {},
            "name": "",
            "phoneticName": "",
            "startDate": {},
            "symbol": "",
            "title": "",
            "type": ""
        }
    ],
    "phoneNumbers": [
        {
            "canonicalForm": "",
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "photos": [
        {
            "metadata": {},
            "url": ""
        }
    ],
    "relations": [
        {
            "formattedType": "",
            "metadata": {},
            "person": "",
            "type": ""
        }
    ],
    "relationshipInterests": [
        {
            "formattedValue": "",
            "metadata": {},
            "value": ""
        }
    ],
    "relationshipStatuses": [
        {
            "formattedValue": "",
            "metadata": {},
            "value": ""
        }
    ],
    "residences": [
        {
            "current": False,
            "metadata": {},
            "value": ""
        }
    ],
    "resourceName": "",
    "sipAddresses": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "skills": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "taglines": [
        {
            "metadata": {},
            "value": ""
        }
    ],
    "urls": [
        {
            "formattedType": "",
            "metadata": {},
            "type": "",
            "value": ""
        }
    ],
    "userDefined": [
        {
            "key": "",
            "metadata": {},
            "value": ""
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:resourceName:updateContact"

payload <- "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/:resourceName:updateContact")

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  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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/v1/:resourceName:updateContact') do |req|
  req.body = "{\n  \"addresses\": [\n    {\n      \"city\": \"\",\n      \"country\": \"\",\n      \"countryCode\": \"\",\n      \"extendedAddress\": \"\",\n      \"formattedType\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {\n        \"primary\": false,\n        \"source\": {\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"profileMetadata\": {\n            \"objectType\": \"\",\n            \"userTypes\": []\n          },\n          \"type\": \"\",\n          \"updateTime\": \"\"\n        },\n        \"sourcePrimary\": false,\n        \"verified\": false\n      },\n      \"poBox\": \"\",\n      \"postalCode\": \"\",\n      \"region\": \"\",\n      \"streetAddress\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"ageRange\": \"\",\n  \"ageRanges\": [\n    {\n      \"ageRange\": \"\",\n      \"metadata\": {}\n    }\n  ],\n  \"biographies\": [\n    {\n      \"contentType\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"birthdays\": [\n    {\n      \"date\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"metadata\": {},\n      \"text\": \"\"\n    }\n  ],\n  \"braggingRights\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"calendarUrls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"clientData\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"coverPhotos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"emailAddresses\": [\n    {\n      \"displayName\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"etag\": \"\",\n  \"events\": [\n    {\n      \"date\": {},\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\"\n    }\n  ],\n  \"externalIds\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"fileAses\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"genders\": [\n    {\n      \"addressMeAs\": \"\",\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"imClients\": [\n    {\n      \"formattedProtocol\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"protocol\": \"\",\n      \"type\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"interests\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locales\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"locations\": [\n    {\n      \"buildingId\": \"\",\n      \"current\": false,\n      \"deskCode\": \"\",\n      \"floor\": \"\",\n      \"floorSection\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"memberships\": [\n    {\n      \"contactGroupMembership\": {\n        \"contactGroupId\": \"\",\n        \"contactGroupResourceName\": \"\"\n      },\n      \"domainMembership\": {\n        \"inViewerDomain\": false\n      },\n      \"metadata\": {}\n    }\n  ],\n  \"metadata\": {\n    \"deleted\": false,\n    \"linkedPeopleResourceNames\": [],\n    \"objectType\": \"\",\n    \"previousResourceNames\": [],\n    \"sources\": [\n      {}\n    ]\n  },\n  \"miscKeywords\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"names\": [\n    {\n      \"displayName\": \"\",\n      \"displayNameLastFirst\": \"\",\n      \"familyName\": \"\",\n      \"givenName\": \"\",\n      \"honorificPrefix\": \"\",\n      \"honorificSuffix\": \"\",\n      \"metadata\": {},\n      \"middleName\": \"\",\n      \"phoneticFamilyName\": \"\",\n      \"phoneticFullName\": \"\",\n      \"phoneticGivenName\": \"\",\n      \"phoneticHonorificPrefix\": \"\",\n      \"phoneticHonorificSuffix\": \"\",\n      \"phoneticMiddleName\": \"\",\n      \"unstructuredName\": \"\"\n    }\n  ],\n  \"nicknames\": [\n    {\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"occupations\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"organizations\": [\n    {\n      \"costCenter\": \"\",\n      \"current\": false,\n      \"department\": \"\",\n      \"domain\": \"\",\n      \"endDate\": {},\n      \"formattedType\": \"\",\n      \"fullTimeEquivalentMillipercent\": 0,\n      \"jobDescription\": \"\",\n      \"location\": \"\",\n      \"metadata\": {},\n      \"name\": \"\",\n      \"phoneticName\": \"\",\n      \"startDate\": {},\n      \"symbol\": \"\",\n      \"title\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phoneNumbers\": [\n    {\n      \"canonicalForm\": \"\",\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"photos\": [\n    {\n      \"metadata\": {},\n      \"url\": \"\"\n    }\n  ],\n  \"relations\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"person\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"relationshipInterests\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"relationshipStatuses\": [\n    {\n      \"formattedValue\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"residences\": [\n    {\n      \"current\": false,\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"resourceName\": \"\",\n  \"sipAddresses\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"skills\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"taglines\": [\n    {\n      \"metadata\": {},\n      \"value\": \"\"\n    }\n  ],\n  \"urls\": [\n    {\n      \"formattedType\": \"\",\n      \"metadata\": {},\n      \"type\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefined\": [\n    {\n      \"key\": \"\",\n      \"metadata\": {},\n      \"value\": \"\"\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}}/v1/:resourceName:updateContact";

    let payload = json!({
        "addresses": (
            json!({
                "city": "",
                "country": "",
                "countryCode": "",
                "extendedAddress": "",
                "formattedType": "",
                "formattedValue": "",
                "metadata": json!({
                    "primary": false,
                    "source": json!({
                        "etag": "",
                        "id": "",
                        "profileMetadata": json!({
                            "objectType": "",
                            "userTypes": ()
                        }),
                        "type": "",
                        "updateTime": ""
                    }),
                    "sourcePrimary": false,
                    "verified": false
                }),
                "poBox": "",
                "postalCode": "",
                "region": "",
                "streetAddress": "",
                "type": ""
            })
        ),
        "ageRange": "",
        "ageRanges": (
            json!({
                "ageRange": "",
                "metadata": json!({})
            })
        ),
        "biographies": (
            json!({
                "contentType": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "birthdays": (
            json!({
                "date": json!({
                    "day": 0,
                    "month": 0,
                    "year": 0
                }),
                "metadata": json!({}),
                "text": ""
            })
        ),
        "braggingRights": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "calendarUrls": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "url": ""
            })
        ),
        "clientData": (
            json!({
                "key": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "coverPhotos": (
            json!({
                "metadata": json!({}),
                "url": ""
            })
        ),
        "emailAddresses": (
            json!({
                "displayName": "",
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "etag": "",
        "events": (
            json!({
                "date": json!({}),
                "formattedType": "",
                "metadata": json!({}),
                "type": ""
            })
        ),
        "externalIds": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "fileAses": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "genders": (
            json!({
                "addressMeAs": "",
                "formattedValue": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "imClients": (
            json!({
                "formattedProtocol": "",
                "formattedType": "",
                "metadata": json!({}),
                "protocol": "",
                "type": "",
                "username": ""
            })
        ),
        "interests": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "locales": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "locations": (
            json!({
                "buildingId": "",
                "current": false,
                "deskCode": "",
                "floor": "",
                "floorSection": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "memberships": (
            json!({
                "contactGroupMembership": json!({
                    "contactGroupId": "",
                    "contactGroupResourceName": ""
                }),
                "domainMembership": json!({"inViewerDomain": false}),
                "metadata": json!({})
            })
        ),
        "metadata": json!({
            "deleted": false,
            "linkedPeopleResourceNames": (),
            "objectType": "",
            "previousResourceNames": (),
            "sources": (json!({}))
        }),
        "miscKeywords": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "names": (
            json!({
                "displayName": "",
                "displayNameLastFirst": "",
                "familyName": "",
                "givenName": "",
                "honorificPrefix": "",
                "honorificSuffix": "",
                "metadata": json!({}),
                "middleName": "",
                "phoneticFamilyName": "",
                "phoneticFullName": "",
                "phoneticGivenName": "",
                "phoneticHonorificPrefix": "",
                "phoneticHonorificSuffix": "",
                "phoneticMiddleName": "",
                "unstructuredName": ""
            })
        ),
        "nicknames": (
            json!({
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "occupations": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "organizations": (
            json!({
                "costCenter": "",
                "current": false,
                "department": "",
                "domain": "",
                "endDate": json!({}),
                "formattedType": "",
                "fullTimeEquivalentMillipercent": 0,
                "jobDescription": "",
                "location": "",
                "metadata": json!({}),
                "name": "",
                "phoneticName": "",
                "startDate": json!({}),
                "symbol": "",
                "title": "",
                "type": ""
            })
        ),
        "phoneNumbers": (
            json!({
                "canonicalForm": "",
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "photos": (
            json!({
                "metadata": json!({}),
                "url": ""
            })
        ),
        "relations": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "person": "",
                "type": ""
            })
        ),
        "relationshipInterests": (
            json!({
                "formattedValue": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "relationshipStatuses": (
            json!({
                "formattedValue": "",
                "metadata": json!({}),
                "value": ""
            })
        ),
        "residences": (
            json!({
                "current": false,
                "metadata": json!({}),
                "value": ""
            })
        ),
        "resourceName": "",
        "sipAddresses": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "skills": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "taglines": (
            json!({
                "metadata": json!({}),
                "value": ""
            })
        ),
        "urls": (
            json!({
                "formattedType": "",
                "metadata": json!({}),
                "type": "",
                "value": ""
            })
        ),
        "userDefined": (
            json!({
                "key": "",
                "metadata": json!({}),
                "value": ""
            })
        )
    });

    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}}/v1/:resourceName:updateContact \
  --header 'content-type: application/json' \
  --data '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}'
echo '{
  "addresses": [
    {
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": {
        "primary": false,
        "source": {
          "etag": "",
          "id": "",
          "profileMetadata": {
            "objectType": "",
            "userTypes": []
          },
          "type": "",
          "updateTime": ""
        },
        "sourcePrimary": false,
        "verified": false
      },
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    }
  ],
  "ageRange": "",
  "ageRanges": [
    {
      "ageRange": "",
      "metadata": {}
    }
  ],
  "biographies": [
    {
      "contentType": "",
      "metadata": {},
      "value": ""
    }
  ],
  "birthdays": [
    {
      "date": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "metadata": {},
      "text": ""
    }
  ],
  "braggingRights": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "calendarUrls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "url": ""
    }
  ],
  "clientData": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ],
  "coverPhotos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "emailAddresses": [
    {
      "displayName": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "etag": "",
  "events": [
    {
      "date": {},
      "formattedType": "",
      "metadata": {},
      "type": ""
    }
  ],
  "externalIds": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "fileAses": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "genders": [
    {
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "imClients": [
    {
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": {},
      "protocol": "",
      "type": "",
      "username": ""
    }
  ],
  "interests": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locales": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "locations": [
    {
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "memberships": [
    {
      "contactGroupMembership": {
        "contactGroupId": "",
        "contactGroupResourceName": ""
      },
      "domainMembership": {
        "inViewerDomain": false
      },
      "metadata": {}
    }
  ],
  "metadata": {
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [
      {}
    ]
  },
  "miscKeywords": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "names": [
    {
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": {},
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    }
  ],
  "nicknames": [
    {
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "occupations": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "organizations": [
    {
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": {},
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": {},
      "name": "",
      "phoneticName": "",
      "startDate": {},
      "symbol": "",
      "title": "",
      "type": ""
    }
  ],
  "phoneNumbers": [
    {
      "canonicalForm": "",
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "photos": [
    {
      "metadata": {},
      "url": ""
    }
  ],
  "relations": [
    {
      "formattedType": "",
      "metadata": {},
      "person": "",
      "type": ""
    }
  ],
  "relationshipInterests": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "relationshipStatuses": [
    {
      "formattedValue": "",
      "metadata": {},
      "value": ""
    }
  ],
  "residences": [
    {
      "current": false,
      "metadata": {},
      "value": ""
    }
  ],
  "resourceName": "",
  "sipAddresses": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "skills": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "taglines": [
    {
      "metadata": {},
      "value": ""
    }
  ],
  "urls": [
    {
      "formattedType": "",
      "metadata": {},
      "type": "",
      "value": ""
    }
  ],
  "userDefined": [
    {
      "key": "",
      "metadata": {},
      "value": ""
    }
  ]
}' |  \
  http PATCH {{baseUrl}}/v1/:resourceName:updateContact \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "addresses": [\n    {\n      "city": "",\n      "country": "",\n      "countryCode": "",\n      "extendedAddress": "",\n      "formattedType": "",\n      "formattedValue": "",\n      "metadata": {\n        "primary": false,\n        "source": {\n          "etag": "",\n          "id": "",\n          "profileMetadata": {\n            "objectType": "",\n            "userTypes": []\n          },\n          "type": "",\n          "updateTime": ""\n        },\n        "sourcePrimary": false,\n        "verified": false\n      },\n      "poBox": "",\n      "postalCode": "",\n      "region": "",\n      "streetAddress": "",\n      "type": ""\n    }\n  ],\n  "ageRange": "",\n  "ageRanges": [\n    {\n      "ageRange": "",\n      "metadata": {}\n    }\n  ],\n  "biographies": [\n    {\n      "contentType": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "birthdays": [\n    {\n      "date": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "metadata": {},\n      "text": ""\n    }\n  ],\n  "braggingRights": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "calendarUrls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "url": ""\n    }\n  ],\n  "clientData": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "coverPhotos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "emailAddresses": [\n    {\n      "displayName": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "etag": "",\n  "events": [\n    {\n      "date": {},\n      "formattedType": "",\n      "metadata": {},\n      "type": ""\n    }\n  ],\n  "externalIds": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "fileAses": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "genders": [\n    {\n      "addressMeAs": "",\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "imClients": [\n    {\n      "formattedProtocol": "",\n      "formattedType": "",\n      "metadata": {},\n      "protocol": "",\n      "type": "",\n      "username": ""\n    }\n  ],\n  "interests": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locales": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "locations": [\n    {\n      "buildingId": "",\n      "current": false,\n      "deskCode": "",\n      "floor": "",\n      "floorSection": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "memberships": [\n    {\n      "contactGroupMembership": {\n        "contactGroupId": "",\n        "contactGroupResourceName": ""\n      },\n      "domainMembership": {\n        "inViewerDomain": false\n      },\n      "metadata": {}\n    }\n  ],\n  "metadata": {\n    "deleted": false,\n    "linkedPeopleResourceNames": [],\n    "objectType": "",\n    "previousResourceNames": [],\n    "sources": [\n      {}\n    ]\n  },\n  "miscKeywords": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "names": [\n    {\n      "displayName": "",\n      "displayNameLastFirst": "",\n      "familyName": "",\n      "givenName": "",\n      "honorificPrefix": "",\n      "honorificSuffix": "",\n      "metadata": {},\n      "middleName": "",\n      "phoneticFamilyName": "",\n      "phoneticFullName": "",\n      "phoneticGivenName": "",\n      "phoneticHonorificPrefix": "",\n      "phoneticHonorificSuffix": "",\n      "phoneticMiddleName": "",\n      "unstructuredName": ""\n    }\n  ],\n  "nicknames": [\n    {\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "occupations": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "organizations": [\n    {\n      "costCenter": "",\n      "current": false,\n      "department": "",\n      "domain": "",\n      "endDate": {},\n      "formattedType": "",\n      "fullTimeEquivalentMillipercent": 0,\n      "jobDescription": "",\n      "location": "",\n      "metadata": {},\n      "name": "",\n      "phoneticName": "",\n      "startDate": {},\n      "symbol": "",\n      "title": "",\n      "type": ""\n    }\n  ],\n  "phoneNumbers": [\n    {\n      "canonicalForm": "",\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "photos": [\n    {\n      "metadata": {},\n      "url": ""\n    }\n  ],\n  "relations": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "person": "",\n      "type": ""\n    }\n  ],\n  "relationshipInterests": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "relationshipStatuses": [\n    {\n      "formattedValue": "",\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "residences": [\n    {\n      "current": false,\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "resourceName": "",\n  "sipAddresses": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "skills": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "taglines": [\n    {\n      "metadata": {},\n      "value": ""\n    }\n  ],\n  "urls": [\n    {\n      "formattedType": "",\n      "metadata": {},\n      "type": "",\n      "value": ""\n    }\n  ],\n  "userDefined": [\n    {\n      "key": "",\n      "metadata": {},\n      "value": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v1/:resourceName:updateContact
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "addresses": [
    [
      "city": "",
      "country": "",
      "countryCode": "",
      "extendedAddress": "",
      "formattedType": "",
      "formattedValue": "",
      "metadata": [
        "primary": false,
        "source": [
          "etag": "",
          "id": "",
          "profileMetadata": [
            "objectType": "",
            "userTypes": []
          ],
          "type": "",
          "updateTime": ""
        ],
        "sourcePrimary": false,
        "verified": false
      ],
      "poBox": "",
      "postalCode": "",
      "region": "",
      "streetAddress": "",
      "type": ""
    ]
  ],
  "ageRange": "",
  "ageRanges": [
    [
      "ageRange": "",
      "metadata": []
    ]
  ],
  "biographies": [
    [
      "contentType": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "birthdays": [
    [
      "date": [
        "day": 0,
        "month": 0,
        "year": 0
      ],
      "metadata": [],
      "text": ""
    ]
  ],
  "braggingRights": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "calendarUrls": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "url": ""
    ]
  ],
  "clientData": [
    [
      "key": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "coverPhotos": [
    [
      "metadata": [],
      "url": ""
    ]
  ],
  "emailAddresses": [
    [
      "displayName": "",
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "etag": "",
  "events": [
    [
      "date": [],
      "formattedType": "",
      "metadata": [],
      "type": ""
    ]
  ],
  "externalIds": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "fileAses": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "genders": [
    [
      "addressMeAs": "",
      "formattedValue": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "imClients": [
    [
      "formattedProtocol": "",
      "formattedType": "",
      "metadata": [],
      "protocol": "",
      "type": "",
      "username": ""
    ]
  ],
  "interests": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "locales": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "locations": [
    [
      "buildingId": "",
      "current": false,
      "deskCode": "",
      "floor": "",
      "floorSection": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "memberships": [
    [
      "contactGroupMembership": [
        "contactGroupId": "",
        "contactGroupResourceName": ""
      ],
      "domainMembership": ["inViewerDomain": false],
      "metadata": []
    ]
  ],
  "metadata": [
    "deleted": false,
    "linkedPeopleResourceNames": [],
    "objectType": "",
    "previousResourceNames": [],
    "sources": [[]]
  ],
  "miscKeywords": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "names": [
    [
      "displayName": "",
      "displayNameLastFirst": "",
      "familyName": "",
      "givenName": "",
      "honorificPrefix": "",
      "honorificSuffix": "",
      "metadata": [],
      "middleName": "",
      "phoneticFamilyName": "",
      "phoneticFullName": "",
      "phoneticGivenName": "",
      "phoneticHonorificPrefix": "",
      "phoneticHonorificSuffix": "",
      "phoneticMiddleName": "",
      "unstructuredName": ""
    ]
  ],
  "nicknames": [
    [
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "occupations": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "organizations": [
    [
      "costCenter": "",
      "current": false,
      "department": "",
      "domain": "",
      "endDate": [],
      "formattedType": "",
      "fullTimeEquivalentMillipercent": 0,
      "jobDescription": "",
      "location": "",
      "metadata": [],
      "name": "",
      "phoneticName": "",
      "startDate": [],
      "symbol": "",
      "title": "",
      "type": ""
    ]
  ],
  "phoneNumbers": [
    [
      "canonicalForm": "",
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "photos": [
    [
      "metadata": [],
      "url": ""
    ]
  ],
  "relations": [
    [
      "formattedType": "",
      "metadata": [],
      "person": "",
      "type": ""
    ]
  ],
  "relationshipInterests": [
    [
      "formattedValue": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "relationshipStatuses": [
    [
      "formattedValue": "",
      "metadata": [],
      "value": ""
    ]
  ],
  "residences": [
    [
      "current": false,
      "metadata": [],
      "value": ""
    ]
  ],
  "resourceName": "",
  "sipAddresses": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "skills": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "taglines": [
    [
      "metadata": [],
      "value": ""
    ]
  ],
  "urls": [
    [
      "formattedType": "",
      "metadata": [],
      "type": "",
      "value": ""
    ]
  ],
  "userDefined": [
    [
      "key": "",
      "metadata": [],
      "value": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName:updateContact")! 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()
PATCH people.people.updateContactPhoto
{{baseUrl}}/v1/:resourceName:updateContactPhoto
QUERY PARAMS

resourceName
BODY json

{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:resourceName:updateContactPhoto");

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  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}");

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

(client/patch "{{baseUrl}}/v1/:resourceName:updateContactPhoto" {:content-type :json
                                                                                 :form-params {:personFields ""
                                                                                               :photoBytes ""
                                                                                               :sources []}})
require "http/client"

url = "{{baseUrl}}/v1/:resourceName:updateContactPhoto"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:updateContactPhoto"),
    Content = new StringContent("{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:updateContactPhoto");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:resourceName:updateContactPhoto"

	payload := strings.NewReader("{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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/v1/:resourceName:updateContactPhoto HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:resourceName:updateContactPhoto")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:resourceName:updateContactPhoto"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:updateContactPhoto")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:resourceName:updateContactPhoto")
  .header("content-type", "application/json")
  .body("{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}")
  .asString();
const data = JSON.stringify({
  personFields: '',
  photoBytes: '',
  sources: []
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:resourceName:updateContactPhoto',
  headers: {'content-type': 'application/json'},
  data: {personFields: '', photoBytes: '', sources: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:resourceName:updateContactPhoto';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"personFields":"","photoBytes":"","sources":[]}'
};

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}}/v1/:resourceName:updateContactPhoto',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "personFields": "",\n  "photoBytes": "",\n  "sources": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:resourceName:updateContactPhoto")
  .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/v1/:resourceName:updateContactPhoto',
  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({personFields: '', photoBytes: '', sources: []}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:resourceName:updateContactPhoto',
  headers: {'content-type': 'application/json'},
  body: {personFields: '', photoBytes: '', sources: []},
  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}}/v1/:resourceName:updateContactPhoto');

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

req.type('json');
req.send({
  personFields: '',
  photoBytes: '',
  sources: []
});

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}}/v1/:resourceName:updateContactPhoto',
  headers: {'content-type': 'application/json'},
  data: {personFields: '', photoBytes: '', sources: []}
};

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

const url = '{{baseUrl}}/v1/:resourceName:updateContactPhoto';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"personFields":"","photoBytes":"","sources":[]}'
};

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 = @{ @"personFields": @"",
                              @"photoBytes": @"",
                              @"sources": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:resourceName:updateContactPhoto"]
                                                       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}}/v1/:resourceName:updateContactPhoto" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:resourceName:updateContactPhoto",
  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([
    'personFields' => '',
    'photoBytes' => '',
    'sources' => [
        
    ]
  ]),
  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}}/v1/:resourceName:updateContactPhoto', [
  'body' => '{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'personFields' => '',
  'photoBytes' => '',
  'sources' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'personFields' => '',
  'photoBytes' => '',
  'sources' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:resourceName:updateContactPhoto');
$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}}/v1/:resourceName:updateContactPhoto' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:resourceName:updateContactPhoto' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}'
import http.client

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

payload = "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\n}"

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

conn.request("PATCH", "/baseUrl/v1/:resourceName:updateContactPhoto", payload, headers)

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

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

url = "{{baseUrl}}/v1/:resourceName:updateContactPhoto"

payload = {
    "personFields": "",
    "photoBytes": "",
    "sources": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:resourceName:updateContactPhoto"

payload <- "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:updateContactPhoto")

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  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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/v1/:resourceName:updateContactPhoto') do |req|
  req.body = "{\n  \"personFields\": \"\",\n  \"photoBytes\": \"\",\n  \"sources\": []\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}}/v1/:resourceName:updateContactPhoto";

    let payload = json!({
        "personFields": "",
        "photoBytes": "",
        "sources": ()
    });

    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}}/v1/:resourceName:updateContactPhoto \
  --header 'content-type: application/json' \
  --data '{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}'
echo '{
  "personFields": "",
  "photoBytes": "",
  "sources": []
}' |  \
  http PATCH {{baseUrl}}/v1/:resourceName:updateContactPhoto \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "personFields": "",\n  "photoBytes": "",\n  "sources": []\n}' \
  --output-document \
  - {{baseUrl}}/v1/:resourceName:updateContactPhoto
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "personFields": "",
  "photoBytes": "",
  "sources": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:resourceName:updateContactPhoto")! 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()