POST Create company
{{baseUrl}}/crm/companies
HEADERS

x-apideck-consumer-id
x-apideck-app-id
BODY json

{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");

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

(client/post "{{baseUrl}}/crm/companies" {:headers {:x-apideck-consumer-id ""
                                                                    :x-apideck-app-id ""}
                                                          :content-type :json
                                                          :form-params {:id ""
                                                                        :interaction_count 0
                                                                        :name ""
                                                                        :owner_id ""
                                                                        :image_url ""
                                                                        :description ""
                                                                        :vat_number ""
                                                                        :currency ""
                                                                        :fax ""
                                                                        :bank_accounts [{:iban ""
                                                                                         :bic ""}]
                                                                        :websites [{:id ""
                                                                                    :url ""
                                                                                    :type ""}]
                                                                        :addresses [{:id ""
                                                                                     :type ""
                                                                                     :name ""
                                                                                     :line1 ""
                                                                                     :line2 ""
                                                                                     :city ""
                                                                                     :state ""
                                                                                     :postal_code ""
                                                                                     :country ""
                                                                                     :latitude ""
                                                                                     :longitude ""}]
                                                                        :social_links [{:id ""
                                                                                        :url ""
                                                                                        :type ""}]
                                                                        :phone_numbers [{:id ""
                                                                                         :number ""
                                                                                         :type ""}]
                                                                        :emails [{:id ""
                                                                                  :email ""
                                                                                  :type ""}]
                                                                        :custom_fields [{:id ""
                                                                                         :value ""}]
                                                                        :tags []
                                                                        :updated_by ""
                                                                        :created_by ""
                                                                        :updated_at ""
                                                                        :created_at ""}})
require "http/client"

url = "{{baseUrl}}/crm/companies"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/companies"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
    Content = new StringContent("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/companies");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/companies"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")
	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/crm/companies HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Content-Type: application/json
Host: example.com
Content-Length: 996

{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/companies")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/companies"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/companies")
  .post(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/companies")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  interaction_count: 0,
  name: '',
  owner_id: '',
  image_url: '',
  description: '',
  vat_number: '',
  currency: '',
  fax: '',
  bank_accounts: [
    {
      iban: '',
      bic: ''
    }
  ],
  websites: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  addresses: [
    {
      id: '',
      type: '',
      name: '',
      line1: '',
      line2: '',
      city: '',
      state: '',
      postal_code: '',
      country: '',
      latitude: '',
      longitude: ''
    }
  ],
  social_links: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  phone_numbers: [
    {
      id: '',
      number: '',
      type: ''
    }
  ],
  emails: [
    {
      id: '',
      email: '',
      type: ''
    }
  ],
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  tags: [],
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/crm/companies');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/companies',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    interaction_count: 0,
    name: '',
    owner_id: '',
    image_url: '',
    description: '',
    vat_number: '',
    currency: '',
    fax: '',
    bank_accounts: [{iban: '', bic: ''}],
    websites: [{id: '', url: '', type: ''}],
    addresses: [
      {
        id: '',
        type: '',
        name: '',
        line1: '',
        line2: '',
        city: '',
        state: '',
        postal_code: '',
        country: '',
        latitude: '',
        longitude: ''
      }
    ],
    social_links: [{id: '', url: '', type: ''}],
    phone_numbers: [{id: '', number: '', type: ''}],
    emails: [{id: '', email: '', type: ''}],
    custom_fields: [{id: '', value: ''}],
    tags: [],
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/companies';
const options = {
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","interaction_count":0,"name":"","owner_id":"","image_url":"","description":"","vat_number":"","currency":"","fax":"","bank_accounts":[{"iban":"","bic":""}],"websites":[{"id":"","url":"","type":""}],"addresses":[{"id":"","type":"","name":"","line1":"","line2":"","city":"","state":"","postal_code":"","country":"","latitude":"","longitude":""}],"social_links":[{"id":"","url":"","type":""}],"phone_numbers":[{"id":"","number":"","type":""}],"emails":[{"id":"","email":"","type":""}],"custom_fields":[{"id":"","value":""}],"tags":[],"updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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}}/crm/companies',
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "interaction_count": 0,\n  "name": "",\n  "owner_id": "",\n  "image_url": "",\n  "description": "",\n  "vat_number": "",\n  "currency": "",\n  "fax": "",\n  "bank_accounts": [\n    {\n      "iban": "",\n      "bic": ""\n    }\n  ],\n  "websites": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "addresses": [\n    {\n      "id": "",\n      "type": "",\n      "name": "",\n      "line1": "",\n      "line2": "",\n      "city": "",\n      "state": "",\n      "postal_code": "",\n      "country": "",\n      "latitude": "",\n      "longitude": ""\n    }\n  ],\n  "social_links": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "phone_numbers": [\n    {\n      "id": "",\n      "number": "",\n      "type": ""\n    }\n  ],\n  "emails": [\n    {\n      "id": "",\n      "email": "",\n      "type": ""\n    }\n  ],\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "tags": [],\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/companies")
  .post(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .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/crm/companies',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    '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({
  id: '',
  interaction_count: 0,
  name: '',
  owner_id: '',
  image_url: '',
  description: '',
  vat_number: '',
  currency: '',
  fax: '',
  bank_accounts: [{iban: '', bic: ''}],
  websites: [{id: '', url: '', type: ''}],
  addresses: [
    {
      id: '',
      type: '',
      name: '',
      line1: '',
      line2: '',
      city: '',
      state: '',
      postal_code: '',
      country: '',
      latitude: '',
      longitude: ''
    }
  ],
  social_links: [{id: '', url: '', type: ''}],
  phone_numbers: [{id: '', number: '', type: ''}],
  emails: [{id: '', email: '', type: ''}],
  custom_fields: [{id: '', value: ''}],
  tags: [],
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/companies',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: {
    id: '',
    interaction_count: 0,
    name: '',
    owner_id: '',
    image_url: '',
    description: '',
    vat_number: '',
    currency: '',
    fax: '',
    bank_accounts: [{iban: '', bic: ''}],
    websites: [{id: '', url: '', type: ''}],
    addresses: [
      {
        id: '',
        type: '',
        name: '',
        line1: '',
        line2: '',
        city: '',
        state: '',
        postal_code: '',
        country: '',
        latitude: '',
        longitude: ''
      }
    ],
    social_links: [{id: '', url: '', type: ''}],
    phone_numbers: [{id: '', number: '', type: ''}],
    emails: [{id: '', email: '', type: ''}],
    custom_fields: [{id: '', value: ''}],
    tags: [],
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  },
  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}}/crm/companies');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  interaction_count: 0,
  name: '',
  owner_id: '',
  image_url: '',
  description: '',
  vat_number: '',
  currency: '',
  fax: '',
  bank_accounts: [
    {
      iban: '',
      bic: ''
    }
  ],
  websites: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  addresses: [
    {
      id: '',
      type: '',
      name: '',
      line1: '',
      line2: '',
      city: '',
      state: '',
      postal_code: '',
      country: '',
      latitude: '',
      longitude: ''
    }
  ],
  social_links: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  phone_numbers: [
    {
      id: '',
      number: '',
      type: ''
    }
  ],
  emails: [
    {
      id: '',
      email: '',
      type: ''
    }
  ],
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  tags: [],
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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}}/crm/companies',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    interaction_count: 0,
    name: '',
    owner_id: '',
    image_url: '',
    description: '',
    vat_number: '',
    currency: '',
    fax: '',
    bank_accounts: [{iban: '', bic: ''}],
    websites: [{id: '', url: '', type: ''}],
    addresses: [
      {
        id: '',
        type: '',
        name: '',
        line1: '',
        line2: '',
        city: '',
        state: '',
        postal_code: '',
        country: '',
        latitude: '',
        longitude: ''
      }
    ],
    social_links: [{id: '', url: '', type: ''}],
    phone_numbers: [{id: '', number: '', type: ''}],
    emails: [{id: '', email: '', type: ''}],
    custom_fields: [{id: '', value: ''}],
    tags: [],
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

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

const url = '{{baseUrl}}/crm/companies';
const options = {
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","interaction_count":0,"name":"","owner_id":"","image_url":"","description":"","vat_number":"","currency":"","fax":"","bank_accounts":[{"iban":"","bic":""}],"websites":[{"id":"","url":"","type":""}],"addresses":[{"id":"","type":"","name":"","line1":"","line2":"","city":"","state":"","postal_code":"","country":"","latitude":"","longitude":""}],"social_links":[{"id":"","url":"","type":""}],"phone_numbers":[{"id":"","number":"","type":""}],"emails":[{"id":"","email":"","type":""}],"custom_fields":[{"id":"","value":""}],"tags":[],"updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"interaction_count": @0,
                              @"name": @"",
                              @"owner_id": @"",
                              @"image_url": @"",
                              @"description": @"",
                              @"vat_number": @"",
                              @"currency": @"",
                              @"fax": @"",
                              @"bank_accounts": @[ @{ @"iban": @"", @"bic": @"" } ],
                              @"websites": @[ @{ @"id": @"", @"url": @"", @"type": @"" } ],
                              @"addresses": @[ @{ @"id": @"", @"type": @"", @"name": @"", @"line1": @"", @"line2": @"", @"city": @"", @"state": @"", @"postal_code": @"", @"country": @"", @"latitude": @"", @"longitude": @"" } ],
                              @"social_links": @[ @{ @"id": @"", @"url": @"", @"type": @"" } ],
                              @"phone_numbers": @[ @{ @"id": @"", @"number": @"", @"type": @"" } ],
                              @"emails": @[ @{ @"id": @"", @"email": @"", @"type": @"" } ],
                              @"custom_fields": @[ @{ @"id": @"", @"value": @"" } ],
                              @"tags": @[  ],
                              @"updated_by": @"",
                              @"created_by": @"",
                              @"updated_at": @"",
                              @"created_at": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/companies"]
                                                       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}}/crm/companies" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/companies",
  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([
    'id' => '',
    'interaction_count' => 0,
    'name' => '',
    'owner_id' => '',
    'image_url' => '',
    'description' => '',
    'vat_number' => '',
    'currency' => '',
    'fax' => '',
    'bank_accounts' => [
        [
                'iban' => '',
                'bic' => ''
        ]
    ],
    'websites' => [
        [
                'id' => '',
                'url' => '',
                'type' => ''
        ]
    ],
    'addresses' => [
        [
                'id' => '',
                'type' => '',
                'name' => '',
                'line1' => '',
                'line2' => '',
                'city' => '',
                'state' => '',
                'postal_code' => '',
                'country' => '',
                'latitude' => '',
                'longitude' => ''
        ]
    ],
    'social_links' => [
        [
                'id' => '',
                'url' => '',
                'type' => ''
        ]
    ],
    'phone_numbers' => [
        [
                'id' => '',
                'number' => '',
                'type' => ''
        ]
    ],
    'emails' => [
        [
                'id' => '',
                'email' => '',
                'type' => ''
        ]
    ],
    'custom_fields' => [
        [
                'id' => '',
                'value' => ''
        ]
    ],
    'tags' => [
        
    ],
    'updated_by' => '',
    'created_by' => '',
    'updated_at' => '',
    'created_at' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/companies', [
  'body' => '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'interaction_count' => 0,
  'name' => '',
  'owner_id' => '',
  'image_url' => '',
  'description' => '',
  'vat_number' => '',
  'currency' => '',
  'fax' => '',
  'bank_accounts' => [
    [
        'iban' => '',
        'bic' => ''
    ]
  ],
  'websites' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'addresses' => [
    [
        'id' => '',
        'type' => '',
        'name' => '',
        'line1' => '',
        'line2' => '',
        'city' => '',
        'state' => '',
        'postal_code' => '',
        'country' => '',
        'latitude' => '',
        'longitude' => ''
    ]
  ],
  'social_links' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'phone_numbers' => [
    [
        'id' => '',
        'number' => '',
        'type' => ''
    ]
  ],
  'emails' => [
    [
        'id' => '',
        'email' => '',
        'type' => ''
    ]
  ],
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'tags' => [
    
  ],
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'interaction_count' => 0,
  'name' => '',
  'owner_id' => '',
  'image_url' => '',
  'description' => '',
  'vat_number' => '',
  'currency' => '',
  'fax' => '',
  'bank_accounts' => [
    [
        'iban' => '',
        'bic' => ''
    ]
  ],
  'websites' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'addresses' => [
    [
        'id' => '',
        'type' => '',
        'name' => '',
        'line1' => '',
        'line2' => '',
        'city' => '',
        'state' => '',
        'postal_code' => '',
        'country' => '',
        'latitude' => '',
        'longitude' => ''
    ]
  ],
  'social_links' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'phone_numbers' => [
    [
        'id' => '',
        'number' => '',
        'type' => ''
    ]
  ],
  'emails' => [
    [
        'id' => '',
        'email' => '',
        'type' => ''
    ]
  ],
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'tags' => [
    
  ],
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/crm/companies');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/companies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/companies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': "",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/crm/companies"

payload = {
    "id": "",
    "interaction_count": 0,
    "name": "",
    "owner_id": "",
    "image_url": "",
    "description": "",
    "vat_number": "",
    "currency": "",
    "fax": "",
    "bank_accounts": [
        {
            "iban": "",
            "bic": ""
        }
    ],
    "websites": [
        {
            "id": "",
            "url": "",
            "type": ""
        }
    ],
    "addresses": [
        {
            "id": "",
            "type": "",
            "name": "",
            "line1": "",
            "line2": "",
            "city": "",
            "state": "",
            "postal_code": "",
            "country": "",
            "latitude": "",
            "longitude": ""
        }
    ],
    "social_links": [
        {
            "id": "",
            "url": "",
            "type": ""
        }
    ],
    "phone_numbers": [
        {
            "id": "",
            "number": "",
            "type": ""
        }
    ],
    "emails": [
        {
            "id": "",
            "email": "",
            "type": ""
        }
    ],
    "custom_fields": [
        {
            "id": "",
            "value": ""
        }
    ],
    "tags": [],
    "updated_by": "",
    "created_by": "",
    "updated_at": "",
    "created_at": ""
}
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/crm/companies"

payload <- "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/crm/companies")

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

request = Net::HTTP::Post.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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/crm/companies') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
  req.body = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"
end

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

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

    let payload = json!({
        "id": "",
        "interaction_count": 0,
        "name": "",
        "owner_id": "",
        "image_url": "",
        "description": "",
        "vat_number": "",
        "currency": "",
        "fax": "",
        "bank_accounts": (
            json!({
                "iban": "",
                "bic": ""
            })
        ),
        "websites": (
            json!({
                "id": "",
                "url": "",
                "type": ""
            })
        ),
        "addresses": (
            json!({
                "id": "",
                "type": "",
                "name": "",
                "line1": "",
                "line2": "",
                "city": "",
                "state": "",
                "postal_code": "",
                "country": "",
                "latitude": "",
                "longitude": ""
            })
        ),
        "social_links": (
            json!({
                "id": "",
                "url": "",
                "type": ""
            })
        ),
        "phone_numbers": (
            json!({
                "id": "",
                "number": "",
                "type": ""
            })
        ),
        "emails": (
            json!({
                "id": "",
                "email": "",
                "type": ""
            })
        ),
        "custom_fields": (
            json!({
                "id": "",
                "value": ""
            })
        ),
        "tags": (),
        "updated_by": "",
        "created_by": "",
        "updated_at": "",
        "created_at": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/companies \
  --header 'content-type: application/json' \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: ' \
  --data '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
echo '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}' |  \
  http POST {{baseUrl}}/crm/companies \
  content-type:application/json \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method POST \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "interaction_count": 0,\n  "name": "",\n  "owner_id": "",\n  "image_url": "",\n  "description": "",\n  "vat_number": "",\n  "currency": "",\n  "fax": "",\n  "bank_accounts": [\n    {\n      "iban": "",\n      "bic": ""\n    }\n  ],\n  "websites": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "addresses": [\n    {\n      "id": "",\n      "type": "",\n      "name": "",\n      "line1": "",\n      "line2": "",\n      "city": "",\n      "state": "",\n      "postal_code": "",\n      "country": "",\n      "latitude": "",\n      "longitude": ""\n    }\n  ],\n  "social_links": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "phone_numbers": [\n    {\n      "id": "",\n      "number": "",\n      "type": ""\n    }\n  ],\n  "emails": [\n    {\n      "id": "",\n      "email": "",\n      "type": ""\n    }\n  ],\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "tags": [],\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}' \
  --output-document \
  - {{baseUrl}}/crm/companies
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": "",
  "content-type": "application/json"
]
let parameters = [
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    [
      "iban": "",
      "bic": ""
    ]
  ],
  "websites": [
    [
      "id": "",
      "url": "",
      "type": ""
    ]
  ],
  "addresses": [
    [
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    ]
  ],
  "social_links": [
    [
      "id": "",
      "url": "",
      "type": ""
    ]
  ],
  "phone_numbers": [
    [
      "id": "",
      "number": "",
      "type": ""
    ]
  ],
  "emails": [
    [
      "id": "",
      "email": "",
      "type": ""
    ]
  ],
  "custom_fields": [
    [
      "id": "",
      "value": ""
    ]
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
DELETE Delete company
{{baseUrl}}/crm/companies/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/companies/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/delete "{{baseUrl}}/crm/companies/:id" {:headers {:x-apideck-consumer-id ""
                                                                          :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/companies/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/crm/companies/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/companies/:id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/companies/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
DELETE /baseUrl/crm/companies/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/crm/companies/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/companies/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .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}}/crm/companies/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/crm/companies/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/crm/companies/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/companies/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/companies/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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}}/crm/companies/:id',
  method: 'DELETE',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/companies/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/companies/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/companies/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/crm/companies/:id');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/companies/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/companies/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/companies/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/crm/companies/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/companies/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/crm/companies/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/companies/:id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/companies/:id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/companies/:id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/companies/:id' -Method DELETE -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("DELETE", "/baseUrl/crm/companies/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/companies/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/companies/:id"

response <- VERB("DELETE", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Delete.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.delete('/baseUrl/crm/companies/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/crm/companies/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http DELETE {{baseUrl}}/crm/companies/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method DELETE \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/companies/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/companies/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
GET Get company
{{baseUrl}}/crm/companies/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/companies/:id" {:headers {:x-apideck-consumer-id ""
                                                                       :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/companies/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/companies/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/companies/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/companies/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/companies/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/companies/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/companies/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/companies/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/companies/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/companies/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/companies/:id',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/companies/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/companies/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/companies/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/companies/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/companies/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/companies/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/companies/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/companies/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/companies/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/companies/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/companies/:id' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/companies/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/companies/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/companies/:id"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/companies/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/companies/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/companies/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/companies/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one",
  "data": {
    "id": "12345",
    "interaction_count": 1,
    "name": "Copper",
    "owner_id": "12345",
    "image_url": "https://www.spacex.com/static/images/share.jpg",
    "description": "A crm that works for you, so you can spend time on relationships instead of data.",
    "vat_number": "BE0689615164",
    "currency": "USD",
    "fax": "+12129876543",
    "tags": [
      "New"
    ],
    "updated_by": "12345",
    "created_by": "12345",
    "updated_at": "2020-09-30T07:43:32.000Z",
    "created_at": "2020-09-30T07:43:32.000Z"
  }
}
GET List companies
{{baseUrl}}/crm/companies
HEADERS

x-apideck-consumer-id
x-apideck-app-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/companies" {:headers {:x-apideck-consumer-id ""
                                                                   :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/companies"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/companies"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/companies HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/companies")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/companies"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/companies")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/companies")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/companies');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/companies',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/companies';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/companies',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/companies")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/companies',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/companies',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/companies',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/companies';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/companies" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/companies",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/companies', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/companies');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/companies' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/companies' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/companies", headers=headers)

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

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

url = "{{baseUrl}}/crm/companies"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/companies"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/crm/companies")

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/companies') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/companies \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/companies \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/companies
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one",
  "meta": {
    "items_on_page": 50
  },
  "links": {
    "previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
    "current": "https://unify.apideck.com/crm/companies",
    "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"
  }
}
PATCH Update company
{{baseUrl}}/crm/companies/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");

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

(client/patch "{{baseUrl}}/crm/companies/:id" {:headers {:x-apideck-consumer-id ""
                                                                         :x-apideck-app-id ""}
                                                               :content-type :json
                                                               :form-params {:id ""
                                                                             :interaction_count 0
                                                                             :name ""
                                                                             :owner_id ""
                                                                             :image_url ""
                                                                             :description ""
                                                                             :vat_number ""
                                                                             :currency ""
                                                                             :fax ""
                                                                             :bank_accounts [{:iban ""
                                                                                              :bic ""}]
                                                                             :websites [{:id ""
                                                                                         :url ""
                                                                                         :type ""}]
                                                                             :addresses [{:id ""
                                                                                          :type ""
                                                                                          :name ""
                                                                                          :line1 ""
                                                                                          :line2 ""
                                                                                          :city ""
                                                                                          :state ""
                                                                                          :postal_code ""
                                                                                          :country ""
                                                                                          :latitude ""
                                                                                          :longitude ""}]
                                                                             :social_links [{:id ""
                                                                                             :url ""
                                                                                             :type ""}]
                                                                             :phone_numbers [{:id ""
                                                                                              :number ""
                                                                                              :type ""}]
                                                                             :emails [{:id ""
                                                                                       :email ""
                                                                                       :type ""}]
                                                                             :custom_fields [{:id ""
                                                                                              :value ""}]
                                                                             :tags []
                                                                             :updated_by ""
                                                                             :created_by ""
                                                                             :updated_at ""
                                                                             :created_at ""}})
require "http/client"

url = "{{baseUrl}}/crm/companies/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/companies/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
    Content = new StringContent("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/companies/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/companies/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")
	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/crm/companies/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Content-Type: application/json
Host: example.com
Content-Length: 996

{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/crm/companies/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/companies/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/companies/:id")
  .patch(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/crm/companies/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  interaction_count: 0,
  name: '',
  owner_id: '',
  image_url: '',
  description: '',
  vat_number: '',
  currency: '',
  fax: '',
  bank_accounts: [
    {
      iban: '',
      bic: ''
    }
  ],
  websites: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  addresses: [
    {
      id: '',
      type: '',
      name: '',
      line1: '',
      line2: '',
      city: '',
      state: '',
      postal_code: '',
      country: '',
      latitude: '',
      longitude: ''
    }
  ],
  social_links: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  phone_numbers: [
    {
      id: '',
      number: '',
      type: ''
    }
  ],
  emails: [
    {
      id: '',
      email: '',
      type: ''
    }
  ],
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  tags: [],
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/crm/companies/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/companies/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    interaction_count: 0,
    name: '',
    owner_id: '',
    image_url: '',
    description: '',
    vat_number: '',
    currency: '',
    fax: '',
    bank_accounts: [{iban: '', bic: ''}],
    websites: [{id: '', url: '', type: ''}],
    addresses: [
      {
        id: '',
        type: '',
        name: '',
        line1: '',
        line2: '',
        city: '',
        state: '',
        postal_code: '',
        country: '',
        latitude: '',
        longitude: ''
      }
    ],
    social_links: [{id: '', url: '', type: ''}],
    phone_numbers: [{id: '', number: '', type: ''}],
    emails: [{id: '', email: '', type: ''}],
    custom_fields: [{id: '', value: ''}],
    tags: [],
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/companies/:id';
const options = {
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","interaction_count":0,"name":"","owner_id":"","image_url":"","description":"","vat_number":"","currency":"","fax":"","bank_accounts":[{"iban":"","bic":""}],"websites":[{"id":"","url":"","type":""}],"addresses":[{"id":"","type":"","name":"","line1":"","line2":"","city":"","state":"","postal_code":"","country":"","latitude":"","longitude":""}],"social_links":[{"id":"","url":"","type":""}],"phone_numbers":[{"id":"","number":"","type":""}],"emails":[{"id":"","email":"","type":""}],"custom_fields":[{"id":"","value":""}],"tags":[],"updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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}}/crm/companies/:id',
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "interaction_count": 0,\n  "name": "",\n  "owner_id": "",\n  "image_url": "",\n  "description": "",\n  "vat_number": "",\n  "currency": "",\n  "fax": "",\n  "bank_accounts": [\n    {\n      "iban": "",\n      "bic": ""\n    }\n  ],\n  "websites": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "addresses": [\n    {\n      "id": "",\n      "type": "",\n      "name": "",\n      "line1": "",\n      "line2": "",\n      "city": "",\n      "state": "",\n      "postal_code": "",\n      "country": "",\n      "latitude": "",\n      "longitude": ""\n    }\n  ],\n  "social_links": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "phone_numbers": [\n    {\n      "id": "",\n      "number": "",\n      "type": ""\n    }\n  ],\n  "emails": [\n    {\n      "id": "",\n      "email": "",\n      "type": ""\n    }\n  ],\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "tags": [],\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/companies/:id")
  .patch(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .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/crm/companies/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    '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({
  id: '',
  interaction_count: 0,
  name: '',
  owner_id: '',
  image_url: '',
  description: '',
  vat_number: '',
  currency: '',
  fax: '',
  bank_accounts: [{iban: '', bic: ''}],
  websites: [{id: '', url: '', type: ''}],
  addresses: [
    {
      id: '',
      type: '',
      name: '',
      line1: '',
      line2: '',
      city: '',
      state: '',
      postal_code: '',
      country: '',
      latitude: '',
      longitude: ''
    }
  ],
  social_links: [{id: '', url: '', type: ''}],
  phone_numbers: [{id: '', number: '', type: ''}],
  emails: [{id: '', email: '', type: ''}],
  custom_fields: [{id: '', value: ''}],
  tags: [],
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/companies/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: {
    id: '',
    interaction_count: 0,
    name: '',
    owner_id: '',
    image_url: '',
    description: '',
    vat_number: '',
    currency: '',
    fax: '',
    bank_accounts: [{iban: '', bic: ''}],
    websites: [{id: '', url: '', type: ''}],
    addresses: [
      {
        id: '',
        type: '',
        name: '',
        line1: '',
        line2: '',
        city: '',
        state: '',
        postal_code: '',
        country: '',
        latitude: '',
        longitude: ''
      }
    ],
    social_links: [{id: '', url: '', type: ''}],
    phone_numbers: [{id: '', number: '', type: ''}],
    emails: [{id: '', email: '', type: ''}],
    custom_fields: [{id: '', value: ''}],
    tags: [],
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  },
  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}}/crm/companies/:id');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  interaction_count: 0,
  name: '',
  owner_id: '',
  image_url: '',
  description: '',
  vat_number: '',
  currency: '',
  fax: '',
  bank_accounts: [
    {
      iban: '',
      bic: ''
    }
  ],
  websites: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  addresses: [
    {
      id: '',
      type: '',
      name: '',
      line1: '',
      line2: '',
      city: '',
      state: '',
      postal_code: '',
      country: '',
      latitude: '',
      longitude: ''
    }
  ],
  social_links: [
    {
      id: '',
      url: '',
      type: ''
    }
  ],
  phone_numbers: [
    {
      id: '',
      number: '',
      type: ''
    }
  ],
  emails: [
    {
      id: '',
      email: '',
      type: ''
    }
  ],
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  tags: [],
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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}}/crm/companies/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    interaction_count: 0,
    name: '',
    owner_id: '',
    image_url: '',
    description: '',
    vat_number: '',
    currency: '',
    fax: '',
    bank_accounts: [{iban: '', bic: ''}],
    websites: [{id: '', url: '', type: ''}],
    addresses: [
      {
        id: '',
        type: '',
        name: '',
        line1: '',
        line2: '',
        city: '',
        state: '',
        postal_code: '',
        country: '',
        latitude: '',
        longitude: ''
      }
    ],
    social_links: [{id: '', url: '', type: ''}],
    phone_numbers: [{id: '', number: '', type: ''}],
    emails: [{id: '', email: '', type: ''}],
    custom_fields: [{id: '', value: ''}],
    tags: [],
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

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

const url = '{{baseUrl}}/crm/companies/:id';
const options = {
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","interaction_count":0,"name":"","owner_id":"","image_url":"","description":"","vat_number":"","currency":"","fax":"","bank_accounts":[{"iban":"","bic":""}],"websites":[{"id":"","url":"","type":""}],"addresses":[{"id":"","type":"","name":"","line1":"","line2":"","city":"","state":"","postal_code":"","country":"","latitude":"","longitude":""}],"social_links":[{"id":"","url":"","type":""}],"phone_numbers":[{"id":"","number":"","type":""}],"emails":[{"id":"","email":"","type":""}],"custom_fields":[{"id":"","value":""}],"tags":[],"updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"interaction_count": @0,
                              @"name": @"",
                              @"owner_id": @"",
                              @"image_url": @"",
                              @"description": @"",
                              @"vat_number": @"",
                              @"currency": @"",
                              @"fax": @"",
                              @"bank_accounts": @[ @{ @"iban": @"", @"bic": @"" } ],
                              @"websites": @[ @{ @"id": @"", @"url": @"", @"type": @"" } ],
                              @"addresses": @[ @{ @"id": @"", @"type": @"", @"name": @"", @"line1": @"", @"line2": @"", @"city": @"", @"state": @"", @"postal_code": @"", @"country": @"", @"latitude": @"", @"longitude": @"" } ],
                              @"social_links": @[ @{ @"id": @"", @"url": @"", @"type": @"" } ],
                              @"phone_numbers": @[ @{ @"id": @"", @"number": @"", @"type": @"" } ],
                              @"emails": @[ @{ @"id": @"", @"email": @"", @"type": @"" } ],
                              @"custom_fields": @[ @{ @"id": @"", @"value": @"" } ],
                              @"tags": @[  ],
                              @"updated_by": @"",
                              @"created_by": @"",
                              @"updated_at": @"",
                              @"created_at": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/companies/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/companies/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'interaction_count' => 0,
    'name' => '',
    'owner_id' => '',
    'image_url' => '',
    'description' => '',
    'vat_number' => '',
    'currency' => '',
    'fax' => '',
    'bank_accounts' => [
        [
                'iban' => '',
                'bic' => ''
        ]
    ],
    'websites' => [
        [
                'id' => '',
                'url' => '',
                'type' => ''
        ]
    ],
    'addresses' => [
        [
                'id' => '',
                'type' => '',
                'name' => '',
                'line1' => '',
                'line2' => '',
                'city' => '',
                'state' => '',
                'postal_code' => '',
                'country' => '',
                'latitude' => '',
                'longitude' => ''
        ]
    ],
    'social_links' => [
        [
                'id' => '',
                'url' => '',
                'type' => ''
        ]
    ],
    'phone_numbers' => [
        [
                'id' => '',
                'number' => '',
                'type' => ''
        ]
    ],
    'emails' => [
        [
                'id' => '',
                'email' => '',
                'type' => ''
        ]
    ],
    'custom_fields' => [
        [
                'id' => '',
                'value' => ''
        ]
    ],
    'tags' => [
        
    ],
    'updated_by' => '',
    'created_by' => '',
    'updated_at' => '',
    'created_at' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/crm/companies/:id', [
  'body' => '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'interaction_count' => 0,
  'name' => '',
  'owner_id' => '',
  'image_url' => '',
  'description' => '',
  'vat_number' => '',
  'currency' => '',
  'fax' => '',
  'bank_accounts' => [
    [
        'iban' => '',
        'bic' => ''
    ]
  ],
  'websites' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'addresses' => [
    [
        'id' => '',
        'type' => '',
        'name' => '',
        'line1' => '',
        'line2' => '',
        'city' => '',
        'state' => '',
        'postal_code' => '',
        'country' => '',
        'latitude' => '',
        'longitude' => ''
    ]
  ],
  'social_links' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'phone_numbers' => [
    [
        'id' => '',
        'number' => '',
        'type' => ''
    ]
  ],
  'emails' => [
    [
        'id' => '',
        'email' => '',
        'type' => ''
    ]
  ],
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'tags' => [
    
  ],
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'interaction_count' => 0,
  'name' => '',
  'owner_id' => '',
  'image_url' => '',
  'description' => '',
  'vat_number' => '',
  'currency' => '',
  'fax' => '',
  'bank_accounts' => [
    [
        'iban' => '',
        'bic' => ''
    ]
  ],
  'websites' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'addresses' => [
    [
        'id' => '',
        'type' => '',
        'name' => '',
        'line1' => '',
        'line2' => '',
        'city' => '',
        'state' => '',
        'postal_code' => '',
        'country' => '',
        'latitude' => '',
        'longitude' => ''
    ]
  ],
  'social_links' => [
    [
        'id' => '',
        'url' => '',
        'type' => ''
    ]
  ],
  'phone_numbers' => [
    [
        'id' => '',
        'number' => '',
        'type' => ''
    ]
  ],
  'emails' => [
    [
        'id' => '',
        'email' => '',
        'type' => ''
    ]
  ],
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'tags' => [
    
  ],
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/crm/companies/:id');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/companies/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/companies/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': "",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/crm/companies/:id"

payload = {
    "id": "",
    "interaction_count": 0,
    "name": "",
    "owner_id": "",
    "image_url": "",
    "description": "",
    "vat_number": "",
    "currency": "",
    "fax": "",
    "bank_accounts": [
        {
            "iban": "",
            "bic": ""
        }
    ],
    "websites": [
        {
            "id": "",
            "url": "",
            "type": ""
        }
    ],
    "addresses": [
        {
            "id": "",
            "type": "",
            "name": "",
            "line1": "",
            "line2": "",
            "city": "",
            "state": "",
            "postal_code": "",
            "country": "",
            "latitude": "",
            "longitude": ""
        }
    ],
    "social_links": [
        {
            "id": "",
            "url": "",
            "type": ""
        }
    ],
    "phone_numbers": [
        {
            "id": "",
            "number": "",
            "type": ""
        }
    ],
    "emails": [
        {
            "id": "",
            "email": "",
            "type": ""
        }
    ],
    "custom_fields": [
        {
            "id": "",
            "value": ""
        }
    ],
    "tags": [],
    "updated_by": "",
    "created_by": "",
    "updated_at": "",
    "created_at": ""
}
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/crm/companies/:id"

payload <- "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/json"), encode = encode)

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

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

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

request = Net::HTTP::Patch.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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/crm/companies/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
  req.body = "{\n  \"id\": \"\",\n  \"interaction_count\": 0,\n  \"name\": \"\",\n  \"owner_id\": \"\",\n  \"image_url\": \"\",\n  \"description\": \"\",\n  \"vat_number\": \"\",\n  \"currency\": \"\",\n  \"fax\": \"\",\n  \"bank_accounts\": [\n    {\n      \"iban\": \"\",\n      \"bic\": \"\"\n    }\n  ],\n  \"websites\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"addresses\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"name\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"postal_code\": \"\",\n      \"country\": \"\",\n      \"latitude\": \"\",\n      \"longitude\": \"\"\n    }\n  ],\n  \"social_links\": [\n    {\n      \"id\": \"\",\n      \"url\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"phone_numbers\": [\n    {\n      \"id\": \"\",\n      \"number\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"\",\n      \"email\": \"\",\n      \"type\": \"\"\n    }\n  ],\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"tags\": [],\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/companies/:id";

    let payload = json!({
        "id": "",
        "interaction_count": 0,
        "name": "",
        "owner_id": "",
        "image_url": "",
        "description": "",
        "vat_number": "",
        "currency": "",
        "fax": "",
        "bank_accounts": (
            json!({
                "iban": "",
                "bic": ""
            })
        ),
        "websites": (
            json!({
                "id": "",
                "url": "",
                "type": ""
            })
        ),
        "addresses": (
            json!({
                "id": "",
                "type": "",
                "name": "",
                "line1": "",
                "line2": "",
                "city": "",
                "state": "",
                "postal_code": "",
                "country": "",
                "latitude": "",
                "longitude": ""
            })
        ),
        "social_links": (
            json!({
                "id": "",
                "url": "",
                "type": ""
            })
        ),
        "phone_numbers": (
            json!({
                "id": "",
                "number": "",
                "type": ""
            })
        ),
        "emails": (
            json!({
                "id": "",
                "email": "",
                "type": ""
            })
        ),
        "custom_fields": (
            json!({
                "id": "",
                "value": ""
            })
        ),
        "tags": (),
        "updated_by": "",
        "created_by": "",
        "updated_at": "",
        "created_at": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());
    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}}/crm/companies/:id \
  --header 'content-type: application/json' \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: ' \
  --data '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
echo '{
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    {
      "iban": "",
      "bic": ""
    }
  ],
  "websites": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "addresses": [
    {
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    }
  ],
  "social_links": [
    {
      "id": "",
      "url": "",
      "type": ""
    }
  ],
  "phone_numbers": [
    {
      "id": "",
      "number": "",
      "type": ""
    }
  ],
  "emails": [
    {
      "id": "",
      "email": "",
      "type": ""
    }
  ],
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}' |  \
  http PATCH {{baseUrl}}/crm/companies/:id \
  content-type:application/json \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method PATCH \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "interaction_count": 0,\n  "name": "",\n  "owner_id": "",\n  "image_url": "",\n  "description": "",\n  "vat_number": "",\n  "currency": "",\n  "fax": "",\n  "bank_accounts": [\n    {\n      "iban": "",\n      "bic": ""\n    }\n  ],\n  "websites": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "addresses": [\n    {\n      "id": "",\n      "type": "",\n      "name": "",\n      "line1": "",\n      "line2": "",\n      "city": "",\n      "state": "",\n      "postal_code": "",\n      "country": "",\n      "latitude": "",\n      "longitude": ""\n    }\n  ],\n  "social_links": [\n    {\n      "id": "",\n      "url": "",\n      "type": ""\n    }\n  ],\n  "phone_numbers": [\n    {\n      "id": "",\n      "number": "",\n      "type": ""\n    }\n  ],\n  "emails": [\n    {\n      "id": "",\n      "email": "",\n      "type": ""\n    }\n  ],\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "tags": [],\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}' \
  --output-document \
  - {{baseUrl}}/crm/companies/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": "",
  "content-type": "application/json"
]
let parameters = [
  "id": "",
  "interaction_count": 0,
  "name": "",
  "owner_id": "",
  "image_url": "",
  "description": "",
  "vat_number": "",
  "currency": "",
  "fax": "",
  "bank_accounts": [
    [
      "iban": "",
      "bic": ""
    ]
  ],
  "websites": [
    [
      "id": "",
      "url": "",
      "type": ""
    ]
  ],
  "addresses": [
    [
      "id": "",
      "type": "",
      "name": "",
      "line1": "",
      "line2": "",
      "city": "",
      "state": "",
      "postal_code": "",
      "country": "",
      "latitude": "",
      "longitude": ""
    ]
  ],
  "social_links": [
    [
      "id": "",
      "url": "",
      "type": ""
    ]
  ],
  "phone_numbers": [
    [
      "id": "",
      "number": "",
      "type": ""
    ]
  ],
  "emails": [
    [
      "id": "",
      "email": "",
      "type": ""
    ]
  ],
  "custom_fields": [
    [
      "id": "",
      "value": ""
    ]
  ],
  "tags": [],
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
POST Create contact
{{baseUrl}}/crm/contacts
HEADERS

x-apideck-consumer-id
x-apideck-app-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/crm/contacts" {:headers {:x-apideck-consumer-id ""
                                                                   :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/contacts"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/crm/contacts"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/contacts");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/contacts"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
POST /baseUrl/crm/contacts HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/contacts")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/contacts"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/contacts")
  .post(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/contacts")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/crm/contacts');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/contacts',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/contacts';
const options = {method: 'POST', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/contacts',
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/contacts")
  .post(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/contacts',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

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

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

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/contacts',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/contacts',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/contacts';
const options = {method: 'POST', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/contacts" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/contacts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/contacts', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/contacts');
$request->setRequestMethod('POST');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/contacts' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/contacts' -Method POST -Headers $headers
import http.client

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

payload = ""

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

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

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

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

url = "{{baseUrl}}/crm/contacts"

payload = ""
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/contacts"

payload <- ""

response <- VERB("POST", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type(""))

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

url = URI("{{baseUrl}}/crm/contacts")

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

request = Net::HTTP::Post.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.post('/baseUrl/crm/contacts') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/contacts \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http POST {{baseUrl}}/crm/contacts \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method POST \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/contacts
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
DELETE Delete contact
{{baseUrl}}/crm/contacts/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/contacts/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/delete "{{baseUrl}}/crm/contacts/:id" {:headers {:x-apideck-consumer-id ""
                                                                         :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/contacts/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/crm/contacts/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/contacts/:id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/contacts/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
DELETE /baseUrl/crm/contacts/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/crm/contacts/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/contacts/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .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}}/crm/contacts/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/crm/contacts/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/crm/contacts/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/contacts/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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}}/crm/contacts/:id',
  method: 'DELETE',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/contacts/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/contacts/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/crm/contacts/:id');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/contacts/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/contacts/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/crm/contacts/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/contacts/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/crm/contacts/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/contacts/:id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/contacts/:id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/contacts/:id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/contacts/:id' -Method DELETE -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("DELETE", "/baseUrl/crm/contacts/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/contacts/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/contacts/:id"

response <- VERB("DELETE", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Delete.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.delete('/baseUrl/crm/contacts/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/crm/contacts/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http DELETE {{baseUrl}}/crm/contacts/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method DELETE \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/contacts/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/contacts/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
GET Get contact
{{baseUrl}}/crm/contacts/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/contacts/:id" {:headers {:x-apideck-consumer-id ""
                                                                      :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/contacts/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/contacts/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/contacts/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/contacts/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/contacts/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/contacts/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/contacts/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/contacts/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/contacts/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/contacts/:id',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/contacts/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/contacts/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/contacts/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/contacts/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/contacts/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/contacts/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/contacts/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/contacts/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/contacts/:id' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/contacts/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/contacts/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/contacts/:id"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/contacts/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/contacts/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/contacts/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/contacts/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
GET List contacts
{{baseUrl}}/crm/contacts
HEADERS

x-apideck-consumer-id
x-apideck-app-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/contacts" {:headers {:x-apideck-consumer-id ""
                                                                  :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/contacts"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/contacts"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/contacts HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/contacts")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/contacts"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/contacts")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/contacts")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/contacts');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/contacts',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/contacts';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/contacts',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/contacts")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/contacts',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/contacts',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/contacts',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/contacts';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/contacts" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/contacts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/contacts', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/contacts');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/contacts' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/contacts' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/contacts", headers=headers)

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

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

url = "{{baseUrl}}/crm/contacts"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/contacts"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/crm/contacts")

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/contacts') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/contacts \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/contacts \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/contacts
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one",
  "meta": {
    "items_on_page": 50
  },
  "links": {
    "previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
    "current": "https://unify.apideck.com/crm/companies",
    "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"
  }
}
PATCH Update contact
{{baseUrl}}/crm/contacts/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/patch "{{baseUrl}}/crm/contacts/:id" {:headers {:x-apideck-consumer-id ""
                                                                        :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/contacts/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.patch url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/crm/contacts/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/contacts/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/contacts/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
PATCH /baseUrl/crm/contacts/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/crm/contacts/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/contacts/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("PATCH", 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}}/crm/contacts/:id")
  .patch(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/crm/contacts/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('PATCH', '{{baseUrl}}/crm/contacts/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/contacts/:id';
const options = {
  method: 'PATCH',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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}}/crm/contacts/:id',
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/contacts/:id")
  .patch(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/contacts/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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: 'PATCH',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/contacts/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/contacts/:id';
const options = {
  method: 'PATCH',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/contacts/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/crm/contacts/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/contacts/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/crm/contacts/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/contacts/:id');
$request->setRequestMethod('PATCH');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/contacts/:id' -Method PATCH -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/contacts/:id' -Method PATCH -Headers $headers
import http.client

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

payload = ""

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

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

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

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

url = "{{baseUrl}}/crm/contacts/:id"

payload = ""
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/contacts/:id"

payload <- ""

response <- VERB("PATCH", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type(""))

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

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

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

request = Net::HTTP::Patch.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.patch('/baseUrl/crm/contacts/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/crm/contacts/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http PATCH {{baseUrl}}/crm/contacts/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method PATCH \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/contacts/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/contacts/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
POST Create lead
{{baseUrl}}/crm/leads
HEADERS

x-apideck-consumer-id
x-apideck-app-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/crm/leads" {:headers {:x-apideck-consumer-id ""
                                                                :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/leads"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/crm/leads"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/leads");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/leads"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
POST /baseUrl/crm/leads HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/leads")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/leads"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/leads")
  .post(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/leads")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/crm/leads');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/leads',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/leads';
const options = {method: 'POST', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/leads',
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/leads")
  .post(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/leads',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

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

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

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/leads',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/leads',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/leads';
const options = {method: 'POST', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/leads" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/leads",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/leads', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/leads');
$request->setRequestMethod('POST');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/leads' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/leads' -Method POST -Headers $headers
import http.client

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

payload = ""

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

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

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

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

url = "{{baseUrl}}/crm/leads"

payload = ""
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/leads"

payload <- ""

response <- VERB("POST", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type(""))

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

url = URI("{{baseUrl}}/crm/leads")

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

request = Net::HTTP::Post.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.post('/baseUrl/crm/leads') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/leads \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http POST {{baseUrl}}/crm/leads \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method POST \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/leads
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
DELETE Delete lead
{{baseUrl}}/crm/leads/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/leads/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/delete "{{baseUrl}}/crm/leads/:id" {:headers {:x-apideck-consumer-id ""
                                                                      :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/leads/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/crm/leads/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/leads/:id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/leads/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
DELETE /baseUrl/crm/leads/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/crm/leads/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/leads/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .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}}/crm/leads/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/crm/leads/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/crm/leads/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/leads/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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}}/crm/leads/:id',
  method: 'DELETE',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/leads/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/leads/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/crm/leads/:id');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/leads/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/leads/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/crm/leads/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/leads/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/crm/leads/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/leads/:id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/leads/:id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/leads/:id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/leads/:id' -Method DELETE -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("DELETE", "/baseUrl/crm/leads/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/leads/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/leads/:id"

response <- VERB("DELETE", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Delete.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.delete('/baseUrl/crm/leads/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/crm/leads/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http DELETE {{baseUrl}}/crm/leads/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method DELETE \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/leads/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/leads/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
GET Get lead
{{baseUrl}}/crm/leads/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/leads/:id" {:headers {:x-apideck-consumer-id ""
                                                                   :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/leads/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/leads/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/leads/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/leads/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/leads/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/leads/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/leads/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/leads/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/leads/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/leads/:id',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/leads/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/leads/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/leads/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/leads/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/leads/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/leads/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/leads/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/leads/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/leads/:id' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/leads/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/leads/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/leads/:id"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/leads/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/leads/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/leads/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/leads/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
GET List leads
{{baseUrl}}/crm/leads
HEADERS

x-apideck-consumer-id
x-apideck-app-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/leads" {:headers {:x-apideck-consumer-id ""
                                                               :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/leads"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/leads"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/leads HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/leads")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/leads"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/leads")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/leads")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/leads');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/leads',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/leads';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/leads',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/leads")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/leads',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/leads',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/leads',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/leads';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/leads" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/leads",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/leads', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/leads');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/leads' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/leads' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/leads", headers=headers)

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

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

url = "{{baseUrl}}/crm/leads"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/leads"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/crm/leads")

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/leads') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/leads \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/leads \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/leads
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one",
  "meta": {
    "items_on_page": 50
  },
  "links": {
    "previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
    "current": "https://unify.apideck.com/crm/companies",
    "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"
  }
}
PATCH Update lead
{{baseUrl}}/crm/leads/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/patch "{{baseUrl}}/crm/leads/:id" {:headers {:x-apideck-consumer-id ""
                                                                     :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/leads/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.patch url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/crm/leads/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/leads/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/leads/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
PATCH /baseUrl/crm/leads/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/crm/leads/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/leads/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("PATCH", 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}}/crm/leads/:id")
  .patch(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/crm/leads/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('PATCH', '{{baseUrl}}/crm/leads/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/leads/:id';
const options = {
  method: 'PATCH',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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}}/crm/leads/:id',
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/leads/:id")
  .patch(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/leads/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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: 'PATCH',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/leads/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/leads/:id';
const options = {
  method: 'PATCH',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/leads/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/crm/leads/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/leads/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/crm/leads/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/leads/:id');
$request->setRequestMethod('PATCH');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/leads/:id' -Method PATCH -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/leads/:id' -Method PATCH -Headers $headers
import http.client

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

payload = ""

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

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

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

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

url = "{{baseUrl}}/crm/leads/:id"

payload = ""
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/leads/:id"

payload <- ""

response <- VERB("PATCH", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type(""))

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

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

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

request = Net::HTTP::Patch.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.patch('/baseUrl/crm/leads/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/crm/leads/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http PATCH {{baseUrl}}/crm/leads/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method PATCH \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/leads/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/leads/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
POST Create opportunity
{{baseUrl}}/crm/opportunities
HEADERS

x-apideck-consumer-id
x-apideck-app-id
BODY json

{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");

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

(client/post "{{baseUrl}}/crm/opportunities" {:headers {:x-apideck-consumer-id ""
                                                                        :x-apideck-app-id ""}
                                                              :content-type :json
                                                              :form-params {:id ""
                                                                            :title ""
                                                                            :description ""
                                                                            :monetary_amount ""
                                                                            :currency ""
                                                                            :win_probability ""
                                                                            :close_date ""
                                                                            :loss_reason_id ""
                                                                            :loss_reason ""
                                                                            :won_reason_id ""
                                                                            :won_reason ""
                                                                            :pipeline_id ""
                                                                            :pipeline_stage_id ""
                                                                            :source_id ""
                                                                            :primary_contact_id ""
                                                                            :lead_id ""
                                                                            :contact_id ""
                                                                            :company_id ""
                                                                            :company_name ""
                                                                            :owner_id ""
                                                                            :priority ""
                                                                            :status ""
                                                                            :status_id ""
                                                                            :tags []
                                                                            :interaction_count ""
                                                                            :custom_fields [{:id ""
                                                                                             :value ""}]
                                                                            :date_stage_changed ""
                                                                            :date_last_contacted ""
                                                                            :date_lead_created ""
                                                                            :updated_by ""
                                                                            :created_by ""
                                                                            :updated_at ""
                                                                            :created_at ""}})
require "http/client"

url = "{{baseUrl}}/crm/opportunities"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/opportunities"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
    Content = new StringContent("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/opportunities");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/opportunities"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")
	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/crm/opportunities HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Content-Type: application/json
Host: example.com
Content-Length: 748

{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/opportunities")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/opportunities"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/opportunities")
  .post(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/opportunities")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  title: '',
  description: '',
  monetary_amount: '',
  currency: '',
  win_probability: '',
  close_date: '',
  loss_reason_id: '',
  loss_reason: '',
  won_reason_id: '',
  won_reason: '',
  pipeline_id: '',
  pipeline_stage_id: '',
  source_id: '',
  primary_contact_id: '',
  lead_id: '',
  contact_id: '',
  company_id: '',
  company_name: '',
  owner_id: '',
  priority: '',
  status: '',
  status_id: '',
  tags: [],
  interaction_count: '',
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  date_stage_changed: '',
  date_last_contacted: '',
  date_lead_created: '',
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/crm/opportunities');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/opportunities',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    title: '',
    description: '',
    monetary_amount: '',
    currency: '',
    win_probability: '',
    close_date: '',
    loss_reason_id: '',
    loss_reason: '',
    won_reason_id: '',
    won_reason: '',
    pipeline_id: '',
    pipeline_stage_id: '',
    source_id: '',
    primary_contact_id: '',
    lead_id: '',
    contact_id: '',
    company_id: '',
    company_name: '',
    owner_id: '',
    priority: '',
    status: '',
    status_id: '',
    tags: [],
    interaction_count: '',
    custom_fields: [{id: '', value: ''}],
    date_stage_changed: '',
    date_last_contacted: '',
    date_lead_created: '',
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/opportunities';
const options = {
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","title":"","description":"","monetary_amount":"","currency":"","win_probability":"","close_date":"","loss_reason_id":"","loss_reason":"","won_reason_id":"","won_reason":"","pipeline_id":"","pipeline_stage_id":"","source_id":"","primary_contact_id":"","lead_id":"","contact_id":"","company_id":"","company_name":"","owner_id":"","priority":"","status":"","status_id":"","tags":[],"interaction_count":"","custom_fields":[{"id":"","value":""}],"date_stage_changed":"","date_last_contacted":"","date_lead_created":"","updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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}}/crm/opportunities',
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "title": "",\n  "description": "",\n  "monetary_amount": "",\n  "currency": "",\n  "win_probability": "",\n  "close_date": "",\n  "loss_reason_id": "",\n  "loss_reason": "",\n  "won_reason_id": "",\n  "won_reason": "",\n  "pipeline_id": "",\n  "pipeline_stage_id": "",\n  "source_id": "",\n  "primary_contact_id": "",\n  "lead_id": "",\n  "contact_id": "",\n  "company_id": "",\n  "company_name": "",\n  "owner_id": "",\n  "priority": "",\n  "status": "",\n  "status_id": "",\n  "tags": [],\n  "interaction_count": "",\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "date_stage_changed": "",\n  "date_last_contacted": "",\n  "date_lead_created": "",\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/opportunities")
  .post(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .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/crm/opportunities',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    '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({
  id: '',
  title: '',
  description: '',
  monetary_amount: '',
  currency: '',
  win_probability: '',
  close_date: '',
  loss_reason_id: '',
  loss_reason: '',
  won_reason_id: '',
  won_reason: '',
  pipeline_id: '',
  pipeline_stage_id: '',
  source_id: '',
  primary_contact_id: '',
  lead_id: '',
  contact_id: '',
  company_id: '',
  company_name: '',
  owner_id: '',
  priority: '',
  status: '',
  status_id: '',
  tags: [],
  interaction_count: '',
  custom_fields: [{id: '', value: ''}],
  date_stage_changed: '',
  date_last_contacted: '',
  date_lead_created: '',
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/opportunities',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: {
    id: '',
    title: '',
    description: '',
    monetary_amount: '',
    currency: '',
    win_probability: '',
    close_date: '',
    loss_reason_id: '',
    loss_reason: '',
    won_reason_id: '',
    won_reason: '',
    pipeline_id: '',
    pipeline_stage_id: '',
    source_id: '',
    primary_contact_id: '',
    lead_id: '',
    contact_id: '',
    company_id: '',
    company_name: '',
    owner_id: '',
    priority: '',
    status: '',
    status_id: '',
    tags: [],
    interaction_count: '',
    custom_fields: [{id: '', value: ''}],
    date_stage_changed: '',
    date_last_contacted: '',
    date_lead_created: '',
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  },
  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}}/crm/opportunities');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  title: '',
  description: '',
  monetary_amount: '',
  currency: '',
  win_probability: '',
  close_date: '',
  loss_reason_id: '',
  loss_reason: '',
  won_reason_id: '',
  won_reason: '',
  pipeline_id: '',
  pipeline_stage_id: '',
  source_id: '',
  primary_contact_id: '',
  lead_id: '',
  contact_id: '',
  company_id: '',
  company_name: '',
  owner_id: '',
  priority: '',
  status: '',
  status_id: '',
  tags: [],
  interaction_count: '',
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  date_stage_changed: '',
  date_last_contacted: '',
  date_lead_created: '',
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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}}/crm/opportunities',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    title: '',
    description: '',
    monetary_amount: '',
    currency: '',
    win_probability: '',
    close_date: '',
    loss_reason_id: '',
    loss_reason: '',
    won_reason_id: '',
    won_reason: '',
    pipeline_id: '',
    pipeline_stage_id: '',
    source_id: '',
    primary_contact_id: '',
    lead_id: '',
    contact_id: '',
    company_id: '',
    company_name: '',
    owner_id: '',
    priority: '',
    status: '',
    status_id: '',
    tags: [],
    interaction_count: '',
    custom_fields: [{id: '', value: ''}],
    date_stage_changed: '',
    date_last_contacted: '',
    date_lead_created: '',
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

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

const url = '{{baseUrl}}/crm/opportunities';
const options = {
  method: 'POST',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","title":"","description":"","monetary_amount":"","currency":"","win_probability":"","close_date":"","loss_reason_id":"","loss_reason":"","won_reason_id":"","won_reason":"","pipeline_id":"","pipeline_stage_id":"","source_id":"","primary_contact_id":"","lead_id":"","contact_id":"","company_id":"","company_name":"","owner_id":"","priority":"","status":"","status_id":"","tags":[],"interaction_count":"","custom_fields":[{"id":"","value":""}],"date_stage_changed":"","date_last_contacted":"","date_lead_created":"","updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"title": @"",
                              @"description": @"",
                              @"monetary_amount": @"",
                              @"currency": @"",
                              @"win_probability": @"",
                              @"close_date": @"",
                              @"loss_reason_id": @"",
                              @"loss_reason": @"",
                              @"won_reason_id": @"",
                              @"won_reason": @"",
                              @"pipeline_id": @"",
                              @"pipeline_stage_id": @"",
                              @"source_id": @"",
                              @"primary_contact_id": @"",
                              @"lead_id": @"",
                              @"contact_id": @"",
                              @"company_id": @"",
                              @"company_name": @"",
                              @"owner_id": @"",
                              @"priority": @"",
                              @"status": @"",
                              @"status_id": @"",
                              @"tags": @[  ],
                              @"interaction_count": @"",
                              @"custom_fields": @[ @{ @"id": @"", @"value": @"" } ],
                              @"date_stage_changed": @"",
                              @"date_last_contacted": @"",
                              @"date_lead_created": @"",
                              @"updated_by": @"",
                              @"created_by": @"",
                              @"updated_at": @"",
                              @"created_at": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/opportunities"]
                                                       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}}/crm/opportunities" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/opportunities",
  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([
    'id' => '',
    'title' => '',
    'description' => '',
    'monetary_amount' => '',
    'currency' => '',
    'win_probability' => '',
    'close_date' => '',
    'loss_reason_id' => '',
    'loss_reason' => '',
    'won_reason_id' => '',
    'won_reason' => '',
    'pipeline_id' => '',
    'pipeline_stage_id' => '',
    'source_id' => '',
    'primary_contact_id' => '',
    'lead_id' => '',
    'contact_id' => '',
    'company_id' => '',
    'company_name' => '',
    'owner_id' => '',
    'priority' => '',
    'status' => '',
    'status_id' => '',
    'tags' => [
        
    ],
    'interaction_count' => '',
    'custom_fields' => [
        [
                'id' => '',
                'value' => ''
        ]
    ],
    'date_stage_changed' => '',
    'date_last_contacted' => '',
    'date_lead_created' => '',
    'updated_by' => '',
    'created_by' => '',
    'updated_at' => '',
    'created_at' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/opportunities', [
  'body' => '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'title' => '',
  'description' => '',
  'monetary_amount' => '',
  'currency' => '',
  'win_probability' => '',
  'close_date' => '',
  'loss_reason_id' => '',
  'loss_reason' => '',
  'won_reason_id' => '',
  'won_reason' => '',
  'pipeline_id' => '',
  'pipeline_stage_id' => '',
  'source_id' => '',
  'primary_contact_id' => '',
  'lead_id' => '',
  'contact_id' => '',
  'company_id' => '',
  'company_name' => '',
  'owner_id' => '',
  'priority' => '',
  'status' => '',
  'status_id' => '',
  'tags' => [
    
  ],
  'interaction_count' => '',
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'date_stage_changed' => '',
  'date_last_contacted' => '',
  'date_lead_created' => '',
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'title' => '',
  'description' => '',
  'monetary_amount' => '',
  'currency' => '',
  'win_probability' => '',
  'close_date' => '',
  'loss_reason_id' => '',
  'loss_reason' => '',
  'won_reason_id' => '',
  'won_reason' => '',
  'pipeline_id' => '',
  'pipeline_stage_id' => '',
  'source_id' => '',
  'primary_contact_id' => '',
  'lead_id' => '',
  'contact_id' => '',
  'company_id' => '',
  'company_name' => '',
  'owner_id' => '',
  'priority' => '',
  'status' => '',
  'status_id' => '',
  'tags' => [
    
  ],
  'interaction_count' => '',
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'date_stage_changed' => '',
  'date_last_contacted' => '',
  'date_lead_created' => '',
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/crm/opportunities');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/opportunities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/opportunities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': "",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/crm/opportunities"

payload = {
    "id": "",
    "title": "",
    "description": "",
    "monetary_amount": "",
    "currency": "",
    "win_probability": "",
    "close_date": "",
    "loss_reason_id": "",
    "loss_reason": "",
    "won_reason_id": "",
    "won_reason": "",
    "pipeline_id": "",
    "pipeline_stage_id": "",
    "source_id": "",
    "primary_contact_id": "",
    "lead_id": "",
    "contact_id": "",
    "company_id": "",
    "company_name": "",
    "owner_id": "",
    "priority": "",
    "status": "",
    "status_id": "",
    "tags": [],
    "interaction_count": "",
    "custom_fields": [
        {
            "id": "",
            "value": ""
        }
    ],
    "date_stage_changed": "",
    "date_last_contacted": "",
    "date_lead_created": "",
    "updated_by": "",
    "created_by": "",
    "updated_at": "",
    "created_at": ""
}
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/crm/opportunities"

payload <- "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/crm/opportunities")

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

request = Net::HTTP::Post.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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/crm/opportunities') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
  req.body = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"
end

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

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

    let payload = json!({
        "id": "",
        "title": "",
        "description": "",
        "monetary_amount": "",
        "currency": "",
        "win_probability": "",
        "close_date": "",
        "loss_reason_id": "",
        "loss_reason": "",
        "won_reason_id": "",
        "won_reason": "",
        "pipeline_id": "",
        "pipeline_stage_id": "",
        "source_id": "",
        "primary_contact_id": "",
        "lead_id": "",
        "contact_id": "",
        "company_id": "",
        "company_name": "",
        "owner_id": "",
        "priority": "",
        "status": "",
        "status_id": "",
        "tags": (),
        "interaction_count": "",
        "custom_fields": (
            json!({
                "id": "",
                "value": ""
            })
        ),
        "date_stage_changed": "",
        "date_last_contacted": "",
        "date_lead_created": "",
        "updated_by": "",
        "created_by": "",
        "updated_at": "",
        "created_at": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/opportunities \
  --header 'content-type: application/json' \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: ' \
  --data '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
echo '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}' |  \
  http POST {{baseUrl}}/crm/opportunities \
  content-type:application/json \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method POST \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "title": "",\n  "description": "",\n  "monetary_amount": "",\n  "currency": "",\n  "win_probability": "",\n  "close_date": "",\n  "loss_reason_id": "",\n  "loss_reason": "",\n  "won_reason_id": "",\n  "won_reason": "",\n  "pipeline_id": "",\n  "pipeline_stage_id": "",\n  "source_id": "",\n  "primary_contact_id": "",\n  "lead_id": "",\n  "contact_id": "",\n  "company_id": "",\n  "company_name": "",\n  "owner_id": "",\n  "priority": "",\n  "status": "",\n  "status_id": "",\n  "tags": [],\n  "interaction_count": "",\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "date_stage_changed": "",\n  "date_last_contacted": "",\n  "date_lead_created": "",\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}' \
  --output-document \
  - {{baseUrl}}/crm/opportunities
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": "",
  "content-type": "application/json"
]
let parameters = [
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    [
      "id": "",
      "value": ""
    ]
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "opportunities",
  "operation": "one"
}
DELETE Delete opportunity
{{baseUrl}}/crm/opportunities/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/opportunities/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/delete "{{baseUrl}}/crm/opportunities/:id" {:headers {:x-apideck-consumer-id ""
                                                                              :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/opportunities/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/crm/opportunities/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/opportunities/:id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/opportunities/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
DELETE /baseUrl/crm/opportunities/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/crm/opportunities/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/opportunities/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .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}}/crm/opportunities/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/crm/opportunities/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/crm/opportunities/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/opportunities/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/opportunities/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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}}/crm/opportunities/:id',
  method: 'DELETE',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/opportunities/:id")
  .delete(null)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/opportunities/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/opportunities/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/crm/opportunities/:id');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/opportunities/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/opportunities/:id';
const options = {
  method: 'DELETE',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/opportunities/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/crm/opportunities/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/opportunities/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/crm/opportunities/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/opportunities/:id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/opportunities/:id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/opportunities/:id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/opportunities/:id' -Method DELETE -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("DELETE", "/baseUrl/crm/opportunities/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/opportunities/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/opportunities/:id"

response <- VERB("DELETE", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Delete.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.delete('/baseUrl/crm/opportunities/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/crm/opportunities/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http DELETE {{baseUrl}}/crm/opportunities/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method DELETE \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/opportunities/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/opportunities/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}
GET Get opportunity
{{baseUrl}}/crm/opportunities/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/opportunities/:id" {:headers {:x-apideck-consumer-id ""
                                                                           :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/opportunities/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/opportunities/:id"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/opportunities/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/opportunities/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/opportunities/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/opportunities/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/opportunities/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/opportunities/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/opportunities/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/opportunities/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/opportunities/:id',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/opportunities/:id")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/opportunities/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/opportunities/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/opportunities/:id',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/opportunities/:id';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/opportunities/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/opportunities/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/opportunities/:id', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/opportunities/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/opportunities/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/opportunities/:id' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/opportunities/:id", headers=headers)

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

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

url = "{{baseUrl}}/crm/opportunities/:id"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/opportunities/:id"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/opportunities/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/opportunities/:id \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/opportunities/:id \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/opportunities/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "opportunities",
  "operation": "one",
  "data": {
    "id": "12345",
    "title": "New Rocket",
    "description": "Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.",
    "monetary_amount": 75000,
    "currency": "USD",
    "win_probability": 40,
    "close_date": "2020-10-30",
    "loss_reason_id": "12345",
    "loss_reason": "No budget",
    "won_reason_id": "12345",
    "won_reason": "Best pitch",
    "pipeline_id": "12345",
    "pipeline_stage_id": "12345",
    "source_id": "12345",
    "primary_contact_id": "12345",
    "lead_id": "12345",
    "contact_id": "12345",
    "company_id": "12345",
    "company_name": "Copper",
    "owner_id": "12345",
    "priority": "None",
    "status": "Open",
    "status_id": "12345",
    "tags": [
      "New"
    ],
    "interaction_count": 0,
    "date_stage_changed": "2020-09-30T00:00:00.000Z",
    "date_last_contacted": "2020-09-30T00:00:00.000Z",
    "date_lead_created": "2020-09-30T00:00:00.000Z",
    "updated_by": "12345",
    "created_by": "12345",
    "updated_at": "2020-09-30T07:43:32.000Z",
    "created_at": "2020-09-30T07:43:32.000Z"
  }
}
GET List opportunities
{{baseUrl}}/crm/opportunities
HEADERS

x-apideck-consumer-id
x-apideck-app-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apideck-consumer-id: ");
headers = curl_slist_append(headers, "x-apideck-app-id: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/crm/opportunities" {:headers {:x-apideck-consumer-id ""
                                                                       :x-apideck-app-id ""}})
require "http/client"

url = "{{baseUrl}}/crm/opportunities"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/crm/opportunities"

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")

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

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

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

}
GET /baseUrl/crm/opportunities HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/crm/opportunities")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/opportunities"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/opportunities")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/crm/opportunities")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/crm/opportunities');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/opportunities',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/opportunities';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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}}/crm/opportunities',
  method: 'GET',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/opportunities")
  .get()
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/opportunities',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': ''
  }
};

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}}/crm/opportunities',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

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

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

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/opportunities',
  headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}
};

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

const url = '{{baseUrl}}/crm/opportunities';
const options = {method: 'GET', headers: {'x-apideck-consumer-id': '', 'x-apideck-app-id': ''}};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/opportunities" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/opportunities",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/opportunities', [
  'headers' => [
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/opportunities');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/opportunities' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/opportunities' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': ""
}

conn.request("GET", "/baseUrl/crm/opportunities", headers=headers)

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

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

url = "{{baseUrl}}/crm/opportunities"

headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": ""
}

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

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

url <- "{{baseUrl}}/crm/opportunities"

response <- VERB("GET", url, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/crm/opportunities")

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

request = Net::HTTP::Get.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''

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

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

response = conn.get('/baseUrl/crm/opportunities') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/opportunities \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: '
http GET {{baseUrl}}/crm/opportunities \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method GET \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --output-document \
  - {{baseUrl}}/crm/opportunities
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "opportunities",
  "operation": "one",
  "meta": {
    "items_on_page": 50
  },
  "links": {
    "previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
    "current": "https://unify.apideck.com/crm/companies",
    "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"
  }
}
PATCH Update opportunity
{{baseUrl}}/crm/opportunities/:id
HEADERS

x-apideck-consumer-id
x-apideck-app-id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");

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

(client/patch "{{baseUrl}}/crm/opportunities/:id" {:headers {:x-apideck-consumer-id ""
                                                                             :x-apideck-app-id ""}
                                                                   :content-type :json
                                                                   :form-params {:id ""
                                                                                 :title ""
                                                                                 :description ""
                                                                                 :monetary_amount ""
                                                                                 :currency ""
                                                                                 :win_probability ""
                                                                                 :close_date ""
                                                                                 :loss_reason_id ""
                                                                                 :loss_reason ""
                                                                                 :won_reason_id ""
                                                                                 :won_reason ""
                                                                                 :pipeline_id ""
                                                                                 :pipeline_stage_id ""
                                                                                 :source_id ""
                                                                                 :primary_contact_id ""
                                                                                 :lead_id ""
                                                                                 :contact_id ""
                                                                                 :company_id ""
                                                                                 :company_name ""
                                                                                 :owner_id ""
                                                                                 :priority ""
                                                                                 :status ""
                                                                                 :status_id ""
                                                                                 :tags []
                                                                                 :interaction_count ""
                                                                                 :custom_fields [{:id ""
                                                                                                  :value ""}]
                                                                                 :date_stage_changed ""
                                                                                 :date_last_contacted ""
                                                                                 :date_lead_created ""
                                                                                 :updated_by ""
                                                                                 :created_by ""
                                                                                 :updated_at ""
                                                                                 :created_at ""}})
require "http/client"

url = "{{baseUrl}}/crm/opportunities/:id"
headers = HTTP::Headers{
  "x-apideck-consumer-id" => ""
  "x-apideck-app-id" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/opportunities/:id"),
    Headers =
    {
        { "x-apideck-consumer-id", "" },
        { "x-apideck-app-id", "" },
    },
    Content = new StringContent("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/opportunities/:id");
var request = new RestRequest("", Method.Patch);
request.AddHeader("x-apideck-consumer-id", "");
request.AddHeader("x-apideck-app-id", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/opportunities/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")

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

	req.Header.Add("x-apideck-consumer-id", "")
	req.Header.Add("x-apideck-app-id", "")
	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/crm/opportunities/:id HTTP/1.1
X-Apideck-Consumer-Id: 
X-Apideck-App-Id: 
Content-Type: application/json
Host: example.com
Content-Length: 748

{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/crm/opportunities/:id")
  .setHeader("x-apideck-consumer-id", "")
  .setHeader("x-apideck-app-id", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/opportunities/:id"))
    .header("x-apideck-consumer-id", "")
    .header("x-apideck-app-id", "")
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/opportunities/:id")
  .patch(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/crm/opportunities/:id")
  .header("x-apideck-consumer-id", "")
  .header("x-apideck-app-id", "")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  title: '',
  description: '',
  monetary_amount: '',
  currency: '',
  win_probability: '',
  close_date: '',
  loss_reason_id: '',
  loss_reason: '',
  won_reason_id: '',
  won_reason: '',
  pipeline_id: '',
  pipeline_stage_id: '',
  source_id: '',
  primary_contact_id: '',
  lead_id: '',
  contact_id: '',
  company_id: '',
  company_name: '',
  owner_id: '',
  priority: '',
  status: '',
  status_id: '',
  tags: [],
  interaction_count: '',
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  date_stage_changed: '',
  date_last_contacted: '',
  date_lead_created: '',
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/crm/opportunities/:id');
xhr.setRequestHeader('x-apideck-consumer-id', '');
xhr.setRequestHeader('x-apideck-app-id', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/opportunities/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    title: '',
    description: '',
    monetary_amount: '',
    currency: '',
    win_probability: '',
    close_date: '',
    loss_reason_id: '',
    loss_reason: '',
    won_reason_id: '',
    won_reason: '',
    pipeline_id: '',
    pipeline_stage_id: '',
    source_id: '',
    primary_contact_id: '',
    lead_id: '',
    contact_id: '',
    company_id: '',
    company_name: '',
    owner_id: '',
    priority: '',
    status: '',
    status_id: '',
    tags: [],
    interaction_count: '',
    custom_fields: [{id: '', value: ''}],
    date_stage_changed: '',
    date_last_contacted: '',
    date_lead_created: '',
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/opportunities/:id';
const options = {
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","title":"","description":"","monetary_amount":"","currency":"","win_probability":"","close_date":"","loss_reason_id":"","loss_reason":"","won_reason_id":"","won_reason":"","pipeline_id":"","pipeline_stage_id":"","source_id":"","primary_contact_id":"","lead_id":"","contact_id":"","company_id":"","company_name":"","owner_id":"","priority":"","status":"","status_id":"","tags":[],"interaction_count":"","custom_fields":[{"id":"","value":""}],"date_stage_changed":"","date_last_contacted":"","date_lead_created":"","updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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}}/crm/opportunities/:id',
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "title": "",\n  "description": "",\n  "monetary_amount": "",\n  "currency": "",\n  "win_probability": "",\n  "close_date": "",\n  "loss_reason_id": "",\n  "loss_reason": "",\n  "won_reason_id": "",\n  "won_reason": "",\n  "pipeline_id": "",\n  "pipeline_stage_id": "",\n  "source_id": "",\n  "primary_contact_id": "",\n  "lead_id": "",\n  "contact_id": "",\n  "company_id": "",\n  "company_name": "",\n  "owner_id": "",\n  "priority": "",\n  "status": "",\n  "status_id": "",\n  "tags": [],\n  "interaction_count": "",\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "date_stage_changed": "",\n  "date_last_contacted": "",\n  "date_lead_created": "",\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/opportunities/:id")
  .patch(body)
  .addHeader("x-apideck-consumer-id", "")
  .addHeader("x-apideck-app-id", "")
  .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/crm/opportunities/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    '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({
  id: '',
  title: '',
  description: '',
  monetary_amount: '',
  currency: '',
  win_probability: '',
  close_date: '',
  loss_reason_id: '',
  loss_reason: '',
  won_reason_id: '',
  won_reason: '',
  pipeline_id: '',
  pipeline_stage_id: '',
  source_id: '',
  primary_contact_id: '',
  lead_id: '',
  contact_id: '',
  company_id: '',
  company_name: '',
  owner_id: '',
  priority: '',
  status: '',
  status_id: '',
  tags: [],
  interaction_count: '',
  custom_fields: [{id: '', value: ''}],
  date_stage_changed: '',
  date_last_contacted: '',
  date_lead_created: '',
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/opportunities/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: {
    id: '',
    title: '',
    description: '',
    monetary_amount: '',
    currency: '',
    win_probability: '',
    close_date: '',
    loss_reason_id: '',
    loss_reason: '',
    won_reason_id: '',
    won_reason: '',
    pipeline_id: '',
    pipeline_stage_id: '',
    source_id: '',
    primary_contact_id: '',
    lead_id: '',
    contact_id: '',
    company_id: '',
    company_name: '',
    owner_id: '',
    priority: '',
    status: '',
    status_id: '',
    tags: [],
    interaction_count: '',
    custom_fields: [{id: '', value: ''}],
    date_stage_changed: '',
    date_last_contacted: '',
    date_lead_created: '',
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  },
  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}}/crm/opportunities/:id');

req.headers({
  'x-apideck-consumer-id': '',
  'x-apideck-app-id': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  title: '',
  description: '',
  monetary_amount: '',
  currency: '',
  win_probability: '',
  close_date: '',
  loss_reason_id: '',
  loss_reason: '',
  won_reason_id: '',
  won_reason: '',
  pipeline_id: '',
  pipeline_stage_id: '',
  source_id: '',
  primary_contact_id: '',
  lead_id: '',
  contact_id: '',
  company_id: '',
  company_name: '',
  owner_id: '',
  priority: '',
  status: '',
  status_id: '',
  tags: [],
  interaction_count: '',
  custom_fields: [
    {
      id: '',
      value: ''
    }
  ],
  date_stage_changed: '',
  date_last_contacted: '',
  date_lead_created: '',
  updated_by: '',
  created_by: '',
  updated_at: '',
  created_at: ''
});

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}}/crm/opportunities/:id',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  data: {
    id: '',
    title: '',
    description: '',
    monetary_amount: '',
    currency: '',
    win_probability: '',
    close_date: '',
    loss_reason_id: '',
    loss_reason: '',
    won_reason_id: '',
    won_reason: '',
    pipeline_id: '',
    pipeline_stage_id: '',
    source_id: '',
    primary_contact_id: '',
    lead_id: '',
    contact_id: '',
    company_id: '',
    company_name: '',
    owner_id: '',
    priority: '',
    status: '',
    status_id: '',
    tags: [],
    interaction_count: '',
    custom_fields: [{id: '', value: ''}],
    date_stage_changed: '',
    date_last_contacted: '',
    date_lead_created: '',
    updated_by: '',
    created_by: '',
    updated_at: '',
    created_at: ''
  }
};

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

const url = '{{baseUrl}}/crm/opportunities/:id';
const options = {
  method: 'PATCH',
  headers: {
    'x-apideck-consumer-id': '',
    'x-apideck-app-id': '',
    'content-type': 'application/json'
  },
  body: '{"id":"","title":"","description":"","monetary_amount":"","currency":"","win_probability":"","close_date":"","loss_reason_id":"","loss_reason":"","won_reason_id":"","won_reason":"","pipeline_id":"","pipeline_stage_id":"","source_id":"","primary_contact_id":"","lead_id":"","contact_id":"","company_id":"","company_name":"","owner_id":"","priority":"","status":"","status_id":"","tags":[],"interaction_count":"","custom_fields":[{"id":"","value":""}],"date_stage_changed":"","date_last_contacted":"","date_lead_created":"","updated_by":"","created_by":"","updated_at":"","created_at":""}'
};

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

NSDictionary *headers = @{ @"x-apideck-consumer-id": @"",
                           @"x-apideck-app-id": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"title": @"",
                              @"description": @"",
                              @"monetary_amount": @"",
                              @"currency": @"",
                              @"win_probability": @"",
                              @"close_date": @"",
                              @"loss_reason_id": @"",
                              @"loss_reason": @"",
                              @"won_reason_id": @"",
                              @"won_reason": @"",
                              @"pipeline_id": @"",
                              @"pipeline_stage_id": @"",
                              @"source_id": @"",
                              @"primary_contact_id": @"",
                              @"lead_id": @"",
                              @"contact_id": @"",
                              @"company_id": @"",
                              @"company_name": @"",
                              @"owner_id": @"",
                              @"priority": @"",
                              @"status": @"",
                              @"status_id": @"",
                              @"tags": @[  ],
                              @"interaction_count": @"",
                              @"custom_fields": @[ @{ @"id": @"", @"value": @"" } ],
                              @"date_stage_changed": @"",
                              @"date_last_contacted": @"",
                              @"date_lead_created": @"",
                              @"updated_by": @"",
                              @"created_by": @"",
                              @"updated_at": @"",
                              @"created_at": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/opportunities/:id" in
let headers = Header.add_list (Header.init ()) [
  ("x-apideck-consumer-id", "");
  ("x-apideck-app-id", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/opportunities/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'title' => '',
    'description' => '',
    'monetary_amount' => '',
    'currency' => '',
    'win_probability' => '',
    'close_date' => '',
    'loss_reason_id' => '',
    'loss_reason' => '',
    'won_reason_id' => '',
    'won_reason' => '',
    'pipeline_id' => '',
    'pipeline_stage_id' => '',
    'source_id' => '',
    'primary_contact_id' => '',
    'lead_id' => '',
    'contact_id' => '',
    'company_id' => '',
    'company_name' => '',
    'owner_id' => '',
    'priority' => '',
    'status' => '',
    'status_id' => '',
    'tags' => [
        
    ],
    'interaction_count' => '',
    'custom_fields' => [
        [
                'id' => '',
                'value' => ''
        ]
    ],
    'date_stage_changed' => '',
    'date_last_contacted' => '',
    'date_lead_created' => '',
    'updated_by' => '',
    'created_by' => '',
    'updated_at' => '',
    'created_at' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apideck-app-id: ",
    "x-apideck-consumer-id: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/crm/opportunities/:id', [
  'body' => '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apideck-app-id' => '',
    'x-apideck-consumer-id' => '',
  ],
]);

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

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'title' => '',
  'description' => '',
  'monetary_amount' => '',
  'currency' => '',
  'win_probability' => '',
  'close_date' => '',
  'loss_reason_id' => '',
  'loss_reason' => '',
  'won_reason_id' => '',
  'won_reason' => '',
  'pipeline_id' => '',
  'pipeline_stage_id' => '',
  'source_id' => '',
  'primary_contact_id' => '',
  'lead_id' => '',
  'contact_id' => '',
  'company_id' => '',
  'company_name' => '',
  'owner_id' => '',
  'priority' => '',
  'status' => '',
  'status_id' => '',
  'tags' => [
    
  ],
  'interaction_count' => '',
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'date_stage_changed' => '',
  'date_last_contacted' => '',
  'date_lead_created' => '',
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'title' => '',
  'description' => '',
  'monetary_amount' => '',
  'currency' => '',
  'win_probability' => '',
  'close_date' => '',
  'loss_reason_id' => '',
  'loss_reason' => '',
  'won_reason_id' => '',
  'won_reason' => '',
  'pipeline_id' => '',
  'pipeline_stage_id' => '',
  'source_id' => '',
  'primary_contact_id' => '',
  'lead_id' => '',
  'contact_id' => '',
  'company_id' => '',
  'company_name' => '',
  'owner_id' => '',
  'priority' => '',
  'status' => '',
  'status_id' => '',
  'tags' => [
    
  ],
  'interaction_count' => '',
  'custom_fields' => [
    [
        'id' => '',
        'value' => ''
    ]
  ],
  'date_stage_changed' => '',
  'date_last_contacted' => '',
  'date_lead_created' => '',
  'updated_by' => '',
  'created_by' => '',
  'updated_at' => '',
  'created_at' => ''
]));
$request->setRequestUrl('{{baseUrl}}/crm/opportunities/:id');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setHeaders([
  'x-apideck-consumer-id' => '',
  'x-apideck-app-id' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/opportunities/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
$headers=@{}
$headers.Add("x-apideck-consumer-id", "")
$headers.Add("x-apideck-app-id", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/opportunities/:id' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

headers = {
    'x-apideck-consumer-id': "",
    'x-apideck-app-id': "",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/crm/opportunities/:id"

payload = {
    "id": "",
    "title": "",
    "description": "",
    "monetary_amount": "",
    "currency": "",
    "win_probability": "",
    "close_date": "",
    "loss_reason_id": "",
    "loss_reason": "",
    "won_reason_id": "",
    "won_reason": "",
    "pipeline_id": "",
    "pipeline_stage_id": "",
    "source_id": "",
    "primary_contact_id": "",
    "lead_id": "",
    "contact_id": "",
    "company_id": "",
    "company_name": "",
    "owner_id": "",
    "priority": "",
    "status": "",
    "status_id": "",
    "tags": [],
    "interaction_count": "",
    "custom_fields": [
        {
            "id": "",
            "value": ""
        }
    ],
    "date_stage_changed": "",
    "date_last_contacted": "",
    "date_lead_created": "",
    "updated_by": "",
    "created_by": "",
    "updated_at": "",
    "created_at": ""
}
headers = {
    "x-apideck-consumer-id": "",
    "x-apideck-app-id": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/crm/opportunities/:id"

payload <- "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, add_headers('x-apideck-consumer-id' = '', 'x-apideck-app-id' = ''), content_type("application/json"), encode = encode)

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

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

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

request = Net::HTTP::Patch.new(url)
request["x-apideck-consumer-id"] = ''
request["x-apideck-app-id"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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/crm/opportunities/:id') do |req|
  req.headers['x-apideck-consumer-id'] = ''
  req.headers['x-apideck-app-id'] = ''
  req.body = "{\n  \"id\": \"\",\n  \"title\": \"\",\n  \"description\": \"\",\n  \"monetary_amount\": \"\",\n  \"currency\": \"\",\n  \"win_probability\": \"\",\n  \"close_date\": \"\",\n  \"loss_reason_id\": \"\",\n  \"loss_reason\": \"\",\n  \"won_reason_id\": \"\",\n  \"won_reason\": \"\",\n  \"pipeline_id\": \"\",\n  \"pipeline_stage_id\": \"\",\n  \"source_id\": \"\",\n  \"primary_contact_id\": \"\",\n  \"lead_id\": \"\",\n  \"contact_id\": \"\",\n  \"company_id\": \"\",\n  \"company_name\": \"\",\n  \"owner_id\": \"\",\n  \"priority\": \"\",\n  \"status\": \"\",\n  \"status_id\": \"\",\n  \"tags\": [],\n  \"interaction_count\": \"\",\n  \"custom_fields\": [\n    {\n      \"id\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"date_stage_changed\": \"\",\n  \"date_last_contacted\": \"\",\n  \"date_lead_created\": \"\",\n  \"updated_by\": \"\",\n  \"created_by\": \"\",\n  \"updated_at\": \"\",\n  \"created_at\": \"\"\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}}/crm/opportunities/:id";

    let payload = json!({
        "id": "",
        "title": "",
        "description": "",
        "monetary_amount": "",
        "currency": "",
        "win_probability": "",
        "close_date": "",
        "loss_reason_id": "",
        "loss_reason": "",
        "won_reason_id": "",
        "won_reason": "",
        "pipeline_id": "",
        "pipeline_stage_id": "",
        "source_id": "",
        "primary_contact_id": "",
        "lead_id": "",
        "contact_id": "",
        "company_id": "",
        "company_name": "",
        "owner_id": "",
        "priority": "",
        "status": "",
        "status_id": "",
        "tags": (),
        "interaction_count": "",
        "custom_fields": (
            json!({
                "id": "",
                "value": ""
            })
        ),
        "date_stage_changed": "",
        "date_last_contacted": "",
        "date_lead_created": "",
        "updated_by": "",
        "created_by": "",
        "updated_at": "",
        "created_at": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apideck-consumer-id", "".parse().unwrap());
    headers.insert("x-apideck-app-id", "".parse().unwrap());
    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}}/crm/opportunities/:id \
  --header 'content-type: application/json' \
  --header 'x-apideck-app-id: ' \
  --header 'x-apideck-consumer-id: ' \
  --data '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}'
echo '{
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    {
      "id": "",
      "value": ""
    }
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
}' |  \
  http PATCH {{baseUrl}}/crm/opportunities/:id \
  content-type:application/json \
  x-apideck-app-id:'' \
  x-apideck-consumer-id:''
wget --quiet \
  --method PATCH \
  --header 'x-apideck-consumer-id: ' \
  --header 'x-apideck-app-id: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "title": "",\n  "description": "",\n  "monetary_amount": "",\n  "currency": "",\n  "win_probability": "",\n  "close_date": "",\n  "loss_reason_id": "",\n  "loss_reason": "",\n  "won_reason_id": "",\n  "won_reason": "",\n  "pipeline_id": "",\n  "pipeline_stage_id": "",\n  "source_id": "",\n  "primary_contact_id": "",\n  "lead_id": "",\n  "contact_id": "",\n  "company_id": "",\n  "company_name": "",\n  "owner_id": "",\n  "priority": "",\n  "status": "",\n  "status_id": "",\n  "tags": [],\n  "interaction_count": "",\n  "custom_fields": [\n    {\n      "id": "",\n      "value": ""\n    }\n  ],\n  "date_stage_changed": "",\n  "date_last_contacted": "",\n  "date_lead_created": "",\n  "updated_by": "",\n  "created_by": "",\n  "updated_at": "",\n  "created_at": ""\n}' \
  --output-document \
  - {{baseUrl}}/crm/opportunities/:id
import Foundation

let headers = [
  "x-apideck-consumer-id": "",
  "x-apideck-app-id": "",
  "content-type": "application/json"
]
let parameters = [
  "id": "",
  "title": "",
  "description": "",
  "monetary_amount": "",
  "currency": "",
  "win_probability": "",
  "close_date": "",
  "loss_reason_id": "",
  "loss_reason": "",
  "won_reason_id": "",
  "won_reason": "",
  "pipeline_id": "",
  "pipeline_stage_id": "",
  "source_id": "",
  "primary_contact_id": "",
  "lead_id": "",
  "contact_id": "",
  "company_id": "",
  "company_name": "",
  "owner_id": "",
  "priority": "",
  "status": "",
  "status_id": "",
  "tags": [],
  "interaction_count": "",
  "custom_fields": [
    [
      "id": "",
      "value": ""
    ]
  ],
  "date_stage_changed": "",
  "date_last_contacted": "",
  "date_lead_created": "",
  "updated_by": "",
  "created_by": "",
  "updated_at": "",
  "created_at": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "status_code": 200,
  "status": "OK",
  "service": "zoho-crm",
  "resource": "companies",
  "operation": "one"
}