POST testing.applicationDetailService.getApkDetails
{{baseUrl}}/v1/applicationDetailService/getApkDetails
BODY json

{
  "gcsPath": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

(client/post "{{baseUrl}}/v1/applicationDetailService/getApkDetails" {:content-type :json
                                                                                      :form-params {:gcsPath ""}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/v1/applicationDetailService/getApkDetails"

	payload := strings.NewReader("{\n  \"gcsPath\": \"\"\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/applicationDetailService/getApkDetails HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/applicationDetailService/getApkDetails',
  headers: {'content-type': 'application/json'},
  data: {gcsPath: ''}
};

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

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/applicationDetailService/getApkDetails',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "gcsPath": ""\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/applicationDetailService/getApkDetails',
  headers: {'content-type': 'application/json'},
  body: {gcsPath: ''},
  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/applicationDetailService/getApkDetails');

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

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

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/applicationDetailService/getApkDetails',
  headers: {'content-type': 'application/json'},
  data: {gcsPath: ''}
};

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

const url = '{{baseUrl}}/v1/applicationDetailService/getApkDetails';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"gcsPath":""}'
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1/applicationDetailService/getApkDetails"

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

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

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

url <- "{{baseUrl}}/v1/applicationDetailService/getApkDetails"

payload <- "{\n  \"gcsPath\": \"\"\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/applicationDetailService/getApkDetails")

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  \"gcsPath\": \"\"\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/applicationDetailService/getApkDetails') do |req|
  req.body = "{\n  \"gcsPath\": \"\"\n}"
end

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

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/applicationDetailService/getApkDetails")! 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 testing.projects.testMatrices.cancel
{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel
QUERY PARAMS

projectId
testMatrixId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel");

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

(client/post "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel"

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

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

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel"

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

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

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

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

}
POST /baseUrl/v1/projects/:projectId/testMatrices/:testMatrixId:cancel HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel';
const options = {method: 'POST'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1/projects/:projectId/testMatrices/:testMatrixId:cancel',
  headers: {}
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel'
};

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/projects/:projectId/testMatrices/:testMatrixId:cancel');

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/projects/:projectId/testMatrices/:testMatrixId:cancel'
};

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

const url = '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel';
const options = {method: 'POST'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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

let uri = Uri.of_string "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel');

echo $response->getBody();
setUrl('{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")

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

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

url = "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel"

response = requests.post(url)

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

url <- "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel"

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

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

url = URI("{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")

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

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

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

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

response = conn.post('/baseUrl/v1/projects/:projectId/testMatrices/:testMatrixId:cancel') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel";

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel
http POST {{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId:cancel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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

dataTask.resume()
POST testing.projects.testMatrices.create
{{baseUrl}}/v1/projects/:projectId/testMatrices
QUERY PARAMS

projectId
BODY json

{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/testMatrices");

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  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}");

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

(client/post "{{baseUrl}}/v1/projects/:projectId/testMatrices" {:content-type :json
                                                                                :form-params {:clientInfo {:clientInfoDetails [{:key ""
                                                                                                                                :value ""}]
                                                                                                           :name ""}
                                                                                              :environmentMatrix {:androidDeviceList {:androidDevices [{:androidModelId ""
                                                                                                                                                        :androidVersionId ""
                                                                                                                                                        :locale ""
                                                                                                                                                        :orientation ""}]}
                                                                                                                  :androidMatrix {:androidModelIds []
                                                                                                                                  :androidVersionIds []
                                                                                                                                  :locales []
                                                                                                                                  :orientations []}
                                                                                                                  :iosDeviceList {:iosDevices [{:iosModelId ""
                                                                                                                                                :iosVersionId ""
                                                                                                                                                :locale ""
                                                                                                                                                :orientation ""}]}}
                                                                                              :failFast false
                                                                                              :flakyTestAttempts 0
                                                                                              :invalidMatrixDetails ""
                                                                                              :outcomeSummary ""
                                                                                              :projectId ""
                                                                                              :resultStorage {:googleCloudStorage {:gcsPath ""}
                                                                                                              :resultsUrl ""
                                                                                                              :toolResultsExecution {:executionId ""
                                                                                                                                     :historyId ""
                                                                                                                                     :projectId ""}
                                                                                                              :toolResultsHistory {:historyId ""
                                                                                                                                   :projectId ""}}
                                                                                              :state ""
                                                                                              :testExecutions [{:environment {:androidDevice {}
                                                                                                                              :iosDevice {}}
                                                                                                                :id ""
                                                                                                                :matrixId ""
                                                                                                                :projectId ""
                                                                                                                :shard {:numShards 0
                                                                                                                        :shardIndex 0
                                                                                                                        :testTargetsForShard {:testTargets []}}
                                                                                                                :state ""
                                                                                                                :testDetails {:errorMessage ""
                                                                                                                              :progressMessages []}
                                                                                                                :testSpecification {:androidInstrumentationTest {:appApk {:gcsPath ""}
                                                                                                                                                                 :appBundle {:bundleLocation {}}
                                                                                                                                                                 :appPackageId ""
                                                                                                                                                                 :orchestratorOption ""
                                                                                                                                                                 :shardingOption {:manualSharding {:testTargetsForShard [{}]}
                                                                                                                                                                                  :uniformSharding {:numShards 0}}
                                                                                                                                                                 :testApk {}
                                                                                                                                                                 :testPackageId ""
                                                                                                                                                                 :testRunnerClass ""
                                                                                                                                                                 :testTargets []}
                                                                                                                                    :androidRoboTest {:appApk {}
                                                                                                                                                      :appBundle {}
                                                                                                                                                      :appInitialActivity ""
                                                                                                                                                      :appPackageId ""
                                                                                                                                                      :maxDepth 0
                                                                                                                                                      :maxSteps 0
                                                                                                                                                      :roboDirectives [{:actionType ""
                                                                                                                                                                        :inputText ""
                                                                                                                                                                        :resourceName ""}]
                                                                                                                                                      :roboMode ""
                                                                                                                                                      :roboScript {}
                                                                                                                                                      :startingIntents [{:launcherActivity {}
                                                                                                                                                                         :startActivity {:action ""
                                                                                                                                                                                         :categories []
                                                                                                                                                                                         :uri ""}
                                                                                                                                                                         :timeout ""}]}
                                                                                                                                    :androidTestLoop {:appApk {}
                                                                                                                                                      :appBundle {}
                                                                                                                                                      :appPackageId ""
                                                                                                                                                      :scenarioLabels []
                                                                                                                                                      :scenarios []}
                                                                                                                                    :disablePerformanceMetrics false
                                                                                                                                    :disableVideoRecording false
                                                                                                                                    :iosTestLoop {:appBundleId ""
                                                                                                                                                  :appIpa {}
                                                                                                                                                  :scenarios []}
                                                                                                                                    :iosTestSetup {:additionalIpas [{}]
                                                                                                                                                   :networkProfile ""
                                                                                                                                                   :pullDirectories [{:bundleId ""
                                                                                                                                                                      :content {}
                                                                                                                                                                      :devicePath ""}]
                                                                                                                                                   :pushFiles [{}]}
                                                                                                                                    :iosXcTest {:appBundleId ""
                                                                                                                                                :testSpecialEntitlements false
                                                                                                                                                :testsZip {}
                                                                                                                                                :xcodeVersion ""
                                                                                                                                                :xctestrun {}}
                                                                                                                                    :testSetup {:account {:googleAuto {}}
                                                                                                                                                :additionalApks [{:location {}
                                                                                                                                                                  :packageName ""}]
                                                                                                                                                :directoriesToPull []
                                                                                                                                                :dontAutograntPermissions false
                                                                                                                                                :environmentVariables [{:key ""
                                                                                                                                                                        :value ""}]
                                                                                                                                                :filesToPush [{:obbFile {:obb {}
                                                                                                                                                                         :obbFileName ""}
                                                                                                                                                               :regularFile {:content {}
                                                                                                                                                                             :devicePath ""}}]
                                                                                                                                                :networkProfile ""
                                                                                                                                                :systrace {:durationSeconds 0}}
                                                                                                                                    :testTimeout ""}
                                                                                                                :timestamp ""
                                                                                                                :toolResultsStep {:executionId ""
                                                                                                                                  :historyId ""
                                                                                                                                  :projectId ""
                                                                                                                                  :stepId ""}}]
                                                                                              :testMatrixId ""
                                                                                              :testSpecification {}
                                                                                              :timestamp ""}})
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/testMatrices"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\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/projects/:projectId/testMatrices"),
    Content = new StringContent("{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\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/projects/:projectId/testMatrices");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/testMatrices"

	payload := strings.NewReader("{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\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/projects/:projectId/testMatrices HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4887

{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/projects/:projectId/testMatrices")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/projects/:projectId/testMatrices"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\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  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/testMatrices")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/projects/:projectId/testMatrices")
  .header("content-type", "application/json")
  .body("{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  clientInfo: {
    clientInfoDetails: [
      {
        key: '',
        value: ''
      }
    ],
    name: ''
  },
  environmentMatrix: {
    androidDeviceList: {
      androidDevices: [
        {
          androidModelId: '',
          androidVersionId: '',
          locale: '',
          orientation: ''
        }
      ]
    },
    androidMatrix: {
      androidModelIds: [],
      androidVersionIds: [],
      locales: [],
      orientations: []
    },
    iosDeviceList: {
      iosDevices: [
        {
          iosModelId: '',
          iosVersionId: '',
          locale: '',
          orientation: ''
        }
      ]
    }
  },
  failFast: false,
  flakyTestAttempts: 0,
  invalidMatrixDetails: '',
  outcomeSummary: '',
  projectId: '',
  resultStorage: {
    googleCloudStorage: {
      gcsPath: ''
    },
    resultsUrl: '',
    toolResultsExecution: {
      executionId: '',
      historyId: '',
      projectId: ''
    },
    toolResultsHistory: {
      historyId: '',
      projectId: ''
    }
  },
  state: '',
  testExecutions: [
    {
      environment: {
        androidDevice: {},
        iosDevice: {}
      },
      id: '',
      matrixId: '',
      projectId: '',
      shard: {
        numShards: 0,
        shardIndex: 0,
        testTargetsForShard: {
          testTargets: []
        }
      },
      state: '',
      testDetails: {
        errorMessage: '',
        progressMessages: []
      },
      testSpecification: {
        androidInstrumentationTest: {
          appApk: {
            gcsPath: ''
          },
          appBundle: {
            bundleLocation: {}
          },
          appPackageId: '',
          orchestratorOption: '',
          shardingOption: {
            manualSharding: {
              testTargetsForShard: [
                {}
              ]
            },
            uniformSharding: {
              numShards: 0
            }
          },
          testApk: {},
          testPackageId: '',
          testRunnerClass: '',
          testTargets: []
        },
        androidRoboTest: {
          appApk: {},
          appBundle: {},
          appInitialActivity: '',
          appPackageId: '',
          maxDepth: 0,
          maxSteps: 0,
          roboDirectives: [
            {
              actionType: '',
              inputText: '',
              resourceName: ''
            }
          ],
          roboMode: '',
          roboScript: {},
          startingIntents: [
            {
              launcherActivity: {},
              startActivity: {
                action: '',
                categories: [],
                uri: ''
              },
              timeout: ''
            }
          ]
        },
        androidTestLoop: {
          appApk: {},
          appBundle: {},
          appPackageId: '',
          scenarioLabels: [],
          scenarios: []
        },
        disablePerformanceMetrics: false,
        disableVideoRecording: false,
        iosTestLoop: {
          appBundleId: '',
          appIpa: {},
          scenarios: []
        },
        iosTestSetup: {
          additionalIpas: [
            {}
          ],
          networkProfile: '',
          pullDirectories: [
            {
              bundleId: '',
              content: {},
              devicePath: ''
            }
          ],
          pushFiles: [
            {}
          ]
        },
        iosXcTest: {
          appBundleId: '',
          testSpecialEntitlements: false,
          testsZip: {},
          xcodeVersion: '',
          xctestrun: {}
        },
        testSetup: {
          account: {
            googleAuto: {}
          },
          additionalApks: [
            {
              location: {},
              packageName: ''
            }
          ],
          directoriesToPull: [],
          dontAutograntPermissions: false,
          environmentVariables: [
            {
              key: '',
              value: ''
            }
          ],
          filesToPush: [
            {
              obbFile: {
                obb: {},
                obbFileName: ''
              },
              regularFile: {
                content: {},
                devicePath: ''
              }
            }
          ],
          networkProfile: '',
          systrace: {
            durationSeconds: 0
          }
        },
        testTimeout: ''
      },
      timestamp: '',
      toolResultsStep: {
        executionId: '',
        historyId: '',
        projectId: '',
        stepId: ''
      }
    }
  ],
  testMatrixId: '',
  testSpecification: {},
  timestamp: ''
});

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/projects/:projectId/testMatrices');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/testMatrices',
  headers: {'content-type': 'application/json'},
  data: {
    clientInfo: {clientInfoDetails: [{key: '', value: ''}], name: ''},
    environmentMatrix: {
      androidDeviceList: {
        androidDevices: [{androidModelId: '', androidVersionId: '', locale: '', orientation: ''}]
      },
      androidMatrix: {androidModelIds: [], androidVersionIds: [], locales: [], orientations: []},
      iosDeviceList: {iosDevices: [{iosModelId: '', iosVersionId: '', locale: '', orientation: ''}]}
    },
    failFast: false,
    flakyTestAttempts: 0,
    invalidMatrixDetails: '',
    outcomeSummary: '',
    projectId: '',
    resultStorage: {
      googleCloudStorage: {gcsPath: ''},
      resultsUrl: '',
      toolResultsExecution: {executionId: '', historyId: '', projectId: ''},
      toolResultsHistory: {historyId: '', projectId: ''}
    },
    state: '',
    testExecutions: [
      {
        environment: {androidDevice: {}, iosDevice: {}},
        id: '',
        matrixId: '',
        projectId: '',
        shard: {numShards: 0, shardIndex: 0, testTargetsForShard: {testTargets: []}},
        state: '',
        testDetails: {errorMessage: '', progressMessages: []},
        testSpecification: {
          androidInstrumentationTest: {
            appApk: {gcsPath: ''},
            appBundle: {bundleLocation: {}},
            appPackageId: '',
            orchestratorOption: '',
            shardingOption: {manualSharding: {testTargetsForShard: [{}]}, uniformSharding: {numShards: 0}},
            testApk: {},
            testPackageId: '',
            testRunnerClass: '',
            testTargets: []
          },
          androidRoboTest: {
            appApk: {},
            appBundle: {},
            appInitialActivity: '',
            appPackageId: '',
            maxDepth: 0,
            maxSteps: 0,
            roboDirectives: [{actionType: '', inputText: '', resourceName: ''}],
            roboMode: '',
            roboScript: {},
            startingIntents: [
              {
                launcherActivity: {},
                startActivity: {action: '', categories: [], uri: ''},
                timeout: ''
              }
            ]
          },
          androidTestLoop: {appApk: {}, appBundle: {}, appPackageId: '', scenarioLabels: [], scenarios: []},
          disablePerformanceMetrics: false,
          disableVideoRecording: false,
          iosTestLoop: {appBundleId: '', appIpa: {}, scenarios: []},
          iosTestSetup: {
            additionalIpas: [{}],
            networkProfile: '',
            pullDirectories: [{bundleId: '', content: {}, devicePath: ''}],
            pushFiles: [{}]
          },
          iosXcTest: {
            appBundleId: '',
            testSpecialEntitlements: false,
            testsZip: {},
            xcodeVersion: '',
            xctestrun: {}
          },
          testSetup: {
            account: {googleAuto: {}},
            additionalApks: [{location: {}, packageName: ''}],
            directoriesToPull: [],
            dontAutograntPermissions: false,
            environmentVariables: [{key: '', value: ''}],
            filesToPush: [
              {
                obbFile: {obb: {}, obbFileName: ''},
                regularFile: {content: {}, devicePath: ''}
              }
            ],
            networkProfile: '',
            systrace: {durationSeconds: 0}
          },
          testTimeout: ''
        },
        timestamp: '',
        toolResultsStep: {executionId: '', historyId: '', projectId: '', stepId: ''}
      }
    ],
    testMatrixId: '',
    testSpecification: {},
    timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/projects/:projectId/testMatrices';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"clientInfo":{"clientInfoDetails":[{"key":"","value":""}],"name":""},"environmentMatrix":{"androidDeviceList":{"androidDevices":[{"androidModelId":"","androidVersionId":"","locale":"","orientation":""}]},"androidMatrix":{"androidModelIds":[],"androidVersionIds":[],"locales":[],"orientations":[]},"iosDeviceList":{"iosDevices":[{"iosModelId":"","iosVersionId":"","locale":"","orientation":""}]}},"failFast":false,"flakyTestAttempts":0,"invalidMatrixDetails":"","outcomeSummary":"","projectId":"","resultStorage":{"googleCloudStorage":{"gcsPath":""},"resultsUrl":"","toolResultsExecution":{"executionId":"","historyId":"","projectId":""},"toolResultsHistory":{"historyId":"","projectId":""}},"state":"","testExecutions":[{"environment":{"androidDevice":{},"iosDevice":{}},"id":"","matrixId":"","projectId":"","shard":{"numShards":0,"shardIndex":0,"testTargetsForShard":{"testTargets":[]}},"state":"","testDetails":{"errorMessage":"","progressMessages":[]},"testSpecification":{"androidInstrumentationTest":{"appApk":{"gcsPath":""},"appBundle":{"bundleLocation":{}},"appPackageId":"","orchestratorOption":"","shardingOption":{"manualSharding":{"testTargetsForShard":[{}]},"uniformSharding":{"numShards":0}},"testApk":{},"testPackageId":"","testRunnerClass":"","testTargets":[]},"androidRoboTest":{"appApk":{},"appBundle":{},"appInitialActivity":"","appPackageId":"","maxDepth":0,"maxSteps":0,"roboDirectives":[{"actionType":"","inputText":"","resourceName":""}],"roboMode":"","roboScript":{},"startingIntents":[{"launcherActivity":{},"startActivity":{"action":"","categories":[],"uri":""},"timeout":""}]},"androidTestLoop":{"appApk":{},"appBundle":{},"appPackageId":"","scenarioLabels":[],"scenarios":[]},"disablePerformanceMetrics":false,"disableVideoRecording":false,"iosTestLoop":{"appBundleId":"","appIpa":{},"scenarios":[]},"iosTestSetup":{"additionalIpas":[{}],"networkProfile":"","pullDirectories":[{"bundleId":"","content":{},"devicePath":""}],"pushFiles":[{}]},"iosXcTest":{"appBundleId":"","testSpecialEntitlements":false,"testsZip":{},"xcodeVersion":"","xctestrun":{}},"testSetup":{"account":{"googleAuto":{}},"additionalApks":[{"location":{},"packageName":""}],"directoriesToPull":[],"dontAutograntPermissions":false,"environmentVariables":[{"key":"","value":""}],"filesToPush":[{"obbFile":{"obb":{},"obbFileName":""},"regularFile":{"content":{},"devicePath":""}}],"networkProfile":"","systrace":{"durationSeconds":0}},"testTimeout":""},"timestamp":"","toolResultsStep":{"executionId":"","historyId":"","projectId":"","stepId":""}}],"testMatrixId":"","testSpecification":{},"timestamp":""}'
};

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/projects/:projectId/testMatrices',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "clientInfo": {\n    "clientInfoDetails": [\n      {\n        "key": "",\n        "value": ""\n      }\n    ],\n    "name": ""\n  },\n  "environmentMatrix": {\n    "androidDeviceList": {\n      "androidDevices": [\n        {\n          "androidModelId": "",\n          "androidVersionId": "",\n          "locale": "",\n          "orientation": ""\n        }\n      ]\n    },\n    "androidMatrix": {\n      "androidModelIds": [],\n      "androidVersionIds": [],\n      "locales": [],\n      "orientations": []\n    },\n    "iosDeviceList": {\n      "iosDevices": [\n        {\n          "iosModelId": "",\n          "iosVersionId": "",\n          "locale": "",\n          "orientation": ""\n        }\n      ]\n    }\n  },\n  "failFast": false,\n  "flakyTestAttempts": 0,\n  "invalidMatrixDetails": "",\n  "outcomeSummary": "",\n  "projectId": "",\n  "resultStorage": {\n    "googleCloudStorage": {\n      "gcsPath": ""\n    },\n    "resultsUrl": "",\n    "toolResultsExecution": {\n      "executionId": "",\n      "historyId": "",\n      "projectId": ""\n    },\n    "toolResultsHistory": {\n      "historyId": "",\n      "projectId": ""\n    }\n  },\n  "state": "",\n  "testExecutions": [\n    {\n      "environment": {\n        "androidDevice": {},\n        "iosDevice": {}\n      },\n      "id": "",\n      "matrixId": "",\n      "projectId": "",\n      "shard": {\n        "numShards": 0,\n        "shardIndex": 0,\n        "testTargetsForShard": {\n          "testTargets": []\n        }\n      },\n      "state": "",\n      "testDetails": {\n        "errorMessage": "",\n        "progressMessages": []\n      },\n      "testSpecification": {\n        "androidInstrumentationTest": {\n          "appApk": {\n            "gcsPath": ""\n          },\n          "appBundle": {\n            "bundleLocation": {}\n          },\n          "appPackageId": "",\n          "orchestratorOption": "",\n          "shardingOption": {\n            "manualSharding": {\n              "testTargetsForShard": [\n                {}\n              ]\n            },\n            "uniformSharding": {\n              "numShards": 0\n            }\n          },\n          "testApk": {},\n          "testPackageId": "",\n          "testRunnerClass": "",\n          "testTargets": []\n        },\n        "androidRoboTest": {\n          "appApk": {},\n          "appBundle": {},\n          "appInitialActivity": "",\n          "appPackageId": "",\n          "maxDepth": 0,\n          "maxSteps": 0,\n          "roboDirectives": [\n            {\n              "actionType": "",\n              "inputText": "",\n              "resourceName": ""\n            }\n          ],\n          "roboMode": "",\n          "roboScript": {},\n          "startingIntents": [\n            {\n              "launcherActivity": {},\n              "startActivity": {\n                "action": "",\n                "categories": [],\n                "uri": ""\n              },\n              "timeout": ""\n            }\n          ]\n        },\n        "androidTestLoop": {\n          "appApk": {},\n          "appBundle": {},\n          "appPackageId": "",\n          "scenarioLabels": [],\n          "scenarios": []\n        },\n        "disablePerformanceMetrics": false,\n        "disableVideoRecording": false,\n        "iosTestLoop": {\n          "appBundleId": "",\n          "appIpa": {},\n          "scenarios": []\n        },\n        "iosTestSetup": {\n          "additionalIpas": [\n            {}\n          ],\n          "networkProfile": "",\n          "pullDirectories": [\n            {\n              "bundleId": "",\n              "content": {},\n              "devicePath": ""\n            }\n          ],\n          "pushFiles": [\n            {}\n          ]\n        },\n        "iosXcTest": {\n          "appBundleId": "",\n          "testSpecialEntitlements": false,\n          "testsZip": {},\n          "xcodeVersion": "",\n          "xctestrun": {}\n        },\n        "testSetup": {\n          "account": {\n            "googleAuto": {}\n          },\n          "additionalApks": [\n            {\n              "location": {},\n              "packageName": ""\n            }\n          ],\n          "directoriesToPull": [],\n          "dontAutograntPermissions": false,\n          "environmentVariables": [\n            {\n              "key": "",\n              "value": ""\n            }\n          ],\n          "filesToPush": [\n            {\n              "obbFile": {\n                "obb": {},\n                "obbFileName": ""\n              },\n              "regularFile": {\n                "content": {},\n                "devicePath": ""\n              }\n            }\n          ],\n          "networkProfile": "",\n          "systrace": {\n            "durationSeconds": 0\n          }\n        },\n        "testTimeout": ""\n      },\n      "timestamp": "",\n      "toolResultsStep": {\n        "executionId": "",\n        "historyId": "",\n        "projectId": "",\n        "stepId": ""\n      }\n    }\n  ],\n  "testMatrixId": "",\n  "testSpecification": {},\n  "timestamp": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/testMatrices")
  .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/projects/:projectId/testMatrices',
  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({
  clientInfo: {clientInfoDetails: [{key: '', value: ''}], name: ''},
  environmentMatrix: {
    androidDeviceList: {
      androidDevices: [{androidModelId: '', androidVersionId: '', locale: '', orientation: ''}]
    },
    androidMatrix: {androidModelIds: [], androidVersionIds: [], locales: [], orientations: []},
    iosDeviceList: {iosDevices: [{iosModelId: '', iosVersionId: '', locale: '', orientation: ''}]}
  },
  failFast: false,
  flakyTestAttempts: 0,
  invalidMatrixDetails: '',
  outcomeSummary: '',
  projectId: '',
  resultStorage: {
    googleCloudStorage: {gcsPath: ''},
    resultsUrl: '',
    toolResultsExecution: {executionId: '', historyId: '', projectId: ''},
    toolResultsHistory: {historyId: '', projectId: ''}
  },
  state: '',
  testExecutions: [
    {
      environment: {androidDevice: {}, iosDevice: {}},
      id: '',
      matrixId: '',
      projectId: '',
      shard: {numShards: 0, shardIndex: 0, testTargetsForShard: {testTargets: []}},
      state: '',
      testDetails: {errorMessage: '', progressMessages: []},
      testSpecification: {
        androidInstrumentationTest: {
          appApk: {gcsPath: ''},
          appBundle: {bundleLocation: {}},
          appPackageId: '',
          orchestratorOption: '',
          shardingOption: {manualSharding: {testTargetsForShard: [{}]}, uniformSharding: {numShards: 0}},
          testApk: {},
          testPackageId: '',
          testRunnerClass: '',
          testTargets: []
        },
        androidRoboTest: {
          appApk: {},
          appBundle: {},
          appInitialActivity: '',
          appPackageId: '',
          maxDepth: 0,
          maxSteps: 0,
          roboDirectives: [{actionType: '', inputText: '', resourceName: ''}],
          roboMode: '',
          roboScript: {},
          startingIntents: [
            {
              launcherActivity: {},
              startActivity: {action: '', categories: [], uri: ''},
              timeout: ''
            }
          ]
        },
        androidTestLoop: {appApk: {}, appBundle: {}, appPackageId: '', scenarioLabels: [], scenarios: []},
        disablePerformanceMetrics: false,
        disableVideoRecording: false,
        iosTestLoop: {appBundleId: '', appIpa: {}, scenarios: []},
        iosTestSetup: {
          additionalIpas: [{}],
          networkProfile: '',
          pullDirectories: [{bundleId: '', content: {}, devicePath: ''}],
          pushFiles: [{}]
        },
        iosXcTest: {
          appBundleId: '',
          testSpecialEntitlements: false,
          testsZip: {},
          xcodeVersion: '',
          xctestrun: {}
        },
        testSetup: {
          account: {googleAuto: {}},
          additionalApks: [{location: {}, packageName: ''}],
          directoriesToPull: [],
          dontAutograntPermissions: false,
          environmentVariables: [{key: '', value: ''}],
          filesToPush: [
            {
              obbFile: {obb: {}, obbFileName: ''},
              regularFile: {content: {}, devicePath: ''}
            }
          ],
          networkProfile: '',
          systrace: {durationSeconds: 0}
        },
        testTimeout: ''
      },
      timestamp: '',
      toolResultsStep: {executionId: '', historyId: '', projectId: '', stepId: ''}
    }
  ],
  testMatrixId: '',
  testSpecification: {},
  timestamp: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/projects/:projectId/testMatrices',
  headers: {'content-type': 'application/json'},
  body: {
    clientInfo: {clientInfoDetails: [{key: '', value: ''}], name: ''},
    environmentMatrix: {
      androidDeviceList: {
        androidDevices: [{androidModelId: '', androidVersionId: '', locale: '', orientation: ''}]
      },
      androidMatrix: {androidModelIds: [], androidVersionIds: [], locales: [], orientations: []},
      iosDeviceList: {iosDevices: [{iosModelId: '', iosVersionId: '', locale: '', orientation: ''}]}
    },
    failFast: false,
    flakyTestAttempts: 0,
    invalidMatrixDetails: '',
    outcomeSummary: '',
    projectId: '',
    resultStorage: {
      googleCloudStorage: {gcsPath: ''},
      resultsUrl: '',
      toolResultsExecution: {executionId: '', historyId: '', projectId: ''},
      toolResultsHistory: {historyId: '', projectId: ''}
    },
    state: '',
    testExecutions: [
      {
        environment: {androidDevice: {}, iosDevice: {}},
        id: '',
        matrixId: '',
        projectId: '',
        shard: {numShards: 0, shardIndex: 0, testTargetsForShard: {testTargets: []}},
        state: '',
        testDetails: {errorMessage: '', progressMessages: []},
        testSpecification: {
          androidInstrumentationTest: {
            appApk: {gcsPath: ''},
            appBundle: {bundleLocation: {}},
            appPackageId: '',
            orchestratorOption: '',
            shardingOption: {manualSharding: {testTargetsForShard: [{}]}, uniformSharding: {numShards: 0}},
            testApk: {},
            testPackageId: '',
            testRunnerClass: '',
            testTargets: []
          },
          androidRoboTest: {
            appApk: {},
            appBundle: {},
            appInitialActivity: '',
            appPackageId: '',
            maxDepth: 0,
            maxSteps: 0,
            roboDirectives: [{actionType: '', inputText: '', resourceName: ''}],
            roboMode: '',
            roboScript: {},
            startingIntents: [
              {
                launcherActivity: {},
                startActivity: {action: '', categories: [], uri: ''},
                timeout: ''
              }
            ]
          },
          androidTestLoop: {appApk: {}, appBundle: {}, appPackageId: '', scenarioLabels: [], scenarios: []},
          disablePerformanceMetrics: false,
          disableVideoRecording: false,
          iosTestLoop: {appBundleId: '', appIpa: {}, scenarios: []},
          iosTestSetup: {
            additionalIpas: [{}],
            networkProfile: '',
            pullDirectories: [{bundleId: '', content: {}, devicePath: ''}],
            pushFiles: [{}]
          },
          iosXcTest: {
            appBundleId: '',
            testSpecialEntitlements: false,
            testsZip: {},
            xcodeVersion: '',
            xctestrun: {}
          },
          testSetup: {
            account: {googleAuto: {}},
            additionalApks: [{location: {}, packageName: ''}],
            directoriesToPull: [],
            dontAutograntPermissions: false,
            environmentVariables: [{key: '', value: ''}],
            filesToPush: [
              {
                obbFile: {obb: {}, obbFileName: ''},
                regularFile: {content: {}, devicePath: ''}
              }
            ],
            networkProfile: '',
            systrace: {durationSeconds: 0}
          },
          testTimeout: ''
        },
        timestamp: '',
        toolResultsStep: {executionId: '', historyId: '', projectId: '', stepId: ''}
      }
    ],
    testMatrixId: '',
    testSpecification: {},
    timestamp: ''
  },
  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/projects/:projectId/testMatrices');

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

req.type('json');
req.send({
  clientInfo: {
    clientInfoDetails: [
      {
        key: '',
        value: ''
      }
    ],
    name: ''
  },
  environmentMatrix: {
    androidDeviceList: {
      androidDevices: [
        {
          androidModelId: '',
          androidVersionId: '',
          locale: '',
          orientation: ''
        }
      ]
    },
    androidMatrix: {
      androidModelIds: [],
      androidVersionIds: [],
      locales: [],
      orientations: []
    },
    iosDeviceList: {
      iosDevices: [
        {
          iosModelId: '',
          iosVersionId: '',
          locale: '',
          orientation: ''
        }
      ]
    }
  },
  failFast: false,
  flakyTestAttempts: 0,
  invalidMatrixDetails: '',
  outcomeSummary: '',
  projectId: '',
  resultStorage: {
    googleCloudStorage: {
      gcsPath: ''
    },
    resultsUrl: '',
    toolResultsExecution: {
      executionId: '',
      historyId: '',
      projectId: ''
    },
    toolResultsHistory: {
      historyId: '',
      projectId: ''
    }
  },
  state: '',
  testExecutions: [
    {
      environment: {
        androidDevice: {},
        iosDevice: {}
      },
      id: '',
      matrixId: '',
      projectId: '',
      shard: {
        numShards: 0,
        shardIndex: 0,
        testTargetsForShard: {
          testTargets: []
        }
      },
      state: '',
      testDetails: {
        errorMessage: '',
        progressMessages: []
      },
      testSpecification: {
        androidInstrumentationTest: {
          appApk: {
            gcsPath: ''
          },
          appBundle: {
            bundleLocation: {}
          },
          appPackageId: '',
          orchestratorOption: '',
          shardingOption: {
            manualSharding: {
              testTargetsForShard: [
                {}
              ]
            },
            uniformSharding: {
              numShards: 0
            }
          },
          testApk: {},
          testPackageId: '',
          testRunnerClass: '',
          testTargets: []
        },
        androidRoboTest: {
          appApk: {},
          appBundle: {},
          appInitialActivity: '',
          appPackageId: '',
          maxDepth: 0,
          maxSteps: 0,
          roboDirectives: [
            {
              actionType: '',
              inputText: '',
              resourceName: ''
            }
          ],
          roboMode: '',
          roboScript: {},
          startingIntents: [
            {
              launcherActivity: {},
              startActivity: {
                action: '',
                categories: [],
                uri: ''
              },
              timeout: ''
            }
          ]
        },
        androidTestLoop: {
          appApk: {},
          appBundle: {},
          appPackageId: '',
          scenarioLabels: [],
          scenarios: []
        },
        disablePerformanceMetrics: false,
        disableVideoRecording: false,
        iosTestLoop: {
          appBundleId: '',
          appIpa: {},
          scenarios: []
        },
        iosTestSetup: {
          additionalIpas: [
            {}
          ],
          networkProfile: '',
          pullDirectories: [
            {
              bundleId: '',
              content: {},
              devicePath: ''
            }
          ],
          pushFiles: [
            {}
          ]
        },
        iosXcTest: {
          appBundleId: '',
          testSpecialEntitlements: false,
          testsZip: {},
          xcodeVersion: '',
          xctestrun: {}
        },
        testSetup: {
          account: {
            googleAuto: {}
          },
          additionalApks: [
            {
              location: {},
              packageName: ''
            }
          ],
          directoriesToPull: [],
          dontAutograntPermissions: false,
          environmentVariables: [
            {
              key: '',
              value: ''
            }
          ],
          filesToPush: [
            {
              obbFile: {
                obb: {},
                obbFileName: ''
              },
              regularFile: {
                content: {},
                devicePath: ''
              }
            }
          ],
          networkProfile: '',
          systrace: {
            durationSeconds: 0
          }
        },
        testTimeout: ''
      },
      timestamp: '',
      toolResultsStep: {
        executionId: '',
        historyId: '',
        projectId: '',
        stepId: ''
      }
    }
  ],
  testMatrixId: '',
  testSpecification: {},
  timestamp: ''
});

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/projects/:projectId/testMatrices',
  headers: {'content-type': 'application/json'},
  data: {
    clientInfo: {clientInfoDetails: [{key: '', value: ''}], name: ''},
    environmentMatrix: {
      androidDeviceList: {
        androidDevices: [{androidModelId: '', androidVersionId: '', locale: '', orientation: ''}]
      },
      androidMatrix: {androidModelIds: [], androidVersionIds: [], locales: [], orientations: []},
      iosDeviceList: {iosDevices: [{iosModelId: '', iosVersionId: '', locale: '', orientation: ''}]}
    },
    failFast: false,
    flakyTestAttempts: 0,
    invalidMatrixDetails: '',
    outcomeSummary: '',
    projectId: '',
    resultStorage: {
      googleCloudStorage: {gcsPath: ''},
      resultsUrl: '',
      toolResultsExecution: {executionId: '', historyId: '', projectId: ''},
      toolResultsHistory: {historyId: '', projectId: ''}
    },
    state: '',
    testExecutions: [
      {
        environment: {androidDevice: {}, iosDevice: {}},
        id: '',
        matrixId: '',
        projectId: '',
        shard: {numShards: 0, shardIndex: 0, testTargetsForShard: {testTargets: []}},
        state: '',
        testDetails: {errorMessage: '', progressMessages: []},
        testSpecification: {
          androidInstrumentationTest: {
            appApk: {gcsPath: ''},
            appBundle: {bundleLocation: {}},
            appPackageId: '',
            orchestratorOption: '',
            shardingOption: {manualSharding: {testTargetsForShard: [{}]}, uniformSharding: {numShards: 0}},
            testApk: {},
            testPackageId: '',
            testRunnerClass: '',
            testTargets: []
          },
          androidRoboTest: {
            appApk: {},
            appBundle: {},
            appInitialActivity: '',
            appPackageId: '',
            maxDepth: 0,
            maxSteps: 0,
            roboDirectives: [{actionType: '', inputText: '', resourceName: ''}],
            roboMode: '',
            roboScript: {},
            startingIntents: [
              {
                launcherActivity: {},
                startActivity: {action: '', categories: [], uri: ''},
                timeout: ''
              }
            ]
          },
          androidTestLoop: {appApk: {}, appBundle: {}, appPackageId: '', scenarioLabels: [], scenarios: []},
          disablePerformanceMetrics: false,
          disableVideoRecording: false,
          iosTestLoop: {appBundleId: '', appIpa: {}, scenarios: []},
          iosTestSetup: {
            additionalIpas: [{}],
            networkProfile: '',
            pullDirectories: [{bundleId: '', content: {}, devicePath: ''}],
            pushFiles: [{}]
          },
          iosXcTest: {
            appBundleId: '',
            testSpecialEntitlements: false,
            testsZip: {},
            xcodeVersion: '',
            xctestrun: {}
          },
          testSetup: {
            account: {googleAuto: {}},
            additionalApks: [{location: {}, packageName: ''}],
            directoriesToPull: [],
            dontAutograntPermissions: false,
            environmentVariables: [{key: '', value: ''}],
            filesToPush: [
              {
                obbFile: {obb: {}, obbFileName: ''},
                regularFile: {content: {}, devicePath: ''}
              }
            ],
            networkProfile: '',
            systrace: {durationSeconds: 0}
          },
          testTimeout: ''
        },
        timestamp: '',
        toolResultsStep: {executionId: '', historyId: '', projectId: '', stepId: ''}
      }
    ],
    testMatrixId: '',
    testSpecification: {},
    timestamp: ''
  }
};

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

const url = '{{baseUrl}}/v1/projects/:projectId/testMatrices';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"clientInfo":{"clientInfoDetails":[{"key":"","value":""}],"name":""},"environmentMatrix":{"androidDeviceList":{"androidDevices":[{"androidModelId":"","androidVersionId":"","locale":"","orientation":""}]},"androidMatrix":{"androidModelIds":[],"androidVersionIds":[],"locales":[],"orientations":[]},"iosDeviceList":{"iosDevices":[{"iosModelId":"","iosVersionId":"","locale":"","orientation":""}]}},"failFast":false,"flakyTestAttempts":0,"invalidMatrixDetails":"","outcomeSummary":"","projectId":"","resultStorage":{"googleCloudStorage":{"gcsPath":""},"resultsUrl":"","toolResultsExecution":{"executionId":"","historyId":"","projectId":""},"toolResultsHistory":{"historyId":"","projectId":""}},"state":"","testExecutions":[{"environment":{"androidDevice":{},"iosDevice":{}},"id":"","matrixId":"","projectId":"","shard":{"numShards":0,"shardIndex":0,"testTargetsForShard":{"testTargets":[]}},"state":"","testDetails":{"errorMessage":"","progressMessages":[]},"testSpecification":{"androidInstrumentationTest":{"appApk":{"gcsPath":""},"appBundle":{"bundleLocation":{}},"appPackageId":"","orchestratorOption":"","shardingOption":{"manualSharding":{"testTargetsForShard":[{}]},"uniformSharding":{"numShards":0}},"testApk":{},"testPackageId":"","testRunnerClass":"","testTargets":[]},"androidRoboTest":{"appApk":{},"appBundle":{},"appInitialActivity":"","appPackageId":"","maxDepth":0,"maxSteps":0,"roboDirectives":[{"actionType":"","inputText":"","resourceName":""}],"roboMode":"","roboScript":{},"startingIntents":[{"launcherActivity":{},"startActivity":{"action":"","categories":[],"uri":""},"timeout":""}]},"androidTestLoop":{"appApk":{},"appBundle":{},"appPackageId":"","scenarioLabels":[],"scenarios":[]},"disablePerformanceMetrics":false,"disableVideoRecording":false,"iosTestLoop":{"appBundleId":"","appIpa":{},"scenarios":[]},"iosTestSetup":{"additionalIpas":[{}],"networkProfile":"","pullDirectories":[{"bundleId":"","content":{},"devicePath":""}],"pushFiles":[{}]},"iosXcTest":{"appBundleId":"","testSpecialEntitlements":false,"testsZip":{},"xcodeVersion":"","xctestrun":{}},"testSetup":{"account":{"googleAuto":{}},"additionalApks":[{"location":{},"packageName":""}],"directoriesToPull":[],"dontAutograntPermissions":false,"environmentVariables":[{"key":"","value":""}],"filesToPush":[{"obbFile":{"obb":{},"obbFileName":""},"regularFile":{"content":{},"devicePath":""}}],"networkProfile":"","systrace":{"durationSeconds":0}},"testTimeout":""},"timestamp":"","toolResultsStep":{"executionId":"","historyId":"","projectId":"","stepId":""}}],"testMatrixId":"","testSpecification":{},"timestamp":""}'
};

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 = @{ @"clientInfo": @{ @"clientInfoDetails": @[ @{ @"key": @"", @"value": @"" } ], @"name": @"" },
                              @"environmentMatrix": @{ @"androidDeviceList": @{ @"androidDevices": @[ @{ @"androidModelId": @"", @"androidVersionId": @"", @"locale": @"", @"orientation": @"" } ] }, @"androidMatrix": @{ @"androidModelIds": @[  ], @"androidVersionIds": @[  ], @"locales": @[  ], @"orientations": @[  ] }, @"iosDeviceList": @{ @"iosDevices": @[ @{ @"iosModelId": @"", @"iosVersionId": @"", @"locale": @"", @"orientation": @"" } ] } },
                              @"failFast": @NO,
                              @"flakyTestAttempts": @0,
                              @"invalidMatrixDetails": @"",
                              @"outcomeSummary": @"",
                              @"projectId": @"",
                              @"resultStorage": @{ @"googleCloudStorage": @{ @"gcsPath": @"" }, @"resultsUrl": @"", @"toolResultsExecution": @{ @"executionId": @"", @"historyId": @"", @"projectId": @"" }, @"toolResultsHistory": @{ @"historyId": @"", @"projectId": @"" } },
                              @"state": @"",
                              @"testExecutions": @[ @{ @"environment": @{ @"androidDevice": @{  }, @"iosDevice": @{  } }, @"id": @"", @"matrixId": @"", @"projectId": @"", @"shard": @{ @"numShards": @0, @"shardIndex": @0, @"testTargetsForShard": @{ @"testTargets": @[  ] } }, @"state": @"", @"testDetails": @{ @"errorMessage": @"", @"progressMessages": @[  ] }, @"testSpecification": @{ @"androidInstrumentationTest": @{ @"appApk": @{ @"gcsPath": @"" }, @"appBundle": @{ @"bundleLocation": @{  } }, @"appPackageId": @"", @"orchestratorOption": @"", @"shardingOption": @{ @"manualSharding": @{ @"testTargetsForShard": @[ @{  } ] }, @"uniformSharding": @{ @"numShards": @0 } }, @"testApk": @{  }, @"testPackageId": @"", @"testRunnerClass": @"", @"testTargets": @[  ] }, @"androidRoboTest": @{ @"appApk": @{  }, @"appBundle": @{  }, @"appInitialActivity": @"", @"appPackageId": @"", @"maxDepth": @0, @"maxSteps": @0, @"roboDirectives": @[ @{ @"actionType": @"", @"inputText": @"", @"resourceName": @"" } ], @"roboMode": @"", @"roboScript": @{  }, @"startingIntents": @[ @{ @"launcherActivity": @{  }, @"startActivity": @{ @"action": @"", @"categories": @[  ], @"uri": @"" }, @"timeout": @"" } ] }, @"androidTestLoop": @{ @"appApk": @{  }, @"appBundle": @{  }, @"appPackageId": @"", @"scenarioLabels": @[  ], @"scenarios": @[  ] }, @"disablePerformanceMetrics": @NO, @"disableVideoRecording": @NO, @"iosTestLoop": @{ @"appBundleId": @"", @"appIpa": @{  }, @"scenarios": @[  ] }, @"iosTestSetup": @{ @"additionalIpas": @[ @{  } ], @"networkProfile": @"", @"pullDirectories": @[ @{ @"bundleId": @"", @"content": @{  }, @"devicePath": @"" } ], @"pushFiles": @[ @{  } ] }, @"iosXcTest": @{ @"appBundleId": @"", @"testSpecialEntitlements": @NO, @"testsZip": @{  }, @"xcodeVersion": @"", @"xctestrun": @{  } }, @"testSetup": @{ @"account": @{ @"googleAuto": @{  } }, @"additionalApks": @[ @{ @"location": @{  }, @"packageName": @"" } ], @"directoriesToPull": @[  ], @"dontAutograntPermissions": @NO, @"environmentVariables": @[ @{ @"key": @"", @"value": @"" } ], @"filesToPush": @[ @{ @"obbFile": @{ @"obb": @{  }, @"obbFileName": @"" }, @"regularFile": @{ @"content": @{  }, @"devicePath": @"" } } ], @"networkProfile": @"", @"systrace": @{ @"durationSeconds": @0 } }, @"testTimeout": @"" }, @"timestamp": @"", @"toolResultsStep": @{ @"executionId": @"", @"historyId": @"", @"projectId": @"", @"stepId": @"" } } ],
                              @"testMatrixId": @"",
                              @"testSpecification": @{  },
                              @"timestamp": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/projects/:projectId/testMatrices"]
                                                       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/projects/:projectId/testMatrices" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/projects/:projectId/testMatrices",
  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([
    'clientInfo' => [
        'clientInfoDetails' => [
                [
                                'key' => '',
                                'value' => ''
                ]
        ],
        'name' => ''
    ],
    'environmentMatrix' => [
        'androidDeviceList' => [
                'androidDevices' => [
                                [
                                                                'androidModelId' => '',
                                                                'androidVersionId' => '',
                                                                'locale' => '',
                                                                'orientation' => ''
                                ]
                ]
        ],
        'androidMatrix' => [
                'androidModelIds' => [
                                
                ],
                'androidVersionIds' => [
                                
                ],
                'locales' => [
                                
                ],
                'orientations' => [
                                
                ]
        ],
        'iosDeviceList' => [
                'iosDevices' => [
                                [
                                                                'iosModelId' => '',
                                                                'iosVersionId' => '',
                                                                'locale' => '',
                                                                'orientation' => ''
                                ]
                ]
        ]
    ],
    'failFast' => null,
    'flakyTestAttempts' => 0,
    'invalidMatrixDetails' => '',
    'outcomeSummary' => '',
    'projectId' => '',
    'resultStorage' => [
        'googleCloudStorage' => [
                'gcsPath' => ''
        ],
        'resultsUrl' => '',
        'toolResultsExecution' => [
                'executionId' => '',
                'historyId' => '',
                'projectId' => ''
        ],
        'toolResultsHistory' => [
                'historyId' => '',
                'projectId' => ''
        ]
    ],
    'state' => '',
    'testExecutions' => [
        [
                'environment' => [
                                'androidDevice' => [
                                                                
                                ],
                                'iosDevice' => [
                                                                
                                ]
                ],
                'id' => '',
                'matrixId' => '',
                'projectId' => '',
                'shard' => [
                                'numShards' => 0,
                                'shardIndex' => 0,
                                'testTargetsForShard' => [
                                                                'testTargets' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'state' => '',
                'testDetails' => [
                                'errorMessage' => '',
                                'progressMessages' => [
                                                                
                                ]
                ],
                'testSpecification' => [
                                'androidInstrumentationTest' => [
                                                                'appApk' => [
                                                                                                                                'gcsPath' => ''
                                                                ],
                                                                'appBundle' => [
                                                                                                                                'bundleLocation' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'appPackageId' => '',
                                                                'orchestratorOption' => '',
                                                                'shardingOption' => [
                                                                                                                                'manualSharding' => [
                                                                                                                                                                                                                                                                'testTargetsForShard' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'uniformSharding' => [
                                                                                                                                                                                                                                                                'numShards' => 0
                                                                                                                                ]
                                                                ],
                                                                'testApk' => [
                                                                                                                                
                                                                ],
                                                                'testPackageId' => '',
                                                                'testRunnerClass' => '',
                                                                'testTargets' => [
                                                                                                                                
                                                                ]
                                ],
                                'androidRoboTest' => [
                                                                'appApk' => [
                                                                                                                                
                                                                ],
                                                                'appBundle' => [
                                                                                                                                
                                                                ],
                                                                'appInitialActivity' => '',
                                                                'appPackageId' => '',
                                                                'maxDepth' => 0,
                                                                'maxSteps' => 0,
                                                                'roboDirectives' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'actionType' => '',
                                                                                                                                                                                                                                                                'inputText' => '',
                                                                                                                                                                                                                                                                'resourceName' => ''
                                                                                                                                ]
                                                                ],
                                                                'roboMode' => '',
                                                                'roboScript' => [
                                                                                                                                
                                                                ],
                                                                'startingIntents' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'launcherActivity' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'startActivity' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'action' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'categories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'timeout' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'androidTestLoop' => [
                                                                'appApk' => [
                                                                                                                                
                                                                ],
                                                                'appBundle' => [
                                                                                                                                
                                                                ],
                                                                'appPackageId' => '',
                                                                'scenarioLabels' => [
                                                                                                                                
                                                                ],
                                                                'scenarios' => [
                                                                                                                                
                                                                ]
                                ],
                                'disablePerformanceMetrics' => null,
                                'disableVideoRecording' => null,
                                'iosTestLoop' => [
                                                                'appBundleId' => '',
                                                                'appIpa' => [
                                                                                                                                
                                                                ],
                                                                'scenarios' => [
                                                                                                                                
                                                                ]
                                ],
                                'iosTestSetup' => [
                                                                'additionalIpas' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'networkProfile' => '',
                                                                'pullDirectories' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'bundleId' => '',
                                                                                                                                                                                                                                                                'content' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'devicePath' => ''
                                                                                                                                ]
                                                                ],
                                                                'pushFiles' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'iosXcTest' => [
                                                                'appBundleId' => '',
                                                                'testSpecialEntitlements' => null,
                                                                'testsZip' => [
                                                                                                                                
                                                                ],
                                                                'xcodeVersion' => '',
                                                                'xctestrun' => [
                                                                                                                                
                                                                ]
                                ],
                                'testSetup' => [
                                                                'account' => [
                                                                                                                                'googleAuto' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'additionalApks' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'location' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'packageName' => ''
                                                                                                                                ]
                                                                ],
                                                                'directoriesToPull' => [
                                                                                                                                
                                                                ],
                                                                'dontAutograntPermissions' => null,
                                                                'environmentVariables' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'key' => '',
                                                                                                                                                                                                                                                                'value' => ''
                                                                                                                                ]
                                                                ],
                                                                'filesToPush' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'obbFile' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'obb' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'obbFileName' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'regularFile' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'content' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'devicePath' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'networkProfile' => '',
                                                                'systrace' => [
                                                                                                                                'durationSeconds' => 0
                                                                ]
                                ],
                                'testTimeout' => ''
                ],
                'timestamp' => '',
                'toolResultsStep' => [
                                'executionId' => '',
                                'historyId' => '',
                                'projectId' => '',
                                'stepId' => ''
                ]
        ]
    ],
    'testMatrixId' => '',
    'testSpecification' => [
        
    ],
    'timestamp' => ''
  ]),
  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/projects/:projectId/testMatrices', [
  'body' => '{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'clientInfo' => [
    'clientInfoDetails' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'name' => ''
  ],
  'environmentMatrix' => [
    'androidDeviceList' => [
        'androidDevices' => [
                [
                                'androidModelId' => '',
                                'androidVersionId' => '',
                                'locale' => '',
                                'orientation' => ''
                ]
        ]
    ],
    'androidMatrix' => [
        'androidModelIds' => [
                
        ],
        'androidVersionIds' => [
                
        ],
        'locales' => [
                
        ],
        'orientations' => [
                
        ]
    ],
    'iosDeviceList' => [
        'iosDevices' => [
                [
                                'iosModelId' => '',
                                'iosVersionId' => '',
                                'locale' => '',
                                'orientation' => ''
                ]
        ]
    ]
  ],
  'failFast' => null,
  'flakyTestAttempts' => 0,
  'invalidMatrixDetails' => '',
  'outcomeSummary' => '',
  'projectId' => '',
  'resultStorage' => [
    'googleCloudStorage' => [
        'gcsPath' => ''
    ],
    'resultsUrl' => '',
    'toolResultsExecution' => [
        'executionId' => '',
        'historyId' => '',
        'projectId' => ''
    ],
    'toolResultsHistory' => [
        'historyId' => '',
        'projectId' => ''
    ]
  ],
  'state' => '',
  'testExecutions' => [
    [
        'environment' => [
                'androidDevice' => [
                                
                ],
                'iosDevice' => [
                                
                ]
        ],
        'id' => '',
        'matrixId' => '',
        'projectId' => '',
        'shard' => [
                'numShards' => 0,
                'shardIndex' => 0,
                'testTargetsForShard' => [
                                'testTargets' => [
                                                                
                                ]
                ]
        ],
        'state' => '',
        'testDetails' => [
                'errorMessage' => '',
                'progressMessages' => [
                                
                ]
        ],
        'testSpecification' => [
                'androidInstrumentationTest' => [
                                'appApk' => [
                                                                'gcsPath' => ''
                                ],
                                'appBundle' => [
                                                                'bundleLocation' => [
                                                                                                                                
                                                                ]
                                ],
                                'appPackageId' => '',
                                'orchestratorOption' => '',
                                'shardingOption' => [
                                                                'manualSharding' => [
                                                                                                                                'testTargetsForShard' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'uniformSharding' => [
                                                                                                                                'numShards' => 0
                                                                ]
                                ],
                                'testApk' => [
                                                                
                                ],
                                'testPackageId' => '',
                                'testRunnerClass' => '',
                                'testTargets' => [
                                                                
                                ]
                ],
                'androidRoboTest' => [
                                'appApk' => [
                                                                
                                ],
                                'appBundle' => [
                                                                
                                ],
                                'appInitialActivity' => '',
                                'appPackageId' => '',
                                'maxDepth' => 0,
                                'maxSteps' => 0,
                                'roboDirectives' => [
                                                                [
                                                                                                                                'actionType' => '',
                                                                                                                                'inputText' => '',
                                                                                                                                'resourceName' => ''
                                                                ]
                                ],
                                'roboMode' => '',
                                'roboScript' => [
                                                                
                                ],
                                'startingIntents' => [
                                                                [
                                                                                                                                'launcherActivity' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'startActivity' => [
                                                                                                                                                                                                                                                                'action' => '',
                                                                                                                                                                                                                                                                'categories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ],
                                                                                                                                'timeout' => ''
                                                                ]
                                ]
                ],
                'androidTestLoop' => [
                                'appApk' => [
                                                                
                                ],
                                'appBundle' => [
                                                                
                                ],
                                'appPackageId' => '',
                                'scenarioLabels' => [
                                                                
                                ],
                                'scenarios' => [
                                                                
                                ]
                ],
                'disablePerformanceMetrics' => null,
                'disableVideoRecording' => null,
                'iosTestLoop' => [
                                'appBundleId' => '',
                                'appIpa' => [
                                                                
                                ],
                                'scenarios' => [
                                                                
                                ]
                ],
                'iosTestSetup' => [
                                'additionalIpas' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'networkProfile' => '',
                                'pullDirectories' => [
                                                                [
                                                                                                                                'bundleId' => '',
                                                                                                                                'content' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'devicePath' => ''
                                                                ]
                                ],
                                'pushFiles' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'iosXcTest' => [
                                'appBundleId' => '',
                                'testSpecialEntitlements' => null,
                                'testsZip' => [
                                                                
                                ],
                                'xcodeVersion' => '',
                                'xctestrun' => [
                                                                
                                ]
                ],
                'testSetup' => [
                                'account' => [
                                                                'googleAuto' => [
                                                                                                                                
                                                                ]
                                ],
                                'additionalApks' => [
                                                                [
                                                                                                                                'location' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'packageName' => ''
                                                                ]
                                ],
                                'directoriesToPull' => [
                                                                
                                ],
                                'dontAutograntPermissions' => null,
                                'environmentVariables' => [
                                                                [
                                                                                                                                'key' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'filesToPush' => [
                                                                [
                                                                                                                                'obbFile' => [
                                                                                                                                                                                                                                                                'obb' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'obbFileName' => ''
                                                                                                                                ],
                                                                                                                                'regularFile' => [
                                                                                                                                                                                                                                                                'content' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'devicePath' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'networkProfile' => '',
                                'systrace' => [
                                                                'durationSeconds' => 0
                                ]
                ],
                'testTimeout' => ''
        ],
        'timestamp' => '',
        'toolResultsStep' => [
                'executionId' => '',
                'historyId' => '',
                'projectId' => '',
                'stepId' => ''
        ]
    ]
  ],
  'testMatrixId' => '',
  'testSpecification' => [
    
  ],
  'timestamp' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'clientInfo' => [
    'clientInfoDetails' => [
        [
                'key' => '',
                'value' => ''
        ]
    ],
    'name' => ''
  ],
  'environmentMatrix' => [
    'androidDeviceList' => [
        'androidDevices' => [
                [
                                'androidModelId' => '',
                                'androidVersionId' => '',
                                'locale' => '',
                                'orientation' => ''
                ]
        ]
    ],
    'androidMatrix' => [
        'androidModelIds' => [
                
        ],
        'androidVersionIds' => [
                
        ],
        'locales' => [
                
        ],
        'orientations' => [
                
        ]
    ],
    'iosDeviceList' => [
        'iosDevices' => [
                [
                                'iosModelId' => '',
                                'iosVersionId' => '',
                                'locale' => '',
                                'orientation' => ''
                ]
        ]
    ]
  ],
  'failFast' => null,
  'flakyTestAttempts' => 0,
  'invalidMatrixDetails' => '',
  'outcomeSummary' => '',
  'projectId' => '',
  'resultStorage' => [
    'googleCloudStorage' => [
        'gcsPath' => ''
    ],
    'resultsUrl' => '',
    'toolResultsExecution' => [
        'executionId' => '',
        'historyId' => '',
        'projectId' => ''
    ],
    'toolResultsHistory' => [
        'historyId' => '',
        'projectId' => ''
    ]
  ],
  'state' => '',
  'testExecutions' => [
    [
        'environment' => [
                'androidDevice' => [
                                
                ],
                'iosDevice' => [
                                
                ]
        ],
        'id' => '',
        'matrixId' => '',
        'projectId' => '',
        'shard' => [
                'numShards' => 0,
                'shardIndex' => 0,
                'testTargetsForShard' => [
                                'testTargets' => [
                                                                
                                ]
                ]
        ],
        'state' => '',
        'testDetails' => [
                'errorMessage' => '',
                'progressMessages' => [
                                
                ]
        ],
        'testSpecification' => [
                'androidInstrumentationTest' => [
                                'appApk' => [
                                                                'gcsPath' => ''
                                ],
                                'appBundle' => [
                                                                'bundleLocation' => [
                                                                                                                                
                                                                ]
                                ],
                                'appPackageId' => '',
                                'orchestratorOption' => '',
                                'shardingOption' => [
                                                                'manualSharding' => [
                                                                                                                                'testTargetsForShard' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'uniformSharding' => [
                                                                                                                                'numShards' => 0
                                                                ]
                                ],
                                'testApk' => [
                                                                
                                ],
                                'testPackageId' => '',
                                'testRunnerClass' => '',
                                'testTargets' => [
                                                                
                                ]
                ],
                'androidRoboTest' => [
                                'appApk' => [
                                                                
                                ],
                                'appBundle' => [
                                                                
                                ],
                                'appInitialActivity' => '',
                                'appPackageId' => '',
                                'maxDepth' => 0,
                                'maxSteps' => 0,
                                'roboDirectives' => [
                                                                [
                                                                                                                                'actionType' => '',
                                                                                                                                'inputText' => '',
                                                                                                                                'resourceName' => ''
                                                                ]
                                ],
                                'roboMode' => '',
                                'roboScript' => [
                                                                
                                ],
                                'startingIntents' => [
                                                                [
                                                                                                                                'launcherActivity' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'startActivity' => [
                                                                                                                                                                                                                                                                'action' => '',
                                                                                                                                                                                                                                                                'categories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ],
                                                                                                                                'timeout' => ''
                                                                ]
                                ]
                ],
                'androidTestLoop' => [
                                'appApk' => [
                                                                
                                ],
                                'appBundle' => [
                                                                
                                ],
                                'appPackageId' => '',
                                'scenarioLabels' => [
                                                                
                                ],
                                'scenarios' => [
                                                                
                                ]
                ],
                'disablePerformanceMetrics' => null,
                'disableVideoRecording' => null,
                'iosTestLoop' => [
                                'appBundleId' => '',
                                'appIpa' => [
                                                                
                                ],
                                'scenarios' => [
                                                                
                                ]
                ],
                'iosTestSetup' => [
                                'additionalIpas' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'networkProfile' => '',
                                'pullDirectories' => [
                                                                [
                                                                                                                                'bundleId' => '',
                                                                                                                                'content' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'devicePath' => ''
                                                                ]
                                ],
                                'pushFiles' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'iosXcTest' => [
                                'appBundleId' => '',
                                'testSpecialEntitlements' => null,
                                'testsZip' => [
                                                                
                                ],
                                'xcodeVersion' => '',
                                'xctestrun' => [
                                                                
                                ]
                ],
                'testSetup' => [
                                'account' => [
                                                                'googleAuto' => [
                                                                                                                                
                                                                ]
                                ],
                                'additionalApks' => [
                                                                [
                                                                                                                                'location' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'packageName' => ''
                                                                ]
                                ],
                                'directoriesToPull' => [
                                                                
                                ],
                                'dontAutograntPermissions' => null,
                                'environmentVariables' => [
                                                                [
                                                                                                                                'key' => '',
                                                                                                                                'value' => ''
                                                                ]
                                ],
                                'filesToPush' => [
                                                                [
                                                                                                                                'obbFile' => [
                                                                                                                                                                                                                                                                'obb' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'obbFileName' => ''
                                                                                                                                ],
                                                                                                                                'regularFile' => [
                                                                                                                                                                                                                                                                'content' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'devicePath' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'networkProfile' => '',
                                'systrace' => [
                                                                'durationSeconds' => 0
                                ]
                ],
                'testTimeout' => ''
        ],
        'timestamp' => '',
        'toolResultsStep' => [
                'executionId' => '',
                'historyId' => '',
                'projectId' => '',
                'stepId' => ''
        ]
    ]
  ],
  'testMatrixId' => '',
  'testSpecification' => [
    
  ],
  'timestamp' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v1/projects/:projectId/testMatrices');
$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/projects/:projectId/testMatrices' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/projects/:projectId/testMatrices' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}'
import http.client

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

payload = "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v1/projects/:projectId/testMatrices", payload, headers)

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

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

url = "{{baseUrl}}/v1/projects/:projectId/testMatrices"

payload = {
    "clientInfo": {
        "clientInfoDetails": [
            {
                "key": "",
                "value": ""
            }
        ],
        "name": ""
    },
    "environmentMatrix": {
        "androidDeviceList": { "androidDevices": [
                {
                    "androidModelId": "",
                    "androidVersionId": "",
                    "locale": "",
                    "orientation": ""
                }
            ] },
        "androidMatrix": {
            "androidModelIds": [],
            "androidVersionIds": [],
            "locales": [],
            "orientations": []
        },
        "iosDeviceList": { "iosDevices": [
                {
                    "iosModelId": "",
                    "iosVersionId": "",
                    "locale": "",
                    "orientation": ""
                }
            ] }
    },
    "failFast": False,
    "flakyTestAttempts": 0,
    "invalidMatrixDetails": "",
    "outcomeSummary": "",
    "projectId": "",
    "resultStorage": {
        "googleCloudStorage": { "gcsPath": "" },
        "resultsUrl": "",
        "toolResultsExecution": {
            "executionId": "",
            "historyId": "",
            "projectId": ""
        },
        "toolResultsHistory": {
            "historyId": "",
            "projectId": ""
        }
    },
    "state": "",
    "testExecutions": [
        {
            "environment": {
                "androidDevice": {},
                "iosDevice": {}
            },
            "id": "",
            "matrixId": "",
            "projectId": "",
            "shard": {
                "numShards": 0,
                "shardIndex": 0,
                "testTargetsForShard": { "testTargets": [] }
            },
            "state": "",
            "testDetails": {
                "errorMessage": "",
                "progressMessages": []
            },
            "testSpecification": {
                "androidInstrumentationTest": {
                    "appApk": { "gcsPath": "" },
                    "appBundle": { "bundleLocation": {} },
                    "appPackageId": "",
                    "orchestratorOption": "",
                    "shardingOption": {
                        "manualSharding": { "testTargetsForShard": [{}] },
                        "uniformSharding": { "numShards": 0 }
                    },
                    "testApk": {},
                    "testPackageId": "",
                    "testRunnerClass": "",
                    "testTargets": []
                },
                "androidRoboTest": {
                    "appApk": {},
                    "appBundle": {},
                    "appInitialActivity": "",
                    "appPackageId": "",
                    "maxDepth": 0,
                    "maxSteps": 0,
                    "roboDirectives": [
                        {
                            "actionType": "",
                            "inputText": "",
                            "resourceName": ""
                        }
                    ],
                    "roboMode": "",
                    "roboScript": {},
                    "startingIntents": [
                        {
                            "launcherActivity": {},
                            "startActivity": {
                                "action": "",
                                "categories": [],
                                "uri": ""
                            },
                            "timeout": ""
                        }
                    ]
                },
                "androidTestLoop": {
                    "appApk": {},
                    "appBundle": {},
                    "appPackageId": "",
                    "scenarioLabels": [],
                    "scenarios": []
                },
                "disablePerformanceMetrics": False,
                "disableVideoRecording": False,
                "iosTestLoop": {
                    "appBundleId": "",
                    "appIpa": {},
                    "scenarios": []
                },
                "iosTestSetup": {
                    "additionalIpas": [{}],
                    "networkProfile": "",
                    "pullDirectories": [
                        {
                            "bundleId": "",
                            "content": {},
                            "devicePath": ""
                        }
                    ],
                    "pushFiles": [{}]
                },
                "iosXcTest": {
                    "appBundleId": "",
                    "testSpecialEntitlements": False,
                    "testsZip": {},
                    "xcodeVersion": "",
                    "xctestrun": {}
                },
                "testSetup": {
                    "account": { "googleAuto": {} },
                    "additionalApks": [
                        {
                            "location": {},
                            "packageName": ""
                        }
                    ],
                    "directoriesToPull": [],
                    "dontAutograntPermissions": False,
                    "environmentVariables": [
                        {
                            "key": "",
                            "value": ""
                        }
                    ],
                    "filesToPush": [
                        {
                            "obbFile": {
                                "obb": {},
                                "obbFileName": ""
                            },
                            "regularFile": {
                                "content": {},
                                "devicePath": ""
                            }
                        }
                    ],
                    "networkProfile": "",
                    "systrace": { "durationSeconds": 0 }
                },
                "testTimeout": ""
            },
            "timestamp": "",
            "toolResultsStep": {
                "executionId": "",
                "historyId": "",
                "projectId": "",
                "stepId": ""
            }
        }
    ],
    "testMatrixId": "",
    "testSpecification": {},
    "timestamp": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/projects/:projectId/testMatrices"

payload <- "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\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/projects/:projectId/testMatrices")

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  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\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/projects/:projectId/testMatrices') do |req|
  req.body = "{\n  \"clientInfo\": {\n    \"clientInfoDetails\": [\n      {\n        \"key\": \"\",\n        \"value\": \"\"\n      }\n    ],\n    \"name\": \"\"\n  },\n  \"environmentMatrix\": {\n    \"androidDeviceList\": {\n      \"androidDevices\": [\n        {\n          \"androidModelId\": \"\",\n          \"androidVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    },\n    \"androidMatrix\": {\n      \"androidModelIds\": [],\n      \"androidVersionIds\": [],\n      \"locales\": [],\n      \"orientations\": []\n    },\n    \"iosDeviceList\": {\n      \"iosDevices\": [\n        {\n          \"iosModelId\": \"\",\n          \"iosVersionId\": \"\",\n          \"locale\": \"\",\n          \"orientation\": \"\"\n        }\n      ]\n    }\n  },\n  \"failFast\": false,\n  \"flakyTestAttempts\": 0,\n  \"invalidMatrixDetails\": \"\",\n  \"outcomeSummary\": \"\",\n  \"projectId\": \"\",\n  \"resultStorage\": {\n    \"googleCloudStorage\": {\n      \"gcsPath\": \"\"\n    },\n    \"resultsUrl\": \"\",\n    \"toolResultsExecution\": {\n      \"executionId\": \"\",\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    },\n    \"toolResultsHistory\": {\n      \"historyId\": \"\",\n      \"projectId\": \"\"\n    }\n  },\n  \"state\": \"\",\n  \"testExecutions\": [\n    {\n      \"environment\": {\n        \"androidDevice\": {},\n        \"iosDevice\": {}\n      },\n      \"id\": \"\",\n      \"matrixId\": \"\",\n      \"projectId\": \"\",\n      \"shard\": {\n        \"numShards\": 0,\n        \"shardIndex\": 0,\n        \"testTargetsForShard\": {\n          \"testTargets\": []\n        }\n      },\n      \"state\": \"\",\n      \"testDetails\": {\n        \"errorMessage\": \"\",\n        \"progressMessages\": []\n      },\n      \"testSpecification\": {\n        \"androidInstrumentationTest\": {\n          \"appApk\": {\n            \"gcsPath\": \"\"\n          },\n          \"appBundle\": {\n            \"bundleLocation\": {}\n          },\n          \"appPackageId\": \"\",\n          \"orchestratorOption\": \"\",\n          \"shardingOption\": {\n            \"manualSharding\": {\n              \"testTargetsForShard\": [\n                {}\n              ]\n            },\n            \"uniformSharding\": {\n              \"numShards\": 0\n            }\n          },\n          \"testApk\": {},\n          \"testPackageId\": \"\",\n          \"testRunnerClass\": \"\",\n          \"testTargets\": []\n        },\n        \"androidRoboTest\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appInitialActivity\": \"\",\n          \"appPackageId\": \"\",\n          \"maxDepth\": 0,\n          \"maxSteps\": 0,\n          \"roboDirectives\": [\n            {\n              \"actionType\": \"\",\n              \"inputText\": \"\",\n              \"resourceName\": \"\"\n            }\n          ],\n          \"roboMode\": \"\",\n          \"roboScript\": {},\n          \"startingIntents\": [\n            {\n              \"launcherActivity\": {},\n              \"startActivity\": {\n                \"action\": \"\",\n                \"categories\": [],\n                \"uri\": \"\"\n              },\n              \"timeout\": \"\"\n            }\n          ]\n        },\n        \"androidTestLoop\": {\n          \"appApk\": {},\n          \"appBundle\": {},\n          \"appPackageId\": \"\",\n          \"scenarioLabels\": [],\n          \"scenarios\": []\n        },\n        \"disablePerformanceMetrics\": false,\n        \"disableVideoRecording\": false,\n        \"iosTestLoop\": {\n          \"appBundleId\": \"\",\n          \"appIpa\": {},\n          \"scenarios\": []\n        },\n        \"iosTestSetup\": {\n          \"additionalIpas\": [\n            {}\n          ],\n          \"networkProfile\": \"\",\n          \"pullDirectories\": [\n            {\n              \"bundleId\": \"\",\n              \"content\": {},\n              \"devicePath\": \"\"\n            }\n          ],\n          \"pushFiles\": [\n            {}\n          ]\n        },\n        \"iosXcTest\": {\n          \"appBundleId\": \"\",\n          \"testSpecialEntitlements\": false,\n          \"testsZip\": {},\n          \"xcodeVersion\": \"\",\n          \"xctestrun\": {}\n        },\n        \"testSetup\": {\n          \"account\": {\n            \"googleAuto\": {}\n          },\n          \"additionalApks\": [\n            {\n              \"location\": {},\n              \"packageName\": \"\"\n            }\n          ],\n          \"directoriesToPull\": [],\n          \"dontAutograntPermissions\": false,\n          \"environmentVariables\": [\n            {\n              \"key\": \"\",\n              \"value\": \"\"\n            }\n          ],\n          \"filesToPush\": [\n            {\n              \"obbFile\": {\n                \"obb\": {},\n                \"obbFileName\": \"\"\n              },\n              \"regularFile\": {\n                \"content\": {},\n                \"devicePath\": \"\"\n              }\n            }\n          ],\n          \"networkProfile\": \"\",\n          \"systrace\": {\n            \"durationSeconds\": 0\n          }\n        },\n        \"testTimeout\": \"\"\n      },\n      \"timestamp\": \"\",\n      \"toolResultsStep\": {\n        \"executionId\": \"\",\n        \"historyId\": \"\",\n        \"projectId\": \"\",\n        \"stepId\": \"\"\n      }\n    }\n  ],\n  \"testMatrixId\": \"\",\n  \"testSpecification\": {},\n  \"timestamp\": \"\"\n}"
end

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

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

    let payload = json!({
        "clientInfo": json!({
            "clientInfoDetails": (
                json!({
                    "key": "",
                    "value": ""
                })
            ),
            "name": ""
        }),
        "environmentMatrix": json!({
            "androidDeviceList": json!({"androidDevices": (
                    json!({
                        "androidModelId": "",
                        "androidVersionId": "",
                        "locale": "",
                        "orientation": ""
                    })
                )}),
            "androidMatrix": json!({
                "androidModelIds": (),
                "androidVersionIds": (),
                "locales": (),
                "orientations": ()
            }),
            "iosDeviceList": json!({"iosDevices": (
                    json!({
                        "iosModelId": "",
                        "iosVersionId": "",
                        "locale": "",
                        "orientation": ""
                    })
                )})
        }),
        "failFast": false,
        "flakyTestAttempts": 0,
        "invalidMatrixDetails": "",
        "outcomeSummary": "",
        "projectId": "",
        "resultStorage": json!({
            "googleCloudStorage": json!({"gcsPath": ""}),
            "resultsUrl": "",
            "toolResultsExecution": json!({
                "executionId": "",
                "historyId": "",
                "projectId": ""
            }),
            "toolResultsHistory": json!({
                "historyId": "",
                "projectId": ""
            })
        }),
        "state": "",
        "testExecutions": (
            json!({
                "environment": json!({
                    "androidDevice": json!({}),
                    "iosDevice": json!({})
                }),
                "id": "",
                "matrixId": "",
                "projectId": "",
                "shard": json!({
                    "numShards": 0,
                    "shardIndex": 0,
                    "testTargetsForShard": json!({"testTargets": ()})
                }),
                "state": "",
                "testDetails": json!({
                    "errorMessage": "",
                    "progressMessages": ()
                }),
                "testSpecification": json!({
                    "androidInstrumentationTest": json!({
                        "appApk": json!({"gcsPath": ""}),
                        "appBundle": json!({"bundleLocation": json!({})}),
                        "appPackageId": "",
                        "orchestratorOption": "",
                        "shardingOption": json!({
                            "manualSharding": json!({"testTargetsForShard": (json!({}))}),
                            "uniformSharding": json!({"numShards": 0})
                        }),
                        "testApk": json!({}),
                        "testPackageId": "",
                        "testRunnerClass": "",
                        "testTargets": ()
                    }),
                    "androidRoboTest": json!({
                        "appApk": json!({}),
                        "appBundle": json!({}),
                        "appInitialActivity": "",
                        "appPackageId": "",
                        "maxDepth": 0,
                        "maxSteps": 0,
                        "roboDirectives": (
                            json!({
                                "actionType": "",
                                "inputText": "",
                                "resourceName": ""
                            })
                        ),
                        "roboMode": "",
                        "roboScript": json!({}),
                        "startingIntents": (
                            json!({
                                "launcherActivity": json!({}),
                                "startActivity": json!({
                                    "action": "",
                                    "categories": (),
                                    "uri": ""
                                }),
                                "timeout": ""
                            })
                        )
                    }),
                    "androidTestLoop": json!({
                        "appApk": json!({}),
                        "appBundle": json!({}),
                        "appPackageId": "",
                        "scenarioLabels": (),
                        "scenarios": ()
                    }),
                    "disablePerformanceMetrics": false,
                    "disableVideoRecording": false,
                    "iosTestLoop": json!({
                        "appBundleId": "",
                        "appIpa": json!({}),
                        "scenarios": ()
                    }),
                    "iosTestSetup": json!({
                        "additionalIpas": (json!({})),
                        "networkProfile": "",
                        "pullDirectories": (
                            json!({
                                "bundleId": "",
                                "content": json!({}),
                                "devicePath": ""
                            })
                        ),
                        "pushFiles": (json!({}))
                    }),
                    "iosXcTest": json!({
                        "appBundleId": "",
                        "testSpecialEntitlements": false,
                        "testsZip": json!({}),
                        "xcodeVersion": "",
                        "xctestrun": json!({})
                    }),
                    "testSetup": json!({
                        "account": json!({"googleAuto": json!({})}),
                        "additionalApks": (
                            json!({
                                "location": json!({}),
                                "packageName": ""
                            })
                        ),
                        "directoriesToPull": (),
                        "dontAutograntPermissions": false,
                        "environmentVariables": (
                            json!({
                                "key": "",
                                "value": ""
                            })
                        ),
                        "filesToPush": (
                            json!({
                                "obbFile": json!({
                                    "obb": json!({}),
                                    "obbFileName": ""
                                }),
                                "regularFile": json!({
                                    "content": json!({}),
                                    "devicePath": ""
                                })
                            })
                        ),
                        "networkProfile": "",
                        "systrace": json!({"durationSeconds": 0})
                    }),
                    "testTimeout": ""
                }),
                "timestamp": "",
                "toolResultsStep": json!({
                    "executionId": "",
                    "historyId": "",
                    "projectId": "",
                    "stepId": ""
                })
            })
        ),
        "testMatrixId": "",
        "testSpecification": json!({}),
        "timestamp": ""
    });

    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/projects/:projectId/testMatrices \
  --header 'content-type: application/json' \
  --data '{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}'
echo '{
  "clientInfo": {
    "clientInfoDetails": [
      {
        "key": "",
        "value": ""
      }
    ],
    "name": ""
  },
  "environmentMatrix": {
    "androidDeviceList": {
      "androidDevices": [
        {
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    },
    "androidMatrix": {
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    },
    "iosDeviceList": {
      "iosDevices": [
        {
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        }
      ]
    }
  },
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": {
    "googleCloudStorage": {
      "gcsPath": ""
    },
    "resultsUrl": "",
    "toolResultsExecution": {
      "executionId": "",
      "historyId": "",
      "projectId": ""
    },
    "toolResultsHistory": {
      "historyId": "",
      "projectId": ""
    }
  },
  "state": "",
  "testExecutions": [
    {
      "environment": {
        "androidDevice": {},
        "iosDevice": {}
      },
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": {
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": {
          "testTargets": []
        }
      },
      "state": "",
      "testDetails": {
        "errorMessage": "",
        "progressMessages": []
      },
      "testSpecification": {
        "androidInstrumentationTest": {
          "appApk": {
            "gcsPath": ""
          },
          "appBundle": {
            "bundleLocation": {}
          },
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": {
            "manualSharding": {
              "testTargetsForShard": [
                {}
              ]
            },
            "uniformSharding": {
              "numShards": 0
            }
          },
          "testApk": {},
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        },
        "androidRoboTest": {
          "appApk": {},
          "appBundle": {},
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            {
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            }
          ],
          "roboMode": "",
          "roboScript": {},
          "startingIntents": [
            {
              "launcherActivity": {},
              "startActivity": {
                "action": "",
                "categories": [],
                "uri": ""
              },
              "timeout": ""
            }
          ]
        },
        "androidTestLoop": {
          "appApk": {},
          "appBundle": {},
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        },
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": {
          "appBundleId": "",
          "appIpa": {},
          "scenarios": []
        },
        "iosTestSetup": {
          "additionalIpas": [
            {}
          ],
          "networkProfile": "",
          "pullDirectories": [
            {
              "bundleId": "",
              "content": {},
              "devicePath": ""
            }
          ],
          "pushFiles": [
            {}
          ]
        },
        "iosXcTest": {
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": {},
          "xcodeVersion": "",
          "xctestrun": {}
        },
        "testSetup": {
          "account": {
            "googleAuto": {}
          },
          "additionalApks": [
            {
              "location": {},
              "packageName": ""
            }
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            {
              "key": "",
              "value": ""
            }
          ],
          "filesToPush": [
            {
              "obbFile": {
                "obb": {},
                "obbFileName": ""
              },
              "regularFile": {
                "content": {},
                "devicePath": ""
              }
            }
          ],
          "networkProfile": "",
          "systrace": {
            "durationSeconds": 0
          }
        },
        "testTimeout": ""
      },
      "timestamp": "",
      "toolResultsStep": {
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      }
    }
  ],
  "testMatrixId": "",
  "testSpecification": {},
  "timestamp": ""
}' |  \
  http POST {{baseUrl}}/v1/projects/:projectId/testMatrices \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "clientInfo": {\n    "clientInfoDetails": [\n      {\n        "key": "",\n        "value": ""\n      }\n    ],\n    "name": ""\n  },\n  "environmentMatrix": {\n    "androidDeviceList": {\n      "androidDevices": [\n        {\n          "androidModelId": "",\n          "androidVersionId": "",\n          "locale": "",\n          "orientation": ""\n        }\n      ]\n    },\n    "androidMatrix": {\n      "androidModelIds": [],\n      "androidVersionIds": [],\n      "locales": [],\n      "orientations": []\n    },\n    "iosDeviceList": {\n      "iosDevices": [\n        {\n          "iosModelId": "",\n          "iosVersionId": "",\n          "locale": "",\n          "orientation": ""\n        }\n      ]\n    }\n  },\n  "failFast": false,\n  "flakyTestAttempts": 0,\n  "invalidMatrixDetails": "",\n  "outcomeSummary": "",\n  "projectId": "",\n  "resultStorage": {\n    "googleCloudStorage": {\n      "gcsPath": ""\n    },\n    "resultsUrl": "",\n    "toolResultsExecution": {\n      "executionId": "",\n      "historyId": "",\n      "projectId": ""\n    },\n    "toolResultsHistory": {\n      "historyId": "",\n      "projectId": ""\n    }\n  },\n  "state": "",\n  "testExecutions": [\n    {\n      "environment": {\n        "androidDevice": {},\n        "iosDevice": {}\n      },\n      "id": "",\n      "matrixId": "",\n      "projectId": "",\n      "shard": {\n        "numShards": 0,\n        "shardIndex": 0,\n        "testTargetsForShard": {\n          "testTargets": []\n        }\n      },\n      "state": "",\n      "testDetails": {\n        "errorMessage": "",\n        "progressMessages": []\n      },\n      "testSpecification": {\n        "androidInstrumentationTest": {\n          "appApk": {\n            "gcsPath": ""\n          },\n          "appBundle": {\n            "bundleLocation": {}\n          },\n          "appPackageId": "",\n          "orchestratorOption": "",\n          "shardingOption": {\n            "manualSharding": {\n              "testTargetsForShard": [\n                {}\n              ]\n            },\n            "uniformSharding": {\n              "numShards": 0\n            }\n          },\n          "testApk": {},\n          "testPackageId": "",\n          "testRunnerClass": "",\n          "testTargets": []\n        },\n        "androidRoboTest": {\n          "appApk": {},\n          "appBundle": {},\n          "appInitialActivity": "",\n          "appPackageId": "",\n          "maxDepth": 0,\n          "maxSteps": 0,\n          "roboDirectives": [\n            {\n              "actionType": "",\n              "inputText": "",\n              "resourceName": ""\n            }\n          ],\n          "roboMode": "",\n          "roboScript": {},\n          "startingIntents": [\n            {\n              "launcherActivity": {},\n              "startActivity": {\n                "action": "",\n                "categories": [],\n                "uri": ""\n              },\n              "timeout": ""\n            }\n          ]\n        },\n        "androidTestLoop": {\n          "appApk": {},\n          "appBundle": {},\n          "appPackageId": "",\n          "scenarioLabels": [],\n          "scenarios": []\n        },\n        "disablePerformanceMetrics": false,\n        "disableVideoRecording": false,\n        "iosTestLoop": {\n          "appBundleId": "",\n          "appIpa": {},\n          "scenarios": []\n        },\n        "iosTestSetup": {\n          "additionalIpas": [\n            {}\n          ],\n          "networkProfile": "",\n          "pullDirectories": [\n            {\n              "bundleId": "",\n              "content": {},\n              "devicePath": ""\n            }\n          ],\n          "pushFiles": [\n            {}\n          ]\n        },\n        "iosXcTest": {\n          "appBundleId": "",\n          "testSpecialEntitlements": false,\n          "testsZip": {},\n          "xcodeVersion": "",\n          "xctestrun": {}\n        },\n        "testSetup": {\n          "account": {\n            "googleAuto": {}\n          },\n          "additionalApks": [\n            {\n              "location": {},\n              "packageName": ""\n            }\n          ],\n          "directoriesToPull": [],\n          "dontAutograntPermissions": false,\n          "environmentVariables": [\n            {\n              "key": "",\n              "value": ""\n            }\n          ],\n          "filesToPush": [\n            {\n              "obbFile": {\n                "obb": {},\n                "obbFileName": ""\n              },\n              "regularFile": {\n                "content": {},\n                "devicePath": ""\n              }\n            }\n          ],\n          "networkProfile": "",\n          "systrace": {\n            "durationSeconds": 0\n          }\n        },\n        "testTimeout": ""\n      },\n      "timestamp": "",\n      "toolResultsStep": {\n        "executionId": "",\n        "historyId": "",\n        "projectId": "",\n        "stepId": ""\n      }\n    }\n  ],\n  "testMatrixId": "",\n  "testSpecification": {},\n  "timestamp": ""\n}' \
  --output-document \
  - {{baseUrl}}/v1/projects/:projectId/testMatrices
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "clientInfo": [
    "clientInfoDetails": [
      [
        "key": "",
        "value": ""
      ]
    ],
    "name": ""
  ],
  "environmentMatrix": [
    "androidDeviceList": ["androidDevices": [
        [
          "androidModelId": "",
          "androidVersionId": "",
          "locale": "",
          "orientation": ""
        ]
      ]],
    "androidMatrix": [
      "androidModelIds": [],
      "androidVersionIds": [],
      "locales": [],
      "orientations": []
    ],
    "iosDeviceList": ["iosDevices": [
        [
          "iosModelId": "",
          "iosVersionId": "",
          "locale": "",
          "orientation": ""
        ]
      ]]
  ],
  "failFast": false,
  "flakyTestAttempts": 0,
  "invalidMatrixDetails": "",
  "outcomeSummary": "",
  "projectId": "",
  "resultStorage": [
    "googleCloudStorage": ["gcsPath": ""],
    "resultsUrl": "",
    "toolResultsExecution": [
      "executionId": "",
      "historyId": "",
      "projectId": ""
    ],
    "toolResultsHistory": [
      "historyId": "",
      "projectId": ""
    ]
  ],
  "state": "",
  "testExecutions": [
    [
      "environment": [
        "androidDevice": [],
        "iosDevice": []
      ],
      "id": "",
      "matrixId": "",
      "projectId": "",
      "shard": [
        "numShards": 0,
        "shardIndex": 0,
        "testTargetsForShard": ["testTargets": []]
      ],
      "state": "",
      "testDetails": [
        "errorMessage": "",
        "progressMessages": []
      ],
      "testSpecification": [
        "androidInstrumentationTest": [
          "appApk": ["gcsPath": ""],
          "appBundle": ["bundleLocation": []],
          "appPackageId": "",
          "orchestratorOption": "",
          "shardingOption": [
            "manualSharding": ["testTargetsForShard": [[]]],
            "uniformSharding": ["numShards": 0]
          ],
          "testApk": [],
          "testPackageId": "",
          "testRunnerClass": "",
          "testTargets": []
        ],
        "androidRoboTest": [
          "appApk": [],
          "appBundle": [],
          "appInitialActivity": "",
          "appPackageId": "",
          "maxDepth": 0,
          "maxSteps": 0,
          "roboDirectives": [
            [
              "actionType": "",
              "inputText": "",
              "resourceName": ""
            ]
          ],
          "roboMode": "",
          "roboScript": [],
          "startingIntents": [
            [
              "launcherActivity": [],
              "startActivity": [
                "action": "",
                "categories": [],
                "uri": ""
              ],
              "timeout": ""
            ]
          ]
        ],
        "androidTestLoop": [
          "appApk": [],
          "appBundle": [],
          "appPackageId": "",
          "scenarioLabels": [],
          "scenarios": []
        ],
        "disablePerformanceMetrics": false,
        "disableVideoRecording": false,
        "iosTestLoop": [
          "appBundleId": "",
          "appIpa": [],
          "scenarios": []
        ],
        "iosTestSetup": [
          "additionalIpas": [[]],
          "networkProfile": "",
          "pullDirectories": [
            [
              "bundleId": "",
              "content": [],
              "devicePath": ""
            ]
          ],
          "pushFiles": [[]]
        ],
        "iosXcTest": [
          "appBundleId": "",
          "testSpecialEntitlements": false,
          "testsZip": [],
          "xcodeVersion": "",
          "xctestrun": []
        ],
        "testSetup": [
          "account": ["googleAuto": []],
          "additionalApks": [
            [
              "location": [],
              "packageName": ""
            ]
          ],
          "directoriesToPull": [],
          "dontAutograntPermissions": false,
          "environmentVariables": [
            [
              "key": "",
              "value": ""
            ]
          ],
          "filesToPush": [
            [
              "obbFile": [
                "obb": [],
                "obbFileName": ""
              ],
              "regularFile": [
                "content": [],
                "devicePath": ""
              ]
            ]
          ],
          "networkProfile": "",
          "systrace": ["durationSeconds": 0]
        ],
        "testTimeout": ""
      ],
      "timestamp": "",
      "toolResultsStep": [
        "executionId": "",
        "historyId": "",
        "projectId": "",
        "stepId": ""
      ]
    ]
  ],
  "testMatrixId": "",
  "testSpecification": [],
  "timestamp": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/testMatrices")! 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 testing.projects.testMatrices.get
{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId
QUERY PARAMS

projectId
testMatrixId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId");

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

(client/get "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId")
require "http/client"

url = "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId"

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

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

func main() {

	url := "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId"

	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/projects/:projectId/testMatrices/:testMatrixId HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId")
  .get()
  .build()

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

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

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/projects/:projectId/testMatrices/:testMatrixId');

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/projects/:projectId/testMatrices/:testMatrixId'
};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1/projects/:projectId/testMatrices/:testMatrixId")

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

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

url = "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId"

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

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

url = URI("{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId")

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/projects/:projectId/testMatrices/:testMatrixId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/projects/:projectId/testMatrices/:testMatrixId")! 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 testing.testEnvironmentCatalog.get
{{baseUrl}}/v1/testEnvironmentCatalog/:environmentType
QUERY PARAMS

environmentType
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1/testEnvironmentCatalog/:environmentType"

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

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

func main() {

	url := "{{baseUrl}}/v1/testEnvironmentCatalog/:environmentType"

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

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

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

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

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

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

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

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

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

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

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

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/testEnvironmentCatalog/:environmentType');

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/testEnvironmentCatalog/:environmentType'
};

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

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

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1/testEnvironmentCatalog/:environmentType"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/testEnvironmentCatalog/:environmentType"

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

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

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

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/testEnvironmentCatalog/:environmentType') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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