DELETE Archive
{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
QUERY PARAMS

feedbackSubmissionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId");

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

(client/delete "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

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

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

}
DELETE /baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId'
};

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/v3/objects/feedback_submissions/:feedbackSubmissionId');

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/v3/objects/feedback_submissions/:feedbackSubmissionId'
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")

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

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

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

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

response = conn.delete('/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId') do |req|
end

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

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

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
http DELETE {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST Create
{{baseUrl}}/crm/v3/objects/feedback_submissions
BODY json

{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions" {:content-type :json
                                                                                :form-params {:associations [{:types [{:associationCategory ""
                                                                                                                       :associationTypeId 0}]
                                                                                                              :to {:id ""}}]
                                                                                              :properties {}}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\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/v3/objects/feedback_submissions"),
    Content = new StringContent("{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\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/v3/objects/feedback_submissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions"

	payload := strings.NewReader("{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 214

{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\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  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions")
  .header("content-type", "application/json")
  .body("{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}")
  .asString();
const data = JSON.stringify({
  associations: [
    {
      types: [
        {
          associationCategory: '',
          associationTypeId: 0
        }
      ],
      to: {
        id: ''
      }
    }
  ],
  properties: {}
});

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/v3/objects/feedback_submissions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions',
  headers: {'content-type': 'application/json'},
  data: {
    associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
    properties: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"associations":[{"types":[{"associationCategory":"","associationTypeId":0}],"to":{"id":""}}],"properties":{}}'
};

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/v3/objects/feedback_submissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "associations": [\n    {\n      "types": [\n        {\n          "associationCategory": "",\n          "associationTypeId": 0\n        }\n      ],\n      "to": {\n        "id": ""\n      }\n    }\n  ],\n  "properties": {}\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
  properties: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions',
  headers: {'content-type': 'application/json'},
  body: {
    associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
    properties: {}
  },
  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/v3/objects/feedback_submissions');

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

req.type('json');
req.send({
  associations: [
    {
      types: [
        {
          associationCategory: '',
          associationTypeId: 0
        }
      ],
      to: {
        id: ''
      }
    }
  ],
  properties: {}
});

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/v3/objects/feedback_submissions',
  headers: {'content-type': 'application/json'},
  data: {
    associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
    properties: {}
  }
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"associations":[{"types":[{"associationCategory":"","associationTypeId":0}],"to":{"id":""}}],"properties":{}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"associations": @[ @{ @"types": @[ @{ @"associationCategory": @"", @"associationTypeId": @0 } ], @"to": @{ @"id": @"" } } ],
                              @"properties": @{  } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions"]
                                                       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/v3/objects/feedback_submissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions",
  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([
    'associations' => [
        [
                'types' => [
                                [
                                                                'associationCategory' => '',
                                                                'associationTypeId' => 0
                                ]
                ],
                'to' => [
                                'id' => ''
                ]
        ]
    ],
    'properties' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions', [
  'body' => '{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'associations' => [
    [
        'types' => [
                [
                                'associationCategory' => '',
                                'associationTypeId' => 0
                ]
        ],
        'to' => [
                'id' => ''
        ]
    ]
  ],
  'properties' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'associations' => [
    [
        'types' => [
                [
                                'associationCategory' => '',
                                'associationTypeId' => 0
                ]
        ],
        'to' => [
                'id' => ''
        ]
    ]
  ],
  'properties' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}'
import http.client

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

payload = "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions"

payload = {
    "associations": [
        {
            "types": [
                {
                    "associationCategory": "",
                    "associationTypeId": 0
                }
            ],
            "to": { "id": "" }
        }
    ],
    "properties": {}
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions"

payload <- "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\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/v3/objects/feedback_submissions') do |req|
  req.body = "{\n  \"associations\": [\n    {\n      \"types\": [\n        {\n          \"associationCategory\": \"\",\n          \"associationTypeId\": 0\n        }\n      ],\n      \"to\": {\n        \"id\": \"\"\n      }\n    }\n  ],\n  \"properties\": {}\n}"
end

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

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

    let payload = json!({
        "associations": (
            json!({
                "types": (
                    json!({
                        "associationCategory": "",
                        "associationTypeId": 0
                    })
                ),
                "to": json!({"id": ""})
            })
        ),
        "properties": json!({})
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions \
  --header 'content-type: application/json' \
  --data '{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}'
echo '{
  "associations": [
    {
      "types": [
        {
          "associationCategory": "",
          "associationTypeId": 0
        }
      ],
      "to": {
        "id": ""
      }
    }
  ],
  "properties": {}
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "associations": [\n    {\n      "types": [\n        {\n          "associationCategory": "",\n          "associationTypeId": 0\n        }\n      ],\n      "to": {\n        "id": ""\n      }\n    }\n  ],\n  "properties": {}\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "associations": [
    [
      "types": [
        [
          "associationCategory": "",
          "associationTypeId": 0
        ]
      ],
      "to": ["id": ""]
    ]
  ],
  "properties": []
] as [String : Any]

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

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

{
  "id": "512",
  "properties": {
    "hs_content": "What a great product!",
    "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
    "hs_response_group": "PROMOTER",
    "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
    "hs_survey_channel": "EMAIL",
    "hs_survey_id": "5",
    "hs_survey_name": "Customer Satisfaction Survey",
    "hs_survey_type": "CSAT",
    "hs_value": "2"
  },
  "createdAt": "2019-10-30T03:30:17.883Z",
  "updatedAt": "2019-12-07T16:50:06.678Z",
  "archived": false
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
GET List
{{baseUrl}}/crm/v3/objects/feedback_submissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions");

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

(client/get "{{baseUrl}}/crm/v3/objects/feedback_submissions")
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions"

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

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions"

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

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

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

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

}
GET /baseUrl/crm/v3/objects/feedback_submissions HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions'
};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions")
  .get()
  .build()

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

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions'
};

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/v3/objects/feedback_submissions');

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/v3/objects/feedback_submissions'
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/crm/v3/objects/feedback_submissions" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/crm/v3/objects/feedback_submissions")

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions"

response = requests.get(url)

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions")

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

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

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

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

response = conn.get('/baseUrl/crm/v3/objects/feedback_submissions') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "paging": {
    "next": {
      "after": "NTI1Cg%3D%3D",
      "link": "?after=NTI1Cg%3D%3D"
    }
  },
  "results": [
    {
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      }
    },
    {
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      }
    }
  ]
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
GET Read
{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
QUERY PARAMS

feedbackSubmissionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId");

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

(client/get "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

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

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

}
GET /baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId'
};

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId'
};

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/v3/objects/feedback_submissions/:feedbackSubmissionId');

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/v3/objects/feedback_submissions/:feedbackSubmissionId'
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

response = requests.get(url)

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")

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

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

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

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

response = conn.get('/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
http GET {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
import Foundation

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "properties": {
    "hs_content": "What a great product!",
    "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
    "hs_response_group": "PROMOTER",
    "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
    "hs_survey_channel": "EMAIL",
    "hs_survey_id": "5",
    "hs_survey_name": "Customer Satisfaction Survey",
    "hs_survey_type": "CSAT",
    "hs_value": "2"
  }
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
PATCH Update
{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
QUERY PARAMS

feedbackSubmissionId
BODY json

{
  "properties": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId");

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

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

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

(client/patch "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId" {:content-type :json
                                                                                                       :form-params {:properties {}}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"properties\": {}\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/v3/objects/feedback_submissions/:feedbackSubmissionId"),
    Content = new StringContent("{\n  \"properties\": {}\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/v3/objects/feedback_submissions/:feedbackSubmissionId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"properties\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

	payload := strings.NewReader("{\n  \"properties\": {}\n}")

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

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

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

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

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

}
PATCH /baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22

{
  "properties": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"properties\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"properties\": {}\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  \"properties\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .header("content-type", "application/json")
  .body("{\n  \"properties\": {}\n}")
  .asString();
const data = JSON.stringify({
  properties: {}
});

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/v3/objects/feedback_submissions/:feedbackSubmissionId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  headers: {'content-type': 'application/json'},
  data: {properties: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{}}'
};

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/v3/objects/feedback_submissions/:feedbackSubmissionId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "properties": {}\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"properties\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({properties: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId',
  headers: {'content-type': 'application/json'},
  body: {properties: {}},
  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/v3/objects/feedback_submissions/:feedbackSubmissionId');

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

req.type('json');
req.send({
  properties: {}
});

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/v3/objects/feedback_submissions/:feedbackSubmissionId',
  headers: {'content-type': 'application/json'},
  data: {properties: {}}
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"properties": @{  } };

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

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

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId",
  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([
    'properties' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId', [
  'body' => '{
  "properties": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'properties' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {}
}'
import http.client

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

payload = "{\n  \"properties\": {}\n}"

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

conn.request("PATCH", "/baseUrl/crm/v3/objects/feedback_submissions/:feedbackSubmissionId", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

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

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId"

payload <- "{\n  \"properties\": {}\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"properties\": {}\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/v3/objects/feedback_submissions/:feedbackSubmissionId') do |req|
  req.body = "{\n  \"properties\": {}\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/v3/objects/feedback_submissions/:feedbackSubmissionId";

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

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId \
  --header 'content-type: application/json' \
  --data '{
  "properties": {}
}'
echo '{
  "properties": {}
}' |  \
  http PATCH {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "properties": {}\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/:feedbackSubmissionId")! 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

{
  "id": "512",
  "properties": {
    "hs_content": "What a great product!",
    "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
    "hs_response_group": "PROMOTER",
    "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
    "hs_survey_channel": "EMAIL",
    "hs_survey_id": "5",
    "hs_survey_name": "Customer Satisfaction Survey",
    "hs_survey_type": "CSAT",
    "hs_value": "2"
  },
  "createdAt": "2019-10-30T03:30:17.883Z",
  "updatedAt": "2019-12-07T16:50:06.678Z",
  "archived": false
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST Archive a batch of feedback submissions by ID
{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive
BODY json

{
  "inputs": [
    {
      "id": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive" {:content-type :json
                                                                                              :form-params {:inputs [{:id ""}]}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"),
    Content = new StringContent("{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"

	payload := strings.NewReader("{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/batch/archive HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 48

{
  "inputs": [
    {
      "id": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive")
  .header("content-type", "application/json")
  .body("{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  inputs: [
    {
      id: ''
    }
  ]
});

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/v3/objects/feedback_submissions/batch/archive');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive',
  headers: {'content-type': 'application/json'},
  data: {inputs: [{id: ''}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputs":[{"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/v3/objects/feedback_submissions/batch/archive',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "inputs": [\n    {\n      "id": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/batch/archive',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({inputs: [{id: ''}]}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive',
  headers: {'content-type': 'application/json'},
  body: {inputs: [{id: ''}]},
  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/v3/objects/feedback_submissions/batch/archive');

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

req.type('json');
req.send({
  inputs: [
    {
      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/v3/objects/feedback_submissions/batch/archive',
  headers: {'content-type': 'application/json'},
  data: {inputs: [{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/v3/objects/feedback_submissions/batch/archive';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputs":[{"id":""}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"inputs": @[ @{ @"id": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"]
                                                       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/v3/objects/feedback_submissions/batch/archive" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive",
  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([
    'inputs' => [
        [
                'id' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive', [
  'body' => '{
  "inputs": [
    {
      "id": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive');
$request->setMethod(HTTP_METH_POST);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'inputs' => [
    [
        'id' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputs": [
    {
      "id": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputs": [
    {
      "id": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/batch/archive", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"

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

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive"

payload <- "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/crm/v3/objects/feedback_submissions/batch/archive') do |req|
  req.body = "{\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ]\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive";

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

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive \
  --header 'content-type: application/json' \
  --data '{
  "inputs": [
    {
      "id": ""
    }
  ]
}'
echo '{
  "inputs": [
    {
      "id": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "inputs": [\n    {\n      "id": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/archive")! 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
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST Create a batch of feedback submissions
{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create
BODY json

{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create" {:content-type :json
                                                                                             :form-params {:inputs [{:associations [{:types [{:associationCategory ""
                                                                                                                                              :associationTypeId 0}]
                                                                                                                                     :to {:id ""}}]
                                                                                                                     :properties {}}]}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"),
    Content = new StringContent("{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"

	payload := strings.NewReader("{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/batch/create HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 300

{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create")
  .header("content-type", "application/json")
  .body("{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  inputs: [
    {
      associations: [
        {
          types: [
            {
              associationCategory: '',
              associationTypeId: 0
            }
          ],
          to: {
            id: ''
          }
        }
      ],
      properties: {}
    }
  ]
});

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/v3/objects/feedback_submissions/batch/create');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create',
  headers: {'content-type': 'application/json'},
  data: {
    inputs: [
      {
        associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
        properties: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputs":[{"associations":[{"types":[{"associationCategory":"","associationTypeId":0}],"to":{"id":""}}],"properties":{}}]}'
};

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/v3/objects/feedback_submissions/batch/create',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "inputs": [\n    {\n      "associations": [\n        {\n          "types": [\n            {\n              "associationCategory": "",\n              "associationTypeId": 0\n            }\n          ],\n          "to": {\n            "id": ""\n          }\n        }\n      ],\n      "properties": {}\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/batch/create',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  inputs: [
    {
      associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
      properties: {}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create',
  headers: {'content-type': 'application/json'},
  body: {
    inputs: [
      {
        associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
        properties: {}
      }
    ]
  },
  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/v3/objects/feedback_submissions/batch/create');

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

req.type('json');
req.send({
  inputs: [
    {
      associations: [
        {
          types: [
            {
              associationCategory: '',
              associationTypeId: 0
            }
          ],
          to: {
            id: ''
          }
        }
      ],
      properties: {}
    }
  ]
});

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/v3/objects/feedback_submissions/batch/create',
  headers: {'content-type': 'application/json'},
  data: {
    inputs: [
      {
        associations: [{types: [{associationCategory: '', associationTypeId: 0}], to: {id: ''}}],
        properties: {}
      }
    ]
  }
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputs":[{"associations":[{"types":[{"associationCategory":"","associationTypeId":0}],"to":{"id":""}}],"properties":{}}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"inputs": @[ @{ @"associations": @[ @{ @"types": @[ @{ @"associationCategory": @"", @"associationTypeId": @0 } ], @"to": @{ @"id": @"" } } ], @"properties": @{  } } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"]
                                                       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/v3/objects/feedback_submissions/batch/create" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create",
  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([
    'inputs' => [
        [
                'associations' => [
                                [
                                                                'types' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'associationCategory' => '',
                                                                                                                                                                                                                                                                'associationTypeId' => 0
                                                                                                                                ]
                                                                ],
                                                                'to' => [
                                                                                                                                'id' => ''
                                                                ]
                                ]
                ],
                'properties' => [
                                
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create', [
  'body' => '{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'inputs' => [
    [
        'associations' => [
                [
                                'types' => [
                                                                [
                                                                                                                                'associationCategory' => '',
                                                                                                                                'associationTypeId' => 0
                                                                ]
                                ],
                                'to' => [
                                                                'id' => ''
                                ]
                ]
        ],
        'properties' => [
                
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'inputs' => [
    [
        'associations' => [
                [
                                'types' => [
                                                                [
                                                                                                                                'associationCategory' => '',
                                                                                                                                'associationTypeId' => 0
                                                                ]
                                ],
                                'to' => [
                                                                'id' => ''
                                ]
                ]
        ],
        'properties' => [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}'
import http.client

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

payload = "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/batch/create", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"

payload = { "inputs": [
        {
            "associations": [
                {
                    "types": [
                        {
                            "associationCategory": "",
                            "associationTypeId": 0
                        }
                    ],
                    "to": { "id": "" }
                }
            ],
            "properties": {}
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create"

payload <- "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/crm/v3/objects/feedback_submissions/batch/create') do |req|
  req.body = "{\n  \"inputs\": [\n    {\n      \"associations\": [\n        {\n          \"types\": [\n            {\n              \"associationCategory\": \"\",\n              \"associationTypeId\": 0\n            }\n          ],\n          \"to\": {\n            \"id\": \"\"\n          }\n        }\n      ],\n      \"properties\": {}\n    }\n  ]\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create";

    let payload = json!({"inputs": (
            json!({
                "associations": (
                    json!({
                        "types": (
                            json!({
                                "associationCategory": "",
                                "associationTypeId": 0
                            })
                        ),
                        "to": json!({"id": ""})
                    })
                ),
                "properties": json!({})
            })
        )});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create \
  --header 'content-type: application/json' \
  --data '{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}'
echo '{
  "inputs": [
    {
      "associations": [
        {
          "types": [
            {
              "associationCategory": "",
              "associationTypeId": 0
            }
          ],
          "to": {
            "id": ""
          }
        }
      ],
      "properties": {}
    }
  ]
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "inputs": [\n    {\n      "associations": [\n        {\n          "types": [\n            {\n              "associationCategory": "",\n              "associationTypeId": 0\n            }\n          ],\n          "to": {\n            "id": ""\n          }\n        }\n      ],\n      "properties": {}\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["inputs": [
    [
      "associations": [
        [
          "types": [
            [
              "associationCategory": "",
              "associationTypeId": 0
            ]
          ],
          "to": ["id": ""]
        ]
      ],
      "properties": []
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/create")! 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

{
  "completedAt": "2000-01-23T04:56:07.000Z",
  "requestedAt": "2000-01-23T04:56:07.000Z",
  "startedAt": "2000-01-23T04:56:07.000Z",
  "links": {
    "key": "links"
  },
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    },
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ],
  "status": "PENDING"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ]
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST Read a batch of feedback submissions by internal ID, or unique property values
{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read
BODY json

{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read" {:content-type :json
                                                                                           :form-params {:propertiesWithHistory []
                                                                                                         :idProperty ""
                                                                                                         :inputs [{:id ""}]
                                                                                                         :properties []}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\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/v3/objects/feedback_submissions/batch/read"),
    Content = new StringContent("{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\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/v3/objects/feedback_submissions/batch/read");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read"

	payload := strings.NewReader("{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/batch/read HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 119

{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\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  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read")
  .header("content-type", "application/json")
  .body("{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}")
  .asString();
const data = JSON.stringify({
  propertiesWithHistory: [],
  idProperty: '',
  inputs: [
    {
      id: ''
    }
  ],
  properties: []
});

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/v3/objects/feedback_submissions/batch/read');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read',
  headers: {'content-type': 'application/json'},
  data: {propertiesWithHistory: [], idProperty: '', inputs: [{id: ''}], properties: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"propertiesWithHistory":[],"idProperty":"","inputs":[{"id":""}],"properties":[]}'
};

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/v3/objects/feedback_submissions/batch/read',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "propertiesWithHistory": [],\n  "idProperty": "",\n  "inputs": [\n    {\n      "id": ""\n    }\n  ],\n  "properties": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/batch/read',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({propertiesWithHistory: [], idProperty: '', inputs: [{id: ''}], properties: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read',
  headers: {'content-type': 'application/json'},
  body: {propertiesWithHistory: [], idProperty: '', inputs: [{id: ''}], properties: []},
  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/v3/objects/feedback_submissions/batch/read');

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

req.type('json');
req.send({
  propertiesWithHistory: [],
  idProperty: '',
  inputs: [
    {
      id: ''
    }
  ],
  properties: []
});

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/v3/objects/feedback_submissions/batch/read',
  headers: {'content-type': 'application/json'},
  data: {propertiesWithHistory: [], idProperty: '', inputs: [{id: ''}], properties: []}
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"propertiesWithHistory":[],"idProperty":"","inputs":[{"id":""}],"properties":[]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"propertiesWithHistory": @[  ],
                              @"idProperty": @"",
                              @"inputs": @[ @{ @"id": @"" } ],
                              @"properties": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read"]
                                                       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/v3/objects/feedback_submissions/batch/read" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read",
  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([
    'propertiesWithHistory' => [
        
    ],
    'idProperty' => '',
    'inputs' => [
        [
                'id' => ''
        ]
    ],
    'properties' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read', [
  'body' => '{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'propertiesWithHistory' => [
    
  ],
  'idProperty' => '',
  'inputs' => [
    [
        'id' => ''
    ]
  ],
  'properties' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'propertiesWithHistory' => [
    
  ],
  'idProperty' => '',
  'inputs' => [
    [
        'id' => ''
    ]
  ],
  'properties' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}'
import http.client

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

payload = "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/batch/read", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read"

payload = {
    "propertiesWithHistory": [],
    "idProperty": "",
    "inputs": [{ "id": "" }],
    "properties": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read"

payload <- "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\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/v3/objects/feedback_submissions/batch/read') do |req|
  req.body = "{\n  \"propertiesWithHistory\": [],\n  \"idProperty\": \"\",\n  \"inputs\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"properties\": []\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read";

    let payload = json!({
        "propertiesWithHistory": (),
        "idProperty": "",
        "inputs": (json!({"id": ""})),
        "properties": ()
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read \
  --header 'content-type: application/json' \
  --data '{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}'
echo '{
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [
    {
      "id": ""
    }
  ],
  "properties": []
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "propertiesWithHistory": [],\n  "idProperty": "",\n  "inputs": [\n    {\n      "id": ""\n    }\n  ],\n  "properties": []\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "propertiesWithHistory": [],
  "idProperty": "",
  "inputs": [["id": ""]],
  "properties": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/read")! 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

{
  "completedAt": "2000-01-23T04:56:07.000Z",
  "requestedAt": "2000-01-23T04:56:07.000Z",
  "startedAt": "2000-01-23T04:56:07.000Z",
  "links": {
    "key": "links"
  },
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    },
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ],
  "status": "PENDING"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ]
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST Update a batch of feedback submissions
{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update
BODY json

{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update" {:content-type :json
                                                                                             :form-params {:inputs [{:idProperty ""
                                                                                                                     :id ""
                                                                                                                     :properties {}}]}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"),
    Content = new StringContent("{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"

	payload := strings.NewReader("{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/batch/update HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 96

{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update")
  .header("content-type", "application/json")
  .body("{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  inputs: [
    {
      idProperty: '',
      id: '',
      properties: {}
    }
  ]
});

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/v3/objects/feedback_submissions/batch/update');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update',
  headers: {'content-type': 'application/json'},
  data: {inputs: [{idProperty: '', id: '', properties: {}}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputs":[{"idProperty":"","id":"","properties":{}}]}'
};

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/v3/objects/feedback_submissions/batch/update',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "inputs": [\n    {\n      "idProperty": "",\n      "id": "",\n      "properties": {}\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/batch/update',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({inputs: [{idProperty: '', id: '', properties: {}}]}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update',
  headers: {'content-type': 'application/json'},
  body: {inputs: [{idProperty: '', id: '', properties: {}}]},
  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/v3/objects/feedback_submissions/batch/update');

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

req.type('json');
req.send({
  inputs: [
    {
      idProperty: '',
      id: '',
      properties: {}
    }
  ]
});

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/v3/objects/feedback_submissions/batch/update',
  headers: {'content-type': 'application/json'},
  data: {inputs: [{idProperty: '', id: '', properties: {}}]}
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"inputs":[{"idProperty":"","id":"","properties":{}}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"inputs": @[ @{ @"idProperty": @"", @"id": @"", @"properties": @{  } } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'inputs' => [
        [
                'idProperty' => '',
                'id' => '',
                'properties' => [
                                
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update', [
  'body' => '{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'inputs' => [
    [
        'idProperty' => '',
        'id' => '',
        'properties' => [
                
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'inputs' => [
    [
        'idProperty' => '',
        'id' => '',
        'properties' => [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}'
import http.client

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

payload = "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/batch/update", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"

payload = { "inputs": [
        {
            "idProperty": "",
            "id": "",
            "properties": {}
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update"

payload <- "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/crm/v3/objects/feedback_submissions/batch/update') do |req|
  req.body = "{\n  \"inputs\": [\n    {\n      \"idProperty\": \"\",\n      \"id\": \"\",\n      \"properties\": {}\n    }\n  ]\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update";

    let payload = json!({"inputs": (
            json!({
                "idProperty": "",
                "id": "",
                "properties": json!({})
            })
        )});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update \
  --header 'content-type: application/json' \
  --data '{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}'
echo '{
  "inputs": [
    {
      "idProperty": "",
      "id": "",
      "properties": {}
    }
  ]
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "inputs": [\n    {\n      "idProperty": "",\n      "id": "",\n      "properties": {}\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/batch/update
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["inputs": [
    [
      "idProperty": "",
      "id": "",
      "properties": []
    ]
  ]] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "completedAt": "2000-01-23T04:56:07.000Z",
  "requestedAt": "2000-01-23T04:56:07.000Z",
  "startedAt": "2000-01-23T04:56:07.000Z",
  "links": {
    "key": "links"
  },
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    },
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ],
  "status": "PENDING"
}
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ]
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST GDPR DELETE
{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete
BODY json

{
  "idProperty": "",
  "objectId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete" {:content-type :json
                                                                                            :form-params {:idProperty ""
                                                                                                          :objectId ""}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\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/v3/objects/feedback_submissions/gdpr-delete"),
    Content = new StringContent("{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\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/v3/objects/feedback_submissions/gdpr-delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete"

	payload := strings.NewReader("{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/gdpr-delete HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 40

{
  "idProperty": "",
  "objectId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\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  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete")
  .header("content-type", "application/json")
  .body("{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  idProperty: '',
  objectId: ''
});

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/v3/objects/feedback_submissions/gdpr-delete');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete',
  headers: {'content-type': 'application/json'},
  data: {idProperty: '', objectId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"idProperty":"","objectId":""}'
};

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/v3/objects/feedback_submissions/gdpr-delete',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "idProperty": "",\n  "objectId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/crm/v3/objects/feedback_submissions/gdpr-delete',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({idProperty: '', objectId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete',
  headers: {'content-type': 'application/json'},
  body: {idProperty: '', objectId: ''},
  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/v3/objects/feedback_submissions/gdpr-delete');

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

req.type('json');
req.send({
  idProperty: '',
  objectId: ''
});

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/v3/objects/feedback_submissions/gdpr-delete',
  headers: {'content-type': 'application/json'},
  data: {idProperty: '', objectId: ''}
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"idProperty":"","objectId":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"idProperty": @"",
                              @"objectId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'idProperty' => '',
    'objectId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete', [
  'body' => '{
  "idProperty": "",
  "objectId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete');
$request->setMethod(HTTP_METH_POST);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'idProperty' => '',
  'objectId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "idProperty": "",
  "objectId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "idProperty": "",
  "objectId": ""
}'
import http.client

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

payload = "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/gdpr-delete", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete"

payload = {
    "idProperty": "",
    "objectId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete"

payload <- "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\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/v3/objects/feedback_submissions/gdpr-delete') do |req|
  req.body = "{\n  \"idProperty\": \"\",\n  \"objectId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete";

    let payload = json!({
        "idProperty": "",
        "objectId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete \
  --header 'content-type: application/json' \
  --data '{
  "idProperty": "",
  "objectId": ""
}'
echo '{
  "idProperty": "",
  "objectId": ""
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "idProperty": "",\n  "objectId": ""\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/gdpr-delete
import Foundation

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

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST Merge two feedback submissions with same type
{{baseUrl}}/crm/v3/objects/feedback_submissions/merge
BODY json

{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge" {:content-type :json
                                                                                      :form-params {:objectIdToMerge ""
                                                                                                    :primaryObjectId ""}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\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/v3/objects/feedback_submissions/merge"),
    Content = new StringContent("{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\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/v3/objects/feedback_submissions/merge");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge"

	payload := strings.NewReader("{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/merge HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 52

{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/merge"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\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  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/merge")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/merge")
  .header("content-type", "application/json")
  .body("{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  objectIdToMerge: '',
  primaryObjectId: ''
});

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/v3/objects/feedback_submissions/merge');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge',
  headers: {'content-type': 'application/json'},
  data: {objectIdToMerge: '', primaryObjectId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"objectIdToMerge":"","primaryObjectId":""}'
};

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/v3/objects/feedback_submissions/merge',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "objectIdToMerge": "",\n  "primaryObjectId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/merge")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({objectIdToMerge: '', primaryObjectId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge',
  headers: {'content-type': 'application/json'},
  body: {objectIdToMerge: '', primaryObjectId: ''},
  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/v3/objects/feedback_submissions/merge');

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

req.type('json');
req.send({
  objectIdToMerge: '',
  primaryObjectId: ''
});

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/v3/objects/feedback_submissions/merge',
  headers: {'content-type': 'application/json'},
  data: {objectIdToMerge: '', primaryObjectId: ''}
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"objectIdToMerge":"","primaryObjectId":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"objectIdToMerge": @"",
                              @"primaryObjectId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/merge"]
                                                       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/v3/objects/feedback_submissions/merge" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge",
  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([
    'objectIdToMerge' => '',
    'primaryObjectId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge', [
  'body' => '{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/merge');
$request->setMethod(HTTP_METH_POST);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'objectIdToMerge' => '',
  'primaryObjectId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/merge');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/merge' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}'
import http.client

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

payload = "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/merge", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge"

payload = {
    "objectIdToMerge": "",
    "primaryObjectId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge"

payload <- "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/merge")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\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/v3/objects/feedback_submissions/merge') do |req|
  req.body = "{\n  \"objectIdToMerge\": \"\",\n  \"primaryObjectId\": \"\"\n}"
end

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

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

    let payload = json!({
        "objectIdToMerge": "",
        "primaryObjectId": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/merge \
  --header 'content-type: application/json' \
  --data '{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}'
echo '{
  "objectIdToMerge": "",
  "primaryObjectId": ""
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/merge \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "objectIdToMerge": "",\n  "primaryObjectId": ""\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/merge
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/merge")! 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

{
  "id": "512",
  "properties": {
    "hs_content": "What a great product!",
    "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
    "hs_response_group": "PROMOTER",
    "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
    "hs_survey_channel": "EMAIL",
    "hs_survey_id": "5",
    "hs_survey_name": "Customer Satisfaction Survey",
    "hs_survey_type": "CSAT",
    "hs_value": "2"
  },
  "createdAt": "2019-10-30T03:30:17.883Z",
  "updatedAt": "2019-12-07T16:50:06.678Z",
  "archived": false
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}
POST post--crm-v3-objects-feedback_submissions-search_doSearch
{{baseUrl}}/crm/v3/objects/feedback_submissions/search
BODY json

{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/crm/v3/objects/feedback_submissions/search");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/crm/v3/objects/feedback_submissions/search" {:content-type :json
                                                                                       :form-params {:query ""
                                                                                                     :limit 0
                                                                                                     :after ""
                                                                                                     :sorts []
                                                                                                     :properties []
                                                                                                     :filterGroups [{:filters [{:highValue ""
                                                                                                                                :propertyName ""
                                                                                                                                :values []
                                                                                                                                :value ""
                                                                                                                                :operator ""}]}]}})
require "http/client"

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/search"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/crm/v3/objects/feedback_submissions/search"),
    Content = new StringContent("{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/crm/v3/objects/feedback_submissions/search");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/crm/v3/objects/feedback_submissions/search"

	payload := strings.NewReader("{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/crm/v3/objects/feedback_submissions/search HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 294

{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/crm/v3/objects/feedback_submissions/search")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/crm/v3/objects/feedback_submissions/search"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/search")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/crm/v3/objects/feedback_submissions/search")
  .header("content-type", "application/json")
  .body("{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  query: '',
  limit: 0,
  after: '',
  sorts: [],
  properties: [],
  filterGroups: [
    {
      filters: [
        {
          highValue: '',
          propertyName: '',
          values: [],
          value: '',
          operator: ''
        }
      ]
    }
  ]
});

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/v3/objects/feedback_submissions/search');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/search',
  headers: {'content-type': 'application/json'},
  data: {
    query: '',
    limit: 0,
    after: '',
    sorts: [],
    properties: [],
    filterGroups: [
      {
        filters: [{highValue: '', propertyName: '', values: [], value: '', operator: ''}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"query":"","limit":0,"after":"","sorts":[],"properties":[],"filterGroups":[{"filters":[{"highValue":"","propertyName":"","values":[],"value":"","operator":""}]}]}'
};

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/v3/objects/feedback_submissions/search',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "query": "",\n  "limit": 0,\n  "after": "",\n  "sorts": [],\n  "properties": [],\n  "filterGroups": [\n    {\n      "filters": [\n        {\n          "highValue": "",\n          "propertyName": "",\n          "values": [],\n          "value": "",\n          "operator": ""\n        }\n      ]\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/crm/v3/objects/feedback_submissions/search")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  query: '',
  limit: 0,
  after: '',
  sorts: [],
  properties: [],
  filterGroups: [
    {
      filters: [{highValue: '', propertyName: '', values: [], value: '', operator: ''}]
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/crm/v3/objects/feedback_submissions/search',
  headers: {'content-type': 'application/json'},
  body: {
    query: '',
    limit: 0,
    after: '',
    sorts: [],
    properties: [],
    filterGroups: [
      {
        filters: [{highValue: '', propertyName: '', values: [], value: '', operator: ''}]
      }
    ]
  },
  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/v3/objects/feedback_submissions/search');

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

req.type('json');
req.send({
  query: '',
  limit: 0,
  after: '',
  sorts: [],
  properties: [],
  filterGroups: [
    {
      filters: [
        {
          highValue: '',
          propertyName: '',
          values: [],
          value: '',
          operator: ''
        }
      ]
    }
  ]
});

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/v3/objects/feedback_submissions/search',
  headers: {'content-type': 'application/json'},
  data: {
    query: '',
    limit: 0,
    after: '',
    sorts: [],
    properties: [],
    filterGroups: [
      {
        filters: [{highValue: '', propertyName: '', values: [], value: '', operator: ''}]
      }
    ]
  }
};

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

const url = '{{baseUrl}}/crm/v3/objects/feedback_submissions/search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"query":"","limit":0,"after":"","sorts":[],"properties":[],"filterGroups":[{"filters":[{"highValue":"","propertyName":"","values":[],"value":"","operator":""}]}]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"query": @"",
                              @"limit": @0,
                              @"after": @"",
                              @"sorts": @[  ],
                              @"properties": @[  ],
                              @"filterGroups": @[ @{ @"filters": @[ @{ @"highValue": @"", @"propertyName": @"", @"values": @[  ], @"value": @"", @"operator": @"" } ] } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/crm/v3/objects/feedback_submissions/search"]
                                                       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/v3/objects/feedback_submissions/search" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/crm/v3/objects/feedback_submissions/search",
  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([
    'query' => '',
    'limit' => 0,
    'after' => '',
    'sorts' => [
        
    ],
    'properties' => [
        
    ],
    'filterGroups' => [
        [
                'filters' => [
                                [
                                                                'highValue' => '',
                                                                'propertyName' => '',
                                                                'values' => [
                                                                                                                                
                                                                ],
                                                                'value' => '',
                                                                'operator' => ''
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/crm/v3/objects/feedback_submissions/search', [
  'body' => '{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/search');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'query' => '',
  'limit' => 0,
  'after' => '',
  'sorts' => [
    
  ],
  'properties' => [
    
  ],
  'filterGroups' => [
    [
        'filters' => [
                [
                                'highValue' => '',
                                'propertyName' => '',
                                'values' => [
                                                                
                                ],
                                'value' => '',
                                'operator' => ''
                ]
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'query' => '',
  'limit' => 0,
  'after' => '',
  'sorts' => [
    
  ],
  'properties' => [
    
  ],
  'filterGroups' => [
    [
        'filters' => [
                [
                                'highValue' => '',
                                'propertyName' => '',
                                'values' => [
                                                                
                                ],
                                'value' => '',
                                'operator' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/crm/v3/objects/feedback_submissions/search');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/crm/v3/objects/feedback_submissions/search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}'
import http.client

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

payload = "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/crm/v3/objects/feedback_submissions/search", payload, headers)

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

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

url = "{{baseUrl}}/crm/v3/objects/feedback_submissions/search"

payload = {
    "query": "",
    "limit": 0,
    "after": "",
    "sorts": [],
    "properties": [],
    "filterGroups": [{ "filters": [
                {
                    "highValue": "",
                    "propertyName": "",
                    "values": [],
                    "value": "",
                    "operator": ""
                }
            ] }]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/crm/v3/objects/feedback_submissions/search"

payload <- "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/crm/v3/objects/feedback_submissions/search")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/crm/v3/objects/feedback_submissions/search') do |req|
  req.body = "{\n  \"query\": \"\",\n  \"limit\": 0,\n  \"after\": \"\",\n  \"sorts\": [],\n  \"properties\": [],\n  \"filterGroups\": [\n    {\n      \"filters\": [\n        {\n          \"highValue\": \"\",\n          \"propertyName\": \"\",\n          \"values\": [],\n          \"value\": \"\",\n          \"operator\": \"\"\n        }\n      ]\n    }\n  ]\n}"
end

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

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

    let payload = json!({
        "query": "",
        "limit": 0,
        "after": "",
        "sorts": (),
        "properties": (),
        "filterGroups": (json!({"filters": (
                    json!({
                        "highValue": "",
                        "propertyName": "",
                        "values": (),
                        "value": "",
                        "operator": ""
                    })
                )}))
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/crm/v3/objects/feedback_submissions/search \
  --header 'content-type: application/json' \
  --data '{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}'
echo '{
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [
    {
      "filters": [
        {
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        }
      ]
    }
  ]
}' |  \
  http POST {{baseUrl}}/crm/v3/objects/feedback_submissions/search \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "query": "",\n  "limit": 0,\n  "after": "",\n  "sorts": [],\n  "properties": [],\n  "filterGroups": [\n    {\n      "filters": [\n        {\n          "highValue": "",\n          "propertyName": "",\n          "values": [],\n          "value": "",\n          "operator": ""\n        }\n      ]\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/crm/v3/objects/feedback_submissions/search
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "query": "",
  "limit": 0,
  "after": "",
  "sorts": [],
  "properties": [],
  "filterGroups": [["filters": [
        [
          "highValue": "",
          "propertyName": "",
          "values": [],
          "value": "",
          "operator": ""
        ]
      ]]]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/crm/v3/objects/feedback_submissions/search")! 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

{
  "total": 0,
  "paging": {
    "next": {
      "after": "NTI1Cg%3D%3D",
      "link": "?after=NTI1Cg%3D%3D"
    }
  },
  "results": [
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    },
    {
      "id": "512",
      "properties": {
        "hs_content": "What a great product!",
        "hs_ingestion_id": "fd61286d-102b-4fcc-b486-3486b4ceafc2",
        "hs_response_group": "PROMOTER",
        "hs_submission_name": "Customer Satisfaction Survey - bcooper@biglytics.net",
        "hs_survey_channel": "EMAIL",
        "hs_survey_id": "5",
        "hs_survey_name": "Customer Satisfaction Survey",
        "hs_survey_type": "CSAT",
        "hs_value": "2"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false
    }
  ]
}
RESPONSE HEADERS

Content-Type
*/*
RESPONSE BODY text

{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}