POST recaptchaenterprise.projects.assessments.annotate
{{baseUrl}}/v1/:name:annotate
QUERY PARAMS

name
BODY json

{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:name:annotate" {:content-type :json
                                                              :form-params {:annotation ""
                                                                            :hashedAccountId ""
                                                                            :reasons []
                                                                            :transactionEvent {:eventTime ""
                                                                                               :eventType ""
                                                                                               :reason ""
                                                                                               :value ""}}})
require "http/client"

url = "{{baseUrl}}/v1/:name:annotate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:name:annotate"),
    Content = new StringContent("{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name:annotate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:name:annotate"

	payload := strings.NewReader("{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1/:name:annotate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 169

{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:annotate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:annotate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\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  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name:annotate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:name:annotate")
  .header("content-type", "application/json")
  .body("{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  annotation: '',
  hashedAccountId: '',
  reasons: [],
  transactionEvent: {
    eventTime: '',
    eventType: '',
    reason: '',
    value: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:annotate',
  headers: {'content-type': 'application/json'},
  data: {
    annotation: '',
    hashedAccountId: '',
    reasons: [],
    transactionEvent: {eventTime: '', eventType: '', reason: '', value: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name:annotate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotation":"","hashedAccountId":"","reasons":[],"transactionEvent":{"eventTime":"","eventType":"","reason":"","value":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name:annotate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "annotation": "",\n  "hashedAccountId": "",\n  "reasons": [],\n  "transactionEvent": {\n    "eventTime": "",\n    "eventType": "",\n    "reason": "",\n    "value": ""\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  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:annotate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name:annotate',
  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({
  annotation: '',
  hashedAccountId: '',
  reasons: [],
  transactionEvent: {eventTime: '', eventType: '', reason: '', value: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:annotate',
  headers: {'content-type': 'application/json'},
  body: {
    annotation: '',
    hashedAccountId: '',
    reasons: [],
    transactionEvent: {eventTime: '', eventType: '', reason: '', value: ''}
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1/:name:annotate');

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

req.type('json');
req.send({
  annotation: '',
  hashedAccountId: '',
  reasons: [],
  transactionEvent: {
    eventTime: '',
    eventType: '',
    reason: '',
    value: ''
  }
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:annotate',
  headers: {'content-type': 'application/json'},
  data: {
    annotation: '',
    hashedAccountId: '',
    reasons: [],
    transactionEvent: {eventTime: '', eventType: '', reason: '', value: ''}
  }
};

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

const url = '{{baseUrl}}/v1/:name:annotate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"annotation":"","hashedAccountId":"","reasons":[],"transactionEvent":{"eventTime":"","eventType":"","reason":"","value":""}}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"annotation": @"",
                              @"hashedAccountId": @"",
                              @"reasons": @[  ],
                              @"transactionEvent": @{ @"eventTime": @"", @"eventType": @"", @"reason": @"", @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:annotate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1/:name:annotate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name:annotate",
  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([
    'annotation' => '',
    'hashedAccountId' => '',
    'reasons' => [
        
    ],
    'transactionEvent' => [
        'eventTime' => '',
        'eventType' => '',
        'reason' => '',
        'value' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:annotate', [
  'body' => '{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'annotation' => '',
  'hashedAccountId' => '',
  'reasons' => [
    
  ],
  'transactionEvent' => [
    'eventTime' => '',
    'eventType' => '',
    'reason' => '',
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'annotation' => '',
  'hashedAccountId' => '',
  'reasons' => [
    
  ],
  'transactionEvent' => [
    'eventTime' => '',
    'eventType' => '',
    'reason' => '',
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:annotate');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:annotate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:annotate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1/:name:annotate", payload, headers)

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

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

url = "{{baseUrl}}/v1/:name:annotate"

payload = {
    "annotation": "",
    "hashedAccountId": "",
    "reasons": [],
    "transactionEvent": {
        "eventTime": "",
        "eventType": "",
        "reason": "",
        "value": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:name:annotate"

payload <- "{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

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

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  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/v1/:name:annotate') do |req|
  req.body = "{\n  \"annotation\": \"\",\n  \"hashedAccountId\": \"\",\n  \"reasons\": [],\n  \"transactionEvent\": {\n    \"eventTime\": \"\",\n    \"eventType\": \"\",\n    \"reason\": \"\",\n    \"value\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "annotation": "",
        "hashedAccountId": "",
        "reasons": (),
        "transactionEvent": json!({
            "eventTime": "",
            "eventType": "",
            "reason": "",
            "value": ""
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:name:annotate \
  --header 'content-type: application/json' \
  --data '{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}'
echo '{
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": {
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/:name:annotate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "annotation": "",\n  "hashedAccountId": "",\n  "reasons": [],\n  "transactionEvent": {\n    "eventTime": "",\n    "eventType": "",\n    "reason": "",\n    "value": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:name:annotate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "annotation": "",
  "hashedAccountId": "",
  "reasons": [],
  "transactionEvent": [
    "eventTime": "",
    "eventType": "",
    "reason": "",
    "value": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST recaptchaenterprise.projects.assessments.create
{{baseUrl}}/v1/:parent/assessments
QUERY PARAMS

parent
BODY json

{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:parent/assessments" {:content-type :json
                                                                   :form-params {:accountDefenderAssessment {:labels []}
                                                                                 :accountVerification {:endpoints [{:emailAddress ""
                                                                                                                    :lastVerificationTime ""
                                                                                                                    :phoneNumber ""
                                                                                                                    :requestToken ""}]
                                                                                                       :languageCode ""
                                                                                                       :latestVerificationResult ""
                                                                                                       :username ""}
                                                                                 :event {:expectedAction ""
                                                                                         :express false
                                                                                         :firewallPolicyEvaluation false
                                                                                         :hashedAccountId ""
                                                                                         :headers []
                                                                                         :ja3 ""
                                                                                         :requestedUri ""
                                                                                         :siteKey ""
                                                                                         :token ""
                                                                                         :transactionData {:billingAddress {:address []
                                                                                                                            :administrativeArea ""
                                                                                                                            :locality ""
                                                                                                                            :postalCode ""
                                                                                                                            :recipient ""
                                                                                                                            :regionCode ""}
                                                                                                           :cardBin ""
                                                                                                           :cardLastFour ""
                                                                                                           :currencyCode ""
                                                                                                           :gatewayInfo {:avsResponseCode ""
                                                                                                                         :cvvResponseCode ""
                                                                                                                         :gatewayResponseCode ""
                                                                                                                         :name ""}
                                                                                                           :items [{:merchantAccountId ""
                                                                                                                    :name ""
                                                                                                                    :quantity ""
                                                                                                                    :value ""}]
                                                                                                           :merchants [{:accountId ""
                                                                                                                        :creationMs ""
                                                                                                                        :email ""
                                                                                                                        :emailVerified false
                                                                                                                        :phoneNumber ""
                                                                                                                        :phoneVerified false}]
                                                                                                           :paymentMethod ""
                                                                                                           :shippingAddress {}
                                                                                                           :shippingValue ""
                                                                                                           :transactionId ""
                                                                                                           :user {}
                                                                                                           :value ""}
                                                                                         :userAgent ""
                                                                                         :userIpAddress ""
                                                                                         :wafTokenAssessment false}
                                                                                 :firewallPolicyAssessment {:error {:code 0
                                                                                                                    :details [{}]
                                                                                                                    :message ""}
                                                                                                            :firewallPolicy {:actions [{:allow {}
                                                                                                                                        :block {}
                                                                                                                                        :redirect {}
                                                                                                                                        :setHeader {:key ""
                                                                                                                                                    :value ""}
                                                                                                                                        :substitute {:path ""}}]
                                                                                                                             :condition ""
                                                                                                                             :description ""
                                                                                                                             :name ""
                                                                                                                             :path ""}}
                                                                                 :fraudPreventionAssessment {:behavioralTrustVerdict {:trust ""}
                                                                                                             :cardTestingVerdict {:risk ""}
                                                                                                             :stolenInstrumentVerdict {:risk ""}
                                                                                                             :transactionRisk ""}
                                                                                 :name ""
                                                                                 :privatePasswordLeakVerification {:encryptedLeakMatchPrefixes []
                                                                                                                   :encryptedUserCredentialsHash ""
                                                                                                                   :lookupHashPrefix ""
                                                                                                                   :reencryptedUserCredentialsHash ""}
                                                                                 :riskAnalysis {:extendedVerdictReasons []
                                                                                                :reasons []
                                                                                                :score ""}
                                                                                 :tokenProperties {:action ""
                                                                                                   :androidPackageName ""
                                                                                                   :createTime ""
                                                                                                   :hostname ""
                                                                                                   :invalidReason ""
                                                                                                   :iosBundleId ""
                                                                                                   :valid false}}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/assessments"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:parent/assessments"),
    Content = new StringContent("{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/assessments");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/assessments"

	payload := strings.NewReader("{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1/:parent/assessments HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2826

{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/assessments")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/assessments"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\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  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/assessments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/assessments")
  .header("content-type", "application/json")
  .body("{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountDefenderAssessment: {
    labels: []
  },
  accountVerification: {
    endpoints: [
      {
        emailAddress: '',
        lastVerificationTime: '',
        phoneNumber: '',
        requestToken: ''
      }
    ],
    languageCode: '',
    latestVerificationResult: '',
    username: ''
  },
  event: {
    expectedAction: '',
    express: false,
    firewallPolicyEvaluation: false,
    hashedAccountId: '',
    headers: [],
    ja3: '',
    requestedUri: '',
    siteKey: '',
    token: '',
    transactionData: {
      billingAddress: {
        address: [],
        administrativeArea: '',
        locality: '',
        postalCode: '',
        recipient: '',
        regionCode: ''
      },
      cardBin: '',
      cardLastFour: '',
      currencyCode: '',
      gatewayInfo: {
        avsResponseCode: '',
        cvvResponseCode: '',
        gatewayResponseCode: '',
        name: ''
      },
      items: [
        {
          merchantAccountId: '',
          name: '',
          quantity: '',
          value: ''
        }
      ],
      merchants: [
        {
          accountId: '',
          creationMs: '',
          email: '',
          emailVerified: false,
          phoneNumber: '',
          phoneVerified: false
        }
      ],
      paymentMethod: '',
      shippingAddress: {},
      shippingValue: '',
      transactionId: '',
      user: {},
      value: ''
    },
    userAgent: '',
    userIpAddress: '',
    wafTokenAssessment: false
  },
  firewallPolicyAssessment: {
    error: {
      code: 0,
      details: [
        {}
      ],
      message: ''
    },
    firewallPolicy: {
      actions: [
        {
          allow: {},
          block: {},
          redirect: {},
          setHeader: {
            key: '',
            value: ''
          },
          substitute: {
            path: ''
          }
        }
      ],
      condition: '',
      description: '',
      name: '',
      path: ''
    }
  },
  fraudPreventionAssessment: {
    behavioralTrustVerdict: {
      trust: ''
    },
    cardTestingVerdict: {
      risk: ''
    },
    stolenInstrumentVerdict: {
      risk: ''
    },
    transactionRisk: ''
  },
  name: '',
  privatePasswordLeakVerification: {
    encryptedLeakMatchPrefixes: [],
    encryptedUserCredentialsHash: '',
    lookupHashPrefix: '',
    reencryptedUserCredentialsHash: ''
  },
  riskAnalysis: {
    extendedVerdictReasons: [],
    reasons: [],
    score: ''
  },
  tokenProperties: {
    action: '',
    androidPackageName: '',
    createTime: '',
    hostname: '',
    invalidReason: '',
    iosBundleId: '',
    valid: false
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/assessments',
  headers: {'content-type': 'application/json'},
  data: {
    accountDefenderAssessment: {labels: []},
    accountVerification: {
      endpoints: [
        {emailAddress: '', lastVerificationTime: '', phoneNumber: '', requestToken: ''}
      ],
      languageCode: '',
      latestVerificationResult: '',
      username: ''
    },
    event: {
      expectedAction: '',
      express: false,
      firewallPolicyEvaluation: false,
      hashedAccountId: '',
      headers: [],
      ja3: '',
      requestedUri: '',
      siteKey: '',
      token: '',
      transactionData: {
        billingAddress: {
          address: [],
          administrativeArea: '',
          locality: '',
          postalCode: '',
          recipient: '',
          regionCode: ''
        },
        cardBin: '',
        cardLastFour: '',
        currencyCode: '',
        gatewayInfo: {avsResponseCode: '', cvvResponseCode: '', gatewayResponseCode: '', name: ''},
        items: [{merchantAccountId: '', name: '', quantity: '', value: ''}],
        merchants: [
          {
            accountId: '',
            creationMs: '',
            email: '',
            emailVerified: false,
            phoneNumber: '',
            phoneVerified: false
          }
        ],
        paymentMethod: '',
        shippingAddress: {},
        shippingValue: '',
        transactionId: '',
        user: {},
        value: ''
      },
      userAgent: '',
      userIpAddress: '',
      wafTokenAssessment: false
    },
    firewallPolicyAssessment: {
      error: {code: 0, details: [{}], message: ''},
      firewallPolicy: {
        actions: [
          {
            allow: {},
            block: {},
            redirect: {},
            setHeader: {key: '', value: ''},
            substitute: {path: ''}
          }
        ],
        condition: '',
        description: '',
        name: '',
        path: ''
      }
    },
    fraudPreventionAssessment: {
      behavioralTrustVerdict: {trust: ''},
      cardTestingVerdict: {risk: ''},
      stolenInstrumentVerdict: {risk: ''},
      transactionRisk: ''
    },
    name: '',
    privatePasswordLeakVerification: {
      encryptedLeakMatchPrefixes: [],
      encryptedUserCredentialsHash: '',
      lookupHashPrefix: '',
      reencryptedUserCredentialsHash: ''
    },
    riskAnalysis: {extendedVerdictReasons: [], reasons: [], score: ''},
    tokenProperties: {
      action: '',
      androidPackageName: '',
      createTime: '',
      hostname: '',
      invalidReason: '',
      iosBundleId: '',
      valid: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/assessments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountDefenderAssessment":{"labels":[]},"accountVerification":{"endpoints":[{"emailAddress":"","lastVerificationTime":"","phoneNumber":"","requestToken":""}],"languageCode":"","latestVerificationResult":"","username":""},"event":{"expectedAction":"","express":false,"firewallPolicyEvaluation":false,"hashedAccountId":"","headers":[],"ja3":"","requestedUri":"","siteKey":"","token":"","transactionData":{"billingAddress":{"address":[],"administrativeArea":"","locality":"","postalCode":"","recipient":"","regionCode":""},"cardBin":"","cardLastFour":"","currencyCode":"","gatewayInfo":{"avsResponseCode":"","cvvResponseCode":"","gatewayResponseCode":"","name":""},"items":[{"merchantAccountId":"","name":"","quantity":"","value":""}],"merchants":[{"accountId":"","creationMs":"","email":"","emailVerified":false,"phoneNumber":"","phoneVerified":false}],"paymentMethod":"","shippingAddress":{},"shippingValue":"","transactionId":"","user":{},"value":""},"userAgent":"","userIpAddress":"","wafTokenAssessment":false},"firewallPolicyAssessment":{"error":{"code":0,"details":[{}],"message":""},"firewallPolicy":{"actions":[{"allow":{},"block":{},"redirect":{},"setHeader":{"key":"","value":""},"substitute":{"path":""}}],"condition":"","description":"","name":"","path":""}},"fraudPreventionAssessment":{"behavioralTrustVerdict":{"trust":""},"cardTestingVerdict":{"risk":""},"stolenInstrumentVerdict":{"risk":""},"transactionRisk":""},"name":"","privatePasswordLeakVerification":{"encryptedLeakMatchPrefixes":[],"encryptedUserCredentialsHash":"","lookupHashPrefix":"","reencryptedUserCredentialsHash":""},"riskAnalysis":{"extendedVerdictReasons":[],"reasons":[],"score":""},"tokenProperties":{"action":"","androidPackageName":"","createTime":"","hostname":"","invalidReason":"","iosBundleId":"","valid":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:parent/assessments',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountDefenderAssessment": {\n    "labels": []\n  },\n  "accountVerification": {\n    "endpoints": [\n      {\n        "emailAddress": "",\n        "lastVerificationTime": "",\n        "phoneNumber": "",\n        "requestToken": ""\n      }\n    ],\n    "languageCode": "",\n    "latestVerificationResult": "",\n    "username": ""\n  },\n  "event": {\n    "expectedAction": "",\n    "express": false,\n    "firewallPolicyEvaluation": false,\n    "hashedAccountId": "",\n    "headers": [],\n    "ja3": "",\n    "requestedUri": "",\n    "siteKey": "",\n    "token": "",\n    "transactionData": {\n      "billingAddress": {\n        "address": [],\n        "administrativeArea": "",\n        "locality": "",\n        "postalCode": "",\n        "recipient": "",\n        "regionCode": ""\n      },\n      "cardBin": "",\n      "cardLastFour": "",\n      "currencyCode": "",\n      "gatewayInfo": {\n        "avsResponseCode": "",\n        "cvvResponseCode": "",\n        "gatewayResponseCode": "",\n        "name": ""\n      },\n      "items": [\n        {\n          "merchantAccountId": "",\n          "name": "",\n          "quantity": "",\n          "value": ""\n        }\n      ],\n      "merchants": [\n        {\n          "accountId": "",\n          "creationMs": "",\n          "email": "",\n          "emailVerified": false,\n          "phoneNumber": "",\n          "phoneVerified": false\n        }\n      ],\n      "paymentMethod": "",\n      "shippingAddress": {},\n      "shippingValue": "",\n      "transactionId": "",\n      "user": {},\n      "value": ""\n    },\n    "userAgent": "",\n    "userIpAddress": "",\n    "wafTokenAssessment": false\n  },\n  "firewallPolicyAssessment": {\n    "error": {\n      "code": 0,\n      "details": [\n        {}\n      ],\n      "message": ""\n    },\n    "firewallPolicy": {\n      "actions": [\n        {\n          "allow": {},\n          "block": {},\n          "redirect": {},\n          "setHeader": {\n            "key": "",\n            "value": ""\n          },\n          "substitute": {\n            "path": ""\n          }\n        }\n      ],\n      "condition": "",\n      "description": "",\n      "name": "",\n      "path": ""\n    }\n  },\n  "fraudPreventionAssessment": {\n    "behavioralTrustVerdict": {\n      "trust": ""\n    },\n    "cardTestingVerdict": {\n      "risk": ""\n    },\n    "stolenInstrumentVerdict": {\n      "risk": ""\n    },\n    "transactionRisk": ""\n  },\n  "name": "",\n  "privatePasswordLeakVerification": {\n    "encryptedLeakMatchPrefixes": [],\n    "encryptedUserCredentialsHash": "",\n    "lookupHashPrefix": "",\n    "reencryptedUserCredentialsHash": ""\n  },\n  "riskAnalysis": {\n    "extendedVerdictReasons": [],\n    "reasons": [],\n    "score": ""\n  },\n  "tokenProperties": {\n    "action": "",\n    "androidPackageName": "",\n    "createTime": "",\n    "hostname": "",\n    "invalidReason": "",\n    "iosBundleId": "",\n    "valid": false\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  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/assessments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/assessments',
  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({
  accountDefenderAssessment: {labels: []},
  accountVerification: {
    endpoints: [
      {emailAddress: '', lastVerificationTime: '', phoneNumber: '', requestToken: ''}
    ],
    languageCode: '',
    latestVerificationResult: '',
    username: ''
  },
  event: {
    expectedAction: '',
    express: false,
    firewallPolicyEvaluation: false,
    hashedAccountId: '',
    headers: [],
    ja3: '',
    requestedUri: '',
    siteKey: '',
    token: '',
    transactionData: {
      billingAddress: {
        address: [],
        administrativeArea: '',
        locality: '',
        postalCode: '',
        recipient: '',
        regionCode: ''
      },
      cardBin: '',
      cardLastFour: '',
      currencyCode: '',
      gatewayInfo: {avsResponseCode: '', cvvResponseCode: '', gatewayResponseCode: '', name: ''},
      items: [{merchantAccountId: '', name: '', quantity: '', value: ''}],
      merchants: [
        {
          accountId: '',
          creationMs: '',
          email: '',
          emailVerified: false,
          phoneNumber: '',
          phoneVerified: false
        }
      ],
      paymentMethod: '',
      shippingAddress: {},
      shippingValue: '',
      transactionId: '',
      user: {},
      value: ''
    },
    userAgent: '',
    userIpAddress: '',
    wafTokenAssessment: false
  },
  firewallPolicyAssessment: {
    error: {code: 0, details: [{}], message: ''},
    firewallPolicy: {
      actions: [
        {
          allow: {},
          block: {},
          redirect: {},
          setHeader: {key: '', value: ''},
          substitute: {path: ''}
        }
      ],
      condition: '',
      description: '',
      name: '',
      path: ''
    }
  },
  fraudPreventionAssessment: {
    behavioralTrustVerdict: {trust: ''},
    cardTestingVerdict: {risk: ''},
    stolenInstrumentVerdict: {risk: ''},
    transactionRisk: ''
  },
  name: '',
  privatePasswordLeakVerification: {
    encryptedLeakMatchPrefixes: [],
    encryptedUserCredentialsHash: '',
    lookupHashPrefix: '',
    reencryptedUserCredentialsHash: ''
  },
  riskAnalysis: {extendedVerdictReasons: [], reasons: [], score: ''},
  tokenProperties: {
    action: '',
    androidPackageName: '',
    createTime: '',
    hostname: '',
    invalidReason: '',
    iosBundleId: '',
    valid: false
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/assessments',
  headers: {'content-type': 'application/json'},
  body: {
    accountDefenderAssessment: {labels: []},
    accountVerification: {
      endpoints: [
        {emailAddress: '', lastVerificationTime: '', phoneNumber: '', requestToken: ''}
      ],
      languageCode: '',
      latestVerificationResult: '',
      username: ''
    },
    event: {
      expectedAction: '',
      express: false,
      firewallPolicyEvaluation: false,
      hashedAccountId: '',
      headers: [],
      ja3: '',
      requestedUri: '',
      siteKey: '',
      token: '',
      transactionData: {
        billingAddress: {
          address: [],
          administrativeArea: '',
          locality: '',
          postalCode: '',
          recipient: '',
          regionCode: ''
        },
        cardBin: '',
        cardLastFour: '',
        currencyCode: '',
        gatewayInfo: {avsResponseCode: '', cvvResponseCode: '', gatewayResponseCode: '', name: ''},
        items: [{merchantAccountId: '', name: '', quantity: '', value: ''}],
        merchants: [
          {
            accountId: '',
            creationMs: '',
            email: '',
            emailVerified: false,
            phoneNumber: '',
            phoneVerified: false
          }
        ],
        paymentMethod: '',
        shippingAddress: {},
        shippingValue: '',
        transactionId: '',
        user: {},
        value: ''
      },
      userAgent: '',
      userIpAddress: '',
      wafTokenAssessment: false
    },
    firewallPolicyAssessment: {
      error: {code: 0, details: [{}], message: ''},
      firewallPolicy: {
        actions: [
          {
            allow: {},
            block: {},
            redirect: {},
            setHeader: {key: '', value: ''},
            substitute: {path: ''}
          }
        ],
        condition: '',
        description: '',
        name: '',
        path: ''
      }
    },
    fraudPreventionAssessment: {
      behavioralTrustVerdict: {trust: ''},
      cardTestingVerdict: {risk: ''},
      stolenInstrumentVerdict: {risk: ''},
      transactionRisk: ''
    },
    name: '',
    privatePasswordLeakVerification: {
      encryptedLeakMatchPrefixes: [],
      encryptedUserCredentialsHash: '',
      lookupHashPrefix: '',
      reencryptedUserCredentialsHash: ''
    },
    riskAnalysis: {extendedVerdictReasons: [], reasons: [], score: ''},
    tokenProperties: {
      action: '',
      androidPackageName: '',
      createTime: '',
      hostname: '',
      invalidReason: '',
      iosBundleId: '',
      valid: false
    }
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1/:parent/assessments');

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

req.type('json');
req.send({
  accountDefenderAssessment: {
    labels: []
  },
  accountVerification: {
    endpoints: [
      {
        emailAddress: '',
        lastVerificationTime: '',
        phoneNumber: '',
        requestToken: ''
      }
    ],
    languageCode: '',
    latestVerificationResult: '',
    username: ''
  },
  event: {
    expectedAction: '',
    express: false,
    firewallPolicyEvaluation: false,
    hashedAccountId: '',
    headers: [],
    ja3: '',
    requestedUri: '',
    siteKey: '',
    token: '',
    transactionData: {
      billingAddress: {
        address: [],
        administrativeArea: '',
        locality: '',
        postalCode: '',
        recipient: '',
        regionCode: ''
      },
      cardBin: '',
      cardLastFour: '',
      currencyCode: '',
      gatewayInfo: {
        avsResponseCode: '',
        cvvResponseCode: '',
        gatewayResponseCode: '',
        name: ''
      },
      items: [
        {
          merchantAccountId: '',
          name: '',
          quantity: '',
          value: ''
        }
      ],
      merchants: [
        {
          accountId: '',
          creationMs: '',
          email: '',
          emailVerified: false,
          phoneNumber: '',
          phoneVerified: false
        }
      ],
      paymentMethod: '',
      shippingAddress: {},
      shippingValue: '',
      transactionId: '',
      user: {},
      value: ''
    },
    userAgent: '',
    userIpAddress: '',
    wafTokenAssessment: false
  },
  firewallPolicyAssessment: {
    error: {
      code: 0,
      details: [
        {}
      ],
      message: ''
    },
    firewallPolicy: {
      actions: [
        {
          allow: {},
          block: {},
          redirect: {},
          setHeader: {
            key: '',
            value: ''
          },
          substitute: {
            path: ''
          }
        }
      ],
      condition: '',
      description: '',
      name: '',
      path: ''
    }
  },
  fraudPreventionAssessment: {
    behavioralTrustVerdict: {
      trust: ''
    },
    cardTestingVerdict: {
      risk: ''
    },
    stolenInstrumentVerdict: {
      risk: ''
    },
    transactionRisk: ''
  },
  name: '',
  privatePasswordLeakVerification: {
    encryptedLeakMatchPrefixes: [],
    encryptedUserCredentialsHash: '',
    lookupHashPrefix: '',
    reencryptedUserCredentialsHash: ''
  },
  riskAnalysis: {
    extendedVerdictReasons: [],
    reasons: [],
    score: ''
  },
  tokenProperties: {
    action: '',
    androidPackageName: '',
    createTime: '',
    hostname: '',
    invalidReason: '',
    iosBundleId: '',
    valid: false
  }
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/assessments',
  headers: {'content-type': 'application/json'},
  data: {
    accountDefenderAssessment: {labels: []},
    accountVerification: {
      endpoints: [
        {emailAddress: '', lastVerificationTime: '', phoneNumber: '', requestToken: ''}
      ],
      languageCode: '',
      latestVerificationResult: '',
      username: ''
    },
    event: {
      expectedAction: '',
      express: false,
      firewallPolicyEvaluation: false,
      hashedAccountId: '',
      headers: [],
      ja3: '',
      requestedUri: '',
      siteKey: '',
      token: '',
      transactionData: {
        billingAddress: {
          address: [],
          administrativeArea: '',
          locality: '',
          postalCode: '',
          recipient: '',
          regionCode: ''
        },
        cardBin: '',
        cardLastFour: '',
        currencyCode: '',
        gatewayInfo: {avsResponseCode: '', cvvResponseCode: '', gatewayResponseCode: '', name: ''},
        items: [{merchantAccountId: '', name: '', quantity: '', value: ''}],
        merchants: [
          {
            accountId: '',
            creationMs: '',
            email: '',
            emailVerified: false,
            phoneNumber: '',
            phoneVerified: false
          }
        ],
        paymentMethod: '',
        shippingAddress: {},
        shippingValue: '',
        transactionId: '',
        user: {},
        value: ''
      },
      userAgent: '',
      userIpAddress: '',
      wafTokenAssessment: false
    },
    firewallPolicyAssessment: {
      error: {code: 0, details: [{}], message: ''},
      firewallPolicy: {
        actions: [
          {
            allow: {},
            block: {},
            redirect: {},
            setHeader: {key: '', value: ''},
            substitute: {path: ''}
          }
        ],
        condition: '',
        description: '',
        name: '',
        path: ''
      }
    },
    fraudPreventionAssessment: {
      behavioralTrustVerdict: {trust: ''},
      cardTestingVerdict: {risk: ''},
      stolenInstrumentVerdict: {risk: ''},
      transactionRisk: ''
    },
    name: '',
    privatePasswordLeakVerification: {
      encryptedLeakMatchPrefixes: [],
      encryptedUserCredentialsHash: '',
      lookupHashPrefix: '',
      reencryptedUserCredentialsHash: ''
    },
    riskAnalysis: {extendedVerdictReasons: [], reasons: [], score: ''},
    tokenProperties: {
      action: '',
      androidPackageName: '',
      createTime: '',
      hostname: '',
      invalidReason: '',
      iosBundleId: '',
      valid: false
    }
  }
};

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

const url = '{{baseUrl}}/v1/:parent/assessments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountDefenderAssessment":{"labels":[]},"accountVerification":{"endpoints":[{"emailAddress":"","lastVerificationTime":"","phoneNumber":"","requestToken":""}],"languageCode":"","latestVerificationResult":"","username":""},"event":{"expectedAction":"","express":false,"firewallPolicyEvaluation":false,"hashedAccountId":"","headers":[],"ja3":"","requestedUri":"","siteKey":"","token":"","transactionData":{"billingAddress":{"address":[],"administrativeArea":"","locality":"","postalCode":"","recipient":"","regionCode":""},"cardBin":"","cardLastFour":"","currencyCode":"","gatewayInfo":{"avsResponseCode":"","cvvResponseCode":"","gatewayResponseCode":"","name":""},"items":[{"merchantAccountId":"","name":"","quantity":"","value":""}],"merchants":[{"accountId":"","creationMs":"","email":"","emailVerified":false,"phoneNumber":"","phoneVerified":false}],"paymentMethod":"","shippingAddress":{},"shippingValue":"","transactionId":"","user":{},"value":""},"userAgent":"","userIpAddress":"","wafTokenAssessment":false},"firewallPolicyAssessment":{"error":{"code":0,"details":[{}],"message":""},"firewallPolicy":{"actions":[{"allow":{},"block":{},"redirect":{},"setHeader":{"key":"","value":""},"substitute":{"path":""}}],"condition":"","description":"","name":"","path":""}},"fraudPreventionAssessment":{"behavioralTrustVerdict":{"trust":""},"cardTestingVerdict":{"risk":""},"stolenInstrumentVerdict":{"risk":""},"transactionRisk":""},"name":"","privatePasswordLeakVerification":{"encryptedLeakMatchPrefixes":[],"encryptedUserCredentialsHash":"","lookupHashPrefix":"","reencryptedUserCredentialsHash":""},"riskAnalysis":{"extendedVerdictReasons":[],"reasons":[],"score":""},"tokenProperties":{"action":"","androidPackageName":"","createTime":"","hostname":"","invalidReason":"","iosBundleId":"","valid":false}}'
};

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 = @{ @"accountDefenderAssessment": @{ @"labels": @[  ] },
                              @"accountVerification": @{ @"endpoints": @[ @{ @"emailAddress": @"", @"lastVerificationTime": @"", @"phoneNumber": @"", @"requestToken": @"" } ], @"languageCode": @"", @"latestVerificationResult": @"", @"username": @"" },
                              @"event": @{ @"expectedAction": @"", @"express": @NO, @"firewallPolicyEvaluation": @NO, @"hashedAccountId": @"", @"headers": @[  ], @"ja3": @"", @"requestedUri": @"", @"siteKey": @"", @"token": @"", @"transactionData": @{ @"billingAddress": @{ @"address": @[  ], @"administrativeArea": @"", @"locality": @"", @"postalCode": @"", @"recipient": @"", @"regionCode": @"" }, @"cardBin": @"", @"cardLastFour": @"", @"currencyCode": @"", @"gatewayInfo": @{ @"avsResponseCode": @"", @"cvvResponseCode": @"", @"gatewayResponseCode": @"", @"name": @"" }, @"items": @[ @{ @"merchantAccountId": @"", @"name": @"", @"quantity": @"", @"value": @"" } ], @"merchants": @[ @{ @"accountId": @"", @"creationMs": @"", @"email": @"", @"emailVerified": @NO, @"phoneNumber": @"", @"phoneVerified": @NO } ], @"paymentMethod": @"", @"shippingAddress": @{  }, @"shippingValue": @"", @"transactionId": @"", @"user": @{  }, @"value": @"" }, @"userAgent": @"", @"userIpAddress": @"", @"wafTokenAssessment": @NO },
                              @"firewallPolicyAssessment": @{ @"error": @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" }, @"firewallPolicy": @{ @"actions": @[ @{ @"allow": @{  }, @"block": @{  }, @"redirect": @{  }, @"setHeader": @{ @"key": @"", @"value": @"" }, @"substitute": @{ @"path": @"" } } ], @"condition": @"", @"description": @"", @"name": @"", @"path": @"" } },
                              @"fraudPreventionAssessment": @{ @"behavioralTrustVerdict": @{ @"trust": @"" }, @"cardTestingVerdict": @{ @"risk": @"" }, @"stolenInstrumentVerdict": @{ @"risk": @"" }, @"transactionRisk": @"" },
                              @"name": @"",
                              @"privatePasswordLeakVerification": @{ @"encryptedLeakMatchPrefixes": @[  ], @"encryptedUserCredentialsHash": @"", @"lookupHashPrefix": @"", @"reencryptedUserCredentialsHash": @"" },
                              @"riskAnalysis": @{ @"extendedVerdictReasons": @[  ], @"reasons": @[  ], @"score": @"" },
                              @"tokenProperties": @{ @"action": @"", @"androidPackageName": @"", @"createTime": @"", @"hostname": @"", @"invalidReason": @"", @"iosBundleId": @"", @"valid": @NO } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/assessments"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/assessments" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/assessments",
  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([
    'accountDefenderAssessment' => [
        'labels' => [
                
        ]
    ],
    'accountVerification' => [
        'endpoints' => [
                [
                                'emailAddress' => '',
                                'lastVerificationTime' => '',
                                'phoneNumber' => '',
                                'requestToken' => ''
                ]
        ],
        'languageCode' => '',
        'latestVerificationResult' => '',
        'username' => ''
    ],
    'event' => [
        'expectedAction' => '',
        'express' => null,
        'firewallPolicyEvaluation' => null,
        'hashedAccountId' => '',
        'headers' => [
                
        ],
        'ja3' => '',
        'requestedUri' => '',
        'siteKey' => '',
        'token' => '',
        'transactionData' => [
                'billingAddress' => [
                                'address' => [
                                                                
                                ],
                                'administrativeArea' => '',
                                'locality' => '',
                                'postalCode' => '',
                                'recipient' => '',
                                'regionCode' => ''
                ],
                'cardBin' => '',
                'cardLastFour' => '',
                'currencyCode' => '',
                'gatewayInfo' => [
                                'avsResponseCode' => '',
                                'cvvResponseCode' => '',
                                'gatewayResponseCode' => '',
                                'name' => ''
                ],
                'items' => [
                                [
                                                                'merchantAccountId' => '',
                                                                'name' => '',
                                                                'quantity' => '',
                                                                'value' => ''
                                ]
                ],
                'merchants' => [
                                [
                                                                'accountId' => '',
                                                                'creationMs' => '',
                                                                'email' => '',
                                                                'emailVerified' => null,
                                                                'phoneNumber' => '',
                                                                'phoneVerified' => null
                                ]
                ],
                'paymentMethod' => '',
                'shippingAddress' => [
                                
                ],
                'shippingValue' => '',
                'transactionId' => '',
                'user' => [
                                
                ],
                'value' => ''
        ],
        'userAgent' => '',
        'userIpAddress' => '',
        'wafTokenAssessment' => null
    ],
    'firewallPolicyAssessment' => [
        'error' => [
                'code' => 0,
                'details' => [
                                [
                                                                
                                ]
                ],
                'message' => ''
        ],
        'firewallPolicy' => [
                'actions' => [
                                [
                                                                'allow' => [
                                                                                                                                
                                                                ],
                                                                'block' => [
                                                                                                                                
                                                                ],
                                                                'redirect' => [
                                                                                                                                
                                                                ],
                                                                'setHeader' => [
                                                                                                                                'key' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'substitute' => [
                                                                                                                                'path' => ''
                                                                ]
                                ]
                ],
                'condition' => '',
                'description' => '',
                'name' => '',
                'path' => ''
        ]
    ],
    'fraudPreventionAssessment' => [
        'behavioralTrustVerdict' => [
                'trust' => ''
        ],
        'cardTestingVerdict' => [
                'risk' => ''
        ],
        'stolenInstrumentVerdict' => [
                'risk' => ''
        ],
        'transactionRisk' => ''
    ],
    'name' => '',
    'privatePasswordLeakVerification' => [
        'encryptedLeakMatchPrefixes' => [
                
        ],
        'encryptedUserCredentialsHash' => '',
        'lookupHashPrefix' => '',
        'reencryptedUserCredentialsHash' => ''
    ],
    'riskAnalysis' => [
        'extendedVerdictReasons' => [
                
        ],
        'reasons' => [
                
        ],
        'score' => ''
    ],
    'tokenProperties' => [
        'action' => '',
        'androidPackageName' => '',
        'createTime' => '',
        'hostname' => '',
        'invalidReason' => '',
        'iosBundleId' => '',
        'valid' => null
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/assessments', [
  'body' => '{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountDefenderAssessment' => [
    'labels' => [
        
    ]
  ],
  'accountVerification' => [
    'endpoints' => [
        [
                'emailAddress' => '',
                'lastVerificationTime' => '',
                'phoneNumber' => '',
                'requestToken' => ''
        ]
    ],
    'languageCode' => '',
    'latestVerificationResult' => '',
    'username' => ''
  ],
  'event' => [
    'expectedAction' => '',
    'express' => null,
    'firewallPolicyEvaluation' => null,
    'hashedAccountId' => '',
    'headers' => [
        
    ],
    'ja3' => '',
    'requestedUri' => '',
    'siteKey' => '',
    'token' => '',
    'transactionData' => [
        'billingAddress' => [
                'address' => [
                                
                ],
                'administrativeArea' => '',
                'locality' => '',
                'postalCode' => '',
                'recipient' => '',
                'regionCode' => ''
        ],
        'cardBin' => '',
        'cardLastFour' => '',
        'currencyCode' => '',
        'gatewayInfo' => [
                'avsResponseCode' => '',
                'cvvResponseCode' => '',
                'gatewayResponseCode' => '',
                'name' => ''
        ],
        'items' => [
                [
                                'merchantAccountId' => '',
                                'name' => '',
                                'quantity' => '',
                                'value' => ''
                ]
        ],
        'merchants' => [
                [
                                'accountId' => '',
                                'creationMs' => '',
                                'email' => '',
                                'emailVerified' => null,
                                'phoneNumber' => '',
                                'phoneVerified' => null
                ]
        ],
        'paymentMethod' => '',
        'shippingAddress' => [
                
        ],
        'shippingValue' => '',
        'transactionId' => '',
        'user' => [
                
        ],
        'value' => ''
    ],
    'userAgent' => '',
    'userIpAddress' => '',
    'wafTokenAssessment' => null
  ],
  'firewallPolicyAssessment' => [
    'error' => [
        'code' => 0,
        'details' => [
                [
                                
                ]
        ],
        'message' => ''
    ],
    'firewallPolicy' => [
        'actions' => [
                [
                                'allow' => [
                                                                
                                ],
                                'block' => [
                                                                
                                ],
                                'redirect' => [
                                                                
                                ],
                                'setHeader' => [
                                                                'key' => '',
                                                                'value' => ''
                                ],
                                'substitute' => [
                                                                'path' => ''
                                ]
                ]
        ],
        'condition' => '',
        'description' => '',
        'name' => '',
        'path' => ''
    ]
  ],
  'fraudPreventionAssessment' => [
    'behavioralTrustVerdict' => [
        'trust' => ''
    ],
    'cardTestingVerdict' => [
        'risk' => ''
    ],
    'stolenInstrumentVerdict' => [
        'risk' => ''
    ],
    'transactionRisk' => ''
  ],
  'name' => '',
  'privatePasswordLeakVerification' => [
    'encryptedLeakMatchPrefixes' => [
        
    ],
    'encryptedUserCredentialsHash' => '',
    'lookupHashPrefix' => '',
    'reencryptedUserCredentialsHash' => ''
  ],
  'riskAnalysis' => [
    'extendedVerdictReasons' => [
        
    ],
    'reasons' => [
        
    ],
    'score' => ''
  ],
  'tokenProperties' => [
    'action' => '',
    'androidPackageName' => '',
    'createTime' => '',
    'hostname' => '',
    'invalidReason' => '',
    'iosBundleId' => '',
    'valid' => null
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountDefenderAssessment' => [
    'labels' => [
        
    ]
  ],
  'accountVerification' => [
    'endpoints' => [
        [
                'emailAddress' => '',
                'lastVerificationTime' => '',
                'phoneNumber' => '',
                'requestToken' => ''
        ]
    ],
    'languageCode' => '',
    'latestVerificationResult' => '',
    'username' => ''
  ],
  'event' => [
    'expectedAction' => '',
    'express' => null,
    'firewallPolicyEvaluation' => null,
    'hashedAccountId' => '',
    'headers' => [
        
    ],
    'ja3' => '',
    'requestedUri' => '',
    'siteKey' => '',
    'token' => '',
    'transactionData' => [
        'billingAddress' => [
                'address' => [
                                
                ],
                'administrativeArea' => '',
                'locality' => '',
                'postalCode' => '',
                'recipient' => '',
                'regionCode' => ''
        ],
        'cardBin' => '',
        'cardLastFour' => '',
        'currencyCode' => '',
        'gatewayInfo' => [
                'avsResponseCode' => '',
                'cvvResponseCode' => '',
                'gatewayResponseCode' => '',
                'name' => ''
        ],
        'items' => [
                [
                                'merchantAccountId' => '',
                                'name' => '',
                                'quantity' => '',
                                'value' => ''
                ]
        ],
        'merchants' => [
                [
                                'accountId' => '',
                                'creationMs' => '',
                                'email' => '',
                                'emailVerified' => null,
                                'phoneNumber' => '',
                                'phoneVerified' => null
                ]
        ],
        'paymentMethod' => '',
        'shippingAddress' => [
                
        ],
        'shippingValue' => '',
        'transactionId' => '',
        'user' => [
                
        ],
        'value' => ''
    ],
    'userAgent' => '',
    'userIpAddress' => '',
    'wafTokenAssessment' => null
  ],
  'firewallPolicyAssessment' => [
    'error' => [
        'code' => 0,
        'details' => [
                [
                                
                ]
        ],
        'message' => ''
    ],
    'firewallPolicy' => [
        'actions' => [
                [
                                'allow' => [
                                                                
                                ],
                                'block' => [
                                                                
                                ],
                                'redirect' => [
                                                                
                                ],
                                'setHeader' => [
                                                                'key' => '',
                                                                'value' => ''
                                ],
                                'substitute' => [
                                                                'path' => ''
                                ]
                ]
        ],
        'condition' => '',
        'description' => '',
        'name' => '',
        'path' => ''
    ]
  ],
  'fraudPreventionAssessment' => [
    'behavioralTrustVerdict' => [
        'trust' => ''
    ],
    'cardTestingVerdict' => [
        'risk' => ''
    ],
    'stolenInstrumentVerdict' => [
        'risk' => ''
    ],
    'transactionRisk' => ''
  ],
  'name' => '',
  'privatePasswordLeakVerification' => [
    'encryptedLeakMatchPrefixes' => [
        
    ],
    'encryptedUserCredentialsHash' => '',
    'lookupHashPrefix' => '',
    'reencryptedUserCredentialsHash' => ''
  ],
  'riskAnalysis' => [
    'extendedVerdictReasons' => [
        
    ],
    'reasons' => [
        
    ],
    'score' => ''
  ],
  'tokenProperties' => [
    'action' => '',
    'androidPackageName' => '',
    'createTime' => '',
    'hostname' => '',
    'invalidReason' => '',
    'iosBundleId' => '',
    'valid' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/assessments');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/assessments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/assessments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}'
import http.client

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

payload = "{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/assessments", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/assessments"

payload = {
    "accountDefenderAssessment": { "labels": [] },
    "accountVerification": {
        "endpoints": [
            {
                "emailAddress": "",
                "lastVerificationTime": "",
                "phoneNumber": "",
                "requestToken": ""
            }
        ],
        "languageCode": "",
        "latestVerificationResult": "",
        "username": ""
    },
    "event": {
        "expectedAction": "",
        "express": False,
        "firewallPolicyEvaluation": False,
        "hashedAccountId": "",
        "headers": [],
        "ja3": "",
        "requestedUri": "",
        "siteKey": "",
        "token": "",
        "transactionData": {
            "billingAddress": {
                "address": [],
                "administrativeArea": "",
                "locality": "",
                "postalCode": "",
                "recipient": "",
                "regionCode": ""
            },
            "cardBin": "",
            "cardLastFour": "",
            "currencyCode": "",
            "gatewayInfo": {
                "avsResponseCode": "",
                "cvvResponseCode": "",
                "gatewayResponseCode": "",
                "name": ""
            },
            "items": [
                {
                    "merchantAccountId": "",
                    "name": "",
                    "quantity": "",
                    "value": ""
                }
            ],
            "merchants": [
                {
                    "accountId": "",
                    "creationMs": "",
                    "email": "",
                    "emailVerified": False,
                    "phoneNumber": "",
                    "phoneVerified": False
                }
            ],
            "paymentMethod": "",
            "shippingAddress": {},
            "shippingValue": "",
            "transactionId": "",
            "user": {},
            "value": ""
        },
        "userAgent": "",
        "userIpAddress": "",
        "wafTokenAssessment": False
    },
    "firewallPolicyAssessment": {
        "error": {
            "code": 0,
            "details": [{}],
            "message": ""
        },
        "firewallPolicy": {
            "actions": [
                {
                    "allow": {},
                    "block": {},
                    "redirect": {},
                    "setHeader": {
                        "key": "",
                        "value": ""
                    },
                    "substitute": { "path": "" }
                }
            ],
            "condition": "",
            "description": "",
            "name": "",
            "path": ""
        }
    },
    "fraudPreventionAssessment": {
        "behavioralTrustVerdict": { "trust": "" },
        "cardTestingVerdict": { "risk": "" },
        "stolenInstrumentVerdict": { "risk": "" },
        "transactionRisk": ""
    },
    "name": "",
    "privatePasswordLeakVerification": {
        "encryptedLeakMatchPrefixes": [],
        "encryptedUserCredentialsHash": "",
        "lookupHashPrefix": "",
        "reencryptedUserCredentialsHash": ""
    },
    "riskAnalysis": {
        "extendedVerdictReasons": [],
        "reasons": [],
        "score": ""
    },
    "tokenProperties": {
        "action": "",
        "androidPackageName": "",
        "createTime": "",
        "hostname": "",
        "invalidReason": "",
        "iosBundleId": "",
        "valid": False
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/assessments"

payload <- "{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}"

encode <- "json"

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

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

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

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  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}"

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

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

response = conn.post('/baseUrl/v1/:parent/assessments') do |req|
  req.body = "{\n  \"accountDefenderAssessment\": {\n    \"labels\": []\n  },\n  \"accountVerification\": {\n    \"endpoints\": [\n      {\n        \"emailAddress\": \"\",\n        \"lastVerificationTime\": \"\",\n        \"phoneNumber\": \"\",\n        \"requestToken\": \"\"\n      }\n    ],\n    \"languageCode\": \"\",\n    \"latestVerificationResult\": \"\",\n    \"username\": \"\"\n  },\n  \"event\": {\n    \"expectedAction\": \"\",\n    \"express\": false,\n    \"firewallPolicyEvaluation\": false,\n    \"hashedAccountId\": \"\",\n    \"headers\": [],\n    \"ja3\": \"\",\n    \"requestedUri\": \"\",\n    \"siteKey\": \"\",\n    \"token\": \"\",\n    \"transactionData\": {\n      \"billingAddress\": {\n        \"address\": [],\n        \"administrativeArea\": \"\",\n        \"locality\": \"\",\n        \"postalCode\": \"\",\n        \"recipient\": \"\",\n        \"regionCode\": \"\"\n      },\n      \"cardBin\": \"\",\n      \"cardLastFour\": \"\",\n      \"currencyCode\": \"\",\n      \"gatewayInfo\": {\n        \"avsResponseCode\": \"\",\n        \"cvvResponseCode\": \"\",\n        \"gatewayResponseCode\": \"\",\n        \"name\": \"\"\n      },\n      \"items\": [\n        {\n          \"merchantAccountId\": \"\",\n          \"name\": \"\",\n          \"quantity\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"merchants\": [\n        {\n          \"accountId\": \"\",\n          \"creationMs\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"phoneNumber\": \"\",\n          \"phoneVerified\": false\n        }\n      ],\n      \"paymentMethod\": \"\",\n      \"shippingAddress\": {},\n      \"shippingValue\": \"\",\n      \"transactionId\": \"\",\n      \"user\": {},\n      \"value\": \"\"\n    },\n    \"userAgent\": \"\",\n    \"userIpAddress\": \"\",\n    \"wafTokenAssessment\": false\n  },\n  \"firewallPolicyAssessment\": {\n    \"error\": {\n      \"code\": 0,\n      \"details\": [\n        {}\n      ],\n      \"message\": \"\"\n    },\n    \"firewallPolicy\": {\n      \"actions\": [\n        {\n          \"allow\": {},\n          \"block\": {},\n          \"redirect\": {},\n          \"setHeader\": {\n            \"key\": \"\",\n            \"value\": \"\"\n          },\n          \"substitute\": {\n            \"path\": \"\"\n          }\n        }\n      ],\n      \"condition\": \"\",\n      \"description\": \"\",\n      \"name\": \"\",\n      \"path\": \"\"\n    }\n  },\n  \"fraudPreventionAssessment\": {\n    \"behavioralTrustVerdict\": {\n      \"trust\": \"\"\n    },\n    \"cardTestingVerdict\": {\n      \"risk\": \"\"\n    },\n    \"stolenInstrumentVerdict\": {\n      \"risk\": \"\"\n    },\n    \"transactionRisk\": \"\"\n  },\n  \"name\": \"\",\n  \"privatePasswordLeakVerification\": {\n    \"encryptedLeakMatchPrefixes\": [],\n    \"encryptedUserCredentialsHash\": \"\",\n    \"lookupHashPrefix\": \"\",\n    \"reencryptedUserCredentialsHash\": \"\"\n  },\n  \"riskAnalysis\": {\n    \"extendedVerdictReasons\": [],\n    \"reasons\": [],\n    \"score\": \"\"\n  },\n  \"tokenProperties\": {\n    \"action\": \"\",\n    \"androidPackageName\": \"\",\n    \"createTime\": \"\",\n    \"hostname\": \"\",\n    \"invalidReason\": \"\",\n    \"iosBundleId\": \"\",\n    \"valid\": false\n  }\n}"
end

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

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

    let payload = json!({
        "accountDefenderAssessment": json!({"labels": ()}),
        "accountVerification": json!({
            "endpoints": (
                json!({
                    "emailAddress": "",
                    "lastVerificationTime": "",
                    "phoneNumber": "",
                    "requestToken": ""
                })
            ),
            "languageCode": "",
            "latestVerificationResult": "",
            "username": ""
        }),
        "event": json!({
            "expectedAction": "",
            "express": false,
            "firewallPolicyEvaluation": false,
            "hashedAccountId": "",
            "headers": (),
            "ja3": "",
            "requestedUri": "",
            "siteKey": "",
            "token": "",
            "transactionData": json!({
                "billingAddress": json!({
                    "address": (),
                    "administrativeArea": "",
                    "locality": "",
                    "postalCode": "",
                    "recipient": "",
                    "regionCode": ""
                }),
                "cardBin": "",
                "cardLastFour": "",
                "currencyCode": "",
                "gatewayInfo": json!({
                    "avsResponseCode": "",
                    "cvvResponseCode": "",
                    "gatewayResponseCode": "",
                    "name": ""
                }),
                "items": (
                    json!({
                        "merchantAccountId": "",
                        "name": "",
                        "quantity": "",
                        "value": ""
                    })
                ),
                "merchants": (
                    json!({
                        "accountId": "",
                        "creationMs": "",
                        "email": "",
                        "emailVerified": false,
                        "phoneNumber": "",
                        "phoneVerified": false
                    })
                ),
                "paymentMethod": "",
                "shippingAddress": json!({}),
                "shippingValue": "",
                "transactionId": "",
                "user": json!({}),
                "value": ""
            }),
            "userAgent": "",
            "userIpAddress": "",
            "wafTokenAssessment": false
        }),
        "firewallPolicyAssessment": json!({
            "error": json!({
                "code": 0,
                "details": (json!({})),
                "message": ""
            }),
            "firewallPolicy": json!({
                "actions": (
                    json!({
                        "allow": json!({}),
                        "block": json!({}),
                        "redirect": json!({}),
                        "setHeader": json!({
                            "key": "",
                            "value": ""
                        }),
                        "substitute": json!({"path": ""})
                    })
                ),
                "condition": "",
                "description": "",
                "name": "",
                "path": ""
            })
        }),
        "fraudPreventionAssessment": json!({
            "behavioralTrustVerdict": json!({"trust": ""}),
            "cardTestingVerdict": json!({"risk": ""}),
            "stolenInstrumentVerdict": json!({"risk": ""}),
            "transactionRisk": ""
        }),
        "name": "",
        "privatePasswordLeakVerification": json!({
            "encryptedLeakMatchPrefixes": (),
            "encryptedUserCredentialsHash": "",
            "lookupHashPrefix": "",
            "reencryptedUserCredentialsHash": ""
        }),
        "riskAnalysis": json!({
            "extendedVerdictReasons": (),
            "reasons": (),
            "score": ""
        }),
        "tokenProperties": json!({
            "action": "",
            "androidPackageName": "",
            "createTime": "",
            "hostname": "",
            "invalidReason": "",
            "iosBundleId": "",
            "valid": false
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:parent/assessments \
  --header 'content-type: application/json' \
  --data '{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}'
echo '{
  "accountDefenderAssessment": {
    "labels": []
  },
  "accountVerification": {
    "endpoints": [
      {
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      }
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  },
  "event": {
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": {
      "billingAddress": {
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      },
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": {
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      },
      "items": [
        {
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        }
      ],
      "merchants": [
        {
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        }
      ],
      "paymentMethod": "",
      "shippingAddress": {},
      "shippingValue": "",
      "transactionId": "",
      "user": {},
      "value": ""
    },
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  },
  "firewallPolicyAssessment": {
    "error": {
      "code": 0,
      "details": [
        {}
      ],
      "message": ""
    },
    "firewallPolicy": {
      "actions": [
        {
          "allow": {},
          "block": {},
          "redirect": {},
          "setHeader": {
            "key": "",
            "value": ""
          },
          "substitute": {
            "path": ""
          }
        }
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    }
  },
  "fraudPreventionAssessment": {
    "behavioralTrustVerdict": {
      "trust": ""
    },
    "cardTestingVerdict": {
      "risk": ""
    },
    "stolenInstrumentVerdict": {
      "risk": ""
    },
    "transactionRisk": ""
  },
  "name": "",
  "privatePasswordLeakVerification": {
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  },
  "riskAnalysis": {
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  },
  "tokenProperties": {
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  }
}' |  \
  http POST {{baseUrl}}/v1/:parent/assessments \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountDefenderAssessment": {\n    "labels": []\n  },\n  "accountVerification": {\n    "endpoints": [\n      {\n        "emailAddress": "",\n        "lastVerificationTime": "",\n        "phoneNumber": "",\n        "requestToken": ""\n      }\n    ],\n    "languageCode": "",\n    "latestVerificationResult": "",\n    "username": ""\n  },\n  "event": {\n    "expectedAction": "",\n    "express": false,\n    "firewallPolicyEvaluation": false,\n    "hashedAccountId": "",\n    "headers": [],\n    "ja3": "",\n    "requestedUri": "",\n    "siteKey": "",\n    "token": "",\n    "transactionData": {\n      "billingAddress": {\n        "address": [],\n        "administrativeArea": "",\n        "locality": "",\n        "postalCode": "",\n        "recipient": "",\n        "regionCode": ""\n      },\n      "cardBin": "",\n      "cardLastFour": "",\n      "currencyCode": "",\n      "gatewayInfo": {\n        "avsResponseCode": "",\n        "cvvResponseCode": "",\n        "gatewayResponseCode": "",\n        "name": ""\n      },\n      "items": [\n        {\n          "merchantAccountId": "",\n          "name": "",\n          "quantity": "",\n          "value": ""\n        }\n      ],\n      "merchants": [\n        {\n          "accountId": "",\n          "creationMs": "",\n          "email": "",\n          "emailVerified": false,\n          "phoneNumber": "",\n          "phoneVerified": false\n        }\n      ],\n      "paymentMethod": "",\n      "shippingAddress": {},\n      "shippingValue": "",\n      "transactionId": "",\n      "user": {},\n      "value": ""\n    },\n    "userAgent": "",\n    "userIpAddress": "",\n    "wafTokenAssessment": false\n  },\n  "firewallPolicyAssessment": {\n    "error": {\n      "code": 0,\n      "details": [\n        {}\n      ],\n      "message": ""\n    },\n    "firewallPolicy": {\n      "actions": [\n        {\n          "allow": {},\n          "block": {},\n          "redirect": {},\n          "setHeader": {\n            "key": "",\n            "value": ""\n          },\n          "substitute": {\n            "path": ""\n          }\n        }\n      ],\n      "condition": "",\n      "description": "",\n      "name": "",\n      "path": ""\n    }\n  },\n  "fraudPreventionAssessment": {\n    "behavioralTrustVerdict": {\n      "trust": ""\n    },\n    "cardTestingVerdict": {\n      "risk": ""\n    },\n    "stolenInstrumentVerdict": {\n      "risk": ""\n    },\n    "transactionRisk": ""\n  },\n  "name": "",\n  "privatePasswordLeakVerification": {\n    "encryptedLeakMatchPrefixes": [],\n    "encryptedUserCredentialsHash": "",\n    "lookupHashPrefix": "",\n    "reencryptedUserCredentialsHash": ""\n  },\n  "riskAnalysis": {\n    "extendedVerdictReasons": [],\n    "reasons": [],\n    "score": ""\n  },\n  "tokenProperties": {\n    "action": "",\n    "androidPackageName": "",\n    "createTime": "",\n    "hostname": "",\n    "invalidReason": "",\n    "iosBundleId": "",\n    "valid": false\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/assessments
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountDefenderAssessment": ["labels": []],
  "accountVerification": [
    "endpoints": [
      [
        "emailAddress": "",
        "lastVerificationTime": "",
        "phoneNumber": "",
        "requestToken": ""
      ]
    ],
    "languageCode": "",
    "latestVerificationResult": "",
    "username": ""
  ],
  "event": [
    "expectedAction": "",
    "express": false,
    "firewallPolicyEvaluation": false,
    "hashedAccountId": "",
    "headers": [],
    "ja3": "",
    "requestedUri": "",
    "siteKey": "",
    "token": "",
    "transactionData": [
      "billingAddress": [
        "address": [],
        "administrativeArea": "",
        "locality": "",
        "postalCode": "",
        "recipient": "",
        "regionCode": ""
      ],
      "cardBin": "",
      "cardLastFour": "",
      "currencyCode": "",
      "gatewayInfo": [
        "avsResponseCode": "",
        "cvvResponseCode": "",
        "gatewayResponseCode": "",
        "name": ""
      ],
      "items": [
        [
          "merchantAccountId": "",
          "name": "",
          "quantity": "",
          "value": ""
        ]
      ],
      "merchants": [
        [
          "accountId": "",
          "creationMs": "",
          "email": "",
          "emailVerified": false,
          "phoneNumber": "",
          "phoneVerified": false
        ]
      ],
      "paymentMethod": "",
      "shippingAddress": [],
      "shippingValue": "",
      "transactionId": "",
      "user": [],
      "value": ""
    ],
    "userAgent": "",
    "userIpAddress": "",
    "wafTokenAssessment": false
  ],
  "firewallPolicyAssessment": [
    "error": [
      "code": 0,
      "details": [[]],
      "message": ""
    ],
    "firewallPolicy": [
      "actions": [
        [
          "allow": [],
          "block": [],
          "redirect": [],
          "setHeader": [
            "key": "",
            "value": ""
          ],
          "substitute": ["path": ""]
        ]
      ],
      "condition": "",
      "description": "",
      "name": "",
      "path": ""
    ]
  ],
  "fraudPreventionAssessment": [
    "behavioralTrustVerdict": ["trust": ""],
    "cardTestingVerdict": ["risk": ""],
    "stolenInstrumentVerdict": ["risk": ""],
    "transactionRisk": ""
  ],
  "name": "",
  "privatePasswordLeakVerification": [
    "encryptedLeakMatchPrefixes": [],
    "encryptedUserCredentialsHash": "",
    "lookupHashPrefix": "",
    "reencryptedUserCredentialsHash": ""
  ],
  "riskAnalysis": [
    "extendedVerdictReasons": [],
    "reasons": [],
    "score": ""
  ],
  "tokenProperties": [
    "action": "",
    "androidPackageName": "",
    "createTime": "",
    "hostname": "",
    "invalidReason": "",
    "iosBundleId": "",
    "valid": false
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST recaptchaenterprise.projects.firewallpolicies.create
{{baseUrl}}/v1/:parent/firewallpolicies
QUERY PARAMS

parent
BODY json

{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/:parent/firewallpolicies" {:content-type :json
                                                                        :form-params {:actions [{:allow {}
                                                                                                 :block {}
                                                                                                 :redirect {}
                                                                                                 :setHeader {:key ""
                                                                                                             :value ""}
                                                                                                 :substitute {:path ""}}]
                                                                                      :condition ""
                                                                                      :description ""
                                                                                      :name ""
                                                                                      :path ""}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/firewallpolicies"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:parent/firewallpolicies"),
    Content = new StringContent("{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/firewallpolicies");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/firewallpolicies"

	payload := strings.NewReader("{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v1/:parent/firewallpolicies HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/firewallpolicies")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/firewallpolicies"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\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  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/firewallpolicies")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/firewallpolicies")
  .header("content-type", "application/json")
  .body("{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  actions: [
    {
      allow: {},
      block: {},
      redirect: {},
      setHeader: {
        key: '',
        value: ''
      },
      substitute: {
        path: ''
      }
    }
  ],
  condition: '',
  description: '',
  name: '',
  path: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/firewallpolicies',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [
      {
        allow: {},
        block: {},
        redirect: {},
        setHeader: {key: '', value: ''},
        substitute: {path: ''}
      }
    ],
    condition: '',
    description: '',
    name: '',
    path: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/firewallpolicies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{"allow":{},"block":{},"redirect":{},"setHeader":{"key":"","value":""},"substitute":{"path":""}}],"condition":"","description":"","name":"","path":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:parent/firewallpolicies',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "actions": [\n    {\n      "allow": {},\n      "block": {},\n      "redirect": {},\n      "setHeader": {\n        "key": "",\n        "value": ""\n      },\n      "substitute": {\n        "path": ""\n      }\n    }\n  ],\n  "condition": "",\n  "description": "",\n  "name": "",\n  "path": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/firewallpolicies")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/firewallpolicies',
  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({
  actions: [
    {
      allow: {},
      block: {},
      redirect: {},
      setHeader: {key: '', value: ''},
      substitute: {path: ''}
    }
  ],
  condition: '',
  description: '',
  name: '',
  path: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/firewallpolicies',
  headers: {'content-type': 'application/json'},
  body: {
    actions: [
      {
        allow: {},
        block: {},
        redirect: {},
        setHeader: {key: '', value: ''},
        substitute: {path: ''}
      }
    ],
    condition: '',
    description: '',
    name: '',
    path: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1/:parent/firewallpolicies');

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

req.type('json');
req.send({
  actions: [
    {
      allow: {},
      block: {},
      redirect: {},
      setHeader: {
        key: '',
        value: ''
      },
      substitute: {
        path: ''
      }
    }
  ],
  condition: '',
  description: '',
  name: '',
  path: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/firewallpolicies',
  headers: {'content-type': 'application/json'},
  data: {
    actions: [
      {
        allow: {},
        block: {},
        redirect: {},
        setHeader: {key: '', value: ''},
        substitute: {path: ''}
      }
    ],
    condition: '',
    description: '',
    name: '',
    path: ''
  }
};

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

const url = '{{baseUrl}}/v1/:parent/firewallpolicies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"actions":[{"allow":{},"block":{},"redirect":{},"setHeader":{"key":"","value":""},"substitute":{"path":""}}],"condition":"","description":"","name":"","path":""}'
};

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 = @{ @"actions": @[ @{ @"allow": @{  }, @"block": @{  }, @"redirect": @{  }, @"setHeader": @{ @"key": @"", @"value": @"" }, @"substitute": @{ @"path": @"" } } ],
                              @"condition": @"",
                              @"description": @"",
                              @"name": @"",
                              @"path": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/firewallpolicies"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/firewallpolicies" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/firewallpolicies",
  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([
    'actions' => [
        [
                'allow' => [
                                
                ],
                'block' => [
                                
                ],
                'redirect' => [
                                
                ],
                'setHeader' => [
                                'key' => '',
                                'value' => ''
                ],
                'substitute' => [
                                'path' => ''
                ]
        ]
    ],
    'condition' => '',
    'description' => '',
    'name' => '',
    'path' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/firewallpolicies', [
  'body' => '{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'actions' => [
    [
        'allow' => [
                
        ],
        'block' => [
                
        ],
        'redirect' => [
                
        ],
        'setHeader' => [
                'key' => '',
                'value' => ''
        ],
        'substitute' => [
                'path' => ''
        ]
    ]
  ],
  'condition' => '',
  'description' => '',
  'name' => '',
  'path' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'actions' => [
    [
        'allow' => [
                
        ],
        'block' => [
                
        ],
        'redirect' => [
                
        ],
        'setHeader' => [
                'key' => '',
                'value' => ''
        ],
        'substitute' => [
                'path' => ''
        ]
    ]
  ],
  'condition' => '',
  'description' => '',
  'name' => '',
  'path' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/firewallpolicies');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/firewallpolicies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/firewallpolicies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}'
import http.client

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

payload = "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/firewallpolicies", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/firewallpolicies"

payload = {
    "actions": [
        {
            "allow": {},
            "block": {},
            "redirect": {},
            "setHeader": {
                "key": "",
                "value": ""
            },
            "substitute": { "path": "" }
        }
    ],
    "condition": "",
    "description": "",
    "name": "",
    "path": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/firewallpolicies"

payload <- "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}"

encode <- "json"

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

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

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

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  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v1/:parent/firewallpolicies') do |req|
  req.body = "{\n  \"actions\": [\n    {\n      \"allow\": {},\n      \"block\": {},\n      \"redirect\": {},\n      \"setHeader\": {\n        \"key\": \"\",\n        \"value\": \"\"\n      },\n      \"substitute\": {\n        \"path\": \"\"\n      }\n    }\n  ],\n  \"condition\": \"\",\n  \"description\": \"\",\n  \"name\": \"\",\n  \"path\": \"\"\n}"
end

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

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

    let payload = json!({
        "actions": (
            json!({
                "allow": json!({}),
                "block": json!({}),
                "redirect": json!({}),
                "setHeader": json!({
                    "key": "",
                    "value": ""
                }),
                "substitute": json!({"path": ""})
            })
        ),
        "condition": "",
        "description": "",
        "name": "",
        "path": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:parent/firewallpolicies \
  --header 'content-type: application/json' \
  --data '{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}'
echo '{
  "actions": [
    {
      "allow": {},
      "block": {},
      "redirect": {},
      "setHeader": {
        "key": "",
        "value": ""
      },
      "substitute": {
        "path": ""
      }
    }
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
}' |  \
  http POST {{baseUrl}}/v1/:parent/firewallpolicies \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "actions": [\n    {\n      "allow": {},\n      "block": {},\n      "redirect": {},\n      "setHeader": {\n        "key": "",\n        "value": ""\n      },\n      "substitute": {\n        "path": ""\n      }\n    }\n  ],\n  "condition": "",\n  "description": "",\n  "name": "",\n  "path": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/firewallpolicies
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "actions": [
    [
      "allow": [],
      "block": [],
      "redirect": [],
      "setHeader": [
        "key": "",
        "value": ""
      ],
      "substitute": ["path": ""]
    ]
  ],
  "condition": "",
  "description": "",
  "name": "",
  "path": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET recaptchaenterprise.projects.firewallpolicies.list
{{baseUrl}}/v1/:parent/firewallpolicies
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1/:parent/firewallpolicies"

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

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

func main() {

	url := "{{baseUrl}}/v1/:parent/firewallpolicies"

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

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

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

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

}
GET /baseUrl/v1/:parent/firewallpolicies HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/firewallpolicies"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/firewallpolicies")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/firewallpolicies")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/v1/:parent/firewallpolicies');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const url = '{{baseUrl}}/v1/:parent/firewallpolicies';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/firewallpolicies" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/firewallpolicies")

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

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

url = "{{baseUrl}}/v1/:parent/firewallpolicies"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/firewallpolicies"

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

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

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

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

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

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

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

response = conn.get('/baseUrl/v1/:parent/firewallpolicies') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
POST recaptchaenterprise.projects.keys.create
{{baseUrl}}/v1/:parent/keys
QUERY PARAMS

parent
BODY json

{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:parent/keys" {:content-type :json
                                                            :form-params {:androidSettings {:allowAllPackageNames false
                                                                                            :allowedPackageNames []
                                                                                            :supportNonGoogleAppStoreDistribution false}
                                                                          :createTime ""
                                                                          :displayName ""
                                                                          :iosSettings {:allowAllBundleIds false
                                                                                        :allowedBundleIds []}
                                                                          :labels {}
                                                                          :name ""
                                                                          :testingOptions {:testingChallenge ""
                                                                                           :testingScore ""}
                                                                          :wafSettings {:wafFeature ""
                                                                                        :wafService ""}
                                                                          :webSettings {:allowAllDomains false
                                                                                        :allowAmpTraffic false
                                                                                        :allowedDomains []
                                                                                        :challengeSecurityPreference ""
                                                                                        :integrationType ""}}})
require "http/client"

url = "{{baseUrl}}/v1/:parent/keys"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:parent/keys"),
    Content = new StringContent("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:parent/keys");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:parent/keys"

	payload := strings.NewReader("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1/:parent/keys HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 620

{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:parent/keys")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/keys"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/keys")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:parent/keys")
  .header("content-type", "application/json")
  .body("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  androidSettings: {
    allowAllPackageNames: false,
    allowedPackageNames: [],
    supportNonGoogleAppStoreDistribution: false
  },
  createTime: '',
  displayName: '',
  iosSettings: {
    allowAllBundleIds: false,
    allowedBundleIds: []
  },
  labels: {},
  name: '',
  testingOptions: {
    testingChallenge: '',
    testingScore: ''
  },
  wafSettings: {
    wafFeature: '',
    wafService: ''
  },
  webSettings: {
    allowAllDomains: false,
    allowAmpTraffic: false,
    allowedDomains: [],
    challengeSecurityPreference: '',
    integrationType: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/keys',
  headers: {'content-type': 'application/json'},
  data: {
    androidSettings: {
      allowAllPackageNames: false,
      allowedPackageNames: [],
      supportNonGoogleAppStoreDistribution: false
    },
    createTime: '',
    displayName: '',
    iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
    labels: {},
    name: '',
    testingOptions: {testingChallenge: '', testingScore: ''},
    wafSettings: {wafFeature: '', wafService: ''},
    webSettings: {
      allowAllDomains: false,
      allowAmpTraffic: false,
      allowedDomains: [],
      challengeSecurityPreference: '',
      integrationType: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:parent/keys';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"androidSettings":{"allowAllPackageNames":false,"allowedPackageNames":[],"supportNonGoogleAppStoreDistribution":false},"createTime":"","displayName":"","iosSettings":{"allowAllBundleIds":false,"allowedBundleIds":[]},"labels":{},"name":"","testingOptions":{"testingChallenge":"","testingScore":""},"wafSettings":{"wafFeature":"","wafService":""},"webSettings":{"allowAllDomains":false,"allowAmpTraffic":false,"allowedDomains":[],"challengeSecurityPreference":"","integrationType":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:parent/keys',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "androidSettings": {\n    "allowAllPackageNames": false,\n    "allowedPackageNames": [],\n    "supportNonGoogleAppStoreDistribution": false\n  },\n  "createTime": "",\n  "displayName": "",\n  "iosSettings": {\n    "allowAllBundleIds": false,\n    "allowedBundleIds": []\n  },\n  "labels": {},\n  "name": "",\n  "testingOptions": {\n    "testingChallenge": "",\n    "testingScore": ""\n  },\n  "wafSettings": {\n    "wafFeature": "",\n    "wafService": ""\n  },\n  "webSettings": {\n    "allowAllDomains": false,\n    "allowAmpTraffic": false,\n    "allowedDomains": [],\n    "challengeSecurityPreference": "",\n    "integrationType": ""\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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:parent/keys")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:parent/keys',
  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({
  androidSettings: {
    allowAllPackageNames: false,
    allowedPackageNames: [],
    supportNonGoogleAppStoreDistribution: false
  },
  createTime: '',
  displayName: '',
  iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
  labels: {},
  name: '',
  testingOptions: {testingChallenge: '', testingScore: ''},
  wafSettings: {wafFeature: '', wafService: ''},
  webSettings: {
    allowAllDomains: false,
    allowAmpTraffic: false,
    allowedDomains: [],
    challengeSecurityPreference: '',
    integrationType: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/keys',
  headers: {'content-type': 'application/json'},
  body: {
    androidSettings: {
      allowAllPackageNames: false,
      allowedPackageNames: [],
      supportNonGoogleAppStoreDistribution: false
    },
    createTime: '',
    displayName: '',
    iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
    labels: {},
    name: '',
    testingOptions: {testingChallenge: '', testingScore: ''},
    wafSettings: {wafFeature: '', wafService: ''},
    webSettings: {
      allowAllDomains: false,
      allowAmpTraffic: false,
      allowedDomains: [],
      challengeSecurityPreference: '',
      integrationType: ''
    }
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1/:parent/keys');

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

req.type('json');
req.send({
  androidSettings: {
    allowAllPackageNames: false,
    allowedPackageNames: [],
    supportNonGoogleAppStoreDistribution: false
  },
  createTime: '',
  displayName: '',
  iosSettings: {
    allowAllBundleIds: false,
    allowedBundleIds: []
  },
  labels: {},
  name: '',
  testingOptions: {
    testingChallenge: '',
    testingScore: ''
  },
  wafSettings: {
    wafFeature: '',
    wafService: ''
  },
  webSettings: {
    allowAllDomains: false,
    allowAmpTraffic: false,
    allowedDomains: [],
    challengeSecurityPreference: '',
    integrationType: ''
  }
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:parent/keys',
  headers: {'content-type': 'application/json'},
  data: {
    androidSettings: {
      allowAllPackageNames: false,
      allowedPackageNames: [],
      supportNonGoogleAppStoreDistribution: false
    },
    createTime: '',
    displayName: '',
    iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
    labels: {},
    name: '',
    testingOptions: {testingChallenge: '', testingScore: ''},
    wafSettings: {wafFeature: '', wafService: ''},
    webSettings: {
      allowAllDomains: false,
      allowAmpTraffic: false,
      allowedDomains: [],
      challengeSecurityPreference: '',
      integrationType: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1/:parent/keys';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"androidSettings":{"allowAllPackageNames":false,"allowedPackageNames":[],"supportNonGoogleAppStoreDistribution":false},"createTime":"","displayName":"","iosSettings":{"allowAllBundleIds":false,"allowedBundleIds":[]},"labels":{},"name":"","testingOptions":{"testingChallenge":"","testingScore":""},"wafSettings":{"wafFeature":"","wafService":""},"webSettings":{"allowAllDomains":false,"allowAmpTraffic":false,"allowedDomains":[],"challengeSecurityPreference":"","integrationType":""}}'
};

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 = @{ @"androidSettings": @{ @"allowAllPackageNames": @NO, @"allowedPackageNames": @[  ], @"supportNonGoogleAppStoreDistribution": @NO },
                              @"createTime": @"",
                              @"displayName": @"",
                              @"iosSettings": @{ @"allowAllBundleIds": @NO, @"allowedBundleIds": @[  ] },
                              @"labels": @{  },
                              @"name": @"",
                              @"testingOptions": @{ @"testingChallenge": @"", @"testingScore": @"" },
                              @"wafSettings": @{ @"wafFeature": @"", @"wafService": @"" },
                              @"webSettings": @{ @"allowAllDomains": @NO, @"allowAmpTraffic": @NO, @"allowedDomains": @[  ], @"challengeSecurityPreference": @"", @"integrationType": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:parent/keys"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/keys" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:parent/keys",
  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([
    'androidSettings' => [
        'allowAllPackageNames' => null,
        'allowedPackageNames' => [
                
        ],
        'supportNonGoogleAppStoreDistribution' => null
    ],
    'createTime' => '',
    'displayName' => '',
    'iosSettings' => [
        'allowAllBundleIds' => null,
        'allowedBundleIds' => [
                
        ]
    ],
    'labels' => [
        
    ],
    'name' => '',
    'testingOptions' => [
        'testingChallenge' => '',
        'testingScore' => ''
    ],
    'wafSettings' => [
        'wafFeature' => '',
        'wafService' => ''
    ],
    'webSettings' => [
        'allowAllDomains' => null,
        'allowAmpTraffic' => null,
        'allowedDomains' => [
                
        ],
        'challengeSecurityPreference' => '',
        'integrationType' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:parent/keys', [
  'body' => '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'androidSettings' => [
    'allowAllPackageNames' => null,
    'allowedPackageNames' => [
        
    ],
    'supportNonGoogleAppStoreDistribution' => null
  ],
  'createTime' => '',
  'displayName' => '',
  'iosSettings' => [
    'allowAllBundleIds' => null,
    'allowedBundleIds' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'testingOptions' => [
    'testingChallenge' => '',
    'testingScore' => ''
  ],
  'wafSettings' => [
    'wafFeature' => '',
    'wafService' => ''
  ],
  'webSettings' => [
    'allowAllDomains' => null,
    'allowAmpTraffic' => null,
    'allowedDomains' => [
        
    ],
    'challengeSecurityPreference' => '',
    'integrationType' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'androidSettings' => [
    'allowAllPackageNames' => null,
    'allowedPackageNames' => [
        
    ],
    'supportNonGoogleAppStoreDistribution' => null
  ],
  'createTime' => '',
  'displayName' => '',
  'iosSettings' => [
    'allowAllBundleIds' => null,
    'allowedBundleIds' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'testingOptions' => [
    'testingChallenge' => '',
    'testingScore' => ''
  ],
  'wafSettings' => [
    'wafFeature' => '',
    'wafService' => ''
  ],
  'webSettings' => [
    'allowAllDomains' => null,
    'allowAmpTraffic' => null,
    'allowedDomains' => [
        
    ],
    'challengeSecurityPreference' => '',
    'integrationType' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:parent/keys');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:parent/keys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:parent/keys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}'
import http.client

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

payload = "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1/:parent/keys", payload, headers)

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

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

url = "{{baseUrl}}/v1/:parent/keys"

payload = {
    "androidSettings": {
        "allowAllPackageNames": False,
        "allowedPackageNames": [],
        "supportNonGoogleAppStoreDistribution": False
    },
    "createTime": "",
    "displayName": "",
    "iosSettings": {
        "allowAllBundleIds": False,
        "allowedBundleIds": []
    },
    "labels": {},
    "name": "",
    "testingOptions": {
        "testingChallenge": "",
        "testingScore": ""
    },
    "wafSettings": {
        "wafFeature": "",
        "wafService": ""
    },
    "webSettings": {
        "allowAllDomains": False,
        "allowAmpTraffic": False,
        "allowedDomains": [],
        "challengeSecurityPreference": "",
        "integrationType": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:parent/keys"

payload <- "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

encode <- "json"

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

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

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

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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/v1/:parent/keys') do |req|
  req.body = "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "androidSettings": json!({
            "allowAllPackageNames": false,
            "allowedPackageNames": (),
            "supportNonGoogleAppStoreDistribution": false
        }),
        "createTime": "",
        "displayName": "",
        "iosSettings": json!({
            "allowAllBundleIds": false,
            "allowedBundleIds": ()
        }),
        "labels": json!({}),
        "name": "",
        "testingOptions": json!({
            "testingChallenge": "",
            "testingScore": ""
        }),
        "wafSettings": json!({
            "wafFeature": "",
            "wafService": ""
        }),
        "webSettings": json!({
            "allowAllDomains": false,
            "allowAmpTraffic": false,
            "allowedDomains": (),
            "challengeSecurityPreference": "",
            "integrationType": ""
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:parent/keys \
  --header 'content-type: application/json' \
  --data '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}'
echo '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}' |  \
  http POST {{baseUrl}}/v1/:parent/keys \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "androidSettings": {\n    "allowAllPackageNames": false,\n    "allowedPackageNames": [],\n    "supportNonGoogleAppStoreDistribution": false\n  },\n  "createTime": "",\n  "displayName": "",\n  "iosSettings": {\n    "allowAllBundleIds": false,\n    "allowedBundleIds": []\n  },\n  "labels": {},\n  "name": "",\n  "testingOptions": {\n    "testingChallenge": "",\n    "testingScore": ""\n  },\n  "wafSettings": {\n    "wafFeature": "",\n    "wafService": ""\n  },\n  "webSettings": {\n    "allowAllDomains": false,\n    "allowAmpTraffic": false,\n    "allowedDomains": [],\n    "challengeSecurityPreference": "",\n    "integrationType": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:parent/keys
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "androidSettings": [
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  ],
  "createTime": "",
  "displayName": "",
  "iosSettings": [
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  ],
  "labels": [],
  "name": "",
  "testingOptions": [
    "testingChallenge": "",
    "testingScore": ""
  ],
  "wafSettings": [
    "wafFeature": "",
    "wafService": ""
  ],
  "webSettings": [
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
DELETE recaptchaenterprise.projects.keys.delete
{{baseUrl}}/v1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

}
DELETE /baseUrl/v1/:name HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v1/:name")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/v1/:name');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:name" in

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

response = conn.delete('/baseUrl/v1/:name') do |req|
end

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

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

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

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

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

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

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

dataTask.resume()
GET recaptchaenterprise.projects.keys.getMetrics
{{baseUrl}}/v1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

}
GET /baseUrl/v1/:name HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:name")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/v1/:name');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:name" in

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

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

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

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

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

response = conn.get('/baseUrl/v1/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
GET recaptchaenterprise.projects.keys.list
{{baseUrl}}/v1/:parent/keys
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1/:parent/keys"

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

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

func main() {

	url := "{{baseUrl}}/v1/:parent/keys"

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

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

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

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

}
GET /baseUrl/v1/:parent/keys HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/keys"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/keys")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/keys")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/v1/:parent/keys');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const url = '{{baseUrl}}/v1/:parent/keys';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/keys" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/keys")

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

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

url = "{{baseUrl}}/v1/:parent/keys"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/keys"

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

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

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

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

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

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

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

response = conn.get('/baseUrl/v1/:parent/keys') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
POST recaptchaenterprise.projects.keys.migrate
{{baseUrl}}/v1/:name:migrate
QUERY PARAMS

name
BODY json

{
  "skipBillingCheck": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"skipBillingCheck\": false\n}");

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

(client/post "{{baseUrl}}/v1/:name:migrate" {:content-type :json
                                                             :form-params {:skipBillingCheck false}})
require "http/client"

url = "{{baseUrl}}/v1/:name:migrate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"skipBillingCheck\": false\n}"

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

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

func main() {

	url := "{{baseUrl}}/v1/:name:migrate"

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

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

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

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

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

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

}
POST /baseUrl/v1/:name:migrate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 31

{
  "skipBillingCheck": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:name:migrate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"skipBillingCheck\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name:migrate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"skipBillingCheck\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"skipBillingCheck\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name:migrate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:migrate',
  headers: {'content-type': 'application/json'},
  data: {skipBillingCheck: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name:migrate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"skipBillingCheck":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name:migrate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "skipBillingCheck": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"skipBillingCheck\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name:migrate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name:migrate',
  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({skipBillingCheck: false}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:migrate',
  headers: {'content-type': 'application/json'},
  body: {skipBillingCheck: false},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1/:name:migrate');

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:name:migrate',
  headers: {'content-type': 'application/json'},
  data: {skipBillingCheck: false}
};

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

const url = '{{baseUrl}}/v1/:name:migrate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"skipBillingCheck":false}'
};

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 = @{ @"skipBillingCheck": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:name:migrate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1/:name:migrate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"skipBillingCheck\": false\n}" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:name:migrate', [
  'body' => '{
  "skipBillingCheck": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'skipBillingCheck' => null
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name:migrate');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name:migrate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "skipBillingCheck": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name:migrate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "skipBillingCheck": false
}'
import http.client

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

payload = "{\n  \"skipBillingCheck\": false\n}"

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

conn.request("POST", "/baseUrl/v1/:name:migrate", payload, headers)

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

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

url = "{{baseUrl}}/v1/:name:migrate"

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

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

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

url <- "{{baseUrl}}/v1/:name:migrate"

payload <- "{\n  \"skipBillingCheck\": false\n}"

encode <- "json"

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

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

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

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  \"skipBillingCheck\": false\n}"

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

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

response = conn.post('/baseUrl/v1/:name:migrate') do |req|
  req.body = "{\n  \"skipBillingCheck\": false\n}"
end

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

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

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

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:name:migrate \
  --header 'content-type: application/json' \
  --data '{
  "skipBillingCheck": false
}'
echo '{
  "skipBillingCheck": false
}' |  \
  http POST {{baseUrl}}/v1/:name:migrate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "skipBillingCheck": false\n}' \
  --output-document \
  - {{baseUrl}}/v1/:name:migrate
import Foundation

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

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

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

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

dataTask.resume()
PATCH recaptchaenterprise.projects.keys.patch
{{baseUrl}}/v1/:name
QUERY PARAMS

name
BODY json

{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:name");

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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}");

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

(client/patch "{{baseUrl}}/v1/:name" {:content-type :json
                                                      :form-params {:androidSettings {:allowAllPackageNames false
                                                                                      :allowedPackageNames []
                                                                                      :supportNonGoogleAppStoreDistribution false}
                                                                    :createTime ""
                                                                    :displayName ""
                                                                    :iosSettings {:allowAllBundleIds false
                                                                                  :allowedBundleIds []}
                                                                    :labels {}
                                                                    :name ""
                                                                    :testingOptions {:testingChallenge ""
                                                                                     :testingScore ""}
                                                                    :wafSettings {:wafFeature ""
                                                                                  :wafService ""}
                                                                    :webSettings {:allowAllDomains false
                                                                                  :allowAmpTraffic false
                                                                                  :allowedDomains []
                                                                                  :challengeSecurityPreference ""
                                                                                  :integrationType ""}}})
require "http/client"

url = "{{baseUrl}}/v1/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1/:name"),
    Content = new StringContent("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")

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

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

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

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

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

}
PATCH /baseUrl/v1/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 620

{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:name")
  .header("content-type", "application/json")
  .body("{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  androidSettings: {
    allowAllPackageNames: false,
    allowedPackageNames: [],
    supportNonGoogleAppStoreDistribution: false
  },
  createTime: '',
  displayName: '',
  iosSettings: {
    allowAllBundleIds: false,
    allowedBundleIds: []
  },
  labels: {},
  name: '',
  testingOptions: {
    testingChallenge: '',
    testingScore: ''
  },
  wafSettings: {
    wafFeature: '',
    wafService: ''
  },
  webSettings: {
    allowAllDomains: false,
    allowAmpTraffic: false,
    allowedDomains: [],
    challengeSecurityPreference: '',
    integrationType: ''
  }
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    androidSettings: {
      allowAllPackageNames: false,
      allowedPackageNames: [],
      supportNonGoogleAppStoreDistribution: false
    },
    createTime: '',
    displayName: '',
    iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
    labels: {},
    name: '',
    testingOptions: {testingChallenge: '', testingScore: ''},
    wafSettings: {wafFeature: '', wafService: ''},
    webSettings: {
      allowAllDomains: false,
      allowAmpTraffic: false,
      allowedDomains: [],
      challengeSecurityPreference: '',
      integrationType: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"androidSettings":{"allowAllPackageNames":false,"allowedPackageNames":[],"supportNonGoogleAppStoreDistribution":false},"createTime":"","displayName":"","iosSettings":{"allowAllBundleIds":false,"allowedBundleIds":[]},"labels":{},"name":"","testingOptions":{"testingChallenge":"","testingScore":""},"wafSettings":{"wafFeature":"","wafService":""},"webSettings":{"allowAllDomains":false,"allowAmpTraffic":false,"allowedDomains":[],"challengeSecurityPreference":"","integrationType":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "androidSettings": {\n    "allowAllPackageNames": false,\n    "allowedPackageNames": [],\n    "supportNonGoogleAppStoreDistribution": false\n  },\n  "createTime": "",\n  "displayName": "",\n  "iosSettings": {\n    "allowAllBundleIds": false,\n    "allowedBundleIds": []\n  },\n  "labels": {},\n  "name": "",\n  "testingOptions": {\n    "testingChallenge": "",\n    "testingScore": ""\n  },\n  "wafSettings": {\n    "wafFeature": "",\n    "wafService": ""\n  },\n  "webSettings": {\n    "allowAllDomains": false,\n    "allowAmpTraffic": false,\n    "allowedDomains": [],\n    "challengeSecurityPreference": "",\n    "integrationType": ""\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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/:name',
  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({
  androidSettings: {
    allowAllPackageNames: false,
    allowedPackageNames: [],
    supportNonGoogleAppStoreDistribution: false
  },
  createTime: '',
  displayName: '',
  iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
  labels: {},
  name: '',
  testingOptions: {testingChallenge: '', testingScore: ''},
  wafSettings: {wafFeature: '', wafService: ''},
  webSettings: {
    allowAllDomains: false,
    allowAmpTraffic: false,
    allowedDomains: [],
    challengeSecurityPreference: '',
    integrationType: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  body: {
    androidSettings: {
      allowAllPackageNames: false,
      allowedPackageNames: [],
      supportNonGoogleAppStoreDistribution: false
    },
    createTime: '',
    displayName: '',
    iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
    labels: {},
    name: '',
    testingOptions: {testingChallenge: '', testingScore: ''},
    wafSettings: {wafFeature: '', wafService: ''},
    webSettings: {
      allowAllDomains: false,
      allowAmpTraffic: false,
      allowedDomains: [],
      challengeSecurityPreference: '',
      integrationType: ''
    }
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v1/:name');

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

req.type('json');
req.send({
  androidSettings: {
    allowAllPackageNames: false,
    allowedPackageNames: [],
    supportNonGoogleAppStoreDistribution: false
  },
  createTime: '',
  displayName: '',
  iosSettings: {
    allowAllBundleIds: false,
    allowedBundleIds: []
  },
  labels: {},
  name: '',
  testingOptions: {
    testingChallenge: '',
    testingScore: ''
  },
  wafSettings: {
    wafFeature: '',
    wafService: ''
  },
  webSettings: {
    allowAllDomains: false,
    allowAmpTraffic: false,
    allowedDomains: [],
    challengeSecurityPreference: '',
    integrationType: ''
  }
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    androidSettings: {
      allowAllPackageNames: false,
      allowedPackageNames: [],
      supportNonGoogleAppStoreDistribution: false
    },
    createTime: '',
    displayName: '',
    iosSettings: {allowAllBundleIds: false, allowedBundleIds: []},
    labels: {},
    name: '',
    testingOptions: {testingChallenge: '', testingScore: ''},
    wafSettings: {wafFeature: '', wafService: ''},
    webSettings: {
      allowAllDomains: false,
      allowAmpTraffic: false,
      allowedDomains: [],
      challengeSecurityPreference: '',
      integrationType: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"androidSettings":{"allowAllPackageNames":false,"allowedPackageNames":[],"supportNonGoogleAppStoreDistribution":false},"createTime":"","displayName":"","iosSettings":{"allowAllBundleIds":false,"allowedBundleIds":[]},"labels":{},"name":"","testingOptions":{"testingChallenge":"","testingScore":""},"wafSettings":{"wafFeature":"","wafService":""},"webSettings":{"allowAllDomains":false,"allowAmpTraffic":false,"allowedDomains":[],"challengeSecurityPreference":"","integrationType":""}}'
};

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 = @{ @"androidSettings": @{ @"allowAllPackageNames": @NO, @"allowedPackageNames": @[  ], @"supportNonGoogleAppStoreDistribution": @NO },
                              @"createTime": @"",
                              @"displayName": @"",
                              @"iosSettings": @{ @"allowAllBundleIds": @NO, @"allowedBundleIds": @[  ] },
                              @"labels": @{  },
                              @"name": @"",
                              @"testingOptions": @{ @"testingChallenge": @"", @"testingScore": @"" },
                              @"wafSettings": @{ @"wafFeature": @"", @"wafService": @"" },
                              @"webSettings": @{ @"allowAllDomains": @NO, @"allowAmpTraffic": @NO, @"allowedDomains": @[  ], @"challengeSecurityPreference": @"", @"integrationType": @"" } };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:name",
  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([
    'androidSettings' => [
        'allowAllPackageNames' => null,
        'allowedPackageNames' => [
                
        ],
        'supportNonGoogleAppStoreDistribution' => null
    ],
    'createTime' => '',
    'displayName' => '',
    'iosSettings' => [
        'allowAllBundleIds' => null,
        'allowedBundleIds' => [
                
        ]
    ],
    'labels' => [
        
    ],
    'name' => '',
    'testingOptions' => [
        'testingChallenge' => '',
        'testingScore' => ''
    ],
    'wafSettings' => [
        'wafFeature' => '',
        'wafService' => ''
    ],
    'webSettings' => [
        'allowAllDomains' => null,
        'allowAmpTraffic' => null,
        'allowedDomains' => [
                
        ],
        'challengeSecurityPreference' => '',
        'integrationType' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/v1/:name', [
  'body' => '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'androidSettings' => [
    'allowAllPackageNames' => null,
    'allowedPackageNames' => [
        
    ],
    'supportNonGoogleAppStoreDistribution' => null
  ],
  'createTime' => '',
  'displayName' => '',
  'iosSettings' => [
    'allowAllBundleIds' => null,
    'allowedBundleIds' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'testingOptions' => [
    'testingChallenge' => '',
    'testingScore' => ''
  ],
  'wafSettings' => [
    'wafFeature' => '',
    'wafService' => ''
  ],
  'webSettings' => [
    'allowAllDomains' => null,
    'allowAmpTraffic' => null,
    'allowedDomains' => [
        
    ],
    'challengeSecurityPreference' => '',
    'integrationType' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'androidSettings' => [
    'allowAllPackageNames' => null,
    'allowedPackageNames' => [
        
    ],
    'supportNonGoogleAppStoreDistribution' => null
  ],
  'createTime' => '',
  'displayName' => '',
  'iosSettings' => [
    'allowAllBundleIds' => null,
    'allowedBundleIds' => [
        
    ]
  ],
  'labels' => [
    
  ],
  'name' => '',
  'testingOptions' => [
    'testingChallenge' => '',
    'testingScore' => ''
  ],
  'wafSettings' => [
    'wafFeature' => '',
    'wafService' => ''
  ],
  'webSettings' => [
    'allowAllDomains' => null,
    'allowAmpTraffic' => null,
    'allowedDomains' => [
        
    ],
    'challengeSecurityPreference' => '',
    'integrationType' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}'
import http.client

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

payload = "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

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

conn.request("PATCH", "/baseUrl/v1/:name", payload, headers)

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

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

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

payload = {
    "androidSettings": {
        "allowAllPackageNames": False,
        "allowedPackageNames": [],
        "supportNonGoogleAppStoreDistribution": False
    },
    "createTime": "",
    "displayName": "",
    "iosSettings": {
        "allowAllBundleIds": False,
        "allowedBundleIds": []
    },
    "labels": {},
    "name": "",
    "testingOptions": {
        "testingChallenge": "",
        "testingScore": ""
    },
    "wafSettings": {
        "wafFeature": "",
        "wafService": ""
    },
    "webSettings": {
        "allowAllDomains": False,
        "allowAmpTraffic": False,
        "allowedDomains": [],
        "challengeSecurityPreference": "",
        "integrationType": ""
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

encode <- "json"

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

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

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

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  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"

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

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

response = conn.patch('/baseUrl/v1/:name') do |req|
  req.body = "{\n  \"androidSettings\": {\n    \"allowAllPackageNames\": false,\n    \"allowedPackageNames\": [],\n    \"supportNonGoogleAppStoreDistribution\": false\n  },\n  \"createTime\": \"\",\n  \"displayName\": \"\",\n  \"iosSettings\": {\n    \"allowAllBundleIds\": false,\n    \"allowedBundleIds\": []\n  },\n  \"labels\": {},\n  \"name\": \"\",\n  \"testingOptions\": {\n    \"testingChallenge\": \"\",\n    \"testingScore\": \"\"\n  },\n  \"wafSettings\": {\n    \"wafFeature\": \"\",\n    \"wafService\": \"\"\n  },\n  \"webSettings\": {\n    \"allowAllDomains\": false,\n    \"allowAmpTraffic\": false,\n    \"allowedDomains\": [],\n    \"challengeSecurityPreference\": \"\",\n    \"integrationType\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "androidSettings": json!({
            "allowAllPackageNames": false,
            "allowedPackageNames": (),
            "supportNonGoogleAppStoreDistribution": false
        }),
        "createTime": "",
        "displayName": "",
        "iosSettings": json!({
            "allowAllBundleIds": false,
            "allowedBundleIds": ()
        }),
        "labels": json!({}),
        "name": "",
        "testingOptions": json!({
            "testingChallenge": "",
            "testingScore": ""
        }),
        "wafSettings": json!({
            "wafFeature": "",
            "wafService": ""
        }),
        "webSettings": json!({
            "allowAllDomains": false,
            "allowAmpTraffic": false,
            "allowedDomains": (),
            "challengeSecurityPreference": "",
            "integrationType": ""
        })
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v1/:name \
  --header 'content-type: application/json' \
  --data '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}'
echo '{
  "androidSettings": {
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  },
  "createTime": "",
  "displayName": "",
  "iosSettings": {
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  },
  "labels": {},
  "name": "",
  "testingOptions": {
    "testingChallenge": "",
    "testingScore": ""
  },
  "wafSettings": {
    "wafFeature": "",
    "wafService": ""
  },
  "webSettings": {
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  }
}' |  \
  http PATCH {{baseUrl}}/v1/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "androidSettings": {\n    "allowAllPackageNames": false,\n    "allowedPackageNames": [],\n    "supportNonGoogleAppStoreDistribution": false\n  },\n  "createTime": "",\n  "displayName": "",\n  "iosSettings": {\n    "allowAllBundleIds": false,\n    "allowedBundleIds": []\n  },\n  "labels": {},\n  "name": "",\n  "testingOptions": {\n    "testingChallenge": "",\n    "testingScore": ""\n  },\n  "wafSettings": {\n    "wafFeature": "",\n    "wafService": ""\n  },\n  "webSettings": {\n    "allowAllDomains": false,\n    "allowAmpTraffic": false,\n    "allowedDomains": [],\n    "challengeSecurityPreference": "",\n    "integrationType": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "androidSettings": [
    "allowAllPackageNames": false,
    "allowedPackageNames": [],
    "supportNonGoogleAppStoreDistribution": false
  ],
  "createTime": "",
  "displayName": "",
  "iosSettings": [
    "allowAllBundleIds": false,
    "allowedBundleIds": []
  ],
  "labels": [],
  "name": "",
  "testingOptions": [
    "testingChallenge": "",
    "testingScore": ""
  ],
  "wafSettings": [
    "wafFeature": "",
    "wafService": ""
  ],
  "webSettings": [
    "allowAllDomains": false,
    "allowAmpTraffic": false,
    "allowedDomains": [],
    "challengeSecurityPreference": "",
    "integrationType": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:name")! 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()
GET recaptchaenterprise.projects.keys.retrieveLegacySecretKey
{{baseUrl}}/v1/:key:retrieveLegacySecretKey
QUERY PARAMS

key
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1/:key:retrieveLegacySecretKey"

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

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

func main() {

	url := "{{baseUrl}}/v1/:key:retrieveLegacySecretKey"

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

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

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

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

}
GET /baseUrl/v1/:key:retrieveLegacySecretKey HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:key:retrieveLegacySecretKey"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:key:retrieveLegacySecretKey")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:key:retrieveLegacySecretKey")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/v1/:key:retrieveLegacySecretKey');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const url = '{{baseUrl}}/v1/:key:retrieveLegacySecretKey';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:key:retrieveLegacySecretKey" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:key:retrieveLegacySecretKey")

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

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

url = "{{baseUrl}}/v1/:key:retrieveLegacySecretKey"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:key:retrieveLegacySecretKey"

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

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

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

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

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

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

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

response = conn.get('/baseUrl/v1/:key:retrieveLegacySecretKey') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships: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  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search" {:content-type :json
                                                                                              :form-params {:hashedAccountId ""
                                                                                                            :pageSize 0
                                                                                                            :pageToken ""}})
require "http/client"

url = "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search"),
    Content = new StringContent("{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search"

	payload := strings.NewReader("{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v1/:project/relatedaccountgroupmemberships:search HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 63

{
  "hashedAccountId": "",
  "pageSize": 0,
  "pageToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search")
  .header("content-type", "application/json")
  .body("{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  hashedAccountId: '',
  pageSize: 0,
  pageToken: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search',
  headers: {'content-type': 'application/json'},
  data: {hashedAccountId: '', pageSize: 0, pageToken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"hashedAccountId":"","pageSize":0,"pageToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "hashedAccountId": "",\n  "pageSize": 0,\n  "pageToken": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:project/relatedaccountgroupmemberships: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/v1/:project/relatedaccountgroupmemberships: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({hashedAccountId: '', pageSize: 0, pageToken: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search',
  headers: {'content-type': 'application/json'},
  body: {hashedAccountId: '', pageSize: 0, pageToken: ''},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search');

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

req.type('json');
req.send({
  hashedAccountId: '',
  pageSize: 0,
  pageToken: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search',
  headers: {'content-type': 'application/json'},
  data: {hashedAccountId: '', pageSize: 0, pageToken: ''}
};

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

const url = '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"hashedAccountId":"","pageSize":0,"pageToken":""}'
};

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 = @{ @"hashedAccountId": @"",
                              @"pageSize": @0,
                              @"pageToken": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:project/relatedaccountgroupmemberships: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}}/v1/:project/relatedaccountgroupmemberships:search" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search', [
  'body' => '{
  "hashedAccountId": "",
  "pageSize": 0,
  "pageToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'hashedAccountId' => '',
  'pageSize' => 0,
  'pageToken' => ''
]));

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

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

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

payload = "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/:project/relatedaccountgroupmemberships:search", payload, headers)

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

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

url = "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search"

payload = {
    "hashedAccountId": "",
    "pageSize": 0,
    "pageToken": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search"

payload <- "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1/:project/relatedaccountgroupmemberships: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  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v1/:project/relatedaccountgroupmemberships:search') do |req|
  req.body = "{\n  \"hashedAccountId\": \"\",\n  \"pageSize\": 0,\n  \"pageToken\": \"\"\n}"
end

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

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

    let payload = json!({
        "hashedAccountId": "",
        "pageSize": 0,
        "pageToken": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search \
  --header 'content-type: application/json' \
  --data '{
  "hashedAccountId": "",
  "pageSize": 0,
  "pageToken": ""
}'
echo '{
  "hashedAccountId": "",
  "pageSize": 0,
  "pageToken": ""
}' |  \
  http POST {{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "hashedAccountId": "",\n  "pageSize": 0,\n  "pageToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/:project/relatedaccountgroupmemberships:search
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "hashedAccountId": "",
  "pageSize": 0,
  "pageToken": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:project/relatedaccountgroupmemberships: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()
GET recaptchaenterprise.projects.relatedaccountgroups.list
{{baseUrl}}/v1/:parent/relatedaccountgroups
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1/:parent/relatedaccountgroups"

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

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

func main() {

	url := "{{baseUrl}}/v1/:parent/relatedaccountgroups"

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

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

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

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

}
GET /baseUrl/v1/:parent/relatedaccountgroups HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/relatedaccountgroups"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/relatedaccountgroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/relatedaccountgroups")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/v1/:parent/relatedaccountgroups');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const url = '{{baseUrl}}/v1/:parent/relatedaccountgroups';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/relatedaccountgroups" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/relatedaccountgroups")

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

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

url = "{{baseUrl}}/v1/:parent/relatedaccountgroups"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/relatedaccountgroups"

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

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

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

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

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

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

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

response = conn.get('/baseUrl/v1/:parent/relatedaccountgroups') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
GET recaptchaenterprise.projects.relatedaccountgroups.memberships.list
{{baseUrl}}/v1/:parent/memberships
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1/:parent/memberships"

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

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

func main() {

	url := "{{baseUrl}}/v1/:parent/memberships"

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

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

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

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

}
GET /baseUrl/v1/:parent/memberships HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:parent/memberships"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:parent/memberships")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v1/:parent/memberships")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/v1/:parent/memberships');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const url = '{{baseUrl}}/v1/:parent/memberships';
const options = {method: 'GET'};

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1/:parent/memberships" in

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

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

curl_close($curl);

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/:parent/memberships")

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

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

url = "{{baseUrl}}/v1/:parent/memberships"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:parent/memberships"

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

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

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

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

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

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

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

response = conn.get('/baseUrl/v1/:parent/memberships') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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