POST containeranalysis.projects.notes.batchCreate
{{baseUrl}}/v1beta1/:parent/notes:batchCreate
QUERY PARAMS

parent
BODY json

{
  "notes": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/notes:batchCreate");

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

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

(client/post "{{baseUrl}}/v1beta1/:parent/notes:batchCreate" {:content-type :json
                                                                              :form-params {:notes {}}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/notes:batchCreate"

	payload := strings.NewReader("{\n  \"notes\": {}\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/v1beta1/:parent/notes:batchCreate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 17

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

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/notes:batchCreate")
  .header("content-type", "application/json")
  .body("{\n  \"notes\": {}\n}")
  .asString();
const data = JSON.stringify({
  notes: {}
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/notes:batchCreate',
  headers: {'content-type': 'application/json'},
  data: {notes: {}}
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/notes:batchCreate',
  headers: {'content-type': 'application/json'},
  body: {notes: {}},
  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}}/v1beta1/:parent/notes:batchCreate');

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

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

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}}/v1beta1/:parent/notes:batchCreate',
  headers: {'content-type': 'application/json'},
  data: {notes: {}}
};

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

const url = '{{baseUrl}}/v1beta1/:parent/notes:batchCreate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"notes":{}}'
};

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("POST", "/baseUrl/v1beta1/:parent/notes:batchCreate", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/notes:batchCreate"

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

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

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

url <- "{{baseUrl}}/v1beta1/:parent/notes:batchCreate"

payload <- "{\n  \"notes\": {}\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}}/v1beta1/:parent/notes:batchCreate")

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  \"notes\": {}\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/v1beta1/:parent/notes:batchCreate') do |req|
  req.body = "{\n  \"notes\": {}\n}"
end

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

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

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

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

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/notes:batchCreate")! 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 containeranalysis.projects.notes.create
{{baseUrl}}/v1beta1/:parent/notes
QUERY PARAMS

parent
BODY json

{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/notes" {:content-type :json
                                                                  :form-params {:attestationAuthority {:hint {:humanReadableName ""}}
                                                                                :baseImage {:fingerprint {:v1Name ""
                                                                                                          :v2Blob []
                                                                                                          :v2Name ""}
                                                                                            :resourceUrl ""}
                                                                                :build {:builderVersion ""
                                                                                        :signature {:keyId ""
                                                                                                    :keyType ""
                                                                                                    :publicKey ""
                                                                                                    :signature ""}}
                                                                                :createTime ""
                                                                                :deployable {:resourceUri []}
                                                                                :discovery {:analysisKind ""}
                                                                                :expirationTime ""
                                                                                :intoto {:expectedCommand []
                                                                                         :expectedMaterials [{:artifactRule []}]
                                                                                         :expectedProducts [{}]
                                                                                         :signingKeys [{:keyId ""
                                                                                                        :keyScheme ""
                                                                                                        :keyType ""
                                                                                                        :publicKeyValue ""}]
                                                                                         :stepName ""
                                                                                         :threshold ""}
                                                                                :kind ""
                                                                                :longDescription ""
                                                                                :name ""
                                                                                :package {:architecture ""
                                                                                          :cpeUri ""
                                                                                          :description ""
                                                                                          :digest [{:algo ""
                                                                                                    :digestBytes ""}]
                                                                                          :distribution [{:architecture ""
                                                                                                          :cpeUri ""
                                                                                                          :description ""
                                                                                                          :latestVersion {:epoch 0
                                                                                                                          :inclusive false
                                                                                                                          :kind ""
                                                                                                                          :name ""
                                                                                                                          :revision ""}
                                                                                                          :maintainer ""
                                                                                                          :url ""}]
                                                                                          :license {:comments ""
                                                                                                    :expression ""}
                                                                                          :maintainer ""
                                                                                          :name ""
                                                                                          :packageType ""
                                                                                          :url ""
                                                                                          :version {}}
                                                                                :relatedNoteNames []
                                                                                :relatedUrl [{:label ""
                                                                                              :url ""}]
                                                                                :sbom {:dataLicence ""
                                                                                       :spdxVersion ""}
                                                                                :sbomReference {:format ""
                                                                                                :version ""}
                                                                                :shortDescription ""
                                                                                :spdxFile {:checksum []
                                                                                           :fileType ""
                                                                                           :title ""}
                                                                                :spdxPackage {:analyzed false
                                                                                              :attribution ""
                                                                                              :checksum ""
                                                                                              :copyright ""
                                                                                              :detailedDescription ""
                                                                                              :downloadLocation ""
                                                                                              :externalRefs [{:category ""
                                                                                                              :comment ""
                                                                                                              :locator ""
                                                                                                              :type ""}]
                                                                                              :filesLicenseInfo []
                                                                                              :homePage ""
                                                                                              :licenseDeclared {}
                                                                                              :originator ""
                                                                                              :packageType ""
                                                                                              :summaryDescription ""
                                                                                              :supplier ""
                                                                                              :title ""
                                                                                              :verificationCode ""
                                                                                              :version ""}
                                                                                :spdxRelationship {:type ""}
                                                                                :updateTime ""
                                                                                :vulnerability {:cvssScore ""
                                                                                                :cvssV2 {:attackComplexity ""
                                                                                                         :attackVector ""
                                                                                                         :authentication ""
                                                                                                         :availabilityImpact ""
                                                                                                         :baseScore ""
                                                                                                         :confidentialityImpact ""
                                                                                                         :exploitabilityScore ""
                                                                                                         :impactScore ""
                                                                                                         :integrityImpact ""
                                                                                                         :privilegesRequired ""
                                                                                                         :scope ""
                                                                                                         :userInteraction ""}
                                                                                                :cvssV3 {:attackComplexity ""
                                                                                                         :attackVector ""
                                                                                                         :availabilityImpact ""
                                                                                                         :baseScore ""
                                                                                                         :confidentialityImpact ""
                                                                                                         :exploitabilityScore ""
                                                                                                         :impactScore ""
                                                                                                         :integrityImpact ""
                                                                                                         :privilegesRequired ""
                                                                                                         :scope ""
                                                                                                         :userInteraction ""}
                                                                                                :cvssVersion ""
                                                                                                :cwe []
                                                                                                :details [{:cpeUri ""
                                                                                                           :description ""
                                                                                                           :fixedLocation {:cpeUri ""
                                                                                                                           :package ""
                                                                                                                           :version {}}
                                                                                                           :isObsolete false
                                                                                                           :maxAffectedVersion {}
                                                                                                           :minAffectedVersion {}
                                                                                                           :package ""
                                                                                                           :packageType ""
                                                                                                           :severityName ""
                                                                                                           :source ""
                                                                                                           :sourceUpdateTime ""
                                                                                                           :vendor ""}]
                                                                                                :severity ""
                                                                                                :sourceUpdateTime ""
                                                                                                :windowsDetails [{:cpeUri ""
                                                                                                                  :description ""
                                                                                                                  :fixingKbs [{:name ""
                                                                                                                               :url ""}]
                                                                                                                  :name ""}]}
                                                                                :vulnerabilityAssessment {:assessment {:cve ""
                                                                                                                       :impacts []
                                                                                                                       :justification {:details ""
                                                                                                                                       :justificationType ""}
                                                                                                                       :longDescription ""
                                                                                                                       :relatedUris [{}]
                                                                                                                       :remediations [{:details ""
                                                                                                                                       :remediationType ""
                                                                                                                                       :remediationUri {}}]
                                                                                                                       :shortDescription ""
                                                                                                                       :state ""}
                                                                                                          :languageCode ""
                                                                                                          :longDescription ""
                                                                                                          :product {:genericUri ""
                                                                                                                    :id ""
                                                                                                                    :name ""}
                                                                                                          :publisher {:issuingAuthority ""
                                                                                                                      :name ""
                                                                                                                      :publisherNamespace ""}
                                                                                                          :shortDescription ""
                                                                                                          :title ""}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/notes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/notes"),
    Content = new StringContent("{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/notes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/notes"

	payload := strings.NewReader("{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta1/:parent/notes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4718

{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/notes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/notes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/notes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/notes")
  .header("content-type", "application/json")
  .body("{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  attestationAuthority: {
    hint: {
      humanReadableName: ''
    }
  },
  baseImage: {
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    resourceUrl: ''
  },
  build: {
    builderVersion: '',
    signature: {
      keyId: '',
      keyType: '',
      publicKey: '',
      signature: ''
    }
  },
  createTime: '',
  deployable: {
    resourceUri: []
  },
  discovery: {
    analysisKind: ''
  },
  expirationTime: '',
  intoto: {
    expectedCommand: [],
    expectedMaterials: [
      {
        artifactRule: []
      }
    ],
    expectedProducts: [
      {}
    ],
    signingKeys: [
      {
        keyId: '',
        keyScheme: '',
        keyType: '',
        publicKeyValue: ''
      }
    ],
    stepName: '',
    threshold: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [
      {
        algo: '',
        digestBytes: ''
      }
    ],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {
          epoch: 0,
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        },
        maintainer: '',
        url: ''
      }
    ],
    license: {
      comments: '',
      expression: ''
    },
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [
    {
      label: '',
      url: ''
    }
  ],
  sbom: {
    dataLicence: '',
    spdxVersion: ''
  },
  sbomReference: {
    format: '',
    version: ''
  },
  shortDescription: '',
  spdxFile: {
    checksum: [],
    fileType: '',
    title: ''
  },
  spdxPackage: {
    analyzed: false,
    attribution: '',
    checksum: '',
    copyright: '',
    detailedDescription: '',
    downloadLocation: '',
    externalRefs: [
      {
        category: '',
        comment: '',
        locator: '',
        type: ''
      }
    ],
    filesLicenseInfo: [],
    homePage: '',
    licenseDeclared: {},
    originator: '',
    packageType: '',
    summaryDescription: '',
    supplier: '',
    title: '',
    verificationCode: '',
    version: ''
  },
  spdxRelationship: {
    type: ''
  },
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {
      attackComplexity: '',
      attackVector: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssVersion: '',
    cwe: [],
    details: [
      {
        cpeUri: '',
        description: '',
        fixedLocation: {
          cpeUri: '',
          package: '',
          version: {}
        },
        isObsolete: false,
        maxAffectedVersion: {},
        minAffectedVersion: {},
        package: '',
        packageType: '',
        severityName: '',
        source: '',
        sourceUpdateTime: '',
        vendor: ''
      }
    ],
    severity: '',
    sourceUpdateTime: '',
    windowsDetails: [
      {
        cpeUri: '',
        description: '',
        fixingKbs: [
          {
            name: '',
            url: ''
          }
        ],
        name: ''
      }
    ]
  },
  vulnerabilityAssessment: {
    assessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      longDescription: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      shortDescription: '',
      state: ''
    },
    languageCode: '',
    longDescription: '',
    product: {
      genericUri: '',
      id: '',
      name: ''
    },
    publisher: {
      issuingAuthority: '',
      name: '',
      publisherNamespace: ''
    },
    shortDescription: '',
    title: ''
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/notes',
  headers: {'content-type': 'application/json'},
  data: {
    attestationAuthority: {hint: {humanReadableName: ''}},
    baseImage: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    build: {
      builderVersion: '',
      signature: {keyId: '', keyType: '', publicKey: '', signature: ''}
    },
    createTime: '',
    deployable: {resourceUri: []},
    discovery: {analysisKind: ''},
    expirationTime: '',
    intoto: {
      expectedCommand: [],
      expectedMaterials: [{artifactRule: []}],
      expectedProducts: [{}],
      signingKeys: [{keyId: '', keyScheme: '', keyType: '', publicKeyValue: ''}],
      stepName: '',
      threshold: ''
    },
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbom: {dataLicence: '', spdxVersion: ''},
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    spdxFile: {checksum: [], fileType: '', title: ''},
    spdxPackage: {
      analyzed: false,
      attribution: '',
      checksum: '',
      copyright: '',
      detailedDescription: '',
      downloadLocation: '',
      externalRefs: [{category: '', comment: '', locator: '', type: ''}],
      filesLicenseInfo: [],
      homePage: '',
      licenseDeclared: {},
      originator: '',
      packageType: '',
      summaryDescription: '',
      supplier: '',
      title: '',
      verificationCode: '',
      version: ''
    },
    spdxRelationship: {type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {
        attackComplexity: '',
        attackVector: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssVersion: '',
      cwe: [],
      details: [
        {
          cpeUri: '',
          description: '',
          fixedLocation: {cpeUri: '', package: '', version: {}},
          isObsolete: false,
          maxAffectedVersion: {},
          minAffectedVersion: {},
          package: '',
          packageType: '',
          severityName: '',
          source: '',
          sourceUpdateTime: '',
          vendor: ''
        }
      ],
      severity: '',
      sourceUpdateTime: '',
      windowsDetails: [{cpeUri: '', description: '', fixingKbs: [{name: '', url: ''}], name: ''}]
    },
    vulnerabilityAssessment: {
      assessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        longDescription: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        shortDescription: '',
        state: ''
      },
      languageCode: '',
      longDescription: '',
      product: {genericUri: '', id: '', name: ''},
      publisher: {issuingAuthority: '', name: '', publisherNamespace: ''},
      shortDescription: '',
      title: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/notes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestationAuthority":{"hint":{"humanReadableName":""}},"baseImage":{"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"resourceUrl":""},"build":{"builderVersion":"","signature":{"keyId":"","keyType":"","publicKey":"","signature":""}},"createTime":"","deployable":{"resourceUri":[]},"discovery":{"analysisKind":""},"expirationTime":"","intoto":{"expectedCommand":[],"expectedMaterials":[{"artifactRule":[]}],"expectedProducts":[{}],"signingKeys":[{"keyId":"","keyScheme":"","keyType":"","publicKeyValue":""}],"stepName":"","threshold":""},"kind":"","longDescription":"","name":"","package":{"architecture":"","cpeUri":"","description":"","digest":[{"algo":"","digestBytes":""}],"distribution":[{"architecture":"","cpeUri":"","description":"","latestVersion":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""},"maintainer":"","url":""}],"license":{"comments":"","expression":""},"maintainer":"","name":"","packageType":"","url":"","version":{}},"relatedNoteNames":[],"relatedUrl":[{"label":"","url":""}],"sbom":{"dataLicence":"","spdxVersion":""},"sbomReference":{"format":"","version":""},"shortDescription":"","spdxFile":{"checksum":[],"fileType":"","title":""},"spdxPackage":{"analyzed":false,"attribution":"","checksum":"","copyright":"","detailedDescription":"","downloadLocation":"","externalRefs":[{"category":"","comment":"","locator":"","type":""}],"filesLicenseInfo":[],"homePage":"","licenseDeclared":{},"originator":"","packageType":"","summaryDescription":"","supplier":"","title":"","verificationCode":"","version":""},"spdxRelationship":{"type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{"attackComplexity":"","attackVector":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssVersion":"","cwe":[],"details":[{"cpeUri":"","description":"","fixedLocation":{"cpeUri":"","package":"","version":{}},"isObsolete":false,"maxAffectedVersion":{},"minAffectedVersion":{},"package":"","packageType":"","severityName":"","source":"","sourceUpdateTime":"","vendor":""}],"severity":"","sourceUpdateTime":"","windowsDetails":[{"cpeUri":"","description":"","fixingKbs":[{"name":"","url":""}],"name":""}]},"vulnerabilityAssessment":{"assessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"longDescription":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"shortDescription":"","state":""},"languageCode":"","longDescription":"","product":{"genericUri":"","id":"","name":""},"publisher":{"issuingAuthority":"","name":"","publisherNamespace":""},"shortDescription":"","title":""}}'
};

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}}/v1beta1/:parent/notes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attestationAuthority": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "baseImage": {\n    "fingerprint": {\n      "v1Name": "",\n      "v2Blob": [],\n      "v2Name": ""\n    },\n    "resourceUrl": ""\n  },\n  "build": {\n    "builderVersion": "",\n    "signature": {\n      "keyId": "",\n      "keyType": "",\n      "publicKey": "",\n      "signature": ""\n    }\n  },\n  "createTime": "",\n  "deployable": {\n    "resourceUri": []\n  },\n  "discovery": {\n    "analysisKind": ""\n  },\n  "expirationTime": "",\n  "intoto": {\n    "expectedCommand": [],\n    "expectedMaterials": [\n      {\n        "artifactRule": []\n      }\n    ],\n    "expectedProducts": [\n      {}\n    ],\n    "signingKeys": [\n      {\n        "keyId": "",\n        "keyScheme": "",\n        "keyType": "",\n        "publicKeyValue": ""\n      }\n    ],\n    "stepName": "",\n    "threshold": ""\n  },\n  "kind": "",\n  "longDescription": "",\n  "name": "",\n  "package": {\n    "architecture": "",\n    "cpeUri": "",\n    "description": "",\n    "digest": [\n      {\n        "algo": "",\n        "digestBytes": ""\n      }\n    ],\n    "distribution": [\n      {\n        "architecture": "",\n        "cpeUri": "",\n        "description": "",\n        "latestVersion": {\n          "epoch": 0,\n          "inclusive": false,\n          "kind": "",\n          "name": "",\n          "revision": ""\n        },\n        "maintainer": "",\n        "url": ""\n      }\n    ],\n    "license": {\n      "comments": "",\n      "expression": ""\n    },\n    "maintainer": "",\n    "name": "",\n    "packageType": "",\n    "url": "",\n    "version": {}\n  },\n  "relatedNoteNames": [],\n  "relatedUrl": [\n    {\n      "label": "",\n      "url": ""\n    }\n  ],\n  "sbom": {\n    "dataLicence": "",\n    "spdxVersion": ""\n  },\n  "sbomReference": {\n    "format": "",\n    "version": ""\n  },\n  "shortDescription": "",\n  "spdxFile": {\n    "checksum": [],\n    "fileType": "",\n    "title": ""\n  },\n  "spdxPackage": {\n    "analyzed": false,\n    "attribution": "",\n    "checksum": "",\n    "copyright": "",\n    "detailedDescription": "",\n    "downloadLocation": "",\n    "externalRefs": [\n      {\n        "category": "",\n        "comment": "",\n        "locator": "",\n        "type": ""\n      }\n    ],\n    "filesLicenseInfo": [],\n    "homePage": "",\n    "licenseDeclared": {},\n    "originator": "",\n    "packageType": "",\n    "summaryDescription": "",\n    "supplier": "",\n    "title": "",\n    "verificationCode": "",\n    "version": ""\n  },\n  "spdxRelationship": {\n    "type": ""\n  },\n  "updateTime": "",\n  "vulnerability": {\n    "cvssScore": "",\n    "cvssV2": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "authentication": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssV3": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssVersion": "",\n    "cwe": [],\n    "details": [\n      {\n        "cpeUri": "",\n        "description": "",\n        "fixedLocation": {\n          "cpeUri": "",\n          "package": "",\n          "version": {}\n        },\n        "isObsolete": false,\n        "maxAffectedVersion": {},\n        "minAffectedVersion": {},\n        "package": "",\n        "packageType": "",\n        "severityName": "",\n        "source": "",\n        "sourceUpdateTime": "",\n        "vendor": ""\n      }\n    ],\n    "severity": "",\n    "sourceUpdateTime": "",\n    "windowsDetails": [\n      {\n        "cpeUri": "",\n        "description": "",\n        "fixingKbs": [\n          {\n            "name": "",\n            "url": ""\n          }\n        ],\n        "name": ""\n      }\n    ]\n  },\n  "vulnerabilityAssessment": {\n    "assessment": {\n      "cve": "",\n      "impacts": [],\n      "justification": {\n        "details": "",\n        "justificationType": ""\n      },\n      "longDescription": "",\n      "relatedUris": [\n        {}\n      ],\n      "remediations": [\n        {\n          "details": "",\n          "remediationType": "",\n          "remediationUri": {}\n        }\n      ],\n      "shortDescription": "",\n      "state": ""\n    },\n    "languageCode": "",\n    "longDescription": "",\n    "product": {\n      "genericUri": "",\n      "id": "",\n      "name": ""\n    },\n    "publisher": {\n      "issuingAuthority": "",\n      "name": "",\n      "publisherNamespace": ""\n    },\n    "shortDescription": "",\n    "title": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/notes")
  .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/v1beta1/:parent/notes',
  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({
  attestationAuthority: {hint: {humanReadableName: ''}},
  baseImage: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
  build: {
    builderVersion: '',
    signature: {keyId: '', keyType: '', publicKey: '', signature: ''}
  },
  createTime: '',
  deployable: {resourceUri: []},
  discovery: {analysisKind: ''},
  expirationTime: '',
  intoto: {
    expectedCommand: [],
    expectedMaterials: [{artifactRule: []}],
    expectedProducts: [{}],
    signingKeys: [{keyId: '', keyScheme: '', keyType: '', publicKeyValue: ''}],
    stepName: '',
    threshold: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [{algo: '', digestBytes: ''}],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''},
        maintainer: '',
        url: ''
      }
    ],
    license: {comments: '', expression: ''},
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [{label: '', url: ''}],
  sbom: {dataLicence: '', spdxVersion: ''},
  sbomReference: {format: '', version: ''},
  shortDescription: '',
  spdxFile: {checksum: [], fileType: '', title: ''},
  spdxPackage: {
    analyzed: false,
    attribution: '',
    checksum: '',
    copyright: '',
    detailedDescription: '',
    downloadLocation: '',
    externalRefs: [{category: '', comment: '', locator: '', type: ''}],
    filesLicenseInfo: [],
    homePage: '',
    licenseDeclared: {},
    originator: '',
    packageType: '',
    summaryDescription: '',
    supplier: '',
    title: '',
    verificationCode: '',
    version: ''
  },
  spdxRelationship: {type: ''},
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {
      attackComplexity: '',
      attackVector: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssVersion: '',
    cwe: [],
    details: [
      {
        cpeUri: '',
        description: '',
        fixedLocation: {cpeUri: '', package: '', version: {}},
        isObsolete: false,
        maxAffectedVersion: {},
        minAffectedVersion: {},
        package: '',
        packageType: '',
        severityName: '',
        source: '',
        sourceUpdateTime: '',
        vendor: ''
      }
    ],
    severity: '',
    sourceUpdateTime: '',
    windowsDetails: [{cpeUri: '', description: '', fixingKbs: [{name: '', url: ''}], name: ''}]
  },
  vulnerabilityAssessment: {
    assessment: {
      cve: '',
      impacts: [],
      justification: {details: '', justificationType: ''},
      longDescription: '',
      relatedUris: [{}],
      remediations: [{details: '', remediationType: '', remediationUri: {}}],
      shortDescription: '',
      state: ''
    },
    languageCode: '',
    longDescription: '',
    product: {genericUri: '', id: '', name: ''},
    publisher: {issuingAuthority: '', name: '', publisherNamespace: ''},
    shortDescription: '',
    title: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/notes',
  headers: {'content-type': 'application/json'},
  body: {
    attestationAuthority: {hint: {humanReadableName: ''}},
    baseImage: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    build: {
      builderVersion: '',
      signature: {keyId: '', keyType: '', publicKey: '', signature: ''}
    },
    createTime: '',
    deployable: {resourceUri: []},
    discovery: {analysisKind: ''},
    expirationTime: '',
    intoto: {
      expectedCommand: [],
      expectedMaterials: [{artifactRule: []}],
      expectedProducts: [{}],
      signingKeys: [{keyId: '', keyScheme: '', keyType: '', publicKeyValue: ''}],
      stepName: '',
      threshold: ''
    },
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbom: {dataLicence: '', spdxVersion: ''},
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    spdxFile: {checksum: [], fileType: '', title: ''},
    spdxPackage: {
      analyzed: false,
      attribution: '',
      checksum: '',
      copyright: '',
      detailedDescription: '',
      downloadLocation: '',
      externalRefs: [{category: '', comment: '', locator: '', type: ''}],
      filesLicenseInfo: [],
      homePage: '',
      licenseDeclared: {},
      originator: '',
      packageType: '',
      summaryDescription: '',
      supplier: '',
      title: '',
      verificationCode: '',
      version: ''
    },
    spdxRelationship: {type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {
        attackComplexity: '',
        attackVector: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssVersion: '',
      cwe: [],
      details: [
        {
          cpeUri: '',
          description: '',
          fixedLocation: {cpeUri: '', package: '', version: {}},
          isObsolete: false,
          maxAffectedVersion: {},
          minAffectedVersion: {},
          package: '',
          packageType: '',
          severityName: '',
          source: '',
          sourceUpdateTime: '',
          vendor: ''
        }
      ],
      severity: '',
      sourceUpdateTime: '',
      windowsDetails: [{cpeUri: '', description: '', fixingKbs: [{name: '', url: ''}], name: ''}]
    },
    vulnerabilityAssessment: {
      assessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        longDescription: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        shortDescription: '',
        state: ''
      },
      languageCode: '',
      longDescription: '',
      product: {genericUri: '', id: '', name: ''},
      publisher: {issuingAuthority: '', name: '', publisherNamespace: ''},
      shortDescription: '',
      title: ''
    }
  },
  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}}/v1beta1/:parent/notes');

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

req.type('json');
req.send({
  attestationAuthority: {
    hint: {
      humanReadableName: ''
    }
  },
  baseImage: {
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    resourceUrl: ''
  },
  build: {
    builderVersion: '',
    signature: {
      keyId: '',
      keyType: '',
      publicKey: '',
      signature: ''
    }
  },
  createTime: '',
  deployable: {
    resourceUri: []
  },
  discovery: {
    analysisKind: ''
  },
  expirationTime: '',
  intoto: {
    expectedCommand: [],
    expectedMaterials: [
      {
        artifactRule: []
      }
    ],
    expectedProducts: [
      {}
    ],
    signingKeys: [
      {
        keyId: '',
        keyScheme: '',
        keyType: '',
        publicKeyValue: ''
      }
    ],
    stepName: '',
    threshold: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [
      {
        algo: '',
        digestBytes: ''
      }
    ],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {
          epoch: 0,
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        },
        maintainer: '',
        url: ''
      }
    ],
    license: {
      comments: '',
      expression: ''
    },
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [
    {
      label: '',
      url: ''
    }
  ],
  sbom: {
    dataLicence: '',
    spdxVersion: ''
  },
  sbomReference: {
    format: '',
    version: ''
  },
  shortDescription: '',
  spdxFile: {
    checksum: [],
    fileType: '',
    title: ''
  },
  spdxPackage: {
    analyzed: false,
    attribution: '',
    checksum: '',
    copyright: '',
    detailedDescription: '',
    downloadLocation: '',
    externalRefs: [
      {
        category: '',
        comment: '',
        locator: '',
        type: ''
      }
    ],
    filesLicenseInfo: [],
    homePage: '',
    licenseDeclared: {},
    originator: '',
    packageType: '',
    summaryDescription: '',
    supplier: '',
    title: '',
    verificationCode: '',
    version: ''
  },
  spdxRelationship: {
    type: ''
  },
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {
      attackComplexity: '',
      attackVector: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssVersion: '',
    cwe: [],
    details: [
      {
        cpeUri: '',
        description: '',
        fixedLocation: {
          cpeUri: '',
          package: '',
          version: {}
        },
        isObsolete: false,
        maxAffectedVersion: {},
        minAffectedVersion: {},
        package: '',
        packageType: '',
        severityName: '',
        source: '',
        sourceUpdateTime: '',
        vendor: ''
      }
    ],
    severity: '',
    sourceUpdateTime: '',
    windowsDetails: [
      {
        cpeUri: '',
        description: '',
        fixingKbs: [
          {
            name: '',
            url: ''
          }
        ],
        name: ''
      }
    ]
  },
  vulnerabilityAssessment: {
    assessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      longDescription: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      shortDescription: '',
      state: ''
    },
    languageCode: '',
    longDescription: '',
    product: {
      genericUri: '',
      id: '',
      name: ''
    },
    publisher: {
      issuingAuthority: '',
      name: '',
      publisherNamespace: ''
    },
    shortDescription: '',
    title: ''
  }
});

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}}/v1beta1/:parent/notes',
  headers: {'content-type': 'application/json'},
  data: {
    attestationAuthority: {hint: {humanReadableName: ''}},
    baseImage: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    build: {
      builderVersion: '',
      signature: {keyId: '', keyType: '', publicKey: '', signature: ''}
    },
    createTime: '',
    deployable: {resourceUri: []},
    discovery: {analysisKind: ''},
    expirationTime: '',
    intoto: {
      expectedCommand: [],
      expectedMaterials: [{artifactRule: []}],
      expectedProducts: [{}],
      signingKeys: [{keyId: '', keyScheme: '', keyType: '', publicKeyValue: ''}],
      stepName: '',
      threshold: ''
    },
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbom: {dataLicence: '', spdxVersion: ''},
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    spdxFile: {checksum: [], fileType: '', title: ''},
    spdxPackage: {
      analyzed: false,
      attribution: '',
      checksum: '',
      copyright: '',
      detailedDescription: '',
      downloadLocation: '',
      externalRefs: [{category: '', comment: '', locator: '', type: ''}],
      filesLicenseInfo: [],
      homePage: '',
      licenseDeclared: {},
      originator: '',
      packageType: '',
      summaryDescription: '',
      supplier: '',
      title: '',
      verificationCode: '',
      version: ''
    },
    spdxRelationship: {type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {
        attackComplexity: '',
        attackVector: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssVersion: '',
      cwe: [],
      details: [
        {
          cpeUri: '',
          description: '',
          fixedLocation: {cpeUri: '', package: '', version: {}},
          isObsolete: false,
          maxAffectedVersion: {},
          minAffectedVersion: {},
          package: '',
          packageType: '',
          severityName: '',
          source: '',
          sourceUpdateTime: '',
          vendor: ''
        }
      ],
      severity: '',
      sourceUpdateTime: '',
      windowsDetails: [{cpeUri: '', description: '', fixingKbs: [{name: '', url: ''}], name: ''}]
    },
    vulnerabilityAssessment: {
      assessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        longDescription: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        shortDescription: '',
        state: ''
      },
      languageCode: '',
      longDescription: '',
      product: {genericUri: '', id: '', name: ''},
      publisher: {issuingAuthority: '', name: '', publisherNamespace: ''},
      shortDescription: '',
      title: ''
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/notes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestationAuthority":{"hint":{"humanReadableName":""}},"baseImage":{"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"resourceUrl":""},"build":{"builderVersion":"","signature":{"keyId":"","keyType":"","publicKey":"","signature":""}},"createTime":"","deployable":{"resourceUri":[]},"discovery":{"analysisKind":""},"expirationTime":"","intoto":{"expectedCommand":[],"expectedMaterials":[{"artifactRule":[]}],"expectedProducts":[{}],"signingKeys":[{"keyId":"","keyScheme":"","keyType":"","publicKeyValue":""}],"stepName":"","threshold":""},"kind":"","longDescription":"","name":"","package":{"architecture":"","cpeUri":"","description":"","digest":[{"algo":"","digestBytes":""}],"distribution":[{"architecture":"","cpeUri":"","description":"","latestVersion":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""},"maintainer":"","url":""}],"license":{"comments":"","expression":""},"maintainer":"","name":"","packageType":"","url":"","version":{}},"relatedNoteNames":[],"relatedUrl":[{"label":"","url":""}],"sbom":{"dataLicence":"","spdxVersion":""},"sbomReference":{"format":"","version":""},"shortDescription":"","spdxFile":{"checksum":[],"fileType":"","title":""},"spdxPackage":{"analyzed":false,"attribution":"","checksum":"","copyright":"","detailedDescription":"","downloadLocation":"","externalRefs":[{"category":"","comment":"","locator":"","type":""}],"filesLicenseInfo":[],"homePage":"","licenseDeclared":{},"originator":"","packageType":"","summaryDescription":"","supplier":"","title":"","verificationCode":"","version":""},"spdxRelationship":{"type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{"attackComplexity":"","attackVector":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssVersion":"","cwe":[],"details":[{"cpeUri":"","description":"","fixedLocation":{"cpeUri":"","package":"","version":{}},"isObsolete":false,"maxAffectedVersion":{},"minAffectedVersion":{},"package":"","packageType":"","severityName":"","source":"","sourceUpdateTime":"","vendor":""}],"severity":"","sourceUpdateTime":"","windowsDetails":[{"cpeUri":"","description":"","fixingKbs":[{"name":"","url":""}],"name":""}]},"vulnerabilityAssessment":{"assessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"longDescription":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"shortDescription":"","state":""},"languageCode":"","longDescription":"","product":{"genericUri":"","id":"","name":""},"publisher":{"issuingAuthority":"","name":"","publisherNamespace":""},"shortDescription":"","title":""}}'
};

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 = @{ @"attestationAuthority": @{ @"hint": @{ @"humanReadableName": @"" } },
                              @"baseImage": @{ @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"resourceUrl": @"" },
                              @"build": @{ @"builderVersion": @"", @"signature": @{ @"keyId": @"", @"keyType": @"", @"publicKey": @"", @"signature": @"" } },
                              @"createTime": @"",
                              @"deployable": @{ @"resourceUri": @[  ] },
                              @"discovery": @{ @"analysisKind": @"" },
                              @"expirationTime": @"",
                              @"intoto": @{ @"expectedCommand": @[  ], @"expectedMaterials": @[ @{ @"artifactRule": @[  ] } ], @"expectedProducts": @[ @{  } ], @"signingKeys": @[ @{ @"keyId": @"", @"keyScheme": @"", @"keyType": @"", @"publicKeyValue": @"" } ], @"stepName": @"", @"threshold": @"" },
                              @"kind": @"",
                              @"longDescription": @"",
                              @"name": @"",
                              @"package": @{ @"architecture": @"", @"cpeUri": @"", @"description": @"", @"digest": @[ @{ @"algo": @"", @"digestBytes": @"" } ], @"distribution": @[ @{ @"architecture": @"", @"cpeUri": @"", @"description": @"", @"latestVersion": @{ @"epoch": @0, @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" }, @"maintainer": @"", @"url": @"" } ], @"license": @{ @"comments": @"", @"expression": @"" }, @"maintainer": @"", @"name": @"", @"packageType": @"", @"url": @"", @"version": @{  } },
                              @"relatedNoteNames": @[  ],
                              @"relatedUrl": @[ @{ @"label": @"", @"url": @"" } ],
                              @"sbom": @{ @"dataLicence": @"", @"spdxVersion": @"" },
                              @"sbomReference": @{ @"format": @"", @"version": @"" },
                              @"shortDescription": @"",
                              @"spdxFile": @{ @"checksum": @[  ], @"fileType": @"", @"title": @"" },
                              @"spdxPackage": @{ @"analyzed": @NO, @"attribution": @"", @"checksum": @"", @"copyright": @"", @"detailedDescription": @"", @"downloadLocation": @"", @"externalRefs": @[ @{ @"category": @"", @"comment": @"", @"locator": @"", @"type": @"" } ], @"filesLicenseInfo": @[  ], @"homePage": @"", @"licenseDeclared": @{  }, @"originator": @"", @"packageType": @"", @"summaryDescription": @"", @"supplier": @"", @"title": @"", @"verificationCode": @"", @"version": @"" },
                              @"spdxRelationship": @{ @"type": @"" },
                              @"updateTime": @"",
                              @"vulnerability": @{ @"cvssScore": @"", @"cvssV2": @{ @"attackComplexity": @"", @"attackVector": @"", @"authentication": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssV3": @{ @"attackComplexity": @"", @"attackVector": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssVersion": @"", @"cwe": @[  ], @"details": @[ @{ @"cpeUri": @"", @"description": @"", @"fixedLocation": @{ @"cpeUri": @"", @"package": @"", @"version": @{  } }, @"isObsolete": @NO, @"maxAffectedVersion": @{  }, @"minAffectedVersion": @{  }, @"package": @"", @"packageType": @"", @"severityName": @"", @"source": @"", @"sourceUpdateTime": @"", @"vendor": @"" } ], @"severity": @"", @"sourceUpdateTime": @"", @"windowsDetails": @[ @{ @"cpeUri": @"", @"description": @"", @"fixingKbs": @[ @{ @"name": @"", @"url": @"" } ], @"name": @"" } ] },
                              @"vulnerabilityAssessment": @{ @"assessment": @{ @"cve": @"", @"impacts": @[  ], @"justification": @{ @"details": @"", @"justificationType": @"" }, @"longDescription": @"", @"relatedUris": @[ @{  } ], @"remediations": @[ @{ @"details": @"", @"remediationType": @"", @"remediationUri": @{  } } ], @"shortDescription": @"", @"state": @"" }, @"languageCode": @"", @"longDescription": @"", @"product": @{ @"genericUri": @"", @"id": @"", @"name": @"" }, @"publisher": @{ @"issuingAuthority": @"", @"name": @"", @"publisherNamespace": @"" }, @"shortDescription": @"", @"title": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/notes"]
                                                       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}}/v1beta1/:parent/notes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/notes",
  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([
    'attestationAuthority' => [
        'hint' => [
                'humanReadableName' => ''
        ]
    ],
    'baseImage' => [
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'resourceUrl' => ''
    ],
    'build' => [
        'builderVersion' => '',
        'signature' => [
                'keyId' => '',
                'keyType' => '',
                'publicKey' => '',
                'signature' => ''
        ]
    ],
    'createTime' => '',
    'deployable' => [
        'resourceUri' => [
                
        ]
    ],
    'discovery' => [
        'analysisKind' => ''
    ],
    'expirationTime' => '',
    'intoto' => [
        'expectedCommand' => [
                
        ],
        'expectedMaterials' => [
                [
                                'artifactRule' => [
                                                                
                                ]
                ]
        ],
        'expectedProducts' => [
                [
                                
                ]
        ],
        'signingKeys' => [
                [
                                'keyId' => '',
                                'keyScheme' => '',
                                'keyType' => '',
                                'publicKeyValue' => ''
                ]
        ],
        'stepName' => '',
        'threshold' => ''
    ],
    'kind' => '',
    'longDescription' => '',
    'name' => '',
    'package' => [
        'architecture' => '',
        'cpeUri' => '',
        'description' => '',
        'digest' => [
                [
                                'algo' => '',
                                'digestBytes' => ''
                ]
        ],
        'distribution' => [
                [
                                'architecture' => '',
                                'cpeUri' => '',
                                'description' => '',
                                'latestVersion' => [
                                                                'epoch' => 0,
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ],
                                'maintainer' => '',
                                'url' => ''
                ]
        ],
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'maintainer' => '',
        'name' => '',
        'packageType' => '',
        'url' => '',
        'version' => [
                
        ]
    ],
    'relatedNoteNames' => [
        
    ],
    'relatedUrl' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'sbom' => [
        'dataLicence' => '',
        'spdxVersion' => ''
    ],
    'sbomReference' => [
        'format' => '',
        'version' => ''
    ],
    'shortDescription' => '',
    'spdxFile' => [
        'checksum' => [
                
        ],
        'fileType' => '',
        'title' => ''
    ],
    'spdxPackage' => [
        'analyzed' => null,
        'attribution' => '',
        'checksum' => '',
        'copyright' => '',
        'detailedDescription' => '',
        'downloadLocation' => '',
        'externalRefs' => [
                [
                                'category' => '',
                                'comment' => '',
                                'locator' => '',
                                'type' => ''
                ]
        ],
        'filesLicenseInfo' => [
                
        ],
        'homePage' => '',
        'licenseDeclared' => [
                
        ],
        'originator' => '',
        'packageType' => '',
        'summaryDescription' => '',
        'supplier' => '',
        'title' => '',
        'verificationCode' => '',
        'version' => ''
    ],
    'spdxRelationship' => [
        'type' => ''
    ],
    'updateTime' => '',
    'vulnerability' => [
        'cvssScore' => '',
        'cvssV2' => [
                'attackComplexity' => '',
                'attackVector' => '',
                'authentication' => '',
                'availabilityImpact' => '',
                'baseScore' => '',
                'confidentialityImpact' => '',
                'exploitabilityScore' => '',
                'impactScore' => '',
                'integrityImpact' => '',
                'privilegesRequired' => '',
                'scope' => '',
                'userInteraction' => ''
        ],
        'cvssV3' => [
                'attackComplexity' => '',
                'attackVector' => '',
                'availabilityImpact' => '',
                'baseScore' => '',
                'confidentialityImpact' => '',
                'exploitabilityScore' => '',
                'impactScore' => '',
                'integrityImpact' => '',
                'privilegesRequired' => '',
                'scope' => '',
                'userInteraction' => ''
        ],
        'cvssVersion' => '',
        'cwe' => [
                
        ],
        'details' => [
                [
                                'cpeUri' => '',
                                'description' => '',
                                'fixedLocation' => [
                                                                'cpeUri' => '',
                                                                'package' => '',
                                                                'version' => [
                                                                                                                                
                                                                ]
                                ],
                                'isObsolete' => null,
                                'maxAffectedVersion' => [
                                                                
                                ],
                                'minAffectedVersion' => [
                                                                
                                ],
                                'package' => '',
                                'packageType' => '',
                                'severityName' => '',
                                'source' => '',
                                'sourceUpdateTime' => '',
                                'vendor' => ''
                ]
        ],
        'severity' => '',
        'sourceUpdateTime' => '',
        'windowsDetails' => [
                [
                                'cpeUri' => '',
                                'description' => '',
                                'fixingKbs' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'url' => ''
                                                                ]
                                ],
                                'name' => ''
                ]
        ]
    ],
    'vulnerabilityAssessment' => [
        'assessment' => [
                'cve' => '',
                'impacts' => [
                                
                ],
                'justification' => [
                                'details' => '',
                                'justificationType' => ''
                ],
                'longDescription' => '',
                'relatedUris' => [
                                [
                                                                
                                ]
                ],
                'remediations' => [
                                [
                                                                'details' => '',
                                                                'remediationType' => '',
                                                                'remediationUri' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'shortDescription' => '',
                'state' => ''
        ],
        'languageCode' => '',
        'longDescription' => '',
        'product' => [
                'genericUri' => '',
                'id' => '',
                'name' => ''
        ],
        'publisher' => [
                'issuingAuthority' => '',
                'name' => '',
                'publisherNamespace' => ''
        ],
        'shortDescription' => '',
        'title' => ''
    ]
  ]),
  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}}/v1beta1/:parent/notes', [
  'body' => '{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attestationAuthority' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'baseImage' => [
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'resourceUrl' => ''
  ],
  'build' => [
    'builderVersion' => '',
    'signature' => [
        'keyId' => '',
        'keyType' => '',
        'publicKey' => '',
        'signature' => ''
    ]
  ],
  'createTime' => '',
  'deployable' => [
    'resourceUri' => [
        
    ]
  ],
  'discovery' => [
    'analysisKind' => ''
  ],
  'expirationTime' => '',
  'intoto' => [
    'expectedCommand' => [
        
    ],
    'expectedMaterials' => [
        [
                'artifactRule' => [
                                
                ]
        ]
    ],
    'expectedProducts' => [
        [
                
        ]
    ],
    'signingKeys' => [
        [
                'keyId' => '',
                'keyScheme' => '',
                'keyType' => '',
                'publicKeyValue' => ''
        ]
    ],
    'stepName' => '',
    'threshold' => ''
  ],
  'kind' => '',
  'longDescription' => '',
  'name' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'description' => '',
    'digest' => [
        [
                'algo' => '',
                'digestBytes' => ''
        ]
    ],
    'distribution' => [
        [
                'architecture' => '',
                'cpeUri' => '',
                'description' => '',
                'latestVersion' => [
                                'epoch' => 0,
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ],
                'maintainer' => '',
                'url' => ''
        ]
    ],
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'maintainer' => '',
    'name' => '',
    'packageType' => '',
    'url' => '',
    'version' => [
        
    ]
  ],
  'relatedNoteNames' => [
    
  ],
  'relatedUrl' => [
    [
        'label' => '',
        'url' => ''
    ]
  ],
  'sbom' => [
    'dataLicence' => '',
    'spdxVersion' => ''
  ],
  'sbomReference' => [
    'format' => '',
    'version' => ''
  ],
  'shortDescription' => '',
  'spdxFile' => [
    'checksum' => [
        
    ],
    'fileType' => '',
    'title' => ''
  ],
  'spdxPackage' => [
    'analyzed' => null,
    'attribution' => '',
    'checksum' => '',
    'copyright' => '',
    'detailedDescription' => '',
    'downloadLocation' => '',
    'externalRefs' => [
        [
                'category' => '',
                'comment' => '',
                'locator' => '',
                'type' => ''
        ]
    ],
    'filesLicenseInfo' => [
        
    ],
    'homePage' => '',
    'licenseDeclared' => [
        
    ],
    'originator' => '',
    'packageType' => '',
    'summaryDescription' => '',
    'supplier' => '',
    'title' => '',
    'verificationCode' => '',
    'version' => ''
  ],
  'spdxRelationship' => [
    'type' => ''
  ],
  'updateTime' => '',
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssV3' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssVersion' => '',
    'cwe' => [
        
    ],
    'details' => [
        [
                'cpeUri' => '',
                'description' => '',
                'fixedLocation' => [
                                'cpeUri' => '',
                                'package' => '',
                                'version' => [
                                                                
                                ]
                ],
                'isObsolete' => null,
                'maxAffectedVersion' => [
                                
                ],
                'minAffectedVersion' => [
                                
                ],
                'package' => '',
                'packageType' => '',
                'severityName' => '',
                'source' => '',
                'sourceUpdateTime' => '',
                'vendor' => ''
        ]
    ],
    'severity' => '',
    'sourceUpdateTime' => '',
    'windowsDetails' => [
        [
                'cpeUri' => '',
                'description' => '',
                'fixingKbs' => [
                                [
                                                                'name' => '',
                                                                'url' => ''
                                ]
                ],
                'name' => ''
        ]
    ]
  ],
  'vulnerabilityAssessment' => [
    'assessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'longDescription' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'shortDescription' => '',
        'state' => ''
    ],
    'languageCode' => '',
    'longDescription' => '',
    'product' => [
        'genericUri' => '',
        'id' => '',
        'name' => ''
    ],
    'publisher' => [
        'issuingAuthority' => '',
        'name' => '',
        'publisherNamespace' => ''
    ],
    'shortDescription' => '',
    'title' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attestationAuthority' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'baseImage' => [
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'resourceUrl' => ''
  ],
  'build' => [
    'builderVersion' => '',
    'signature' => [
        'keyId' => '',
        'keyType' => '',
        'publicKey' => '',
        'signature' => ''
    ]
  ],
  'createTime' => '',
  'deployable' => [
    'resourceUri' => [
        
    ]
  ],
  'discovery' => [
    'analysisKind' => ''
  ],
  'expirationTime' => '',
  'intoto' => [
    'expectedCommand' => [
        
    ],
    'expectedMaterials' => [
        [
                'artifactRule' => [
                                
                ]
        ]
    ],
    'expectedProducts' => [
        [
                
        ]
    ],
    'signingKeys' => [
        [
                'keyId' => '',
                'keyScheme' => '',
                'keyType' => '',
                'publicKeyValue' => ''
        ]
    ],
    'stepName' => '',
    'threshold' => ''
  ],
  'kind' => '',
  'longDescription' => '',
  'name' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'description' => '',
    'digest' => [
        [
                'algo' => '',
                'digestBytes' => ''
        ]
    ],
    'distribution' => [
        [
                'architecture' => '',
                'cpeUri' => '',
                'description' => '',
                'latestVersion' => [
                                'epoch' => 0,
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ],
                'maintainer' => '',
                'url' => ''
        ]
    ],
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'maintainer' => '',
    'name' => '',
    'packageType' => '',
    'url' => '',
    'version' => [
        
    ]
  ],
  'relatedNoteNames' => [
    
  ],
  'relatedUrl' => [
    [
        'label' => '',
        'url' => ''
    ]
  ],
  'sbom' => [
    'dataLicence' => '',
    'spdxVersion' => ''
  ],
  'sbomReference' => [
    'format' => '',
    'version' => ''
  ],
  'shortDescription' => '',
  'spdxFile' => [
    'checksum' => [
        
    ],
    'fileType' => '',
    'title' => ''
  ],
  'spdxPackage' => [
    'analyzed' => null,
    'attribution' => '',
    'checksum' => '',
    'copyright' => '',
    'detailedDescription' => '',
    'downloadLocation' => '',
    'externalRefs' => [
        [
                'category' => '',
                'comment' => '',
                'locator' => '',
                'type' => ''
        ]
    ],
    'filesLicenseInfo' => [
        
    ],
    'homePage' => '',
    'licenseDeclared' => [
        
    ],
    'originator' => '',
    'packageType' => '',
    'summaryDescription' => '',
    'supplier' => '',
    'title' => '',
    'verificationCode' => '',
    'version' => ''
  ],
  'spdxRelationship' => [
    'type' => ''
  ],
  'updateTime' => '',
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssV3' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssVersion' => '',
    'cwe' => [
        
    ],
    'details' => [
        [
                'cpeUri' => '',
                'description' => '',
                'fixedLocation' => [
                                'cpeUri' => '',
                                'package' => '',
                                'version' => [
                                                                
                                ]
                ],
                'isObsolete' => null,
                'maxAffectedVersion' => [
                                
                ],
                'minAffectedVersion' => [
                                
                ],
                'package' => '',
                'packageType' => '',
                'severityName' => '',
                'source' => '',
                'sourceUpdateTime' => '',
                'vendor' => ''
        ]
    ],
    'severity' => '',
    'sourceUpdateTime' => '',
    'windowsDetails' => [
        [
                'cpeUri' => '',
                'description' => '',
                'fixingKbs' => [
                                [
                                                                'name' => '',
                                                                'url' => ''
                                ]
                ],
                'name' => ''
        ]
    ]
  ],
  'vulnerabilityAssessment' => [
    'assessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'longDescription' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'shortDescription' => '',
        'state' => ''
    ],
    'languageCode' => '',
    'longDescription' => '',
    'product' => [
        'genericUri' => '',
        'id' => '',
        'name' => ''
    ],
    'publisher' => [
        'issuingAuthority' => '',
        'name' => '',
        'publisherNamespace' => ''
    ],
    'shortDescription' => '',
    'title' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/notes');
$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}}/v1beta1/:parent/notes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/notes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
import http.client

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

payload = "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/notes", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/notes"

payload = {
    "attestationAuthority": { "hint": { "humanReadableName": "" } },
    "baseImage": {
        "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
        },
        "resourceUrl": ""
    },
    "build": {
        "builderVersion": "",
        "signature": {
            "keyId": "",
            "keyType": "",
            "publicKey": "",
            "signature": ""
        }
    },
    "createTime": "",
    "deployable": { "resourceUri": [] },
    "discovery": { "analysisKind": "" },
    "expirationTime": "",
    "intoto": {
        "expectedCommand": [],
        "expectedMaterials": [{ "artifactRule": [] }],
        "expectedProducts": [{}],
        "signingKeys": [
            {
                "keyId": "",
                "keyScheme": "",
                "keyType": "",
                "publicKeyValue": ""
            }
        ],
        "stepName": "",
        "threshold": ""
    },
    "kind": "",
    "longDescription": "",
    "name": "",
    "package": {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "digest": [
            {
                "algo": "",
                "digestBytes": ""
            }
        ],
        "distribution": [
            {
                "architecture": "",
                "cpeUri": "",
                "description": "",
                "latestVersion": {
                    "epoch": 0,
                    "inclusive": False,
                    "kind": "",
                    "name": "",
                    "revision": ""
                },
                "maintainer": "",
                "url": ""
            }
        ],
        "license": {
            "comments": "",
            "expression": ""
        },
        "maintainer": "",
        "name": "",
        "packageType": "",
        "url": "",
        "version": {}
    },
    "relatedNoteNames": [],
    "relatedUrl": [
        {
            "label": "",
            "url": ""
        }
    ],
    "sbom": {
        "dataLicence": "",
        "spdxVersion": ""
    },
    "sbomReference": {
        "format": "",
        "version": ""
    },
    "shortDescription": "",
    "spdxFile": {
        "checksum": [],
        "fileType": "",
        "title": ""
    },
    "spdxPackage": {
        "analyzed": False,
        "attribution": "",
        "checksum": "",
        "copyright": "",
        "detailedDescription": "",
        "downloadLocation": "",
        "externalRefs": [
            {
                "category": "",
                "comment": "",
                "locator": "",
                "type": ""
            }
        ],
        "filesLicenseInfo": [],
        "homePage": "",
        "licenseDeclared": {},
        "originator": "",
        "packageType": "",
        "summaryDescription": "",
        "supplier": "",
        "title": "",
        "verificationCode": "",
        "version": ""
    },
    "spdxRelationship": { "type": "" },
    "updateTime": "",
    "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
            "attackComplexity": "",
            "attackVector": "",
            "authentication": "",
            "availabilityImpact": "",
            "baseScore": "",
            "confidentialityImpact": "",
            "exploitabilityScore": "",
            "impactScore": "",
            "integrityImpact": "",
            "privilegesRequired": "",
            "scope": "",
            "userInteraction": ""
        },
        "cvssV3": {
            "attackComplexity": "",
            "attackVector": "",
            "availabilityImpact": "",
            "baseScore": "",
            "confidentialityImpact": "",
            "exploitabilityScore": "",
            "impactScore": "",
            "integrityImpact": "",
            "privilegesRequired": "",
            "scope": "",
            "userInteraction": ""
        },
        "cvssVersion": "",
        "cwe": [],
        "details": [
            {
                "cpeUri": "",
                "description": "",
                "fixedLocation": {
                    "cpeUri": "",
                    "package": "",
                    "version": {}
                },
                "isObsolete": False,
                "maxAffectedVersion": {},
                "minAffectedVersion": {},
                "package": "",
                "packageType": "",
                "severityName": "",
                "source": "",
                "sourceUpdateTime": "",
                "vendor": ""
            }
        ],
        "severity": "",
        "sourceUpdateTime": "",
        "windowsDetails": [
            {
                "cpeUri": "",
                "description": "",
                "fixingKbs": [
                    {
                        "name": "",
                        "url": ""
                    }
                ],
                "name": ""
            }
        ]
    },
    "vulnerabilityAssessment": {
        "assessment": {
            "cve": "",
            "impacts": [],
            "justification": {
                "details": "",
                "justificationType": ""
            },
            "longDescription": "",
            "relatedUris": [{}],
            "remediations": [
                {
                    "details": "",
                    "remediationType": "",
                    "remediationUri": {}
                }
            ],
            "shortDescription": "",
            "state": ""
        },
        "languageCode": "",
        "longDescription": "",
        "product": {
            "genericUri": "",
            "id": "",
            "name": ""
        },
        "publisher": {
            "issuingAuthority": "",
            "name": "",
            "publisherNamespace": ""
        },
        "shortDescription": "",
        "title": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/notes"

payload <- "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/notes")

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  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/v1beta1/:parent/notes') do |req|
  req.body = "{\n  \"attestationAuthority\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"baseImage\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\n  },\n  \"build\": {\n    \"builderVersion\": \"\",\n    \"signature\": {\n      \"keyId\": \"\",\n      \"keyType\": \"\",\n      \"publicKey\": \"\",\n      \"signature\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployable\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"expirationTime\": \"\",\n  \"intoto\": {\n    \"expectedCommand\": [],\n    \"expectedMaterials\": [\n      {\n        \"artifactRule\": []\n      }\n    ],\n    \"expectedProducts\": [\n      {}\n    ],\n    \"signingKeys\": [\n      {\n        \"keyId\": \"\",\n        \"keyScheme\": \"\",\n        \"keyType\": \"\",\n        \"publicKeyValue\": \"\"\n      }\n    ],\n    \"stepName\": \"\",\n    \"threshold\": \"\"\n  },\n  \"kind\": \"\",\n  \"longDescription\": \"\",\n  \"name\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"description\": \"\",\n    \"digest\": [\n      {\n        \"algo\": \"\",\n        \"digestBytes\": \"\"\n      }\n    ],\n    \"distribution\": [\n      {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"latestVersion\": {\n          \"epoch\": 0,\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        },\n        \"maintainer\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"maintainer\": \"\",\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"url\": \"\",\n    \"version\": {}\n  },\n  \"relatedNoteNames\": [],\n  \"relatedUrl\": [\n    {\n      \"label\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"sbom\": {\n    \"dataLicence\": \"\",\n    \"spdxVersion\": \"\"\n  },\n  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"spdxFile\": {\n    \"checksum\": [],\n    \"fileType\": \"\",\n    \"title\": \"\"\n  },\n  \"spdxPackage\": {\n    \"analyzed\": false,\n    \"attribution\": \"\",\n    \"checksum\": \"\",\n    \"copyright\": \"\",\n    \"detailedDescription\": \"\",\n    \"downloadLocation\": \"\",\n    \"externalRefs\": [\n      {\n        \"category\": \"\",\n        \"comment\": \"\",\n        \"locator\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"filesLicenseInfo\": [],\n    \"homePage\": \"\",\n    \"licenseDeclared\": {},\n    \"originator\": \"\",\n    \"packageType\": \"\",\n    \"summaryDescription\": \"\",\n    \"supplier\": \"\",\n    \"title\": \"\",\n    \"verificationCode\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssVersion\": \"\",\n    \"cwe\": [],\n    \"details\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"isObsolete\": false,\n        \"maxAffectedVersion\": {},\n        \"minAffectedVersion\": {},\n        \"package\": \"\",\n        \"packageType\": \"\",\n        \"severityName\": \"\",\n        \"source\": \"\",\n        \"sourceUpdateTime\": \"\",\n        \"vendor\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"sourceUpdateTime\": \"\",\n    \"windowsDetails\": [\n      {\n        \"cpeUri\": \"\",\n        \"description\": \"\",\n        \"fixingKbs\": [\n          {\n            \"name\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"vulnerabilityAssessment\": {\n    \"assessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"longDescription\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"shortDescription\": \"\",\n      \"state\": \"\"\n    },\n    \"languageCode\": \"\",\n    \"longDescription\": \"\",\n    \"product\": {\n      \"genericUri\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    },\n    \"publisher\": {\n      \"issuingAuthority\": \"\",\n      \"name\": \"\",\n      \"publisherNamespace\": \"\"\n    },\n    \"shortDescription\": \"\",\n    \"title\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "attestationAuthority": json!({"hint": json!({"humanReadableName": ""})}),
        "baseImage": json!({
            "fingerprint": json!({
                "v1Name": "",
                "v2Blob": (),
                "v2Name": ""
            }),
            "resourceUrl": ""
        }),
        "build": json!({
            "builderVersion": "",
            "signature": json!({
                "keyId": "",
                "keyType": "",
                "publicKey": "",
                "signature": ""
            })
        }),
        "createTime": "",
        "deployable": json!({"resourceUri": ()}),
        "discovery": json!({"analysisKind": ""}),
        "expirationTime": "",
        "intoto": json!({
            "expectedCommand": (),
            "expectedMaterials": (json!({"artifactRule": ()})),
            "expectedProducts": (json!({})),
            "signingKeys": (
                json!({
                    "keyId": "",
                    "keyScheme": "",
                    "keyType": "",
                    "publicKeyValue": ""
                })
            ),
            "stepName": "",
            "threshold": ""
        }),
        "kind": "",
        "longDescription": "",
        "name": "",
        "package": json!({
            "architecture": "",
            "cpeUri": "",
            "description": "",
            "digest": (
                json!({
                    "algo": "",
                    "digestBytes": ""
                })
            ),
            "distribution": (
                json!({
                    "architecture": "",
                    "cpeUri": "",
                    "description": "",
                    "latestVersion": json!({
                        "epoch": 0,
                        "inclusive": false,
                        "kind": "",
                        "name": "",
                        "revision": ""
                    }),
                    "maintainer": "",
                    "url": ""
                })
            ),
            "license": json!({
                "comments": "",
                "expression": ""
            }),
            "maintainer": "",
            "name": "",
            "packageType": "",
            "url": "",
            "version": json!({})
        }),
        "relatedNoteNames": (),
        "relatedUrl": (
            json!({
                "label": "",
                "url": ""
            })
        ),
        "sbom": json!({
            "dataLicence": "",
            "spdxVersion": ""
        }),
        "sbomReference": json!({
            "format": "",
            "version": ""
        }),
        "shortDescription": "",
        "spdxFile": json!({
            "checksum": (),
            "fileType": "",
            "title": ""
        }),
        "spdxPackage": json!({
            "analyzed": false,
            "attribution": "",
            "checksum": "",
            "copyright": "",
            "detailedDescription": "",
            "downloadLocation": "",
            "externalRefs": (
                json!({
                    "category": "",
                    "comment": "",
                    "locator": "",
                    "type": ""
                })
            ),
            "filesLicenseInfo": (),
            "homePage": "",
            "licenseDeclared": json!({}),
            "originator": "",
            "packageType": "",
            "summaryDescription": "",
            "supplier": "",
            "title": "",
            "verificationCode": "",
            "version": ""
        }),
        "spdxRelationship": json!({"type": ""}),
        "updateTime": "",
        "vulnerability": json!({
            "cvssScore": "",
            "cvssV2": json!({
                "attackComplexity": "",
                "attackVector": "",
                "authentication": "",
                "availabilityImpact": "",
                "baseScore": "",
                "confidentialityImpact": "",
                "exploitabilityScore": "",
                "impactScore": "",
                "integrityImpact": "",
                "privilegesRequired": "",
                "scope": "",
                "userInteraction": ""
            }),
            "cvssV3": json!({
                "attackComplexity": "",
                "attackVector": "",
                "availabilityImpact": "",
                "baseScore": "",
                "confidentialityImpact": "",
                "exploitabilityScore": "",
                "impactScore": "",
                "integrityImpact": "",
                "privilegesRequired": "",
                "scope": "",
                "userInteraction": ""
            }),
            "cvssVersion": "",
            "cwe": (),
            "details": (
                json!({
                    "cpeUri": "",
                    "description": "",
                    "fixedLocation": json!({
                        "cpeUri": "",
                        "package": "",
                        "version": json!({})
                    }),
                    "isObsolete": false,
                    "maxAffectedVersion": json!({}),
                    "minAffectedVersion": json!({}),
                    "package": "",
                    "packageType": "",
                    "severityName": "",
                    "source": "",
                    "sourceUpdateTime": "",
                    "vendor": ""
                })
            ),
            "severity": "",
            "sourceUpdateTime": "",
            "windowsDetails": (
                json!({
                    "cpeUri": "",
                    "description": "",
                    "fixingKbs": (
                        json!({
                            "name": "",
                            "url": ""
                        })
                    ),
                    "name": ""
                })
            )
        }),
        "vulnerabilityAssessment": json!({
            "assessment": json!({
                "cve": "",
                "impacts": (),
                "justification": json!({
                    "details": "",
                    "justificationType": ""
                }),
                "longDescription": "",
                "relatedUris": (json!({})),
                "remediations": (
                    json!({
                        "details": "",
                        "remediationType": "",
                        "remediationUri": json!({})
                    })
                ),
                "shortDescription": "",
                "state": ""
            }),
            "languageCode": "",
            "longDescription": "",
            "product": json!({
                "genericUri": "",
                "id": "",
                "name": ""
            }),
            "publisher": json!({
                "issuingAuthority": "",
                "name": "",
                "publisherNamespace": ""
            }),
            "shortDescription": "",
            "title": ""
        })
    });

    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}}/v1beta1/:parent/notes \
  --header 'content-type: application/json' \
  --data '{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
echo '{
  "attestationAuthority": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "baseImage": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "build": {
    "builderVersion": "",
    "signature": {
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    }
  },
  "createTime": "",
  "deployable": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "expirationTime": "",
  "intoto": {
    "expectedCommand": [],
    "expectedMaterials": [
      {
        "artifactRule": []
      }
    ],
    "expectedProducts": [
      {}
    ],
    "signingKeys": [
      {
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      }
    ],
    "stepName": "",
    "threshold": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbom": {
    "dataLicence": "",
    "spdxVersion": ""
  },
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "spdxFile": {
    "checksum": [],
    "fileType": "",
    "title": ""
  },
  "spdxPackage": {
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      {
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      }
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": {},
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  },
  "spdxRelationship": {
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cwe": [],
    "details": [
      {
        "cpeUri": "",
        "description": "",
        "fixedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "isObsolete": false,
        "maxAffectedVersion": {},
        "minAffectedVersion": {},
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      }
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      {
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          {
            "name": "",
            "url": ""
          }
        ],
        "name": ""
      }
    ]
  },
  "vulnerabilityAssessment": {
    "assessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "longDescription": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "shortDescription": "",
      "state": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/notes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attestationAuthority": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "baseImage": {\n    "fingerprint": {\n      "v1Name": "",\n      "v2Blob": [],\n      "v2Name": ""\n    },\n    "resourceUrl": ""\n  },\n  "build": {\n    "builderVersion": "",\n    "signature": {\n      "keyId": "",\n      "keyType": "",\n      "publicKey": "",\n      "signature": ""\n    }\n  },\n  "createTime": "",\n  "deployable": {\n    "resourceUri": []\n  },\n  "discovery": {\n    "analysisKind": ""\n  },\n  "expirationTime": "",\n  "intoto": {\n    "expectedCommand": [],\n    "expectedMaterials": [\n      {\n        "artifactRule": []\n      }\n    ],\n    "expectedProducts": [\n      {}\n    ],\n    "signingKeys": [\n      {\n        "keyId": "",\n        "keyScheme": "",\n        "keyType": "",\n        "publicKeyValue": ""\n      }\n    ],\n    "stepName": "",\n    "threshold": ""\n  },\n  "kind": "",\n  "longDescription": "",\n  "name": "",\n  "package": {\n    "architecture": "",\n    "cpeUri": "",\n    "description": "",\n    "digest": [\n      {\n        "algo": "",\n        "digestBytes": ""\n      }\n    ],\n    "distribution": [\n      {\n        "architecture": "",\n        "cpeUri": "",\n        "description": "",\n        "latestVersion": {\n          "epoch": 0,\n          "inclusive": false,\n          "kind": "",\n          "name": "",\n          "revision": ""\n        },\n        "maintainer": "",\n        "url": ""\n      }\n    ],\n    "license": {\n      "comments": "",\n      "expression": ""\n    },\n    "maintainer": "",\n    "name": "",\n    "packageType": "",\n    "url": "",\n    "version": {}\n  },\n  "relatedNoteNames": [],\n  "relatedUrl": [\n    {\n      "label": "",\n      "url": ""\n    }\n  ],\n  "sbom": {\n    "dataLicence": "",\n    "spdxVersion": ""\n  },\n  "sbomReference": {\n    "format": "",\n    "version": ""\n  },\n  "shortDescription": "",\n  "spdxFile": {\n    "checksum": [],\n    "fileType": "",\n    "title": ""\n  },\n  "spdxPackage": {\n    "analyzed": false,\n    "attribution": "",\n    "checksum": "",\n    "copyright": "",\n    "detailedDescription": "",\n    "downloadLocation": "",\n    "externalRefs": [\n      {\n        "category": "",\n        "comment": "",\n        "locator": "",\n        "type": ""\n      }\n    ],\n    "filesLicenseInfo": [],\n    "homePage": "",\n    "licenseDeclared": {},\n    "originator": "",\n    "packageType": "",\n    "summaryDescription": "",\n    "supplier": "",\n    "title": "",\n    "verificationCode": "",\n    "version": ""\n  },\n  "spdxRelationship": {\n    "type": ""\n  },\n  "updateTime": "",\n  "vulnerability": {\n    "cvssScore": "",\n    "cvssV2": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "authentication": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssV3": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssVersion": "",\n    "cwe": [],\n    "details": [\n      {\n        "cpeUri": "",\n        "description": "",\n        "fixedLocation": {\n          "cpeUri": "",\n          "package": "",\n          "version": {}\n        },\n        "isObsolete": false,\n        "maxAffectedVersion": {},\n        "minAffectedVersion": {},\n        "package": "",\n        "packageType": "",\n        "severityName": "",\n        "source": "",\n        "sourceUpdateTime": "",\n        "vendor": ""\n      }\n    ],\n    "severity": "",\n    "sourceUpdateTime": "",\n    "windowsDetails": [\n      {\n        "cpeUri": "",\n        "description": "",\n        "fixingKbs": [\n          {\n            "name": "",\n            "url": ""\n          }\n        ],\n        "name": ""\n      }\n    ]\n  },\n  "vulnerabilityAssessment": {\n    "assessment": {\n      "cve": "",\n      "impacts": [],\n      "justification": {\n        "details": "",\n        "justificationType": ""\n      },\n      "longDescription": "",\n      "relatedUris": [\n        {}\n      ],\n      "remediations": [\n        {\n          "details": "",\n          "remediationType": "",\n          "remediationUri": {}\n        }\n      ],\n      "shortDescription": "",\n      "state": ""\n    },\n    "languageCode": "",\n    "longDescription": "",\n    "product": {\n      "genericUri": "",\n      "id": "",\n      "name": ""\n    },\n    "publisher": {\n      "issuingAuthority": "",\n      "name": "",\n      "publisherNamespace": ""\n    },\n    "shortDescription": "",\n    "title": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/notes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attestationAuthority": ["hint": ["humanReadableName": ""]],
  "baseImage": [
    "fingerprint": [
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    ],
    "resourceUrl": ""
  ],
  "build": [
    "builderVersion": "",
    "signature": [
      "keyId": "",
      "keyType": "",
      "publicKey": "",
      "signature": ""
    ]
  ],
  "createTime": "",
  "deployable": ["resourceUri": []],
  "discovery": ["analysisKind": ""],
  "expirationTime": "",
  "intoto": [
    "expectedCommand": [],
    "expectedMaterials": [["artifactRule": []]],
    "expectedProducts": [[]],
    "signingKeys": [
      [
        "keyId": "",
        "keyScheme": "",
        "keyType": "",
        "publicKeyValue": ""
      ]
    ],
    "stepName": "",
    "threshold": ""
  ],
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": [
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      [
        "algo": "",
        "digestBytes": ""
      ]
    ],
    "distribution": [
      [
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": [
          "epoch": 0,
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        ],
        "maintainer": "",
        "url": ""
      ]
    ],
    "license": [
      "comments": "",
      "expression": ""
    ],
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": []
  ],
  "relatedNoteNames": [],
  "relatedUrl": [
    [
      "label": "",
      "url": ""
    ]
  ],
  "sbom": [
    "dataLicence": "",
    "spdxVersion": ""
  ],
  "sbomReference": [
    "format": "",
    "version": ""
  ],
  "shortDescription": "",
  "spdxFile": [
    "checksum": [],
    "fileType": "",
    "title": ""
  ],
  "spdxPackage": [
    "analyzed": false,
    "attribution": "",
    "checksum": "",
    "copyright": "",
    "detailedDescription": "",
    "downloadLocation": "",
    "externalRefs": [
      [
        "category": "",
        "comment": "",
        "locator": "",
        "type": ""
      ]
    ],
    "filesLicenseInfo": [],
    "homePage": "",
    "licenseDeclared": [],
    "originator": "",
    "packageType": "",
    "summaryDescription": "",
    "supplier": "",
    "title": "",
    "verificationCode": "",
    "version": ""
  ],
  "spdxRelationship": ["type": ""],
  "updateTime": "",
  "vulnerability": [
    "cvssScore": "",
    "cvssV2": [
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    ],
    "cvssV3": [
      "attackComplexity": "",
      "attackVector": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    ],
    "cvssVersion": "",
    "cwe": [],
    "details": [
      [
        "cpeUri": "",
        "description": "",
        "fixedLocation": [
          "cpeUri": "",
          "package": "",
          "version": []
        ],
        "isObsolete": false,
        "maxAffectedVersion": [],
        "minAffectedVersion": [],
        "package": "",
        "packageType": "",
        "severityName": "",
        "source": "",
        "sourceUpdateTime": "",
        "vendor": ""
      ]
    ],
    "severity": "",
    "sourceUpdateTime": "",
    "windowsDetails": [
      [
        "cpeUri": "",
        "description": "",
        "fixingKbs": [
          [
            "name": "",
            "url": ""
          ]
        ],
        "name": ""
      ]
    ]
  ],
  "vulnerabilityAssessment": [
    "assessment": [
      "cve": "",
      "impacts": [],
      "justification": [
        "details": "",
        "justificationType": ""
      ],
      "longDescription": "",
      "relatedUris": [[]],
      "remediations": [
        [
          "details": "",
          "remediationType": "",
          "remediationUri": []
        ]
      ],
      "shortDescription": "",
      "state": ""
    ],
    "languageCode": "",
    "longDescription": "",
    "product": [
      "genericUri": "",
      "id": "",
      "name": ""
    ],
    "publisher": [
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    ],
    "shortDescription": "",
    "title": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/notes")! 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 containeranalysis.projects.notes.list
{{baseUrl}}/v1beta1/:parent/notes
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1beta1/:parent/notes")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/notes"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/notes"

	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/v1beta1/:parent/notes HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/notes'};

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

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

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

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

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

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

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

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

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}}/v1beta1/:parent/notes'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/notes")

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

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

url = "{{baseUrl}}/v1beta1/:parent/notes"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/notes"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/notes")

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/v1beta1/:parent/notes') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/notes
http GET {{baseUrl}}/v1beta1/:parent/notes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/notes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/notes")! 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 containeranalysis.projects.notes.occurrences.list
{{baseUrl}}/v1beta1/:name/occurrences
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1beta1/:name/occurrences"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name/occurrences"

	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/v1beta1/:name/occurrences HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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}}/v1beta1/:name/occurrences'};

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

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

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1beta1/:name/occurrences"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:name/occurrences"

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

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

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

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/v1beta1/:name/occurrences') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:name/occurrences
http GET {{baseUrl}}/v1beta1/:name/occurrences
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:name/occurrences
import Foundation

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

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

dataTask.resume()
POST containeranalysis.projects.occurrences.batchCreate
{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate
QUERY PARAMS

parent
BODY json

{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate");

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  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate" {:content-type :json
                                                                                    :form-params {:occurrences [{:attestation {:attestation {:genericSignedAttestation {:contentType ""
                                                                                                                                                                        :serializedPayload ""
                                                                                                                                                                        :signatures [{:publicKeyId ""
                                                                                                                                                                                      :signature ""}]}
                                                                                                                                             :pgpSignedAttestation {:contentType ""
                                                                                                                                                                    :pgpKeyId ""
                                                                                                                                                                    :signature ""}}}
                                                                                                                 :build {:provenance {:buildOptions {}
                                                                                                                                      :builderVersion ""
                                                                                                                                      :builtArtifacts [{:checksum ""
                                                                                                                                                        :id ""
                                                                                                                                                        :names []}]
                                                                                                                                      :commands [{:args []
                                                                                                                                                  :dir ""
                                                                                                                                                  :env []
                                                                                                                                                  :id ""
                                                                                                                                                  :name ""
                                                                                                                                                  :waitFor []}]
                                                                                                                                      :createTime ""
                                                                                                                                      :creator ""
                                                                                                                                      :endTime ""
                                                                                                                                      :id ""
                                                                                                                                      :logsUri ""
                                                                                                                                      :projectId ""
                                                                                                                                      :sourceProvenance {:additionalContexts [{:cloudRepo {:aliasContext {:kind ""
                                                                                                                                                                                                          :name ""}
                                                                                                                                                                                           :repoId {:projectRepoId {:projectId ""
                                                                                                                                                                                                                    :repoName ""}
                                                                                                                                                                                                    :uid ""}
                                                                                                                                                                                           :revisionId ""}
                                                                                                                                                                               :gerrit {:aliasContext {}
                                                                                                                                                                                        :gerritProject ""
                                                                                                                                                                                        :hostUri ""
                                                                                                                                                                                        :revisionId ""}
                                                                                                                                                                               :git {:revisionId ""
                                                                                                                                                                                     :url ""}
                                                                                                                                                                               :labels {}}]
                                                                                                                                                         :artifactStorageSourceUri ""
                                                                                                                                                         :context {}
                                                                                                                                                         :fileHashes {}}
                                                                                                                                      :startTime ""
                                                                                                                                      :triggerId ""}
                                                                                                                         :provenanceBytes ""}
                                                                                                                 :createTime ""
                                                                                                                 :deployment {:deployment {:address ""
                                                                                                                                           :config ""
                                                                                                                                           :deployTime ""
                                                                                                                                           :platform ""
                                                                                                                                           :resourceUri []
                                                                                                                                           :undeployTime ""
                                                                                                                                           :userEmail ""}}
                                                                                                                 :derivedImage {:derivedImage {:baseResourceUrl ""
                                                                                                                                               :distance 0
                                                                                                                                               :fingerprint {:v1Name ""
                                                                                                                                                             :v2Blob []
                                                                                                                                                             :v2Name ""}
                                                                                                                                               :layerInfo [{:arguments ""
                                                                                                                                                            :directive ""}]}}
                                                                                                                 :discovered {:discovered {:analysisCompleted {:analysisType []}
                                                                                                                                           :analysisError [{:code 0
                                                                                                                                                            :details [{}]
                                                                                                                                                            :message ""}]
                                                                                                                                           :analysisStatus ""
                                                                                                                                           :analysisStatusError {}
                                                                                                                                           :continuousAnalysis ""
                                                                                                                                           :lastAnalysisTime ""}}
                                                                                                                 :envelope {:payload ""
                                                                                                                            :payloadType ""
                                                                                                                            :signatures [{:keyid ""
                                                                                                                                          :sig ""}]}
                                                                                                                 :installation {:installation {:architecture ""
                                                                                                                                               :cpeUri ""
                                                                                                                                               :license {:comments ""
                                                                                                                                                         :expression ""}
                                                                                                                                               :location [{:cpeUri ""
                                                                                                                                                           :path ""
                                                                                                                                                           :version {:epoch 0
                                                                                                                                                                     :inclusive false
                                                                                                                                                                     :kind ""
                                                                                                                                                                     :name ""
                                                                                                                                                                     :revision ""}}]
                                                                                                                                               :name ""
                                                                                                                                               :packageType ""
                                                                                                                                               :version {}}}
                                                                                                                 :intoto {:signatures [{:keyid ""
                                                                                                                                        :sig ""}]
                                                                                                                          :signed {:byproducts {:customValues {}}
                                                                                                                                   :command []
                                                                                                                                   :environment {:customValues {}}
                                                                                                                                   :materials [{:hashes {:sha256 ""}
                                                                                                                                                :resourceUri ""}]
                                                                                                                                   :products [{}]}}
                                                                                                                 :kind ""
                                                                                                                 :name ""
                                                                                                                 :noteName ""
                                                                                                                 :remediation ""
                                                                                                                 :resource {:contentHash {:type ""
                                                                                                                                          :value ""}
                                                                                                                            :name ""
                                                                                                                            :uri ""}
                                                                                                                 :sbom {:createTime ""
                                                                                                                        :creatorComment ""
                                                                                                                        :creators []
                                                                                                                        :documentComment ""
                                                                                                                        :externalDocumentRefs []
                                                                                                                        :id ""
                                                                                                                        :licenseListVersion ""
                                                                                                                        :namespace ""
                                                                                                                        :title ""}
                                                                                                                 :sbomReference {:payload {:_type ""
                                                                                                                                           :predicate {:digest {}
                                                                                                                                                       :location ""
                                                                                                                                                       :mimeType ""
                                                                                                                                                       :referrerId ""}
                                                                                                                                           :predicateType ""
                                                                                                                                           :subject [{:digest {}
                                                                                                                                                      :name ""}]}
                                                                                                                                 :payloadType ""
                                                                                                                                 :signatures [{}]}
                                                                                                                 :spdxFile {:attributions []
                                                                                                                            :comment ""
                                                                                                                            :contributors []
                                                                                                                            :copyright ""
                                                                                                                            :filesLicenseInfo []
                                                                                                                            :id ""
                                                                                                                            :licenseConcluded {}
                                                                                                                            :notice ""}
                                                                                                                 :spdxPackage {:comment ""
                                                                                                                               :filename ""
                                                                                                                               :homePage ""
                                                                                                                               :id ""
                                                                                                                               :licenseConcluded {}
                                                                                                                               :packageType ""
                                                                                                                               :sourceInfo ""
                                                                                                                               :summaryDescription ""
                                                                                                                               :title ""
                                                                                                                               :version ""}
                                                                                                                 :spdxRelationship {:comment ""
                                                                                                                                    :source ""
                                                                                                                                    :target ""
                                                                                                                                    :type ""}
                                                                                                                 :updateTime ""
                                                                                                                 :vulnerability {:cvssScore ""
                                                                                                                                 :cvssV2 {:attackComplexity ""
                                                                                                                                          :attackVector ""
                                                                                                                                          :authentication ""
                                                                                                                                          :availabilityImpact ""
                                                                                                                                          :baseScore ""
                                                                                                                                          :confidentialityImpact ""
                                                                                                                                          :exploitabilityScore ""
                                                                                                                                          :impactScore ""
                                                                                                                                          :integrityImpact ""
                                                                                                                                          :privilegesRequired ""
                                                                                                                                          :scope ""
                                                                                                                                          :userInteraction ""}
                                                                                                                                 :cvssV3 {}
                                                                                                                                 :cvssVersion ""
                                                                                                                                 :effectiveSeverity ""
                                                                                                                                 :longDescription ""
                                                                                                                                 :packageIssue [{:affectedLocation {:cpeUri ""
                                                                                                                                                                    :package ""
                                                                                                                                                                    :version {}}
                                                                                                                                                 :effectiveSeverity ""
                                                                                                                                                 :fixedLocation {}
                                                                                                                                                 :packageType ""
                                                                                                                                                 :severityName ""}]
                                                                                                                                 :relatedUrls [{:label ""
                                                                                                                                                :url ""}]
                                                                                                                                 :severity ""
                                                                                                                                 :shortDescription ""
                                                                                                                                 :type ""
                                                                                                                                 :vexAssessment {:cve ""
                                                                                                                                                 :impacts []
                                                                                                                                                 :justification {:details ""
                                                                                                                                                                 :justificationType ""}
                                                                                                                                                 :noteName ""
                                                                                                                                                 :relatedUris [{}]
                                                                                                                                                 :remediations [{:details ""
                                                                                                                                                                 :remediationType ""
                                                                                                                                                                 :remediationUri {}}]
                                                                                                                                                 :state ""}}}]}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"),
    Content = new StringContent("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"

	payload := strings.NewReader("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta1/:parent/occurrences:batchCreate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 7845

{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate")
  .header("content-type", "application/json")
  .body("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  occurrences: [
    {
      attestation: {
        attestation: {
          genericSignedAttestation: {
            contentType: '',
            serializedPayload: '',
            signatures: [
              {
                publicKeyId: '',
                signature: ''
              }
            ]
          },
          pgpSignedAttestation: {
            contentType: '',
            pgpKeyId: '',
            signature: ''
          }
        }
      },
      build: {
        provenance: {
          buildOptions: {},
          builderVersion: '',
          builtArtifacts: [
            {
              checksum: '',
              id: '',
              names: []
            }
          ],
          commands: [
            {
              args: [],
              dir: '',
              env: [],
              id: '',
              name: '',
              waitFor: []
            }
          ],
          createTime: '',
          creator: '',
          endTime: '',
          id: '',
          logsUri: '',
          projectId: '',
          sourceProvenance: {
            additionalContexts: [
              {
                cloudRepo: {
                  aliasContext: {
                    kind: '',
                    name: ''
                  },
                  repoId: {
                    projectRepoId: {
                      projectId: '',
                      repoName: ''
                    },
                    uid: ''
                  },
                  revisionId: ''
                },
                gerrit: {
                  aliasContext: {},
                  gerritProject: '',
                  hostUri: '',
                  revisionId: ''
                },
                git: {
                  revisionId: '',
                  url: ''
                },
                labels: {}
              }
            ],
            artifactStorageSourceUri: '',
            context: {},
            fileHashes: {}
          },
          startTime: '',
          triggerId: ''
        },
        provenanceBytes: ''
      },
      createTime: '',
      deployment: {
        deployment: {
          address: '',
          config: '',
          deployTime: '',
          platform: '',
          resourceUri: [],
          undeployTime: '',
          userEmail: ''
        }
      },
      derivedImage: {
        derivedImage: {
          baseResourceUrl: '',
          distance: 0,
          fingerprint: {
            v1Name: '',
            v2Blob: [],
            v2Name: ''
          },
          layerInfo: [
            {
              arguments: '',
              directive: ''
            }
          ]
        }
      },
      discovered: {
        discovered: {
          analysisCompleted: {
            analysisType: []
          },
          analysisError: [
            {
              code: 0,
              details: [
                {}
              ],
              message: ''
            }
          ],
          analysisStatus: '',
          analysisStatusError: {},
          continuousAnalysis: '',
          lastAnalysisTime: ''
        }
      },
      envelope: {
        payload: '',
        payloadType: '',
        signatures: [
          {
            keyid: '',
            sig: ''
          }
        ]
      },
      installation: {
        installation: {
          architecture: '',
          cpeUri: '',
          license: {
            comments: '',
            expression: ''
          },
          location: [
            {
              cpeUri: '',
              path: '',
              version: {
                epoch: 0,
                inclusive: false,
                kind: '',
                name: '',
                revision: ''
              }
            }
          ],
          name: '',
          packageType: '',
          version: {}
        }
      },
      intoto: {
        signatures: [
          {
            keyid: '',
            sig: ''
          }
        ],
        signed: {
          byproducts: {
            customValues: {}
          },
          command: [],
          environment: {
            customValues: {}
          },
          materials: [
            {
              hashes: {
                sha256: ''
              },
              resourceUri: ''
            }
          ],
          products: [
            {}
          ]
        }
      },
      kind: '',
      name: '',
      noteName: '',
      remediation: '',
      resource: {
        contentHash: {
          type: '',
          value: ''
        },
        name: '',
        uri: ''
      },
      sbom: {
        createTime: '',
        creatorComment: '',
        creators: [],
        documentComment: '',
        externalDocumentRefs: [],
        id: '',
        licenseListVersion: '',
        namespace: '',
        title: ''
      },
      sbomReference: {
        payload: {
          _type: '',
          predicate: {
            digest: {},
            location: '',
            mimeType: '',
            referrerId: ''
          },
          predicateType: '',
          subject: [
            {
              digest: {},
              name: ''
            }
          ]
        },
        payloadType: '',
        signatures: [
          {}
        ]
      },
      spdxFile: {
        attributions: [],
        comment: '',
        contributors: [],
        copyright: '',
        filesLicenseInfo: [],
        id: '',
        licenseConcluded: {},
        notice: ''
      },
      spdxPackage: {
        comment: '',
        filename: '',
        homePage: '',
        id: '',
        licenseConcluded: {},
        packageType: '',
        sourceInfo: '',
        summaryDescription: '',
        title: '',
        version: ''
      },
      spdxRelationship: {
        comment: '',
        source: '',
        target: '',
        type: ''
      },
      updateTime: '',
      vulnerability: {
        cvssScore: '',
        cvssV2: {
          attackComplexity: '',
          attackVector: '',
          authentication: '',
          availabilityImpact: '',
          baseScore: '',
          confidentialityImpact: '',
          exploitabilityScore: '',
          impactScore: '',
          integrityImpact: '',
          privilegesRequired: '',
          scope: '',
          userInteraction: ''
        },
        cvssV3: {},
        cvssVersion: '',
        effectiveSeverity: '',
        longDescription: '',
        packageIssue: [
          {
            affectedLocation: {
              cpeUri: '',
              package: '',
              version: {}
            },
            effectiveSeverity: '',
            fixedLocation: {},
            packageType: '',
            severityName: ''
          }
        ],
        relatedUrls: [
          {
            label: '',
            url: ''
          }
        ],
        severity: '',
        shortDescription: '',
        type: '',
        vexAssessment: {
          cve: '',
          impacts: [],
          justification: {
            details: '',
            justificationType: ''
          },
          noteName: '',
          relatedUris: [
            {}
          ],
          remediations: [
            {
              details: '',
              remediationType: '',
              remediationUri: {}
            }
          ],
          state: ''
        }
      }
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate',
  headers: {'content-type': 'application/json'},
  data: {
    occurrences: [
      {
        attestation: {
          attestation: {
            genericSignedAttestation: {
              contentType: '',
              serializedPayload: '',
              signatures: [{publicKeyId: '', signature: ''}]
            },
            pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
          }
        },
        build: {
          provenance: {
            buildOptions: {},
            builderVersion: '',
            builtArtifacts: [{checksum: '', id: '', names: []}],
            commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
            createTime: '',
            creator: '',
            endTime: '',
            id: '',
            logsUri: '',
            projectId: '',
            sourceProvenance: {
              additionalContexts: [
                {
                  cloudRepo: {
                    aliasContext: {kind: '', name: ''},
                    repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                    revisionId: ''
                  },
                  gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
                  git: {revisionId: '', url: ''},
                  labels: {}
                }
              ],
              artifactStorageSourceUri: '',
              context: {},
              fileHashes: {}
            },
            startTime: '',
            triggerId: ''
          },
          provenanceBytes: ''
        },
        createTime: '',
        deployment: {
          deployment: {
            address: '',
            config: '',
            deployTime: '',
            platform: '',
            resourceUri: [],
            undeployTime: '',
            userEmail: ''
          }
        },
        derivedImage: {
          derivedImage: {
            baseResourceUrl: '',
            distance: 0,
            fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
            layerInfo: [{arguments: '', directive: ''}]
          }
        },
        discovered: {
          discovered: {
            analysisCompleted: {analysisType: []},
            analysisError: [{code: 0, details: [{}], message: ''}],
            analysisStatus: '',
            analysisStatusError: {},
            continuousAnalysis: '',
            lastAnalysisTime: ''
          }
        },
        envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
        installation: {
          installation: {
            architecture: '',
            cpeUri: '',
            license: {comments: '', expression: ''},
            location: [
              {
                cpeUri: '',
                path: '',
                version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
              }
            ],
            name: '',
            packageType: '',
            version: {}
          }
        },
        intoto: {
          signatures: [{keyid: '', sig: ''}],
          signed: {
            byproducts: {customValues: {}},
            command: [],
            environment: {customValues: {}},
            materials: [{hashes: {sha256: ''}, resourceUri: ''}],
            products: [{}]
          }
        },
        kind: '',
        name: '',
        noteName: '',
        remediation: '',
        resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
        sbom: {
          createTime: '',
          creatorComment: '',
          creators: [],
          documentComment: '',
          externalDocumentRefs: [],
          id: '',
          licenseListVersion: '',
          namespace: '',
          title: ''
        },
        sbomReference: {
          payload: {
            _type: '',
            predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
            predicateType: '',
            subject: [{digest: {}, name: ''}]
          },
          payloadType: '',
          signatures: [{}]
        },
        spdxFile: {
          attributions: [],
          comment: '',
          contributors: [],
          copyright: '',
          filesLicenseInfo: [],
          id: '',
          licenseConcluded: {},
          notice: ''
        },
        spdxPackage: {
          comment: '',
          filename: '',
          homePage: '',
          id: '',
          licenseConcluded: {},
          packageType: '',
          sourceInfo: '',
          summaryDescription: '',
          title: '',
          version: ''
        },
        spdxRelationship: {comment: '', source: '', target: '', type: ''},
        updateTime: '',
        vulnerability: {
          cvssScore: '',
          cvssV2: {
            attackComplexity: '',
            attackVector: '',
            authentication: '',
            availabilityImpact: '',
            baseScore: '',
            confidentialityImpact: '',
            exploitabilityScore: '',
            impactScore: '',
            integrityImpact: '',
            privilegesRequired: '',
            scope: '',
            userInteraction: ''
          },
          cvssV3: {},
          cvssVersion: '',
          effectiveSeverity: '',
          longDescription: '',
          packageIssue: [
            {
              affectedLocation: {cpeUri: '', package: '', version: {}},
              effectiveSeverity: '',
              fixedLocation: {},
              packageType: '',
              severityName: ''
            }
          ],
          relatedUrls: [{label: '', url: ''}],
          severity: '',
          shortDescription: '',
          type: '',
          vexAssessment: {
            cve: '',
            impacts: [],
            justification: {details: '', justificationType: ''},
            noteName: '',
            relatedUris: [{}],
            remediations: [{details: '', remediationType: '', remediationUri: {}}],
            state: ''
          }
        }
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"occurrences":[{"attestation":{"attestation":{"genericSignedAttestation":{"contentType":"","serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"pgpSignedAttestation":{"contentType":"","pgpKeyId":"","signature":""}}},"build":{"provenance":{"buildOptions":{},"builderVersion":"","builtArtifacts":[{"checksum":"","id":"","names":[]}],"commands":[{"args":[],"dir":"","env":[],"id":"","name":"","waitFor":[]}],"createTime":"","creator":"","endTime":"","id":"","logsUri":"","projectId":"","sourceProvenance":{"additionalContexts":[{"cloudRepo":{"aliasContext":{"kind":"","name":""},"repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"gerrit":{"aliasContext":{},"gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""},"labels":{}}],"artifactStorageSourceUri":"","context":{},"fileHashes":{}},"startTime":"","triggerId":""},"provenanceBytes":""},"createTime":"","deployment":{"deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""}},"derivedImage":{"derivedImage":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]}},"discovered":{"discovered":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"continuousAnalysis":"","lastAnalysisTime":""}},"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"installation":{"installation":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}}},"intoto":{"signatures":[{"keyid":"","sig":""}],"signed":{"byproducts":{"customValues":{}},"command":[],"environment":{"customValues":{}},"materials":[{"hashes":{"sha256":""},"resourceUri":""}],"products":[{}]}},"kind":"","name":"","noteName":"","remediation":"","resource":{"contentHash":{"type":"","value":""},"name":"","uri":""},"sbom":{"createTime":"","creatorComment":"","creators":[],"documentComment":"","externalDocumentRefs":[],"id":"","licenseListVersion":"","namespace":"","title":""},"sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{"digest":{},"name":""}]},"payloadType":"","signatures":[{}]},"spdxFile":{"attributions":[],"comment":"","contributors":[],"copyright":"","filesLicenseInfo":[],"id":"","licenseConcluded":{},"notice":""},"spdxPackage":{"comment":"","filename":"","homePage":"","id":"","licenseConcluded":{},"packageType":"","sourceInfo":"","summaryDescription":"","title":"","version":""},"spdxRelationship":{"comment":"","source":"","target":"","type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{},"cvssVersion":"","effectiveSeverity":"","longDescription":"","packageIssue":[{"affectedLocation":{"cpeUri":"","package":"","version":{}},"effectiveSeverity":"","fixedLocation":{},"packageType":"","severityName":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":""}}}]}'
};

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}}/v1beta1/:parent/occurrences:batchCreate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "occurrences": [\n    {\n      "attestation": {\n        "attestation": {\n          "genericSignedAttestation": {\n            "contentType": "",\n            "serializedPayload": "",\n            "signatures": [\n              {\n                "publicKeyId": "",\n                "signature": ""\n              }\n            ]\n          },\n          "pgpSignedAttestation": {\n            "contentType": "",\n            "pgpKeyId": "",\n            "signature": ""\n          }\n        }\n      },\n      "build": {\n        "provenance": {\n          "buildOptions": {},\n          "builderVersion": "",\n          "builtArtifacts": [\n            {\n              "checksum": "",\n              "id": "",\n              "names": []\n            }\n          ],\n          "commands": [\n            {\n              "args": [],\n              "dir": "",\n              "env": [],\n              "id": "",\n              "name": "",\n              "waitFor": []\n            }\n          ],\n          "createTime": "",\n          "creator": "",\n          "endTime": "",\n          "id": "",\n          "logsUri": "",\n          "projectId": "",\n          "sourceProvenance": {\n            "additionalContexts": [\n              {\n                "cloudRepo": {\n                  "aliasContext": {\n                    "kind": "",\n                    "name": ""\n                  },\n                  "repoId": {\n                    "projectRepoId": {\n                      "projectId": "",\n                      "repoName": ""\n                    },\n                    "uid": ""\n                  },\n                  "revisionId": ""\n                },\n                "gerrit": {\n                  "aliasContext": {},\n                  "gerritProject": "",\n                  "hostUri": "",\n                  "revisionId": ""\n                },\n                "git": {\n                  "revisionId": "",\n                  "url": ""\n                },\n                "labels": {}\n              }\n            ],\n            "artifactStorageSourceUri": "",\n            "context": {},\n            "fileHashes": {}\n          },\n          "startTime": "",\n          "triggerId": ""\n        },\n        "provenanceBytes": ""\n      },\n      "createTime": "",\n      "deployment": {\n        "deployment": {\n          "address": "",\n          "config": "",\n          "deployTime": "",\n          "platform": "",\n          "resourceUri": [],\n          "undeployTime": "",\n          "userEmail": ""\n        }\n      },\n      "derivedImage": {\n        "derivedImage": {\n          "baseResourceUrl": "",\n          "distance": 0,\n          "fingerprint": {\n            "v1Name": "",\n            "v2Blob": [],\n            "v2Name": ""\n          },\n          "layerInfo": [\n            {\n              "arguments": "",\n              "directive": ""\n            }\n          ]\n        }\n      },\n      "discovered": {\n        "discovered": {\n          "analysisCompleted": {\n            "analysisType": []\n          },\n          "analysisError": [\n            {\n              "code": 0,\n              "details": [\n                {}\n              ],\n              "message": ""\n            }\n          ],\n          "analysisStatus": "",\n          "analysisStatusError": {},\n          "continuousAnalysis": "",\n          "lastAnalysisTime": ""\n        }\n      },\n      "envelope": {\n        "payload": "",\n        "payloadType": "",\n        "signatures": [\n          {\n            "keyid": "",\n            "sig": ""\n          }\n        ]\n      },\n      "installation": {\n        "installation": {\n          "architecture": "",\n          "cpeUri": "",\n          "license": {\n            "comments": "",\n            "expression": ""\n          },\n          "location": [\n            {\n              "cpeUri": "",\n              "path": "",\n              "version": {\n                "epoch": 0,\n                "inclusive": false,\n                "kind": "",\n                "name": "",\n                "revision": ""\n              }\n            }\n          ],\n          "name": "",\n          "packageType": "",\n          "version": {}\n        }\n      },\n      "intoto": {\n        "signatures": [\n          {\n            "keyid": "",\n            "sig": ""\n          }\n        ],\n        "signed": {\n          "byproducts": {\n            "customValues": {}\n          },\n          "command": [],\n          "environment": {\n            "customValues": {}\n          },\n          "materials": [\n            {\n              "hashes": {\n                "sha256": ""\n              },\n              "resourceUri": ""\n            }\n          ],\n          "products": [\n            {}\n          ]\n        }\n      },\n      "kind": "",\n      "name": "",\n      "noteName": "",\n      "remediation": "",\n      "resource": {\n        "contentHash": {\n          "type": "",\n          "value": ""\n        },\n        "name": "",\n        "uri": ""\n      },\n      "sbom": {\n        "createTime": "",\n        "creatorComment": "",\n        "creators": [],\n        "documentComment": "",\n        "externalDocumentRefs": [],\n        "id": "",\n        "licenseListVersion": "",\n        "namespace": "",\n        "title": ""\n      },\n      "sbomReference": {\n        "payload": {\n          "_type": "",\n          "predicate": {\n            "digest": {},\n            "location": "",\n            "mimeType": "",\n            "referrerId": ""\n          },\n          "predicateType": "",\n          "subject": [\n            {\n              "digest": {},\n              "name": ""\n            }\n          ]\n        },\n        "payloadType": "",\n        "signatures": [\n          {}\n        ]\n      },\n      "spdxFile": {\n        "attributions": [],\n        "comment": "",\n        "contributors": [],\n        "copyright": "",\n        "filesLicenseInfo": [],\n        "id": "",\n        "licenseConcluded": {},\n        "notice": ""\n      },\n      "spdxPackage": {\n        "comment": "",\n        "filename": "",\n        "homePage": "",\n        "id": "",\n        "licenseConcluded": {},\n        "packageType": "",\n        "sourceInfo": "",\n        "summaryDescription": "",\n        "title": "",\n        "version": ""\n      },\n      "spdxRelationship": {\n        "comment": "",\n        "source": "",\n        "target": "",\n        "type": ""\n      },\n      "updateTime": "",\n      "vulnerability": {\n        "cvssScore": "",\n        "cvssV2": {\n          "attackComplexity": "",\n          "attackVector": "",\n          "authentication": "",\n          "availabilityImpact": "",\n          "baseScore": "",\n          "confidentialityImpact": "",\n          "exploitabilityScore": "",\n          "impactScore": "",\n          "integrityImpact": "",\n          "privilegesRequired": "",\n          "scope": "",\n          "userInteraction": ""\n        },\n        "cvssV3": {},\n        "cvssVersion": "",\n        "effectiveSeverity": "",\n        "longDescription": "",\n        "packageIssue": [\n          {\n            "affectedLocation": {\n              "cpeUri": "",\n              "package": "",\n              "version": {}\n            },\n            "effectiveSeverity": "",\n            "fixedLocation": {},\n            "packageType": "",\n            "severityName": ""\n          }\n        ],\n        "relatedUrls": [\n          {\n            "label": "",\n            "url": ""\n          }\n        ],\n        "severity": "",\n        "shortDescription": "",\n        "type": "",\n        "vexAssessment": {\n          "cve": "",\n          "impacts": [],\n          "justification": {\n            "details": "",\n            "justificationType": ""\n          },\n          "noteName": "",\n          "relatedUris": [\n            {}\n          ],\n          "remediations": [\n            {\n              "details": "",\n              "remediationType": "",\n              "remediationUri": {}\n            }\n          ],\n          "state": ""\n        }\n      }\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate")
  .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/v1beta1/:parent/occurrences:batchCreate',
  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({
  occurrences: [
    {
      attestation: {
        attestation: {
          genericSignedAttestation: {
            contentType: '',
            serializedPayload: '',
            signatures: [{publicKeyId: '', signature: ''}]
          },
          pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
        }
      },
      build: {
        provenance: {
          buildOptions: {},
          builderVersion: '',
          builtArtifacts: [{checksum: '', id: '', names: []}],
          commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
          createTime: '',
          creator: '',
          endTime: '',
          id: '',
          logsUri: '',
          projectId: '',
          sourceProvenance: {
            additionalContexts: [
              {
                cloudRepo: {
                  aliasContext: {kind: '', name: ''},
                  repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                  revisionId: ''
                },
                gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
                git: {revisionId: '', url: ''},
                labels: {}
              }
            ],
            artifactStorageSourceUri: '',
            context: {},
            fileHashes: {}
          },
          startTime: '',
          triggerId: ''
        },
        provenanceBytes: ''
      },
      createTime: '',
      deployment: {
        deployment: {
          address: '',
          config: '',
          deployTime: '',
          platform: '',
          resourceUri: [],
          undeployTime: '',
          userEmail: ''
        }
      },
      derivedImage: {
        derivedImage: {
          baseResourceUrl: '',
          distance: 0,
          fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
          layerInfo: [{arguments: '', directive: ''}]
        }
      },
      discovered: {
        discovered: {
          analysisCompleted: {analysisType: []},
          analysisError: [{code: 0, details: [{}], message: ''}],
          analysisStatus: '',
          analysisStatusError: {},
          continuousAnalysis: '',
          lastAnalysisTime: ''
        }
      },
      envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
      installation: {
        installation: {
          architecture: '',
          cpeUri: '',
          license: {comments: '', expression: ''},
          location: [
            {
              cpeUri: '',
              path: '',
              version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
            }
          ],
          name: '',
          packageType: '',
          version: {}
        }
      },
      intoto: {
        signatures: [{keyid: '', sig: ''}],
        signed: {
          byproducts: {customValues: {}},
          command: [],
          environment: {customValues: {}},
          materials: [{hashes: {sha256: ''}, resourceUri: ''}],
          products: [{}]
        }
      },
      kind: '',
      name: '',
      noteName: '',
      remediation: '',
      resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
      sbom: {
        createTime: '',
        creatorComment: '',
        creators: [],
        documentComment: '',
        externalDocumentRefs: [],
        id: '',
        licenseListVersion: '',
        namespace: '',
        title: ''
      },
      sbomReference: {
        payload: {
          _type: '',
          predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
          predicateType: '',
          subject: [{digest: {}, name: ''}]
        },
        payloadType: '',
        signatures: [{}]
      },
      spdxFile: {
        attributions: [],
        comment: '',
        contributors: [],
        copyright: '',
        filesLicenseInfo: [],
        id: '',
        licenseConcluded: {},
        notice: ''
      },
      spdxPackage: {
        comment: '',
        filename: '',
        homePage: '',
        id: '',
        licenseConcluded: {},
        packageType: '',
        sourceInfo: '',
        summaryDescription: '',
        title: '',
        version: ''
      },
      spdxRelationship: {comment: '', source: '', target: '', type: ''},
      updateTime: '',
      vulnerability: {
        cvssScore: '',
        cvssV2: {
          attackComplexity: '',
          attackVector: '',
          authentication: '',
          availabilityImpact: '',
          baseScore: '',
          confidentialityImpact: '',
          exploitabilityScore: '',
          impactScore: '',
          integrityImpact: '',
          privilegesRequired: '',
          scope: '',
          userInteraction: ''
        },
        cvssV3: {},
        cvssVersion: '',
        effectiveSeverity: '',
        longDescription: '',
        packageIssue: [
          {
            affectedLocation: {cpeUri: '', package: '', version: {}},
            effectiveSeverity: '',
            fixedLocation: {},
            packageType: '',
            severityName: ''
          }
        ],
        relatedUrls: [{label: '', url: ''}],
        severity: '',
        shortDescription: '',
        type: '',
        vexAssessment: {
          cve: '',
          impacts: [],
          justification: {details: '', justificationType: ''},
          noteName: '',
          relatedUris: [{}],
          remediations: [{details: '', remediationType: '', remediationUri: {}}],
          state: ''
        }
      }
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate',
  headers: {'content-type': 'application/json'},
  body: {
    occurrences: [
      {
        attestation: {
          attestation: {
            genericSignedAttestation: {
              contentType: '',
              serializedPayload: '',
              signatures: [{publicKeyId: '', signature: ''}]
            },
            pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
          }
        },
        build: {
          provenance: {
            buildOptions: {},
            builderVersion: '',
            builtArtifacts: [{checksum: '', id: '', names: []}],
            commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
            createTime: '',
            creator: '',
            endTime: '',
            id: '',
            logsUri: '',
            projectId: '',
            sourceProvenance: {
              additionalContexts: [
                {
                  cloudRepo: {
                    aliasContext: {kind: '', name: ''},
                    repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                    revisionId: ''
                  },
                  gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
                  git: {revisionId: '', url: ''},
                  labels: {}
                }
              ],
              artifactStorageSourceUri: '',
              context: {},
              fileHashes: {}
            },
            startTime: '',
            triggerId: ''
          },
          provenanceBytes: ''
        },
        createTime: '',
        deployment: {
          deployment: {
            address: '',
            config: '',
            deployTime: '',
            platform: '',
            resourceUri: [],
            undeployTime: '',
            userEmail: ''
          }
        },
        derivedImage: {
          derivedImage: {
            baseResourceUrl: '',
            distance: 0,
            fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
            layerInfo: [{arguments: '', directive: ''}]
          }
        },
        discovered: {
          discovered: {
            analysisCompleted: {analysisType: []},
            analysisError: [{code: 0, details: [{}], message: ''}],
            analysisStatus: '',
            analysisStatusError: {},
            continuousAnalysis: '',
            lastAnalysisTime: ''
          }
        },
        envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
        installation: {
          installation: {
            architecture: '',
            cpeUri: '',
            license: {comments: '', expression: ''},
            location: [
              {
                cpeUri: '',
                path: '',
                version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
              }
            ],
            name: '',
            packageType: '',
            version: {}
          }
        },
        intoto: {
          signatures: [{keyid: '', sig: ''}],
          signed: {
            byproducts: {customValues: {}},
            command: [],
            environment: {customValues: {}},
            materials: [{hashes: {sha256: ''}, resourceUri: ''}],
            products: [{}]
          }
        },
        kind: '',
        name: '',
        noteName: '',
        remediation: '',
        resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
        sbom: {
          createTime: '',
          creatorComment: '',
          creators: [],
          documentComment: '',
          externalDocumentRefs: [],
          id: '',
          licenseListVersion: '',
          namespace: '',
          title: ''
        },
        sbomReference: {
          payload: {
            _type: '',
            predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
            predicateType: '',
            subject: [{digest: {}, name: ''}]
          },
          payloadType: '',
          signatures: [{}]
        },
        spdxFile: {
          attributions: [],
          comment: '',
          contributors: [],
          copyright: '',
          filesLicenseInfo: [],
          id: '',
          licenseConcluded: {},
          notice: ''
        },
        spdxPackage: {
          comment: '',
          filename: '',
          homePage: '',
          id: '',
          licenseConcluded: {},
          packageType: '',
          sourceInfo: '',
          summaryDescription: '',
          title: '',
          version: ''
        },
        spdxRelationship: {comment: '', source: '', target: '', type: ''},
        updateTime: '',
        vulnerability: {
          cvssScore: '',
          cvssV2: {
            attackComplexity: '',
            attackVector: '',
            authentication: '',
            availabilityImpact: '',
            baseScore: '',
            confidentialityImpact: '',
            exploitabilityScore: '',
            impactScore: '',
            integrityImpact: '',
            privilegesRequired: '',
            scope: '',
            userInteraction: ''
          },
          cvssV3: {},
          cvssVersion: '',
          effectiveSeverity: '',
          longDescription: '',
          packageIssue: [
            {
              affectedLocation: {cpeUri: '', package: '', version: {}},
              effectiveSeverity: '',
              fixedLocation: {},
              packageType: '',
              severityName: ''
            }
          ],
          relatedUrls: [{label: '', url: ''}],
          severity: '',
          shortDescription: '',
          type: '',
          vexAssessment: {
            cve: '',
            impacts: [],
            justification: {details: '', justificationType: ''},
            noteName: '',
            relatedUris: [{}],
            remediations: [{details: '', remediationType: '', remediationUri: {}}],
            state: ''
          }
        }
      }
    ]
  },
  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}}/v1beta1/:parent/occurrences:batchCreate');

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

req.type('json');
req.send({
  occurrences: [
    {
      attestation: {
        attestation: {
          genericSignedAttestation: {
            contentType: '',
            serializedPayload: '',
            signatures: [
              {
                publicKeyId: '',
                signature: ''
              }
            ]
          },
          pgpSignedAttestation: {
            contentType: '',
            pgpKeyId: '',
            signature: ''
          }
        }
      },
      build: {
        provenance: {
          buildOptions: {},
          builderVersion: '',
          builtArtifacts: [
            {
              checksum: '',
              id: '',
              names: []
            }
          ],
          commands: [
            {
              args: [],
              dir: '',
              env: [],
              id: '',
              name: '',
              waitFor: []
            }
          ],
          createTime: '',
          creator: '',
          endTime: '',
          id: '',
          logsUri: '',
          projectId: '',
          sourceProvenance: {
            additionalContexts: [
              {
                cloudRepo: {
                  aliasContext: {
                    kind: '',
                    name: ''
                  },
                  repoId: {
                    projectRepoId: {
                      projectId: '',
                      repoName: ''
                    },
                    uid: ''
                  },
                  revisionId: ''
                },
                gerrit: {
                  aliasContext: {},
                  gerritProject: '',
                  hostUri: '',
                  revisionId: ''
                },
                git: {
                  revisionId: '',
                  url: ''
                },
                labels: {}
              }
            ],
            artifactStorageSourceUri: '',
            context: {},
            fileHashes: {}
          },
          startTime: '',
          triggerId: ''
        },
        provenanceBytes: ''
      },
      createTime: '',
      deployment: {
        deployment: {
          address: '',
          config: '',
          deployTime: '',
          platform: '',
          resourceUri: [],
          undeployTime: '',
          userEmail: ''
        }
      },
      derivedImage: {
        derivedImage: {
          baseResourceUrl: '',
          distance: 0,
          fingerprint: {
            v1Name: '',
            v2Blob: [],
            v2Name: ''
          },
          layerInfo: [
            {
              arguments: '',
              directive: ''
            }
          ]
        }
      },
      discovered: {
        discovered: {
          analysisCompleted: {
            analysisType: []
          },
          analysisError: [
            {
              code: 0,
              details: [
                {}
              ],
              message: ''
            }
          ],
          analysisStatus: '',
          analysisStatusError: {},
          continuousAnalysis: '',
          lastAnalysisTime: ''
        }
      },
      envelope: {
        payload: '',
        payloadType: '',
        signatures: [
          {
            keyid: '',
            sig: ''
          }
        ]
      },
      installation: {
        installation: {
          architecture: '',
          cpeUri: '',
          license: {
            comments: '',
            expression: ''
          },
          location: [
            {
              cpeUri: '',
              path: '',
              version: {
                epoch: 0,
                inclusive: false,
                kind: '',
                name: '',
                revision: ''
              }
            }
          ],
          name: '',
          packageType: '',
          version: {}
        }
      },
      intoto: {
        signatures: [
          {
            keyid: '',
            sig: ''
          }
        ],
        signed: {
          byproducts: {
            customValues: {}
          },
          command: [],
          environment: {
            customValues: {}
          },
          materials: [
            {
              hashes: {
                sha256: ''
              },
              resourceUri: ''
            }
          ],
          products: [
            {}
          ]
        }
      },
      kind: '',
      name: '',
      noteName: '',
      remediation: '',
      resource: {
        contentHash: {
          type: '',
          value: ''
        },
        name: '',
        uri: ''
      },
      sbom: {
        createTime: '',
        creatorComment: '',
        creators: [],
        documentComment: '',
        externalDocumentRefs: [],
        id: '',
        licenseListVersion: '',
        namespace: '',
        title: ''
      },
      sbomReference: {
        payload: {
          _type: '',
          predicate: {
            digest: {},
            location: '',
            mimeType: '',
            referrerId: ''
          },
          predicateType: '',
          subject: [
            {
              digest: {},
              name: ''
            }
          ]
        },
        payloadType: '',
        signatures: [
          {}
        ]
      },
      spdxFile: {
        attributions: [],
        comment: '',
        contributors: [],
        copyright: '',
        filesLicenseInfo: [],
        id: '',
        licenseConcluded: {},
        notice: ''
      },
      spdxPackage: {
        comment: '',
        filename: '',
        homePage: '',
        id: '',
        licenseConcluded: {},
        packageType: '',
        sourceInfo: '',
        summaryDescription: '',
        title: '',
        version: ''
      },
      spdxRelationship: {
        comment: '',
        source: '',
        target: '',
        type: ''
      },
      updateTime: '',
      vulnerability: {
        cvssScore: '',
        cvssV2: {
          attackComplexity: '',
          attackVector: '',
          authentication: '',
          availabilityImpact: '',
          baseScore: '',
          confidentialityImpact: '',
          exploitabilityScore: '',
          impactScore: '',
          integrityImpact: '',
          privilegesRequired: '',
          scope: '',
          userInteraction: ''
        },
        cvssV3: {},
        cvssVersion: '',
        effectiveSeverity: '',
        longDescription: '',
        packageIssue: [
          {
            affectedLocation: {
              cpeUri: '',
              package: '',
              version: {}
            },
            effectiveSeverity: '',
            fixedLocation: {},
            packageType: '',
            severityName: ''
          }
        ],
        relatedUrls: [
          {
            label: '',
            url: ''
          }
        ],
        severity: '',
        shortDescription: '',
        type: '',
        vexAssessment: {
          cve: '',
          impacts: [],
          justification: {
            details: '',
            justificationType: ''
          },
          noteName: '',
          relatedUris: [
            {}
          ],
          remediations: [
            {
              details: '',
              remediationType: '',
              remediationUri: {}
            }
          ],
          state: ''
        }
      }
    }
  ]
});

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}}/v1beta1/:parent/occurrences:batchCreate',
  headers: {'content-type': 'application/json'},
  data: {
    occurrences: [
      {
        attestation: {
          attestation: {
            genericSignedAttestation: {
              contentType: '',
              serializedPayload: '',
              signatures: [{publicKeyId: '', signature: ''}]
            },
            pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
          }
        },
        build: {
          provenance: {
            buildOptions: {},
            builderVersion: '',
            builtArtifacts: [{checksum: '', id: '', names: []}],
            commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
            createTime: '',
            creator: '',
            endTime: '',
            id: '',
            logsUri: '',
            projectId: '',
            sourceProvenance: {
              additionalContexts: [
                {
                  cloudRepo: {
                    aliasContext: {kind: '', name: ''},
                    repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                    revisionId: ''
                  },
                  gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
                  git: {revisionId: '', url: ''},
                  labels: {}
                }
              ],
              artifactStorageSourceUri: '',
              context: {},
              fileHashes: {}
            },
            startTime: '',
            triggerId: ''
          },
          provenanceBytes: ''
        },
        createTime: '',
        deployment: {
          deployment: {
            address: '',
            config: '',
            deployTime: '',
            platform: '',
            resourceUri: [],
            undeployTime: '',
            userEmail: ''
          }
        },
        derivedImage: {
          derivedImage: {
            baseResourceUrl: '',
            distance: 0,
            fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
            layerInfo: [{arguments: '', directive: ''}]
          }
        },
        discovered: {
          discovered: {
            analysisCompleted: {analysisType: []},
            analysisError: [{code: 0, details: [{}], message: ''}],
            analysisStatus: '',
            analysisStatusError: {},
            continuousAnalysis: '',
            lastAnalysisTime: ''
          }
        },
        envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
        installation: {
          installation: {
            architecture: '',
            cpeUri: '',
            license: {comments: '', expression: ''},
            location: [
              {
                cpeUri: '',
                path: '',
                version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
              }
            ],
            name: '',
            packageType: '',
            version: {}
          }
        },
        intoto: {
          signatures: [{keyid: '', sig: ''}],
          signed: {
            byproducts: {customValues: {}},
            command: [],
            environment: {customValues: {}},
            materials: [{hashes: {sha256: ''}, resourceUri: ''}],
            products: [{}]
          }
        },
        kind: '',
        name: '',
        noteName: '',
        remediation: '',
        resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
        sbom: {
          createTime: '',
          creatorComment: '',
          creators: [],
          documentComment: '',
          externalDocumentRefs: [],
          id: '',
          licenseListVersion: '',
          namespace: '',
          title: ''
        },
        sbomReference: {
          payload: {
            _type: '',
            predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
            predicateType: '',
            subject: [{digest: {}, name: ''}]
          },
          payloadType: '',
          signatures: [{}]
        },
        spdxFile: {
          attributions: [],
          comment: '',
          contributors: [],
          copyright: '',
          filesLicenseInfo: [],
          id: '',
          licenseConcluded: {},
          notice: ''
        },
        spdxPackage: {
          comment: '',
          filename: '',
          homePage: '',
          id: '',
          licenseConcluded: {},
          packageType: '',
          sourceInfo: '',
          summaryDescription: '',
          title: '',
          version: ''
        },
        spdxRelationship: {comment: '', source: '', target: '', type: ''},
        updateTime: '',
        vulnerability: {
          cvssScore: '',
          cvssV2: {
            attackComplexity: '',
            attackVector: '',
            authentication: '',
            availabilityImpact: '',
            baseScore: '',
            confidentialityImpact: '',
            exploitabilityScore: '',
            impactScore: '',
            integrityImpact: '',
            privilegesRequired: '',
            scope: '',
            userInteraction: ''
          },
          cvssV3: {},
          cvssVersion: '',
          effectiveSeverity: '',
          longDescription: '',
          packageIssue: [
            {
              affectedLocation: {cpeUri: '', package: '', version: {}},
              effectiveSeverity: '',
              fixedLocation: {},
              packageType: '',
              severityName: ''
            }
          ],
          relatedUrls: [{label: '', url: ''}],
          severity: '',
          shortDescription: '',
          type: '',
          vexAssessment: {
            cve: '',
            impacts: [],
            justification: {details: '', justificationType: ''},
            noteName: '',
            relatedUris: [{}],
            remediations: [{details: '', remediationType: '', remediationUri: {}}],
            state: ''
          }
        }
      }
    ]
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"occurrences":[{"attestation":{"attestation":{"genericSignedAttestation":{"contentType":"","serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"pgpSignedAttestation":{"contentType":"","pgpKeyId":"","signature":""}}},"build":{"provenance":{"buildOptions":{},"builderVersion":"","builtArtifacts":[{"checksum":"","id":"","names":[]}],"commands":[{"args":[],"dir":"","env":[],"id":"","name":"","waitFor":[]}],"createTime":"","creator":"","endTime":"","id":"","logsUri":"","projectId":"","sourceProvenance":{"additionalContexts":[{"cloudRepo":{"aliasContext":{"kind":"","name":""},"repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"gerrit":{"aliasContext":{},"gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""},"labels":{}}],"artifactStorageSourceUri":"","context":{},"fileHashes":{}},"startTime":"","triggerId":""},"provenanceBytes":""},"createTime":"","deployment":{"deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""}},"derivedImage":{"derivedImage":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]}},"discovered":{"discovered":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"continuousAnalysis":"","lastAnalysisTime":""}},"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"installation":{"installation":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}}},"intoto":{"signatures":[{"keyid":"","sig":""}],"signed":{"byproducts":{"customValues":{}},"command":[],"environment":{"customValues":{}},"materials":[{"hashes":{"sha256":""},"resourceUri":""}],"products":[{}]}},"kind":"","name":"","noteName":"","remediation":"","resource":{"contentHash":{"type":"","value":""},"name":"","uri":""},"sbom":{"createTime":"","creatorComment":"","creators":[],"documentComment":"","externalDocumentRefs":[],"id":"","licenseListVersion":"","namespace":"","title":""},"sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{"digest":{},"name":""}]},"payloadType":"","signatures":[{}]},"spdxFile":{"attributions":[],"comment":"","contributors":[],"copyright":"","filesLicenseInfo":[],"id":"","licenseConcluded":{},"notice":""},"spdxPackage":{"comment":"","filename":"","homePage":"","id":"","licenseConcluded":{},"packageType":"","sourceInfo":"","summaryDescription":"","title":"","version":""},"spdxRelationship":{"comment":"","source":"","target":"","type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{},"cvssVersion":"","effectiveSeverity":"","longDescription":"","packageIssue":[{"affectedLocation":{"cpeUri":"","package":"","version":{}},"effectiveSeverity":"","fixedLocation":{},"packageType":"","severityName":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":""}}}]}'
};

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 = @{ @"occurrences": @[ @{ @"attestation": @{ @"attestation": @{ @"genericSignedAttestation": @{ @"contentType": @"", @"serializedPayload": @"", @"signatures": @[ @{ @"publicKeyId": @"", @"signature": @"" } ] }, @"pgpSignedAttestation": @{ @"contentType": @"", @"pgpKeyId": @"", @"signature": @"" } } }, @"build": @{ @"provenance": @{ @"buildOptions": @{  }, @"builderVersion": @"", @"builtArtifacts": @[ @{ @"checksum": @"", @"id": @"", @"names": @[  ] } ], @"commands": @[ @{ @"args": @[  ], @"dir": @"", @"env": @[  ], @"id": @"", @"name": @"", @"waitFor": @[  ] } ], @"createTime": @"", @"creator": @"", @"endTime": @"", @"id": @"", @"logsUri": @"", @"projectId": @"", @"sourceProvenance": @{ @"additionalContexts": @[ @{ @"cloudRepo": @{ @"aliasContext": @{ @"kind": @"", @"name": @"" }, @"repoId": @{ @"projectRepoId": @{ @"projectId": @"", @"repoName": @"" }, @"uid": @"" }, @"revisionId": @"" }, @"gerrit": @{ @"aliasContext": @{  }, @"gerritProject": @"", @"hostUri": @"", @"revisionId": @"" }, @"git": @{ @"revisionId": @"", @"url": @"" }, @"labels": @{  } } ], @"artifactStorageSourceUri": @"", @"context": @{  }, @"fileHashes": @{  } }, @"startTime": @"", @"triggerId": @"" }, @"provenanceBytes": @"" }, @"createTime": @"", @"deployment": @{ @"deployment": @{ @"address": @"", @"config": @"", @"deployTime": @"", @"platform": @"", @"resourceUri": @[  ], @"undeployTime": @"", @"userEmail": @"" } }, @"derivedImage": @{ @"derivedImage": @{ @"baseResourceUrl": @"", @"distance": @0, @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"layerInfo": @[ @{ @"arguments": @"", @"directive": @"" } ] } }, @"discovered": @{ @"discovered": @{ @"analysisCompleted": @{ @"analysisType": @[  ] }, @"analysisError": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ], @"analysisStatus": @"", @"analysisStatusError": @{  }, @"continuousAnalysis": @"", @"lastAnalysisTime": @"" } }, @"envelope": @{ @"payload": @"", @"payloadType": @"", @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ] }, @"installation": @{ @"installation": @{ @"architecture": @"", @"cpeUri": @"", @"license": @{ @"comments": @"", @"expression": @"" }, @"location": @[ @{ @"cpeUri": @"", @"path": @"", @"version": @{ @"epoch": @0, @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" } } ], @"name": @"", @"packageType": @"", @"version": @{  } } }, @"intoto": @{ @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ], @"signed": @{ @"byproducts": @{ @"customValues": @{  } }, @"command": @[  ], @"environment": @{ @"customValues": @{  } }, @"materials": @[ @{ @"hashes": @{ @"sha256": @"" }, @"resourceUri": @"" } ], @"products": @[ @{  } ] } }, @"kind": @"", @"name": @"", @"noteName": @"", @"remediation": @"", @"resource": @{ @"contentHash": @{ @"type": @"", @"value": @"" }, @"name": @"", @"uri": @"" }, @"sbom": @{ @"createTime": @"", @"creatorComment": @"", @"creators": @[  ], @"documentComment": @"", @"externalDocumentRefs": @[  ], @"id": @"", @"licenseListVersion": @"", @"namespace": @"", @"title": @"" }, @"sbomReference": @{ @"payload": @{ @"_type": @"", @"predicate": @{ @"digest": @{  }, @"location": @"", @"mimeType": @"", @"referrerId": @"" }, @"predicateType": @"", @"subject": @[ @{ @"digest": @{  }, @"name": @"" } ] }, @"payloadType": @"", @"signatures": @[ @{  } ] }, @"spdxFile": @{ @"attributions": @[  ], @"comment": @"", @"contributors": @[  ], @"copyright": @"", @"filesLicenseInfo": @[  ], @"id": @"", @"licenseConcluded": @{  }, @"notice": @"" }, @"spdxPackage": @{ @"comment": @"", @"filename": @"", @"homePage": @"", @"id": @"", @"licenseConcluded": @{  }, @"packageType": @"", @"sourceInfo": @"", @"summaryDescription": @"", @"title": @"", @"version": @"" }, @"spdxRelationship": @{ @"comment": @"", @"source": @"", @"target": @"", @"type": @"" }, @"updateTime": @"", @"vulnerability": @{ @"cvssScore": @"", @"cvssV2": @{ @"attackComplexity": @"", @"attackVector": @"", @"authentication": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssV3": @{  }, @"cvssVersion": @"", @"effectiveSeverity": @"", @"longDescription": @"", @"packageIssue": @[ @{ @"affectedLocation": @{ @"cpeUri": @"", @"package": @"", @"version": @{  } }, @"effectiveSeverity": @"", @"fixedLocation": @{  }, @"packageType": @"", @"severityName": @"" } ], @"relatedUrls": @[ @{ @"label": @"", @"url": @"" } ], @"severity": @"", @"shortDescription": @"", @"type": @"", @"vexAssessment": @{ @"cve": @"", @"impacts": @[  ], @"justification": @{ @"details": @"", @"justificationType": @"" }, @"noteName": @"", @"relatedUris": @[ @{  } ], @"remediations": @[ @{ @"details": @"", @"remediationType": @"", @"remediationUri": @{  } } ], @"state": @"" } } } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"]
                                                       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}}/v1beta1/:parent/occurrences:batchCreate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate",
  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([
    'occurrences' => [
        [
                'attestation' => [
                                'attestation' => [
                                                                'genericSignedAttestation' => [
                                                                                                                                'contentType' => '',
                                                                                                                                'serializedPayload' => '',
                                                                                                                                'signatures' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'publicKeyId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'signature' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'pgpSignedAttestation' => [
                                                                                                                                'contentType' => '',
                                                                                                                                'pgpKeyId' => '',
                                                                                                                                'signature' => ''
                                                                ]
                                ]
                ],
                'build' => [
                                'provenance' => [
                                                                'buildOptions' => [
                                                                                                                                
                                                                ],
                                                                'builderVersion' => '',
                                                                'builtArtifacts' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'checksum' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'names' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'commands' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'args' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'dir' => '',
                                                                                                                                                                                                                                                                'env' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'waitFor' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'createTime' => '',
                                                                'creator' => '',
                                                                'endTime' => '',
                                                                'id' => '',
                                                                'logsUri' => '',
                                                                'projectId' => '',
                                                                'sourceProvenance' => [
                                                                                                                                'additionalContexts' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'cloudRepo' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'gerrit' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'gerritProject' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'hostUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'git' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'url' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'labels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'artifactStorageSourceUri' => '',
                                                                                                                                'context' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'fileHashes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'startTime' => '',
                                                                'triggerId' => ''
                                ],
                                'provenanceBytes' => ''
                ],
                'createTime' => '',
                'deployment' => [
                                'deployment' => [
                                                                'address' => '',
                                                                'config' => '',
                                                                'deployTime' => '',
                                                                'platform' => '',
                                                                'resourceUri' => [
                                                                                                                                
                                                                ],
                                                                'undeployTime' => '',
                                                                'userEmail' => ''
                                ]
                ],
                'derivedImage' => [
                                'derivedImage' => [
                                                                'baseResourceUrl' => '',
                                                                'distance' => 0,
                                                                'fingerprint' => [
                                                                                                                                'v1Name' => '',
                                                                                                                                'v2Blob' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'v2Name' => ''
                                                                ],
                                                                'layerInfo' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'arguments' => '',
                                                                                                                                                                                                                                                                'directive' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'discovered' => [
                                'discovered' => [
                                                                'analysisCompleted' => [
                                                                                                                                'analysisType' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'analysisError' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'code' => 0,
                                                                                                                                                                                                                                                                'details' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'message' => ''
                                                                                                                                ]
                                                                ],
                                                                'analysisStatus' => '',
                                                                'analysisStatusError' => [
                                                                                                                                
                                                                ],
                                                                'continuousAnalysis' => '',
                                                                'lastAnalysisTime' => ''
                                ]
                ],
                'envelope' => [
                                'payload' => '',
                                'payloadType' => '',
                                'signatures' => [
                                                                [
                                                                                                                                'keyid' => '',
                                                                                                                                'sig' => ''
                                                                ]
                                ]
                ],
                'installation' => [
                                'installation' => [
                                                                'architecture' => '',
                                                                'cpeUri' => '',
                                                                'license' => [
                                                                                                                                'comments' => '',
                                                                                                                                'expression' => ''
                                                                ],
                                                                'location' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'cpeUri' => '',
                                                                                                                                                                                                                                                                'path' => '',
                                                                                                                                                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'epoch' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'inclusive' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revision' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'name' => '',
                                                                'packageType' => '',
                                                                'version' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'intoto' => [
                                'signatures' => [
                                                                [
                                                                                                                                'keyid' => '',
                                                                                                                                'sig' => ''
                                                                ]
                                ],
                                'signed' => [
                                                                'byproducts' => [
                                                                                                                                'customValues' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'command' => [
                                                                                                                                
                                                                ],
                                                                'environment' => [
                                                                                                                                'customValues' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'materials' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'hashes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'sha256' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resourceUri' => ''
                                                                                                                                ]
                                                                ],
                                                                'products' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'kind' => '',
                'name' => '',
                'noteName' => '',
                'remediation' => '',
                'resource' => [
                                'contentHash' => [
                                                                'type' => '',
                                                                'value' => ''
                                ],
                                'name' => '',
                                'uri' => ''
                ],
                'sbom' => [
                                'createTime' => '',
                                'creatorComment' => '',
                                'creators' => [
                                                                
                                ],
                                'documentComment' => '',
                                'externalDocumentRefs' => [
                                                                
                                ],
                                'id' => '',
                                'licenseListVersion' => '',
                                'namespace' => '',
                                'title' => ''
                ],
                'sbomReference' => [
                                'payload' => [
                                                                '_type' => '',
                                                                'predicate' => [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'location' => '',
                                                                                                                                'mimeType' => '',
                                                                                                                                'referrerId' => ''
                                                                ],
                                                                'predicateType' => '',
                                                                'subject' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'payloadType' => '',
                                'signatures' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'spdxFile' => [
                                'attributions' => [
                                                                
                                ],
                                'comment' => '',
                                'contributors' => [
                                                                
                                ],
                                'copyright' => '',
                                'filesLicenseInfo' => [
                                                                
                                ],
                                'id' => '',
                                'licenseConcluded' => [
                                                                
                                ],
                                'notice' => ''
                ],
                'spdxPackage' => [
                                'comment' => '',
                                'filename' => '',
                                'homePage' => '',
                                'id' => '',
                                'licenseConcluded' => [
                                                                
                                ],
                                'packageType' => '',
                                'sourceInfo' => '',
                                'summaryDescription' => '',
                                'title' => '',
                                'version' => ''
                ],
                'spdxRelationship' => [
                                'comment' => '',
                                'source' => '',
                                'target' => '',
                                'type' => ''
                ],
                'updateTime' => '',
                'vulnerability' => [
                                'cvssScore' => '',
                                'cvssV2' => [
                                                                'attackComplexity' => '',
                                                                'attackVector' => '',
                                                                'authentication' => '',
                                                                'availabilityImpact' => '',
                                                                'baseScore' => '',
                                                                'confidentialityImpact' => '',
                                                                'exploitabilityScore' => '',
                                                                'impactScore' => '',
                                                                'integrityImpact' => '',
                                                                'privilegesRequired' => '',
                                                                'scope' => '',
                                                                'userInteraction' => ''
                                ],
                                'cvssV3' => [
                                                                
                                ],
                                'cvssVersion' => '',
                                'effectiveSeverity' => '',
                                'longDescription' => '',
                                'packageIssue' => [
                                                                [
                                                                                                                                'affectedLocation' => [
                                                                                                                                                                                                                                                                'cpeUri' => '',
                                                                                                                                                                                                                                                                'package' => '',
                                                                                                                                                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'effectiveSeverity' => '',
                                                                                                                                'fixedLocation' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'packageType' => '',
                                                                                                                                'severityName' => ''
                                                                ]
                                ],
                                'relatedUrls' => [
                                                                [
                                                                                                                                'label' => '',
                                                                                                                                'url' => ''
                                                                ]
                                ],
                                'severity' => '',
                                'shortDescription' => '',
                                'type' => '',
                                'vexAssessment' => [
                                                                'cve' => '',
                                                                'impacts' => [
                                                                                                                                
                                                                ],
                                                                'justification' => [
                                                                                                                                'details' => '',
                                                                                                                                'justificationType' => ''
                                                                ],
                                                                'noteName' => '',
                                                                'relatedUris' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'remediations' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'details' => '',
                                                                                                                                                                                                                                                                'remediationType' => '',
                                                                                                                                                                                                                                                                'remediationUri' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'state' => ''
                                ]
                ]
        ]
    ]
  ]),
  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}}/v1beta1/:parent/occurrences:batchCreate', [
  'body' => '{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'occurrences' => [
    [
        'attestation' => [
                'attestation' => [
                                'genericSignedAttestation' => [
                                                                'contentType' => '',
                                                                'serializedPayload' => '',
                                                                'signatures' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'publicKeyId' => '',
                                                                                                                                                                                                                                                                'signature' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'pgpSignedAttestation' => [
                                                                'contentType' => '',
                                                                'pgpKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'build' => [
                'provenance' => [
                                'buildOptions' => [
                                                                
                                ],
                                'builderVersion' => '',
                                'builtArtifacts' => [
                                                                [
                                                                                                                                'checksum' => '',
                                                                                                                                'id' => '',
                                                                                                                                'names' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'commands' => [
                                                                [
                                                                                                                                'args' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'dir' => '',
                                                                                                                                'env' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'waitFor' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'createTime' => '',
                                'creator' => '',
                                'endTime' => '',
                                'id' => '',
                                'logsUri' => '',
                                'projectId' => '',
                                'sourceProvenance' => [
                                                                'additionalContexts' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'cloudRepo' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'gerrit' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'gerritProject' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'hostUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'git' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'url' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'labels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'artifactStorageSourceUri' => '',
                                                                'context' => [
                                                                                                                                
                                                                ],
                                                                'fileHashes' => [
                                                                                                                                
                                                                ]
                                ],
                                'startTime' => '',
                                'triggerId' => ''
                ],
                'provenanceBytes' => ''
        ],
        'createTime' => '',
        'deployment' => [
                'deployment' => [
                                'address' => '',
                                'config' => '',
                                'deployTime' => '',
                                'platform' => '',
                                'resourceUri' => [
                                                                
                                ],
                                'undeployTime' => '',
                                'userEmail' => ''
                ]
        ],
        'derivedImage' => [
                'derivedImage' => [
                                'baseResourceUrl' => '',
                                'distance' => 0,
                                'fingerprint' => [
                                                                'v1Name' => '',
                                                                'v2Blob' => [
                                                                                                                                
                                                                ],
                                                                'v2Name' => ''
                                ],
                                'layerInfo' => [
                                                                [
                                                                                                                                'arguments' => '',
                                                                                                                                'directive' => ''
                                                                ]
                                ]
                ]
        ],
        'discovered' => [
                'discovered' => [
                                'analysisCompleted' => [
                                                                'analysisType' => [
                                                                                                                                
                                                                ]
                                ],
                                'analysisError' => [
                                                                [
                                                                                                                                'code' => 0,
                                                                                                                                'details' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'message' => ''
                                                                ]
                                ],
                                'analysisStatus' => '',
                                'analysisStatusError' => [
                                                                
                                ],
                                'continuousAnalysis' => '',
                                'lastAnalysisTime' => ''
                ]
        ],
        'envelope' => [
                'payload' => '',
                'payloadType' => '',
                'signatures' => [
                                [
                                                                'keyid' => '',
                                                                'sig' => ''
                                ]
                ]
        ],
        'installation' => [
                'installation' => [
                                'architecture' => '',
                                'cpeUri' => '',
                                'license' => [
                                                                'comments' => '',
                                                                'expression' => ''
                                ],
                                'location' => [
                                                                [
                                                                                                                                'cpeUri' => '',
                                                                                                                                'path' => '',
                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                'epoch' => 0,
                                                                                                                                                                                                                                                                'inclusive' => null,
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'revision' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'name' => '',
                                'packageType' => '',
                                'version' => [
                                                                
                                ]
                ]
        ],
        'intoto' => [
                'signatures' => [
                                [
                                                                'keyid' => '',
                                                                'sig' => ''
                                ]
                ],
                'signed' => [
                                'byproducts' => [
                                                                'customValues' => [
                                                                                                                                
                                                                ]
                                ],
                                'command' => [
                                                                
                                ],
                                'environment' => [
                                                                'customValues' => [
                                                                                                                                
                                                                ]
                                ],
                                'materials' => [
                                                                [
                                                                                                                                'hashes' => [
                                                                                                                                                                                                                                                                'sha256' => ''
                                                                                                                                ],
                                                                                                                                'resourceUri' => ''
                                                                ]
                                ],
                                'products' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'kind' => '',
        'name' => '',
        'noteName' => '',
        'remediation' => '',
        'resource' => [
                'contentHash' => [
                                'type' => '',
                                'value' => ''
                ],
                'name' => '',
                'uri' => ''
        ],
        'sbom' => [
                'createTime' => '',
                'creatorComment' => '',
                'creators' => [
                                
                ],
                'documentComment' => '',
                'externalDocumentRefs' => [
                                
                ],
                'id' => '',
                'licenseListVersion' => '',
                'namespace' => '',
                'title' => ''
        ],
        'sbomReference' => [
                'payload' => [
                                '_type' => '',
                                'predicate' => [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'location' => '',
                                                                'mimeType' => '',
                                                                'referrerId' => ''
                                ],
                                'predicateType' => '',
                                'subject' => [
                                                                [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'payloadType' => '',
                'signatures' => [
                                [
                                                                
                                ]
                ]
        ],
        'spdxFile' => [
                'attributions' => [
                                
                ],
                'comment' => '',
                'contributors' => [
                                
                ],
                'copyright' => '',
                'filesLicenseInfo' => [
                                
                ],
                'id' => '',
                'licenseConcluded' => [
                                
                ],
                'notice' => ''
        ],
        'spdxPackage' => [
                'comment' => '',
                'filename' => '',
                'homePage' => '',
                'id' => '',
                'licenseConcluded' => [
                                
                ],
                'packageType' => '',
                'sourceInfo' => '',
                'summaryDescription' => '',
                'title' => '',
                'version' => ''
        ],
        'spdxRelationship' => [
                'comment' => '',
                'source' => '',
                'target' => '',
                'type' => ''
        ],
        'updateTime' => '',
        'vulnerability' => [
                'cvssScore' => '',
                'cvssV2' => [
                                'attackComplexity' => '',
                                'attackVector' => '',
                                'authentication' => '',
                                'availabilityImpact' => '',
                                'baseScore' => '',
                                'confidentialityImpact' => '',
                                'exploitabilityScore' => '',
                                'impactScore' => '',
                                'integrityImpact' => '',
                                'privilegesRequired' => '',
                                'scope' => '',
                                'userInteraction' => ''
                ],
                'cvssV3' => [
                                
                ],
                'cvssVersion' => '',
                'effectiveSeverity' => '',
                'longDescription' => '',
                'packageIssue' => [
                                [
                                                                'affectedLocation' => [
                                                                                                                                'cpeUri' => '',
                                                                                                                                'package' => '',
                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'effectiveSeverity' => '',
                                                                'fixedLocation' => [
                                                                                                                                
                                                                ],
                                                                'packageType' => '',
                                                                'severityName' => ''
                                ]
                ],
                'relatedUrls' => [
                                [
                                                                'label' => '',
                                                                'url' => ''
                                ]
                ],
                'severity' => '',
                'shortDescription' => '',
                'type' => '',
                'vexAssessment' => [
                                'cve' => '',
                                'impacts' => [
                                                                
                                ],
                                'justification' => [
                                                                'details' => '',
                                                                'justificationType' => ''
                                ],
                                'noteName' => '',
                                'relatedUris' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'remediations' => [
                                                                [
                                                                                                                                'details' => '',
                                                                                                                                'remediationType' => '',
                                                                                                                                'remediationUri' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'state' => ''
                ]
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'occurrences' => [
    [
        'attestation' => [
                'attestation' => [
                                'genericSignedAttestation' => [
                                                                'contentType' => '',
                                                                'serializedPayload' => '',
                                                                'signatures' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'publicKeyId' => '',
                                                                                                                                                                                                                                                                'signature' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'pgpSignedAttestation' => [
                                                                'contentType' => '',
                                                                'pgpKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'build' => [
                'provenance' => [
                                'buildOptions' => [
                                                                
                                ],
                                'builderVersion' => '',
                                'builtArtifacts' => [
                                                                [
                                                                                                                                'checksum' => '',
                                                                                                                                'id' => '',
                                                                                                                                'names' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'commands' => [
                                                                [
                                                                                                                                'args' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'dir' => '',
                                                                                                                                'env' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'waitFor' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'createTime' => '',
                                'creator' => '',
                                'endTime' => '',
                                'id' => '',
                                'logsUri' => '',
                                'projectId' => '',
                                'sourceProvenance' => [
                                                                'additionalContexts' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'cloudRepo' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'gerrit' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'gerritProject' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'hostUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'git' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'revisionId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'url' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'labels' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'artifactStorageSourceUri' => '',
                                                                'context' => [
                                                                                                                                
                                                                ],
                                                                'fileHashes' => [
                                                                                                                                
                                                                ]
                                ],
                                'startTime' => '',
                                'triggerId' => ''
                ],
                'provenanceBytes' => ''
        ],
        'createTime' => '',
        'deployment' => [
                'deployment' => [
                                'address' => '',
                                'config' => '',
                                'deployTime' => '',
                                'platform' => '',
                                'resourceUri' => [
                                                                
                                ],
                                'undeployTime' => '',
                                'userEmail' => ''
                ]
        ],
        'derivedImage' => [
                'derivedImage' => [
                                'baseResourceUrl' => '',
                                'distance' => 0,
                                'fingerprint' => [
                                                                'v1Name' => '',
                                                                'v2Blob' => [
                                                                                                                                
                                                                ],
                                                                'v2Name' => ''
                                ],
                                'layerInfo' => [
                                                                [
                                                                                                                                'arguments' => '',
                                                                                                                                'directive' => ''
                                                                ]
                                ]
                ]
        ],
        'discovered' => [
                'discovered' => [
                                'analysisCompleted' => [
                                                                'analysisType' => [
                                                                                                                                
                                                                ]
                                ],
                                'analysisError' => [
                                                                [
                                                                                                                                'code' => 0,
                                                                                                                                'details' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'message' => ''
                                                                ]
                                ],
                                'analysisStatus' => '',
                                'analysisStatusError' => [
                                                                
                                ],
                                'continuousAnalysis' => '',
                                'lastAnalysisTime' => ''
                ]
        ],
        'envelope' => [
                'payload' => '',
                'payloadType' => '',
                'signatures' => [
                                [
                                                                'keyid' => '',
                                                                'sig' => ''
                                ]
                ]
        ],
        'installation' => [
                'installation' => [
                                'architecture' => '',
                                'cpeUri' => '',
                                'license' => [
                                                                'comments' => '',
                                                                'expression' => ''
                                ],
                                'location' => [
                                                                [
                                                                                                                                'cpeUri' => '',
                                                                                                                                'path' => '',
                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                'epoch' => 0,
                                                                                                                                                                                                                                                                'inclusive' => null,
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'revision' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'name' => '',
                                'packageType' => '',
                                'version' => [
                                                                
                                ]
                ]
        ],
        'intoto' => [
                'signatures' => [
                                [
                                                                'keyid' => '',
                                                                'sig' => ''
                                ]
                ],
                'signed' => [
                                'byproducts' => [
                                                                'customValues' => [
                                                                                                                                
                                                                ]
                                ],
                                'command' => [
                                                                
                                ],
                                'environment' => [
                                                                'customValues' => [
                                                                                                                                
                                                                ]
                                ],
                                'materials' => [
                                                                [
                                                                                                                                'hashes' => [
                                                                                                                                                                                                                                                                'sha256' => ''
                                                                                                                                ],
                                                                                                                                'resourceUri' => ''
                                                                ]
                                ],
                                'products' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'kind' => '',
        'name' => '',
        'noteName' => '',
        'remediation' => '',
        'resource' => [
                'contentHash' => [
                                'type' => '',
                                'value' => ''
                ],
                'name' => '',
                'uri' => ''
        ],
        'sbom' => [
                'createTime' => '',
                'creatorComment' => '',
                'creators' => [
                                
                ],
                'documentComment' => '',
                'externalDocumentRefs' => [
                                
                ],
                'id' => '',
                'licenseListVersion' => '',
                'namespace' => '',
                'title' => ''
        ],
        'sbomReference' => [
                'payload' => [
                                '_type' => '',
                                'predicate' => [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'location' => '',
                                                                'mimeType' => '',
                                                                'referrerId' => ''
                                ],
                                'predicateType' => '',
                                'subject' => [
                                                                [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'payloadType' => '',
                'signatures' => [
                                [
                                                                
                                ]
                ]
        ],
        'spdxFile' => [
                'attributions' => [
                                
                ],
                'comment' => '',
                'contributors' => [
                                
                ],
                'copyright' => '',
                'filesLicenseInfo' => [
                                
                ],
                'id' => '',
                'licenseConcluded' => [
                                
                ],
                'notice' => ''
        ],
        'spdxPackage' => [
                'comment' => '',
                'filename' => '',
                'homePage' => '',
                'id' => '',
                'licenseConcluded' => [
                                
                ],
                'packageType' => '',
                'sourceInfo' => '',
                'summaryDescription' => '',
                'title' => '',
                'version' => ''
        ],
        'spdxRelationship' => [
                'comment' => '',
                'source' => '',
                'target' => '',
                'type' => ''
        ],
        'updateTime' => '',
        'vulnerability' => [
                'cvssScore' => '',
                'cvssV2' => [
                                'attackComplexity' => '',
                                'attackVector' => '',
                                'authentication' => '',
                                'availabilityImpact' => '',
                                'baseScore' => '',
                                'confidentialityImpact' => '',
                                'exploitabilityScore' => '',
                                'impactScore' => '',
                                'integrityImpact' => '',
                                'privilegesRequired' => '',
                                'scope' => '',
                                'userInteraction' => ''
                ],
                'cvssV3' => [
                                
                ],
                'cvssVersion' => '',
                'effectiveSeverity' => '',
                'longDescription' => '',
                'packageIssue' => [
                                [
                                                                'affectedLocation' => [
                                                                                                                                'cpeUri' => '',
                                                                                                                                'package' => '',
                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'effectiveSeverity' => '',
                                                                'fixedLocation' => [
                                                                                                                                
                                                                ],
                                                                'packageType' => '',
                                                                'severityName' => ''
                                ]
                ],
                'relatedUrls' => [
                                [
                                                                'label' => '',
                                                                'url' => ''
                                ]
                ],
                'severity' => '',
                'shortDescription' => '',
                'type' => '',
                'vexAssessment' => [
                                'cve' => '',
                                'impacts' => [
                                                                
                                ],
                                'justification' => [
                                                                'details' => '',
                                                                'justificationType' => ''
                                ],
                                'noteName' => '',
                                'relatedUris' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'remediations' => [
                                                                [
                                                                                                                                'details' => '',
                                                                                                                                'remediationType' => '',
                                                                                                                                'remediationUri' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'state' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate');
$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}}/v1beta1/:parent/occurrences:batchCreate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}'
import http.client

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

payload = "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/occurrences:batchCreate", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"

payload = { "occurrences": [
        {
            "attestation": { "attestation": {
                    "genericSignedAttestation": {
                        "contentType": "",
                        "serializedPayload": "",
                        "signatures": [
                            {
                                "publicKeyId": "",
                                "signature": ""
                            }
                        ]
                    },
                    "pgpSignedAttestation": {
                        "contentType": "",
                        "pgpKeyId": "",
                        "signature": ""
                    }
                } },
            "build": {
                "provenance": {
                    "buildOptions": {},
                    "builderVersion": "",
                    "builtArtifacts": [
                        {
                            "checksum": "",
                            "id": "",
                            "names": []
                        }
                    ],
                    "commands": [
                        {
                            "args": [],
                            "dir": "",
                            "env": [],
                            "id": "",
                            "name": "",
                            "waitFor": []
                        }
                    ],
                    "createTime": "",
                    "creator": "",
                    "endTime": "",
                    "id": "",
                    "logsUri": "",
                    "projectId": "",
                    "sourceProvenance": {
                        "additionalContexts": [
                            {
                                "cloudRepo": {
                                    "aliasContext": {
                                        "kind": "",
                                        "name": ""
                                    },
                                    "repoId": {
                                        "projectRepoId": {
                                            "projectId": "",
                                            "repoName": ""
                                        },
                                        "uid": ""
                                    },
                                    "revisionId": ""
                                },
                                "gerrit": {
                                    "aliasContext": {},
                                    "gerritProject": "",
                                    "hostUri": "",
                                    "revisionId": ""
                                },
                                "git": {
                                    "revisionId": "",
                                    "url": ""
                                },
                                "labels": {}
                            }
                        ],
                        "artifactStorageSourceUri": "",
                        "context": {},
                        "fileHashes": {}
                    },
                    "startTime": "",
                    "triggerId": ""
                },
                "provenanceBytes": ""
            },
            "createTime": "",
            "deployment": { "deployment": {
                    "address": "",
                    "config": "",
                    "deployTime": "",
                    "platform": "",
                    "resourceUri": [],
                    "undeployTime": "",
                    "userEmail": ""
                } },
            "derivedImage": { "derivedImage": {
                    "baseResourceUrl": "",
                    "distance": 0,
                    "fingerprint": {
                        "v1Name": "",
                        "v2Blob": [],
                        "v2Name": ""
                    },
                    "layerInfo": [
                        {
                            "arguments": "",
                            "directive": ""
                        }
                    ]
                } },
            "discovered": { "discovered": {
                    "analysisCompleted": { "analysisType": [] },
                    "analysisError": [
                        {
                            "code": 0,
                            "details": [{}],
                            "message": ""
                        }
                    ],
                    "analysisStatus": "",
                    "analysisStatusError": {},
                    "continuousAnalysis": "",
                    "lastAnalysisTime": ""
                } },
            "envelope": {
                "payload": "",
                "payloadType": "",
                "signatures": [
                    {
                        "keyid": "",
                        "sig": ""
                    }
                ]
            },
            "installation": { "installation": {
                    "architecture": "",
                    "cpeUri": "",
                    "license": {
                        "comments": "",
                        "expression": ""
                    },
                    "location": [
                        {
                            "cpeUri": "",
                            "path": "",
                            "version": {
                                "epoch": 0,
                                "inclusive": False,
                                "kind": "",
                                "name": "",
                                "revision": ""
                            }
                        }
                    ],
                    "name": "",
                    "packageType": "",
                    "version": {}
                } },
            "intoto": {
                "signatures": [
                    {
                        "keyid": "",
                        "sig": ""
                    }
                ],
                "signed": {
                    "byproducts": { "customValues": {} },
                    "command": [],
                    "environment": { "customValues": {} },
                    "materials": [
                        {
                            "hashes": { "sha256": "" },
                            "resourceUri": ""
                        }
                    ],
                    "products": [{}]
                }
            },
            "kind": "",
            "name": "",
            "noteName": "",
            "remediation": "",
            "resource": {
                "contentHash": {
                    "type": "",
                    "value": ""
                },
                "name": "",
                "uri": ""
            },
            "sbom": {
                "createTime": "",
                "creatorComment": "",
                "creators": [],
                "documentComment": "",
                "externalDocumentRefs": [],
                "id": "",
                "licenseListVersion": "",
                "namespace": "",
                "title": ""
            },
            "sbomReference": {
                "payload": {
                    "_type": "",
                    "predicate": {
                        "digest": {},
                        "location": "",
                        "mimeType": "",
                        "referrerId": ""
                    },
                    "predicateType": "",
                    "subject": [
                        {
                            "digest": {},
                            "name": ""
                        }
                    ]
                },
                "payloadType": "",
                "signatures": [{}]
            },
            "spdxFile": {
                "attributions": [],
                "comment": "",
                "contributors": [],
                "copyright": "",
                "filesLicenseInfo": [],
                "id": "",
                "licenseConcluded": {},
                "notice": ""
            },
            "spdxPackage": {
                "comment": "",
                "filename": "",
                "homePage": "",
                "id": "",
                "licenseConcluded": {},
                "packageType": "",
                "sourceInfo": "",
                "summaryDescription": "",
                "title": "",
                "version": ""
            },
            "spdxRelationship": {
                "comment": "",
                "source": "",
                "target": "",
                "type": ""
            },
            "updateTime": "",
            "vulnerability": {
                "cvssScore": "",
                "cvssV2": {
                    "attackComplexity": "",
                    "attackVector": "",
                    "authentication": "",
                    "availabilityImpact": "",
                    "baseScore": "",
                    "confidentialityImpact": "",
                    "exploitabilityScore": "",
                    "impactScore": "",
                    "integrityImpact": "",
                    "privilegesRequired": "",
                    "scope": "",
                    "userInteraction": ""
                },
                "cvssV3": {},
                "cvssVersion": "",
                "effectiveSeverity": "",
                "longDescription": "",
                "packageIssue": [
                    {
                        "affectedLocation": {
                            "cpeUri": "",
                            "package": "",
                            "version": {}
                        },
                        "effectiveSeverity": "",
                        "fixedLocation": {},
                        "packageType": "",
                        "severityName": ""
                    }
                ],
                "relatedUrls": [
                    {
                        "label": "",
                        "url": ""
                    }
                ],
                "severity": "",
                "shortDescription": "",
                "type": "",
                "vexAssessment": {
                    "cve": "",
                    "impacts": [],
                    "justification": {
                        "details": "",
                        "justificationType": ""
                    },
                    "noteName": "",
                    "relatedUris": [{}],
                    "remediations": [
                        {
                            "details": "",
                            "remediationType": "",
                            "remediationUri": {}
                        }
                    ],
                    "state": ""
                }
            }
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate"

payload <- "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate")

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  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}"

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

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

response = conn.post('/baseUrl/v1beta1/:parent/occurrences:batchCreate') do |req|
  req.body = "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"attestation\": {\n          \"genericSignedAttestation\": {\n            \"contentType\": \"\",\n            \"serializedPayload\": \"\",\n            \"signatures\": [\n              {\n                \"publicKeyId\": \"\",\n                \"signature\": \"\"\n              }\n            ]\n          },\n          \"pgpSignedAttestation\": {\n            \"contentType\": \"\",\n            \"pgpKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        }\n      },\n      \"build\": {\n        \"provenance\": {\n          \"buildOptions\": {},\n          \"builderVersion\": \"\",\n          \"builtArtifacts\": [\n            {\n              \"checksum\": \"\",\n              \"id\": \"\",\n              \"names\": []\n            }\n          ],\n          \"commands\": [\n            {\n              \"args\": [],\n              \"dir\": \"\",\n              \"env\": [],\n              \"id\": \"\",\n              \"name\": \"\",\n              \"waitFor\": []\n            }\n          ],\n          \"createTime\": \"\",\n          \"creator\": \"\",\n          \"endTime\": \"\",\n          \"id\": \"\",\n          \"logsUri\": \"\",\n          \"projectId\": \"\",\n          \"sourceProvenance\": {\n            \"additionalContexts\": [\n              {\n                \"cloudRepo\": {\n                  \"aliasContext\": {\n                    \"kind\": \"\",\n                    \"name\": \"\"\n                  },\n                  \"repoId\": {\n                    \"projectRepoId\": {\n                      \"projectId\": \"\",\n                      \"repoName\": \"\"\n                    },\n                    \"uid\": \"\"\n                  },\n                  \"revisionId\": \"\"\n                },\n                \"gerrit\": {\n                  \"aliasContext\": {},\n                  \"gerritProject\": \"\",\n                  \"hostUri\": \"\",\n                  \"revisionId\": \"\"\n                },\n                \"git\": {\n                  \"revisionId\": \"\",\n                  \"url\": \"\"\n                },\n                \"labels\": {}\n              }\n            ],\n            \"artifactStorageSourceUri\": \"\",\n            \"context\": {},\n            \"fileHashes\": {}\n          },\n          \"startTime\": \"\",\n          \"triggerId\": \"\"\n        },\n        \"provenanceBytes\": \"\"\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"deployment\": {\n          \"address\": \"\",\n          \"config\": \"\",\n          \"deployTime\": \"\",\n          \"platform\": \"\",\n          \"resourceUri\": [],\n          \"undeployTime\": \"\",\n          \"userEmail\": \"\"\n        }\n      },\n      \"derivedImage\": {\n        \"derivedImage\": {\n          \"baseResourceUrl\": \"\",\n          \"distance\": 0,\n          \"fingerprint\": {\n            \"v1Name\": \"\",\n            \"v2Blob\": [],\n            \"v2Name\": \"\"\n          },\n          \"layerInfo\": [\n            {\n              \"arguments\": \"\",\n              \"directive\": \"\"\n            }\n          ]\n        }\n      },\n      \"discovered\": {\n        \"discovered\": {\n          \"analysisCompleted\": {\n            \"analysisType\": []\n          },\n          \"analysisError\": [\n            {\n              \"code\": 0,\n              \"details\": [\n                {}\n              ],\n              \"message\": \"\"\n            }\n          ],\n          \"analysisStatus\": \"\",\n          \"analysisStatusError\": {},\n          \"continuousAnalysis\": \"\",\n          \"lastAnalysisTime\": \"\"\n        }\n      },\n      \"envelope\": {\n        \"payload\": \"\",\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ]\n      },\n      \"installation\": {\n        \"installation\": {\n          \"architecture\": \"\",\n          \"cpeUri\": \"\",\n          \"license\": {\n            \"comments\": \"\",\n            \"expression\": \"\"\n          },\n          \"location\": [\n            {\n              \"cpeUri\": \"\",\n              \"path\": \"\",\n              \"version\": {\n                \"epoch\": 0,\n                \"inclusive\": false,\n                \"kind\": \"\",\n                \"name\": \"\",\n                \"revision\": \"\"\n              }\n            }\n          ],\n          \"name\": \"\",\n          \"packageType\": \"\",\n          \"version\": {}\n        }\n      },\n      \"intoto\": {\n        \"signatures\": [\n          {\n            \"keyid\": \"\",\n            \"sig\": \"\"\n          }\n        ],\n        \"signed\": {\n          \"byproducts\": {\n            \"customValues\": {}\n          },\n          \"command\": [],\n          \"environment\": {\n            \"customValues\": {}\n          },\n          \"materials\": [\n            {\n              \"hashes\": {\n                \"sha256\": \"\"\n              },\n              \"resourceUri\": \"\"\n            }\n          ],\n          \"products\": [\n            {}\n          ]\n        }\n      },\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"remediation\": \"\",\n      \"resource\": {\n        \"contentHash\": {\n          \"type\": \"\",\n          \"value\": \"\"\n        },\n        \"name\": \"\",\n        \"uri\": \"\"\n      },\n      \"sbom\": {\n        \"createTime\": \"\",\n        \"creatorComment\": \"\",\n        \"creators\": [],\n        \"documentComment\": \"\",\n        \"externalDocumentRefs\": [],\n        \"id\": \"\",\n        \"licenseListVersion\": \"\",\n        \"namespace\": \"\",\n        \"title\": \"\"\n      },\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"spdxFile\": {\n        \"attributions\": [],\n        \"comment\": \"\",\n        \"contributors\": [],\n        \"copyright\": \"\",\n        \"filesLicenseInfo\": [],\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"notice\": \"\"\n      },\n      \"spdxPackage\": {\n        \"comment\": \"\",\n        \"filename\": \"\",\n        \"homePage\": \"\",\n        \"id\": \"\",\n        \"licenseConcluded\": {},\n        \"packageType\": \"\",\n        \"sourceInfo\": \"\",\n        \"summaryDescription\": \"\",\n        \"title\": \"\",\n        \"version\": \"\"\n      },\n      \"spdxRelationship\": {\n        \"comment\": \"\",\n        \"source\": \"\",\n        \"target\": \"\",\n        \"type\": \"\"\n      },\n      \"updateTime\": \"\",\n      \"vulnerability\": {\n        \"cvssScore\": \"\",\n        \"cvssV2\": {\n          \"attackComplexity\": \"\",\n          \"attackVector\": \"\",\n          \"authentication\": \"\",\n          \"availabilityImpact\": \"\",\n          \"baseScore\": \"\",\n          \"confidentialityImpact\": \"\",\n          \"exploitabilityScore\": \"\",\n          \"impactScore\": \"\",\n          \"integrityImpact\": \"\",\n          \"privilegesRequired\": \"\",\n          \"scope\": \"\",\n          \"userInteraction\": \"\"\n        },\n        \"cvssV3\": {},\n        \"cvssVersion\": \"\",\n        \"effectiveSeverity\": \"\",\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedLocation\": {\n              \"cpeUri\": \"\",\n              \"package\": \"\",\n              \"version\": {}\n            },\n            \"effectiveSeverity\": \"\",\n            \"fixedLocation\": {},\n            \"packageType\": \"\",\n            \"severityName\": \"\"\n          }\n        ],\n        \"relatedUrls\": [\n          {\n            \"label\": \"\",\n            \"url\": \"\"\n          }\n        ],\n        \"severity\": \"\",\n        \"shortDescription\": \"\",\n        \"type\": \"\",\n        \"vexAssessment\": {\n          \"cve\": \"\",\n          \"impacts\": [],\n          \"justification\": {\n            \"details\": \"\",\n            \"justificationType\": \"\"\n          },\n          \"noteName\": \"\",\n          \"relatedUris\": [\n            {}\n          ],\n          \"remediations\": [\n            {\n              \"details\": \"\",\n              \"remediationType\": \"\",\n              \"remediationUri\": {}\n            }\n          ],\n          \"state\": \"\"\n        }\n      }\n    }\n  ]\n}"
end

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

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

    let payload = json!({"occurrences": (
            json!({
                "attestation": json!({"attestation": json!({
                        "genericSignedAttestation": json!({
                            "contentType": "",
                            "serializedPayload": "",
                            "signatures": (
                                json!({
                                    "publicKeyId": "",
                                    "signature": ""
                                })
                            )
                        }),
                        "pgpSignedAttestation": json!({
                            "contentType": "",
                            "pgpKeyId": "",
                            "signature": ""
                        })
                    })}),
                "build": json!({
                    "provenance": json!({
                        "buildOptions": json!({}),
                        "builderVersion": "",
                        "builtArtifacts": (
                            json!({
                                "checksum": "",
                                "id": "",
                                "names": ()
                            })
                        ),
                        "commands": (
                            json!({
                                "args": (),
                                "dir": "",
                                "env": (),
                                "id": "",
                                "name": "",
                                "waitFor": ()
                            })
                        ),
                        "createTime": "",
                        "creator": "",
                        "endTime": "",
                        "id": "",
                        "logsUri": "",
                        "projectId": "",
                        "sourceProvenance": json!({
                            "additionalContexts": (
                                json!({
                                    "cloudRepo": json!({
                                        "aliasContext": json!({
                                            "kind": "",
                                            "name": ""
                                        }),
                                        "repoId": json!({
                                            "projectRepoId": json!({
                                                "projectId": "",
                                                "repoName": ""
                                            }),
                                            "uid": ""
                                        }),
                                        "revisionId": ""
                                    }),
                                    "gerrit": json!({
                                        "aliasContext": json!({}),
                                        "gerritProject": "",
                                        "hostUri": "",
                                        "revisionId": ""
                                    }),
                                    "git": json!({
                                        "revisionId": "",
                                        "url": ""
                                    }),
                                    "labels": json!({})
                                })
                            ),
                            "artifactStorageSourceUri": "",
                            "context": json!({}),
                            "fileHashes": json!({})
                        }),
                        "startTime": "",
                        "triggerId": ""
                    }),
                    "provenanceBytes": ""
                }),
                "createTime": "",
                "deployment": json!({"deployment": json!({
                        "address": "",
                        "config": "",
                        "deployTime": "",
                        "platform": "",
                        "resourceUri": (),
                        "undeployTime": "",
                        "userEmail": ""
                    })}),
                "derivedImage": json!({"derivedImage": json!({
                        "baseResourceUrl": "",
                        "distance": 0,
                        "fingerprint": json!({
                            "v1Name": "",
                            "v2Blob": (),
                            "v2Name": ""
                        }),
                        "layerInfo": (
                            json!({
                                "arguments": "",
                                "directive": ""
                            })
                        )
                    })}),
                "discovered": json!({"discovered": json!({
                        "analysisCompleted": json!({"analysisType": ()}),
                        "analysisError": (
                            json!({
                                "code": 0,
                                "details": (json!({})),
                                "message": ""
                            })
                        ),
                        "analysisStatus": "",
                        "analysisStatusError": json!({}),
                        "continuousAnalysis": "",
                        "lastAnalysisTime": ""
                    })}),
                "envelope": json!({
                    "payload": "",
                    "payloadType": "",
                    "signatures": (
                        json!({
                            "keyid": "",
                            "sig": ""
                        })
                    )
                }),
                "installation": json!({"installation": json!({
                        "architecture": "",
                        "cpeUri": "",
                        "license": json!({
                            "comments": "",
                            "expression": ""
                        }),
                        "location": (
                            json!({
                                "cpeUri": "",
                                "path": "",
                                "version": json!({
                                    "epoch": 0,
                                    "inclusive": false,
                                    "kind": "",
                                    "name": "",
                                    "revision": ""
                                })
                            })
                        ),
                        "name": "",
                        "packageType": "",
                        "version": json!({})
                    })}),
                "intoto": json!({
                    "signatures": (
                        json!({
                            "keyid": "",
                            "sig": ""
                        })
                    ),
                    "signed": json!({
                        "byproducts": json!({"customValues": json!({})}),
                        "command": (),
                        "environment": json!({"customValues": json!({})}),
                        "materials": (
                            json!({
                                "hashes": json!({"sha256": ""}),
                                "resourceUri": ""
                            })
                        ),
                        "products": (json!({}))
                    })
                }),
                "kind": "",
                "name": "",
                "noteName": "",
                "remediation": "",
                "resource": json!({
                    "contentHash": json!({
                        "type": "",
                        "value": ""
                    }),
                    "name": "",
                    "uri": ""
                }),
                "sbom": json!({
                    "createTime": "",
                    "creatorComment": "",
                    "creators": (),
                    "documentComment": "",
                    "externalDocumentRefs": (),
                    "id": "",
                    "licenseListVersion": "",
                    "namespace": "",
                    "title": ""
                }),
                "sbomReference": json!({
                    "payload": json!({
                        "_type": "",
                        "predicate": json!({
                            "digest": json!({}),
                            "location": "",
                            "mimeType": "",
                            "referrerId": ""
                        }),
                        "predicateType": "",
                        "subject": (
                            json!({
                                "digest": json!({}),
                                "name": ""
                            })
                        )
                    }),
                    "payloadType": "",
                    "signatures": (json!({}))
                }),
                "spdxFile": json!({
                    "attributions": (),
                    "comment": "",
                    "contributors": (),
                    "copyright": "",
                    "filesLicenseInfo": (),
                    "id": "",
                    "licenseConcluded": json!({}),
                    "notice": ""
                }),
                "spdxPackage": json!({
                    "comment": "",
                    "filename": "",
                    "homePage": "",
                    "id": "",
                    "licenseConcluded": json!({}),
                    "packageType": "",
                    "sourceInfo": "",
                    "summaryDescription": "",
                    "title": "",
                    "version": ""
                }),
                "spdxRelationship": json!({
                    "comment": "",
                    "source": "",
                    "target": "",
                    "type": ""
                }),
                "updateTime": "",
                "vulnerability": json!({
                    "cvssScore": "",
                    "cvssV2": json!({
                        "attackComplexity": "",
                        "attackVector": "",
                        "authentication": "",
                        "availabilityImpact": "",
                        "baseScore": "",
                        "confidentialityImpact": "",
                        "exploitabilityScore": "",
                        "impactScore": "",
                        "integrityImpact": "",
                        "privilegesRequired": "",
                        "scope": "",
                        "userInteraction": ""
                    }),
                    "cvssV3": json!({}),
                    "cvssVersion": "",
                    "effectiveSeverity": "",
                    "longDescription": "",
                    "packageIssue": (
                        json!({
                            "affectedLocation": json!({
                                "cpeUri": "",
                                "package": "",
                                "version": json!({})
                            }),
                            "effectiveSeverity": "",
                            "fixedLocation": json!({}),
                            "packageType": "",
                            "severityName": ""
                        })
                    ),
                    "relatedUrls": (
                        json!({
                            "label": "",
                            "url": ""
                        })
                    ),
                    "severity": "",
                    "shortDescription": "",
                    "type": "",
                    "vexAssessment": json!({
                        "cve": "",
                        "impacts": (),
                        "justification": json!({
                            "details": "",
                            "justificationType": ""
                        }),
                        "noteName": "",
                        "relatedUris": (json!({})),
                        "remediations": (
                            json!({
                                "details": "",
                                "remediationType": "",
                                "remediationUri": json!({})
                            })
                        ),
                        "state": ""
                    })
                })
            })
        )});

    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}}/v1beta1/:parent/occurrences:batchCreate \
  --header 'content-type: application/json' \
  --data '{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}'
echo '{
  "occurrences": [
    {
      "attestation": {
        "attestation": {
          "genericSignedAttestation": {
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              {
                "publicKeyId": "",
                "signature": ""
              }
            ]
          },
          "pgpSignedAttestation": {
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          }
        }
      },
      "build": {
        "provenance": {
          "buildOptions": {},
          "builderVersion": "",
          "builtArtifacts": [
            {
              "checksum": "",
              "id": "",
              "names": []
            }
          ],
          "commands": [
            {
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            }
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": {
            "additionalContexts": [
              {
                "cloudRepo": {
                  "aliasContext": {
                    "kind": "",
                    "name": ""
                  },
                  "repoId": {
                    "projectRepoId": {
                      "projectId": "",
                      "repoName": ""
                    },
                    "uid": ""
                  },
                  "revisionId": ""
                },
                "gerrit": {
                  "aliasContext": {},
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                },
                "git": {
                  "revisionId": "",
                  "url": ""
                },
                "labels": {}
              }
            ],
            "artifactStorageSourceUri": "",
            "context": {},
            "fileHashes": {}
          },
          "startTime": "",
          "triggerId": ""
        },
        "provenanceBytes": ""
      },
      "createTime": "",
      "deployment": {
        "deployment": {
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        }
      },
      "derivedImage": {
        "derivedImage": {
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          },
          "layerInfo": [
            {
              "arguments": "",
              "directive": ""
            }
          ]
        }
      },
      "discovered": {
        "discovered": {
          "analysisCompleted": {
            "analysisType": []
          },
          "analysisError": [
            {
              "code": 0,
              "details": [
                {}
              ],
              "message": ""
            }
          ],
          "analysisStatus": "",
          "analysisStatusError": {},
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        }
      },
      "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ]
      },
      "installation": {
        "installation": {
          "architecture": "",
          "cpeUri": "",
          "license": {
            "comments": "",
            "expression": ""
          },
          "location": [
            {
              "cpeUri": "",
              "path": "",
              "version": {
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              }
            }
          ],
          "name": "",
          "packageType": "",
          "version": {}
        }
      },
      "intoto": {
        "signatures": [
          {
            "keyid": "",
            "sig": ""
          }
        ],
        "signed": {
          "byproducts": {
            "customValues": {}
          },
          "command": [],
          "environment": {
            "customValues": {}
          },
          "materials": [
            {
              "hashes": {
                "sha256": ""
              },
              "resourceUri": ""
            }
          ],
          "products": [
            {}
          ]
        }
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": {
        "contentHash": {
          "type": "",
          "value": ""
        },
        "name": "",
        "uri": ""
      },
      "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      },
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
      },
      "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      },
      "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      },
      "updateTime": "",
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          {
            "affectedLocation": {
              "cpeUri": "",
              "package": "",
              "version": {}
            },
            "effectiveSeverity": "",
            "fixedLocation": {},
            "packageType": "",
            "severityName": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": ""
        }
      }
    }
  ]
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/occurrences:batchCreate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "occurrences": [\n    {\n      "attestation": {\n        "attestation": {\n          "genericSignedAttestation": {\n            "contentType": "",\n            "serializedPayload": "",\n            "signatures": [\n              {\n                "publicKeyId": "",\n                "signature": ""\n              }\n            ]\n          },\n          "pgpSignedAttestation": {\n            "contentType": "",\n            "pgpKeyId": "",\n            "signature": ""\n          }\n        }\n      },\n      "build": {\n        "provenance": {\n          "buildOptions": {},\n          "builderVersion": "",\n          "builtArtifacts": [\n            {\n              "checksum": "",\n              "id": "",\n              "names": []\n            }\n          ],\n          "commands": [\n            {\n              "args": [],\n              "dir": "",\n              "env": [],\n              "id": "",\n              "name": "",\n              "waitFor": []\n            }\n          ],\n          "createTime": "",\n          "creator": "",\n          "endTime": "",\n          "id": "",\n          "logsUri": "",\n          "projectId": "",\n          "sourceProvenance": {\n            "additionalContexts": [\n              {\n                "cloudRepo": {\n                  "aliasContext": {\n                    "kind": "",\n                    "name": ""\n                  },\n                  "repoId": {\n                    "projectRepoId": {\n                      "projectId": "",\n                      "repoName": ""\n                    },\n                    "uid": ""\n                  },\n                  "revisionId": ""\n                },\n                "gerrit": {\n                  "aliasContext": {},\n                  "gerritProject": "",\n                  "hostUri": "",\n                  "revisionId": ""\n                },\n                "git": {\n                  "revisionId": "",\n                  "url": ""\n                },\n                "labels": {}\n              }\n            ],\n            "artifactStorageSourceUri": "",\n            "context": {},\n            "fileHashes": {}\n          },\n          "startTime": "",\n          "triggerId": ""\n        },\n        "provenanceBytes": ""\n      },\n      "createTime": "",\n      "deployment": {\n        "deployment": {\n          "address": "",\n          "config": "",\n          "deployTime": "",\n          "platform": "",\n          "resourceUri": [],\n          "undeployTime": "",\n          "userEmail": ""\n        }\n      },\n      "derivedImage": {\n        "derivedImage": {\n          "baseResourceUrl": "",\n          "distance": 0,\n          "fingerprint": {\n            "v1Name": "",\n            "v2Blob": [],\n            "v2Name": ""\n          },\n          "layerInfo": [\n            {\n              "arguments": "",\n              "directive": ""\n            }\n          ]\n        }\n      },\n      "discovered": {\n        "discovered": {\n          "analysisCompleted": {\n            "analysisType": []\n          },\n          "analysisError": [\n            {\n              "code": 0,\n              "details": [\n                {}\n              ],\n              "message": ""\n            }\n          ],\n          "analysisStatus": "",\n          "analysisStatusError": {},\n          "continuousAnalysis": "",\n          "lastAnalysisTime": ""\n        }\n      },\n      "envelope": {\n        "payload": "",\n        "payloadType": "",\n        "signatures": [\n          {\n            "keyid": "",\n            "sig": ""\n          }\n        ]\n      },\n      "installation": {\n        "installation": {\n          "architecture": "",\n          "cpeUri": "",\n          "license": {\n            "comments": "",\n            "expression": ""\n          },\n          "location": [\n            {\n              "cpeUri": "",\n              "path": "",\n              "version": {\n                "epoch": 0,\n                "inclusive": false,\n                "kind": "",\n                "name": "",\n                "revision": ""\n              }\n            }\n          ],\n          "name": "",\n          "packageType": "",\n          "version": {}\n        }\n      },\n      "intoto": {\n        "signatures": [\n          {\n            "keyid": "",\n            "sig": ""\n          }\n        ],\n        "signed": {\n          "byproducts": {\n            "customValues": {}\n          },\n          "command": [],\n          "environment": {\n            "customValues": {}\n          },\n          "materials": [\n            {\n              "hashes": {\n                "sha256": ""\n              },\n              "resourceUri": ""\n            }\n          ],\n          "products": [\n            {}\n          ]\n        }\n      },\n      "kind": "",\n      "name": "",\n      "noteName": "",\n      "remediation": "",\n      "resource": {\n        "contentHash": {\n          "type": "",\n          "value": ""\n        },\n        "name": "",\n        "uri": ""\n      },\n      "sbom": {\n        "createTime": "",\n        "creatorComment": "",\n        "creators": [],\n        "documentComment": "",\n        "externalDocumentRefs": [],\n        "id": "",\n        "licenseListVersion": "",\n        "namespace": "",\n        "title": ""\n      },\n      "sbomReference": {\n        "payload": {\n          "_type": "",\n          "predicate": {\n            "digest": {},\n            "location": "",\n            "mimeType": "",\n            "referrerId": ""\n          },\n          "predicateType": "",\n          "subject": [\n            {\n              "digest": {},\n              "name": ""\n            }\n          ]\n        },\n        "payloadType": "",\n        "signatures": [\n          {}\n        ]\n      },\n      "spdxFile": {\n        "attributions": [],\n        "comment": "",\n        "contributors": [],\n        "copyright": "",\n        "filesLicenseInfo": [],\n        "id": "",\n        "licenseConcluded": {},\n        "notice": ""\n      },\n      "spdxPackage": {\n        "comment": "",\n        "filename": "",\n        "homePage": "",\n        "id": "",\n        "licenseConcluded": {},\n        "packageType": "",\n        "sourceInfo": "",\n        "summaryDescription": "",\n        "title": "",\n        "version": ""\n      },\n      "spdxRelationship": {\n        "comment": "",\n        "source": "",\n        "target": "",\n        "type": ""\n      },\n      "updateTime": "",\n      "vulnerability": {\n        "cvssScore": "",\n        "cvssV2": {\n          "attackComplexity": "",\n          "attackVector": "",\n          "authentication": "",\n          "availabilityImpact": "",\n          "baseScore": "",\n          "confidentialityImpact": "",\n          "exploitabilityScore": "",\n          "impactScore": "",\n          "integrityImpact": "",\n          "privilegesRequired": "",\n          "scope": "",\n          "userInteraction": ""\n        },\n        "cvssV3": {},\n        "cvssVersion": "",\n        "effectiveSeverity": "",\n        "longDescription": "",\n        "packageIssue": [\n          {\n            "affectedLocation": {\n              "cpeUri": "",\n              "package": "",\n              "version": {}\n            },\n            "effectiveSeverity": "",\n            "fixedLocation": {},\n            "packageType": "",\n            "severityName": ""\n          }\n        ],\n        "relatedUrls": [\n          {\n            "label": "",\n            "url": ""\n          }\n        ],\n        "severity": "",\n        "shortDescription": "",\n        "type": "",\n        "vexAssessment": {\n          "cve": "",\n          "impacts": [],\n          "justification": {\n            "details": "",\n            "justificationType": ""\n          },\n          "noteName": "",\n          "relatedUris": [\n            {}\n          ],\n          "remediations": [\n            {\n              "details": "",\n              "remediationType": "",\n              "remediationUri": {}\n            }\n          ],\n          "state": ""\n        }\n      }\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/occurrences:batchCreate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["occurrences": [
    [
      "attestation": ["attestation": [
          "genericSignedAttestation": [
            "contentType": "",
            "serializedPayload": "",
            "signatures": [
              [
                "publicKeyId": "",
                "signature": ""
              ]
            ]
          ],
          "pgpSignedAttestation": [
            "contentType": "",
            "pgpKeyId": "",
            "signature": ""
          ]
        ]],
      "build": [
        "provenance": [
          "buildOptions": [],
          "builderVersion": "",
          "builtArtifacts": [
            [
              "checksum": "",
              "id": "",
              "names": []
            ]
          ],
          "commands": [
            [
              "args": [],
              "dir": "",
              "env": [],
              "id": "",
              "name": "",
              "waitFor": []
            ]
          ],
          "createTime": "",
          "creator": "",
          "endTime": "",
          "id": "",
          "logsUri": "",
          "projectId": "",
          "sourceProvenance": [
            "additionalContexts": [
              [
                "cloudRepo": [
                  "aliasContext": [
                    "kind": "",
                    "name": ""
                  ],
                  "repoId": [
                    "projectRepoId": [
                      "projectId": "",
                      "repoName": ""
                    ],
                    "uid": ""
                  ],
                  "revisionId": ""
                ],
                "gerrit": [
                  "aliasContext": [],
                  "gerritProject": "",
                  "hostUri": "",
                  "revisionId": ""
                ],
                "git": [
                  "revisionId": "",
                  "url": ""
                ],
                "labels": []
              ]
            ],
            "artifactStorageSourceUri": "",
            "context": [],
            "fileHashes": []
          ],
          "startTime": "",
          "triggerId": ""
        ],
        "provenanceBytes": ""
      ],
      "createTime": "",
      "deployment": ["deployment": [
          "address": "",
          "config": "",
          "deployTime": "",
          "platform": "",
          "resourceUri": [],
          "undeployTime": "",
          "userEmail": ""
        ]],
      "derivedImage": ["derivedImage": [
          "baseResourceUrl": "",
          "distance": 0,
          "fingerprint": [
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
          ],
          "layerInfo": [
            [
              "arguments": "",
              "directive": ""
            ]
          ]
        ]],
      "discovered": ["discovered": [
          "analysisCompleted": ["analysisType": []],
          "analysisError": [
            [
              "code": 0,
              "details": [[]],
              "message": ""
            ]
          ],
          "analysisStatus": "",
          "analysisStatusError": [],
          "continuousAnalysis": "",
          "lastAnalysisTime": ""
        ]],
      "envelope": [
        "payload": "",
        "payloadType": "",
        "signatures": [
          [
            "keyid": "",
            "sig": ""
          ]
        ]
      ],
      "installation": ["installation": [
          "architecture": "",
          "cpeUri": "",
          "license": [
            "comments": "",
            "expression": ""
          ],
          "location": [
            [
              "cpeUri": "",
              "path": "",
              "version": [
                "epoch": 0,
                "inclusive": false,
                "kind": "",
                "name": "",
                "revision": ""
              ]
            ]
          ],
          "name": "",
          "packageType": "",
          "version": []
        ]],
      "intoto": [
        "signatures": [
          [
            "keyid": "",
            "sig": ""
          ]
        ],
        "signed": [
          "byproducts": ["customValues": []],
          "command": [],
          "environment": ["customValues": []],
          "materials": [
            [
              "hashes": ["sha256": ""],
              "resourceUri": ""
            ]
          ],
          "products": [[]]
        ]
      ],
      "kind": "",
      "name": "",
      "noteName": "",
      "remediation": "",
      "resource": [
        "contentHash": [
          "type": "",
          "value": ""
        ],
        "name": "",
        "uri": ""
      ],
      "sbom": [
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
      ],
      "sbomReference": [
        "payload": [
          "_type": "",
          "predicate": [
            "digest": [],
            "location": "",
            "mimeType": "",
            "referrerId": ""
          ],
          "predicateType": "",
          "subject": [
            [
              "digest": [],
              "name": ""
            ]
          ]
        ],
        "payloadType": "",
        "signatures": [[]]
      ],
      "spdxFile": [
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": [],
        "notice": ""
      ],
      "spdxPackage": [
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": [],
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
      ],
      "spdxRelationship": [
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
      ],
      "updateTime": "",
      "vulnerability": [
        "cvssScore": "",
        "cvssV2": [
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        ],
        "cvssV3": [],
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
          [
            "affectedLocation": [
              "cpeUri": "",
              "package": "",
              "version": []
            ],
            "effectiveSeverity": "",
            "fixedLocation": [],
            "packageType": "",
            "severityName": ""
          ]
        ],
        "relatedUrls": [
          [
            "label": "",
            "url": ""
          ]
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": [
          "cve": "",
          "impacts": [],
          "justification": [
            "details": "",
            "justificationType": ""
          ],
          "noteName": "",
          "relatedUris": [[]],
          "remediations": [
            [
              "details": "",
              "remediationType": "",
              "remediationUri": []
            ]
          ],
          "state": ""
        ]
      ]
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/occurrences:batchCreate")! 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 containeranalysis.projects.occurrences.create
{{baseUrl}}/v1beta1/:parent/occurrences
QUERY PARAMS

parent
BODY json

{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:parent/occurrences" {:content-type :json
                                                                        :form-params {:attestation {:attestation {:genericSignedAttestation {:contentType ""
                                                                                                                                             :serializedPayload ""
                                                                                                                                             :signatures [{:publicKeyId ""
                                                                                                                                                           :signature ""}]}
                                                                                                                  :pgpSignedAttestation {:contentType ""
                                                                                                                                         :pgpKeyId ""
                                                                                                                                         :signature ""}}}
                                                                                      :build {:provenance {:buildOptions {}
                                                                                                           :builderVersion ""
                                                                                                           :builtArtifacts [{:checksum ""
                                                                                                                             :id ""
                                                                                                                             :names []}]
                                                                                                           :commands [{:args []
                                                                                                                       :dir ""
                                                                                                                       :env []
                                                                                                                       :id ""
                                                                                                                       :name ""
                                                                                                                       :waitFor []}]
                                                                                                           :createTime ""
                                                                                                           :creator ""
                                                                                                           :endTime ""
                                                                                                           :id ""
                                                                                                           :logsUri ""
                                                                                                           :projectId ""
                                                                                                           :sourceProvenance {:additionalContexts [{:cloudRepo {:aliasContext {:kind ""
                                                                                                                                                                               :name ""}
                                                                                                                                                                :repoId {:projectRepoId {:projectId ""
                                                                                                                                                                                         :repoName ""}
                                                                                                                                                                         :uid ""}
                                                                                                                                                                :revisionId ""}
                                                                                                                                                    :gerrit {:aliasContext {}
                                                                                                                                                             :gerritProject ""
                                                                                                                                                             :hostUri ""
                                                                                                                                                             :revisionId ""}
                                                                                                                                                    :git {:revisionId ""
                                                                                                                                                          :url ""}
                                                                                                                                                    :labels {}}]
                                                                                                                              :artifactStorageSourceUri ""
                                                                                                                              :context {}
                                                                                                                              :fileHashes {}}
                                                                                                           :startTime ""
                                                                                                           :triggerId ""}
                                                                                              :provenanceBytes ""}
                                                                                      :createTime ""
                                                                                      :deployment {:deployment {:address ""
                                                                                                                :config ""
                                                                                                                :deployTime ""
                                                                                                                :platform ""
                                                                                                                :resourceUri []
                                                                                                                :undeployTime ""
                                                                                                                :userEmail ""}}
                                                                                      :derivedImage {:derivedImage {:baseResourceUrl ""
                                                                                                                    :distance 0
                                                                                                                    :fingerprint {:v1Name ""
                                                                                                                                  :v2Blob []
                                                                                                                                  :v2Name ""}
                                                                                                                    :layerInfo [{:arguments ""
                                                                                                                                 :directive ""}]}}
                                                                                      :discovered {:discovered {:analysisCompleted {:analysisType []}
                                                                                                                :analysisError [{:code 0
                                                                                                                                 :details [{}]
                                                                                                                                 :message ""}]
                                                                                                                :analysisStatus ""
                                                                                                                :analysisStatusError {}
                                                                                                                :continuousAnalysis ""
                                                                                                                :lastAnalysisTime ""}}
                                                                                      :envelope {:payload ""
                                                                                                 :payloadType ""
                                                                                                 :signatures [{:keyid ""
                                                                                                               :sig ""}]}
                                                                                      :installation {:installation {:architecture ""
                                                                                                                    :cpeUri ""
                                                                                                                    :license {:comments ""
                                                                                                                              :expression ""}
                                                                                                                    :location [{:cpeUri ""
                                                                                                                                :path ""
                                                                                                                                :version {:epoch 0
                                                                                                                                          :inclusive false
                                                                                                                                          :kind ""
                                                                                                                                          :name ""
                                                                                                                                          :revision ""}}]
                                                                                                                    :name ""
                                                                                                                    :packageType ""
                                                                                                                    :version {}}}
                                                                                      :intoto {:signatures [{:keyid ""
                                                                                                             :sig ""}]
                                                                                               :signed {:byproducts {:customValues {}}
                                                                                                        :command []
                                                                                                        :environment {:customValues {}}
                                                                                                        :materials [{:hashes {:sha256 ""}
                                                                                                                     :resourceUri ""}]
                                                                                                        :products [{}]}}
                                                                                      :kind ""
                                                                                      :name ""
                                                                                      :noteName ""
                                                                                      :remediation ""
                                                                                      :resource {:contentHash {:type ""
                                                                                                               :value ""}
                                                                                                 :name ""
                                                                                                 :uri ""}
                                                                                      :sbom {:createTime ""
                                                                                             :creatorComment ""
                                                                                             :creators []
                                                                                             :documentComment ""
                                                                                             :externalDocumentRefs []
                                                                                             :id ""
                                                                                             :licenseListVersion ""
                                                                                             :namespace ""
                                                                                             :title ""}
                                                                                      :sbomReference {:payload {:_type ""
                                                                                                                :predicate {:digest {}
                                                                                                                            :location ""
                                                                                                                            :mimeType ""
                                                                                                                            :referrerId ""}
                                                                                                                :predicateType ""
                                                                                                                :subject [{:digest {}
                                                                                                                           :name ""}]}
                                                                                                      :payloadType ""
                                                                                                      :signatures [{}]}
                                                                                      :spdxFile {:attributions []
                                                                                                 :comment ""
                                                                                                 :contributors []
                                                                                                 :copyright ""
                                                                                                 :filesLicenseInfo []
                                                                                                 :id ""
                                                                                                 :licenseConcluded {}
                                                                                                 :notice ""}
                                                                                      :spdxPackage {:comment ""
                                                                                                    :filename ""
                                                                                                    :homePage ""
                                                                                                    :id ""
                                                                                                    :licenseConcluded {}
                                                                                                    :packageType ""
                                                                                                    :sourceInfo ""
                                                                                                    :summaryDescription ""
                                                                                                    :title ""
                                                                                                    :version ""}
                                                                                      :spdxRelationship {:comment ""
                                                                                                         :source ""
                                                                                                         :target ""
                                                                                                         :type ""}
                                                                                      :updateTime ""
                                                                                      :vulnerability {:cvssScore ""
                                                                                                      :cvssV2 {:attackComplexity ""
                                                                                                               :attackVector ""
                                                                                                               :authentication ""
                                                                                                               :availabilityImpact ""
                                                                                                               :baseScore ""
                                                                                                               :confidentialityImpact ""
                                                                                                               :exploitabilityScore ""
                                                                                                               :impactScore ""
                                                                                                               :integrityImpact ""
                                                                                                               :privilegesRequired ""
                                                                                                               :scope ""
                                                                                                               :userInteraction ""}
                                                                                                      :cvssV3 {}
                                                                                                      :cvssVersion ""
                                                                                                      :effectiveSeverity ""
                                                                                                      :longDescription ""
                                                                                                      :packageIssue [{:affectedLocation {:cpeUri ""
                                                                                                                                         :package ""
                                                                                                                                         :version {}}
                                                                                                                      :effectiveSeverity ""
                                                                                                                      :fixedLocation {}
                                                                                                                      :packageType ""
                                                                                                                      :severityName ""}]
                                                                                                      :relatedUrls [{:label ""
                                                                                                                     :url ""}]
                                                                                                      :severity ""
                                                                                                      :shortDescription ""
                                                                                                      :type ""
                                                                                                      :vexAssessment {:cve ""
                                                                                                                      :impacts []
                                                                                                                      :justification {:details ""
                                                                                                                                      :justificationType ""}
                                                                                                                      :noteName ""
                                                                                                                      :relatedUris [{}]
                                                                                                                      :remediations [{:details ""
                                                                                                                                      :remediationType ""
                                                                                                                                      :remediationUri {}}]
                                                                                                                      :state ""}}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/occurrences"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1beta1/:parent/occurrences"),
    Content = new StringContent("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:parent/occurrences");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/occurrences"

	payload := strings.NewReader("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta1/:parent/occurrences HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 6470

{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:parent/occurrences")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:parent/occurrences"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/occurrences")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:parent/occurrences")
  .header("content-type", "application/json")
  .body("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  attestation: {
    attestation: {
      genericSignedAttestation: {
        contentType: '',
        serializedPayload: '',
        signatures: [
          {
            publicKeyId: '',
            signature: ''
          }
        ]
      },
      pgpSignedAttestation: {
        contentType: '',
        pgpKeyId: '',
        signature: ''
      }
    }
  },
  build: {
    provenance: {
      buildOptions: {},
      builderVersion: '',
      builtArtifacts: [
        {
          checksum: '',
          id: '',
          names: []
        }
      ],
      commands: [
        {
          args: [],
          dir: '',
          env: [],
          id: '',
          name: '',
          waitFor: []
        }
      ],
      createTime: '',
      creator: '',
      endTime: '',
      id: '',
      logsUri: '',
      projectId: '',
      sourceProvenance: {
        additionalContexts: [
          {
            cloudRepo: {
              aliasContext: {
                kind: '',
                name: ''
              },
              repoId: {
                projectRepoId: {
                  projectId: '',
                  repoName: ''
                },
                uid: ''
              },
              revisionId: ''
            },
            gerrit: {
              aliasContext: {},
              gerritProject: '',
              hostUri: '',
              revisionId: ''
            },
            git: {
              revisionId: '',
              url: ''
            },
            labels: {}
          }
        ],
        artifactStorageSourceUri: '',
        context: {},
        fileHashes: {}
      },
      startTime: '',
      triggerId: ''
    },
    provenanceBytes: ''
  },
  createTime: '',
  deployment: {
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    }
  },
  derivedImage: {
    derivedImage: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {
        v1Name: '',
        v2Blob: [],
        v2Name: ''
      },
      layerInfo: [
        {
          arguments: '',
          directive: ''
        }
      ]
    }
  },
  discovered: {
    discovered: {
      analysisCompleted: {
        analysisType: []
      },
      analysisError: [
        {
          code: 0,
          details: [
            {}
          ],
          message: ''
        }
      ],
      analysisStatus: '',
      analysisStatusError: {},
      continuousAnalysis: '',
      lastAnalysisTime: ''
    }
  },
  envelope: {
    payload: '',
    payloadType: '',
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ]
  },
  installation: {
    installation: {
      architecture: '',
      cpeUri: '',
      license: {
        comments: '',
        expression: ''
      },
      location: [
        {
          cpeUri: '',
          path: '',
          version: {
            epoch: 0,
            inclusive: false,
            kind: '',
            name: '',
            revision: ''
          }
        }
      ],
      name: '',
      packageType: '',
      version: {}
    }
  },
  intoto: {
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ],
    signed: {
      byproducts: {
        customValues: {}
      },
      command: [],
      environment: {
        customValues: {}
      },
      materials: [
        {
          hashes: {
            sha256: ''
          },
          resourceUri: ''
        }
      ],
      products: [
        {}
      ]
    }
  },
  kind: '',
  name: '',
  noteName: '',
  remediation: '',
  resource: {
    contentHash: {
      type: '',
      value: ''
    },
    name: '',
    uri: ''
  },
  sbom: {
    createTime: '',
    creatorComment: '',
    creators: [],
    documentComment: '',
    externalDocumentRefs: [],
    id: '',
    licenseListVersion: '',
    namespace: '',
    title: ''
  },
  sbomReference: {
    payload: {
      _type: '',
      predicate: {
        digest: {},
        location: '',
        mimeType: '',
        referrerId: ''
      },
      predicateType: '',
      subject: [
        {
          digest: {},
          name: ''
        }
      ]
    },
    payloadType: '',
    signatures: [
      {}
    ]
  },
  spdxFile: {
    attributions: [],
    comment: '',
    contributors: [],
    copyright: '',
    filesLicenseInfo: [],
    id: '',
    licenseConcluded: {},
    notice: ''
  },
  spdxPackage: {
    comment: '',
    filename: '',
    homePage: '',
    id: '',
    licenseConcluded: {},
    packageType: '',
    sourceInfo: '',
    summaryDescription: '',
    title: '',
    version: ''
  },
  spdxRelationship: {
    comment: '',
    source: '',
    target: '',
    type: ''
  },
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {},
    cvssVersion: '',
    effectiveSeverity: '',
    longDescription: '',
    packageIssue: [
      {
        affectedLocation: {
          cpeUri: '',
          package: '',
          version: {}
        },
        effectiveSeverity: '',
        fixedLocation: {},
        packageType: '',
        severityName: ''
      }
    ],
    relatedUrls: [
      {
        label: '',
        url: ''
      }
    ],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      noteName: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      state: ''
    }
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/occurrences',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {
      attestation: {
        genericSignedAttestation: {
          contentType: '',
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
      }
    },
    build: {
      provenance: {
        buildOptions: {},
        builderVersion: '',
        builtArtifacts: [{checksum: '', id: '', names: []}],
        commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
        createTime: '',
        creator: '',
        endTime: '',
        id: '',
        logsUri: '',
        projectId: '',
        sourceProvenance: {
          additionalContexts: [
            {
              cloudRepo: {
                aliasContext: {kind: '', name: ''},
                repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                revisionId: ''
              },
              gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
              git: {revisionId: '', url: ''},
              labels: {}
            }
          ],
          artifactStorageSourceUri: '',
          context: {},
          fileHashes: {}
        },
        startTime: '',
        triggerId: ''
      },
      provenanceBytes: ''
    },
    createTime: '',
    deployment: {
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      }
    },
    derivedImage: {
      derivedImage: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      }
    },
    discovered: {
      discovered: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        continuousAnalysis: '',
        lastAnalysisTime: ''
      }
    },
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    installation: {
      installation: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      }
    },
    intoto: {
      signatures: [{keyid: '', sig: ''}],
      signed: {
        byproducts: {customValues: {}},
        command: [],
        environment: {customValues: {}},
        materials: [{hashes: {sha256: ''}, resourceUri: ''}],
        products: [{}]
      }
    },
    kind: '',
    name: '',
    noteName: '',
    remediation: '',
    resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
    sbom: {
      createTime: '',
      creatorComment: '',
      creators: [],
      documentComment: '',
      externalDocumentRefs: [],
      id: '',
      licenseListVersion: '',
      namespace: '',
      title: ''
    },
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      payloadType: '',
      signatures: [{}]
    },
    spdxFile: {
      attributions: [],
      comment: '',
      contributors: [],
      copyright: '',
      filesLicenseInfo: [],
      id: '',
      licenseConcluded: {},
      notice: ''
    },
    spdxPackage: {
      comment: '',
      filename: '',
      homePage: '',
      id: '',
      licenseConcluded: {},
      packageType: '',
      sourceInfo: '',
      summaryDescription: '',
      title: '',
      version: ''
    },
    spdxRelationship: {comment: '', source: '', target: '', type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {},
      cvssVersion: '',
      effectiveSeverity: '',
      longDescription: '',
      packageIssue: [
        {
          affectedLocation: {cpeUri: '', package: '', version: {}},
          effectiveSeverity: '',
          fixedLocation: {},
          packageType: '',
          severityName: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: ''
      }
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:parent/occurrences';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"attestation":{"genericSignedAttestation":{"contentType":"","serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"pgpSignedAttestation":{"contentType":"","pgpKeyId":"","signature":""}}},"build":{"provenance":{"buildOptions":{},"builderVersion":"","builtArtifacts":[{"checksum":"","id":"","names":[]}],"commands":[{"args":[],"dir":"","env":[],"id":"","name":"","waitFor":[]}],"createTime":"","creator":"","endTime":"","id":"","logsUri":"","projectId":"","sourceProvenance":{"additionalContexts":[{"cloudRepo":{"aliasContext":{"kind":"","name":""},"repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"gerrit":{"aliasContext":{},"gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""},"labels":{}}],"artifactStorageSourceUri":"","context":{},"fileHashes":{}},"startTime":"","triggerId":""},"provenanceBytes":""},"createTime":"","deployment":{"deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""}},"derivedImage":{"derivedImage":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]}},"discovered":{"discovered":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"continuousAnalysis":"","lastAnalysisTime":""}},"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"installation":{"installation":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}}},"intoto":{"signatures":[{"keyid":"","sig":""}],"signed":{"byproducts":{"customValues":{}},"command":[],"environment":{"customValues":{}},"materials":[{"hashes":{"sha256":""},"resourceUri":""}],"products":[{}]}},"kind":"","name":"","noteName":"","remediation":"","resource":{"contentHash":{"type":"","value":""},"name":"","uri":""},"sbom":{"createTime":"","creatorComment":"","creators":[],"documentComment":"","externalDocumentRefs":[],"id":"","licenseListVersion":"","namespace":"","title":""},"sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{"digest":{},"name":""}]},"payloadType":"","signatures":[{}]},"spdxFile":{"attributions":[],"comment":"","contributors":[],"copyright":"","filesLicenseInfo":[],"id":"","licenseConcluded":{},"notice":""},"spdxPackage":{"comment":"","filename":"","homePage":"","id":"","licenseConcluded":{},"packageType":"","sourceInfo":"","summaryDescription":"","title":"","version":""},"spdxRelationship":{"comment":"","source":"","target":"","type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{},"cvssVersion":"","effectiveSeverity":"","longDescription":"","packageIssue":[{"affectedLocation":{"cpeUri":"","package":"","version":{}},"effectiveSeverity":"","fixedLocation":{},"packageType":"","severityName":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":""}}}'
};

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}}/v1beta1/:parent/occurrences',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attestation": {\n    "attestation": {\n      "genericSignedAttestation": {\n        "contentType": "",\n        "serializedPayload": "",\n        "signatures": [\n          {\n            "publicKeyId": "",\n            "signature": ""\n          }\n        ]\n      },\n      "pgpSignedAttestation": {\n        "contentType": "",\n        "pgpKeyId": "",\n        "signature": ""\n      }\n    }\n  },\n  "build": {\n    "provenance": {\n      "buildOptions": {},\n      "builderVersion": "",\n      "builtArtifacts": [\n        {\n          "checksum": "",\n          "id": "",\n          "names": []\n        }\n      ],\n      "commands": [\n        {\n          "args": [],\n          "dir": "",\n          "env": [],\n          "id": "",\n          "name": "",\n          "waitFor": []\n        }\n      ],\n      "createTime": "",\n      "creator": "",\n      "endTime": "",\n      "id": "",\n      "logsUri": "",\n      "projectId": "",\n      "sourceProvenance": {\n        "additionalContexts": [\n          {\n            "cloudRepo": {\n              "aliasContext": {\n                "kind": "",\n                "name": ""\n              },\n              "repoId": {\n                "projectRepoId": {\n                  "projectId": "",\n                  "repoName": ""\n                },\n                "uid": ""\n              },\n              "revisionId": ""\n            },\n            "gerrit": {\n              "aliasContext": {},\n              "gerritProject": "",\n              "hostUri": "",\n              "revisionId": ""\n            },\n            "git": {\n              "revisionId": "",\n              "url": ""\n            },\n            "labels": {}\n          }\n        ],\n        "artifactStorageSourceUri": "",\n        "context": {},\n        "fileHashes": {}\n      },\n      "startTime": "",\n      "triggerId": ""\n    },\n    "provenanceBytes": ""\n  },\n  "createTime": "",\n  "deployment": {\n    "deployment": {\n      "address": "",\n      "config": "",\n      "deployTime": "",\n      "platform": "",\n      "resourceUri": [],\n      "undeployTime": "",\n      "userEmail": ""\n    }\n  },\n  "derivedImage": {\n    "derivedImage": {\n      "baseResourceUrl": "",\n      "distance": 0,\n      "fingerprint": {\n        "v1Name": "",\n        "v2Blob": [],\n        "v2Name": ""\n      },\n      "layerInfo": [\n        {\n          "arguments": "",\n          "directive": ""\n        }\n      ]\n    }\n  },\n  "discovered": {\n    "discovered": {\n      "analysisCompleted": {\n        "analysisType": []\n      },\n      "analysisError": [\n        {\n          "code": 0,\n          "details": [\n            {}\n          ],\n          "message": ""\n        }\n      ],\n      "analysisStatus": "",\n      "analysisStatusError": {},\n      "continuousAnalysis": "",\n      "lastAnalysisTime": ""\n    }\n  },\n  "envelope": {\n    "payload": "",\n    "payloadType": "",\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ]\n  },\n  "installation": {\n    "installation": {\n      "architecture": "",\n      "cpeUri": "",\n      "license": {\n        "comments": "",\n        "expression": ""\n      },\n      "location": [\n        {\n          "cpeUri": "",\n          "path": "",\n          "version": {\n            "epoch": 0,\n            "inclusive": false,\n            "kind": "",\n            "name": "",\n            "revision": ""\n          }\n        }\n      ],\n      "name": "",\n      "packageType": "",\n      "version": {}\n    }\n  },\n  "intoto": {\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ],\n    "signed": {\n      "byproducts": {\n        "customValues": {}\n      },\n      "command": [],\n      "environment": {\n        "customValues": {}\n      },\n      "materials": [\n        {\n          "hashes": {\n            "sha256": ""\n          },\n          "resourceUri": ""\n        }\n      ],\n      "products": [\n        {}\n      ]\n    }\n  },\n  "kind": "",\n  "name": "",\n  "noteName": "",\n  "remediation": "",\n  "resource": {\n    "contentHash": {\n      "type": "",\n      "value": ""\n    },\n    "name": "",\n    "uri": ""\n  },\n  "sbom": {\n    "createTime": "",\n    "creatorComment": "",\n    "creators": [],\n    "documentComment": "",\n    "externalDocumentRefs": [],\n    "id": "",\n    "licenseListVersion": "",\n    "namespace": "",\n    "title": ""\n  },\n  "sbomReference": {\n    "payload": {\n      "_type": "",\n      "predicate": {\n        "digest": {},\n        "location": "",\n        "mimeType": "",\n        "referrerId": ""\n      },\n      "predicateType": "",\n      "subject": [\n        {\n          "digest": {},\n          "name": ""\n        }\n      ]\n    },\n    "payloadType": "",\n    "signatures": [\n      {}\n    ]\n  },\n  "spdxFile": {\n    "attributions": [],\n    "comment": "",\n    "contributors": [],\n    "copyright": "",\n    "filesLicenseInfo": [],\n    "id": "",\n    "licenseConcluded": {},\n    "notice": ""\n  },\n  "spdxPackage": {\n    "comment": "",\n    "filename": "",\n    "homePage": "",\n    "id": "",\n    "licenseConcluded": {},\n    "packageType": "",\n    "sourceInfo": "",\n    "summaryDescription": "",\n    "title": "",\n    "version": ""\n  },\n  "spdxRelationship": {\n    "comment": "",\n    "source": "",\n    "target": "",\n    "type": ""\n  },\n  "updateTime": "",\n  "vulnerability": {\n    "cvssScore": "",\n    "cvssV2": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "authentication": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssV3": {},\n    "cvssVersion": "",\n    "effectiveSeverity": "",\n    "longDescription": "",\n    "packageIssue": [\n      {\n        "affectedLocation": {\n          "cpeUri": "",\n          "package": "",\n          "version": {}\n        },\n        "effectiveSeverity": "",\n        "fixedLocation": {},\n        "packageType": "",\n        "severityName": ""\n      }\n    ],\n    "relatedUrls": [\n      {\n        "label": "",\n        "url": ""\n      }\n    ],\n    "severity": "",\n    "shortDescription": "",\n    "type": "",\n    "vexAssessment": {\n      "cve": "",\n      "impacts": [],\n      "justification": {\n        "details": "",\n        "justificationType": ""\n      },\n      "noteName": "",\n      "relatedUris": [\n        {}\n      ],\n      "remediations": [\n        {\n          "details": "",\n          "remediationType": "",\n          "remediationUri": {}\n        }\n      ],\n      "state": ""\n    }\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/occurrences")
  .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/v1beta1/:parent/occurrences',
  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({
  attestation: {
    attestation: {
      genericSignedAttestation: {
        contentType: '',
        serializedPayload: '',
        signatures: [{publicKeyId: '', signature: ''}]
      },
      pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
    }
  },
  build: {
    provenance: {
      buildOptions: {},
      builderVersion: '',
      builtArtifacts: [{checksum: '', id: '', names: []}],
      commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
      createTime: '',
      creator: '',
      endTime: '',
      id: '',
      logsUri: '',
      projectId: '',
      sourceProvenance: {
        additionalContexts: [
          {
            cloudRepo: {
              aliasContext: {kind: '', name: ''},
              repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
              revisionId: ''
            },
            gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
            git: {revisionId: '', url: ''},
            labels: {}
          }
        ],
        artifactStorageSourceUri: '',
        context: {},
        fileHashes: {}
      },
      startTime: '',
      triggerId: ''
    },
    provenanceBytes: ''
  },
  createTime: '',
  deployment: {
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    }
  },
  derivedImage: {
    derivedImage: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
      layerInfo: [{arguments: '', directive: ''}]
    }
  },
  discovered: {
    discovered: {
      analysisCompleted: {analysisType: []},
      analysisError: [{code: 0, details: [{}], message: ''}],
      analysisStatus: '',
      analysisStatusError: {},
      continuousAnalysis: '',
      lastAnalysisTime: ''
    }
  },
  envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
  installation: {
    installation: {
      architecture: '',
      cpeUri: '',
      license: {comments: '', expression: ''},
      location: [
        {
          cpeUri: '',
          path: '',
          version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
        }
      ],
      name: '',
      packageType: '',
      version: {}
    }
  },
  intoto: {
    signatures: [{keyid: '', sig: ''}],
    signed: {
      byproducts: {customValues: {}},
      command: [],
      environment: {customValues: {}},
      materials: [{hashes: {sha256: ''}, resourceUri: ''}],
      products: [{}]
    }
  },
  kind: '',
  name: '',
  noteName: '',
  remediation: '',
  resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
  sbom: {
    createTime: '',
    creatorComment: '',
    creators: [],
    documentComment: '',
    externalDocumentRefs: [],
    id: '',
    licenseListVersion: '',
    namespace: '',
    title: ''
  },
  sbomReference: {
    payload: {
      _type: '',
      predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
      predicateType: '',
      subject: [{digest: {}, name: ''}]
    },
    payloadType: '',
    signatures: [{}]
  },
  spdxFile: {
    attributions: [],
    comment: '',
    contributors: [],
    copyright: '',
    filesLicenseInfo: [],
    id: '',
    licenseConcluded: {},
    notice: ''
  },
  spdxPackage: {
    comment: '',
    filename: '',
    homePage: '',
    id: '',
    licenseConcluded: {},
    packageType: '',
    sourceInfo: '',
    summaryDescription: '',
    title: '',
    version: ''
  },
  spdxRelationship: {comment: '', source: '', target: '', type: ''},
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {},
    cvssVersion: '',
    effectiveSeverity: '',
    longDescription: '',
    packageIssue: [
      {
        affectedLocation: {cpeUri: '', package: '', version: {}},
        effectiveSeverity: '',
        fixedLocation: {},
        packageType: '',
        severityName: ''
      }
    ],
    relatedUrls: [{label: '', url: ''}],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {details: '', justificationType: ''},
      noteName: '',
      relatedUris: [{}],
      remediations: [{details: '', remediationType: '', remediationUri: {}}],
      state: ''
    }
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:parent/occurrences',
  headers: {'content-type': 'application/json'},
  body: {
    attestation: {
      attestation: {
        genericSignedAttestation: {
          contentType: '',
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
      }
    },
    build: {
      provenance: {
        buildOptions: {},
        builderVersion: '',
        builtArtifacts: [{checksum: '', id: '', names: []}],
        commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
        createTime: '',
        creator: '',
        endTime: '',
        id: '',
        logsUri: '',
        projectId: '',
        sourceProvenance: {
          additionalContexts: [
            {
              cloudRepo: {
                aliasContext: {kind: '', name: ''},
                repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                revisionId: ''
              },
              gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
              git: {revisionId: '', url: ''},
              labels: {}
            }
          ],
          artifactStorageSourceUri: '',
          context: {},
          fileHashes: {}
        },
        startTime: '',
        triggerId: ''
      },
      provenanceBytes: ''
    },
    createTime: '',
    deployment: {
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      }
    },
    derivedImage: {
      derivedImage: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      }
    },
    discovered: {
      discovered: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        continuousAnalysis: '',
        lastAnalysisTime: ''
      }
    },
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    installation: {
      installation: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      }
    },
    intoto: {
      signatures: [{keyid: '', sig: ''}],
      signed: {
        byproducts: {customValues: {}},
        command: [],
        environment: {customValues: {}},
        materials: [{hashes: {sha256: ''}, resourceUri: ''}],
        products: [{}]
      }
    },
    kind: '',
    name: '',
    noteName: '',
    remediation: '',
    resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
    sbom: {
      createTime: '',
      creatorComment: '',
      creators: [],
      documentComment: '',
      externalDocumentRefs: [],
      id: '',
      licenseListVersion: '',
      namespace: '',
      title: ''
    },
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      payloadType: '',
      signatures: [{}]
    },
    spdxFile: {
      attributions: [],
      comment: '',
      contributors: [],
      copyright: '',
      filesLicenseInfo: [],
      id: '',
      licenseConcluded: {},
      notice: ''
    },
    spdxPackage: {
      comment: '',
      filename: '',
      homePage: '',
      id: '',
      licenseConcluded: {},
      packageType: '',
      sourceInfo: '',
      summaryDescription: '',
      title: '',
      version: ''
    },
    spdxRelationship: {comment: '', source: '', target: '', type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {},
      cvssVersion: '',
      effectiveSeverity: '',
      longDescription: '',
      packageIssue: [
        {
          affectedLocation: {cpeUri: '', package: '', version: {}},
          effectiveSeverity: '',
          fixedLocation: {},
          packageType: '',
          severityName: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: ''
      }
    }
  },
  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}}/v1beta1/:parent/occurrences');

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

req.type('json');
req.send({
  attestation: {
    attestation: {
      genericSignedAttestation: {
        contentType: '',
        serializedPayload: '',
        signatures: [
          {
            publicKeyId: '',
            signature: ''
          }
        ]
      },
      pgpSignedAttestation: {
        contentType: '',
        pgpKeyId: '',
        signature: ''
      }
    }
  },
  build: {
    provenance: {
      buildOptions: {},
      builderVersion: '',
      builtArtifacts: [
        {
          checksum: '',
          id: '',
          names: []
        }
      ],
      commands: [
        {
          args: [],
          dir: '',
          env: [],
          id: '',
          name: '',
          waitFor: []
        }
      ],
      createTime: '',
      creator: '',
      endTime: '',
      id: '',
      logsUri: '',
      projectId: '',
      sourceProvenance: {
        additionalContexts: [
          {
            cloudRepo: {
              aliasContext: {
                kind: '',
                name: ''
              },
              repoId: {
                projectRepoId: {
                  projectId: '',
                  repoName: ''
                },
                uid: ''
              },
              revisionId: ''
            },
            gerrit: {
              aliasContext: {},
              gerritProject: '',
              hostUri: '',
              revisionId: ''
            },
            git: {
              revisionId: '',
              url: ''
            },
            labels: {}
          }
        ],
        artifactStorageSourceUri: '',
        context: {},
        fileHashes: {}
      },
      startTime: '',
      triggerId: ''
    },
    provenanceBytes: ''
  },
  createTime: '',
  deployment: {
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    }
  },
  derivedImage: {
    derivedImage: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {
        v1Name: '',
        v2Blob: [],
        v2Name: ''
      },
      layerInfo: [
        {
          arguments: '',
          directive: ''
        }
      ]
    }
  },
  discovered: {
    discovered: {
      analysisCompleted: {
        analysisType: []
      },
      analysisError: [
        {
          code: 0,
          details: [
            {}
          ],
          message: ''
        }
      ],
      analysisStatus: '',
      analysisStatusError: {},
      continuousAnalysis: '',
      lastAnalysisTime: ''
    }
  },
  envelope: {
    payload: '',
    payloadType: '',
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ]
  },
  installation: {
    installation: {
      architecture: '',
      cpeUri: '',
      license: {
        comments: '',
        expression: ''
      },
      location: [
        {
          cpeUri: '',
          path: '',
          version: {
            epoch: 0,
            inclusive: false,
            kind: '',
            name: '',
            revision: ''
          }
        }
      ],
      name: '',
      packageType: '',
      version: {}
    }
  },
  intoto: {
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ],
    signed: {
      byproducts: {
        customValues: {}
      },
      command: [],
      environment: {
        customValues: {}
      },
      materials: [
        {
          hashes: {
            sha256: ''
          },
          resourceUri: ''
        }
      ],
      products: [
        {}
      ]
    }
  },
  kind: '',
  name: '',
  noteName: '',
  remediation: '',
  resource: {
    contentHash: {
      type: '',
      value: ''
    },
    name: '',
    uri: ''
  },
  sbom: {
    createTime: '',
    creatorComment: '',
    creators: [],
    documentComment: '',
    externalDocumentRefs: [],
    id: '',
    licenseListVersion: '',
    namespace: '',
    title: ''
  },
  sbomReference: {
    payload: {
      _type: '',
      predicate: {
        digest: {},
        location: '',
        mimeType: '',
        referrerId: ''
      },
      predicateType: '',
      subject: [
        {
          digest: {},
          name: ''
        }
      ]
    },
    payloadType: '',
    signatures: [
      {}
    ]
  },
  spdxFile: {
    attributions: [],
    comment: '',
    contributors: [],
    copyright: '',
    filesLicenseInfo: [],
    id: '',
    licenseConcluded: {},
    notice: ''
  },
  spdxPackage: {
    comment: '',
    filename: '',
    homePage: '',
    id: '',
    licenseConcluded: {},
    packageType: '',
    sourceInfo: '',
    summaryDescription: '',
    title: '',
    version: ''
  },
  spdxRelationship: {
    comment: '',
    source: '',
    target: '',
    type: ''
  },
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {},
    cvssVersion: '',
    effectiveSeverity: '',
    longDescription: '',
    packageIssue: [
      {
        affectedLocation: {
          cpeUri: '',
          package: '',
          version: {}
        },
        effectiveSeverity: '',
        fixedLocation: {},
        packageType: '',
        severityName: ''
      }
    ],
    relatedUrls: [
      {
        label: '',
        url: ''
      }
    ],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      noteName: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      state: ''
    }
  }
});

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}}/v1beta1/:parent/occurrences',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {
      attestation: {
        genericSignedAttestation: {
          contentType: '',
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
      }
    },
    build: {
      provenance: {
        buildOptions: {},
        builderVersion: '',
        builtArtifacts: [{checksum: '', id: '', names: []}],
        commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
        createTime: '',
        creator: '',
        endTime: '',
        id: '',
        logsUri: '',
        projectId: '',
        sourceProvenance: {
          additionalContexts: [
            {
              cloudRepo: {
                aliasContext: {kind: '', name: ''},
                repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                revisionId: ''
              },
              gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
              git: {revisionId: '', url: ''},
              labels: {}
            }
          ],
          artifactStorageSourceUri: '',
          context: {},
          fileHashes: {}
        },
        startTime: '',
        triggerId: ''
      },
      provenanceBytes: ''
    },
    createTime: '',
    deployment: {
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      }
    },
    derivedImage: {
      derivedImage: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      }
    },
    discovered: {
      discovered: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        continuousAnalysis: '',
        lastAnalysisTime: ''
      }
    },
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    installation: {
      installation: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      }
    },
    intoto: {
      signatures: [{keyid: '', sig: ''}],
      signed: {
        byproducts: {customValues: {}},
        command: [],
        environment: {customValues: {}},
        materials: [{hashes: {sha256: ''}, resourceUri: ''}],
        products: [{}]
      }
    },
    kind: '',
    name: '',
    noteName: '',
    remediation: '',
    resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
    sbom: {
      createTime: '',
      creatorComment: '',
      creators: [],
      documentComment: '',
      externalDocumentRefs: [],
      id: '',
      licenseListVersion: '',
      namespace: '',
      title: ''
    },
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      payloadType: '',
      signatures: [{}]
    },
    spdxFile: {
      attributions: [],
      comment: '',
      contributors: [],
      copyright: '',
      filesLicenseInfo: [],
      id: '',
      licenseConcluded: {},
      notice: ''
    },
    spdxPackage: {
      comment: '',
      filename: '',
      homePage: '',
      id: '',
      licenseConcluded: {},
      packageType: '',
      sourceInfo: '',
      summaryDescription: '',
      title: '',
      version: ''
    },
    spdxRelationship: {comment: '', source: '', target: '', type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {},
      cvssVersion: '',
      effectiveSeverity: '',
      longDescription: '',
      packageIssue: [
        {
          affectedLocation: {cpeUri: '', package: '', version: {}},
          effectiveSeverity: '',
          fixedLocation: {},
          packageType: '',
          severityName: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: ''
      }
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:parent/occurrences';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"attestation":{"genericSignedAttestation":{"contentType":"","serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"pgpSignedAttestation":{"contentType":"","pgpKeyId":"","signature":""}}},"build":{"provenance":{"buildOptions":{},"builderVersion":"","builtArtifacts":[{"checksum":"","id":"","names":[]}],"commands":[{"args":[],"dir":"","env":[],"id":"","name":"","waitFor":[]}],"createTime":"","creator":"","endTime":"","id":"","logsUri":"","projectId":"","sourceProvenance":{"additionalContexts":[{"cloudRepo":{"aliasContext":{"kind":"","name":""},"repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"gerrit":{"aliasContext":{},"gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""},"labels":{}}],"artifactStorageSourceUri":"","context":{},"fileHashes":{}},"startTime":"","triggerId":""},"provenanceBytes":""},"createTime":"","deployment":{"deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""}},"derivedImage":{"derivedImage":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]}},"discovered":{"discovered":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"continuousAnalysis":"","lastAnalysisTime":""}},"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"installation":{"installation":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}}},"intoto":{"signatures":[{"keyid":"","sig":""}],"signed":{"byproducts":{"customValues":{}},"command":[],"environment":{"customValues":{}},"materials":[{"hashes":{"sha256":""},"resourceUri":""}],"products":[{}]}},"kind":"","name":"","noteName":"","remediation":"","resource":{"contentHash":{"type":"","value":""},"name":"","uri":""},"sbom":{"createTime":"","creatorComment":"","creators":[],"documentComment":"","externalDocumentRefs":[],"id":"","licenseListVersion":"","namespace":"","title":""},"sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{"digest":{},"name":""}]},"payloadType":"","signatures":[{}]},"spdxFile":{"attributions":[],"comment":"","contributors":[],"copyright":"","filesLicenseInfo":[],"id":"","licenseConcluded":{},"notice":""},"spdxPackage":{"comment":"","filename":"","homePage":"","id":"","licenseConcluded":{},"packageType":"","sourceInfo":"","summaryDescription":"","title":"","version":""},"spdxRelationship":{"comment":"","source":"","target":"","type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{},"cvssVersion":"","effectiveSeverity":"","longDescription":"","packageIssue":[{"affectedLocation":{"cpeUri":"","package":"","version":{}},"effectiveSeverity":"","fixedLocation":{},"packageType":"","severityName":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":""}}}'
};

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 = @{ @"attestation": @{ @"attestation": @{ @"genericSignedAttestation": @{ @"contentType": @"", @"serializedPayload": @"", @"signatures": @[ @{ @"publicKeyId": @"", @"signature": @"" } ] }, @"pgpSignedAttestation": @{ @"contentType": @"", @"pgpKeyId": @"", @"signature": @"" } } },
                              @"build": @{ @"provenance": @{ @"buildOptions": @{  }, @"builderVersion": @"", @"builtArtifacts": @[ @{ @"checksum": @"", @"id": @"", @"names": @[  ] } ], @"commands": @[ @{ @"args": @[  ], @"dir": @"", @"env": @[  ], @"id": @"", @"name": @"", @"waitFor": @[  ] } ], @"createTime": @"", @"creator": @"", @"endTime": @"", @"id": @"", @"logsUri": @"", @"projectId": @"", @"sourceProvenance": @{ @"additionalContexts": @[ @{ @"cloudRepo": @{ @"aliasContext": @{ @"kind": @"", @"name": @"" }, @"repoId": @{ @"projectRepoId": @{ @"projectId": @"", @"repoName": @"" }, @"uid": @"" }, @"revisionId": @"" }, @"gerrit": @{ @"aliasContext": @{  }, @"gerritProject": @"", @"hostUri": @"", @"revisionId": @"" }, @"git": @{ @"revisionId": @"", @"url": @"" }, @"labels": @{  } } ], @"artifactStorageSourceUri": @"", @"context": @{  }, @"fileHashes": @{  } }, @"startTime": @"", @"triggerId": @"" }, @"provenanceBytes": @"" },
                              @"createTime": @"",
                              @"deployment": @{ @"deployment": @{ @"address": @"", @"config": @"", @"deployTime": @"", @"platform": @"", @"resourceUri": @[  ], @"undeployTime": @"", @"userEmail": @"" } },
                              @"derivedImage": @{ @"derivedImage": @{ @"baseResourceUrl": @"", @"distance": @0, @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"layerInfo": @[ @{ @"arguments": @"", @"directive": @"" } ] } },
                              @"discovered": @{ @"discovered": @{ @"analysisCompleted": @{ @"analysisType": @[  ] }, @"analysisError": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ], @"analysisStatus": @"", @"analysisStatusError": @{  }, @"continuousAnalysis": @"", @"lastAnalysisTime": @"" } },
                              @"envelope": @{ @"payload": @"", @"payloadType": @"", @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ] },
                              @"installation": @{ @"installation": @{ @"architecture": @"", @"cpeUri": @"", @"license": @{ @"comments": @"", @"expression": @"" }, @"location": @[ @{ @"cpeUri": @"", @"path": @"", @"version": @{ @"epoch": @0, @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" } } ], @"name": @"", @"packageType": @"", @"version": @{  } } },
                              @"intoto": @{ @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ], @"signed": @{ @"byproducts": @{ @"customValues": @{  } }, @"command": @[  ], @"environment": @{ @"customValues": @{  } }, @"materials": @[ @{ @"hashes": @{ @"sha256": @"" }, @"resourceUri": @"" } ], @"products": @[ @{  } ] } },
                              @"kind": @"",
                              @"name": @"",
                              @"noteName": @"",
                              @"remediation": @"",
                              @"resource": @{ @"contentHash": @{ @"type": @"", @"value": @"" }, @"name": @"", @"uri": @"" },
                              @"sbom": @{ @"createTime": @"", @"creatorComment": @"", @"creators": @[  ], @"documentComment": @"", @"externalDocumentRefs": @[  ], @"id": @"", @"licenseListVersion": @"", @"namespace": @"", @"title": @"" },
                              @"sbomReference": @{ @"payload": @{ @"_type": @"", @"predicate": @{ @"digest": @{  }, @"location": @"", @"mimeType": @"", @"referrerId": @"" }, @"predicateType": @"", @"subject": @[ @{ @"digest": @{  }, @"name": @"" } ] }, @"payloadType": @"", @"signatures": @[ @{  } ] },
                              @"spdxFile": @{ @"attributions": @[  ], @"comment": @"", @"contributors": @[  ], @"copyright": @"", @"filesLicenseInfo": @[  ], @"id": @"", @"licenseConcluded": @{  }, @"notice": @"" },
                              @"spdxPackage": @{ @"comment": @"", @"filename": @"", @"homePage": @"", @"id": @"", @"licenseConcluded": @{  }, @"packageType": @"", @"sourceInfo": @"", @"summaryDescription": @"", @"title": @"", @"version": @"" },
                              @"spdxRelationship": @{ @"comment": @"", @"source": @"", @"target": @"", @"type": @"" },
                              @"updateTime": @"",
                              @"vulnerability": @{ @"cvssScore": @"", @"cvssV2": @{ @"attackComplexity": @"", @"attackVector": @"", @"authentication": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssV3": @{  }, @"cvssVersion": @"", @"effectiveSeverity": @"", @"longDescription": @"", @"packageIssue": @[ @{ @"affectedLocation": @{ @"cpeUri": @"", @"package": @"", @"version": @{  } }, @"effectiveSeverity": @"", @"fixedLocation": @{  }, @"packageType": @"", @"severityName": @"" } ], @"relatedUrls": @[ @{ @"label": @"", @"url": @"" } ], @"severity": @"", @"shortDescription": @"", @"type": @"", @"vexAssessment": @{ @"cve": @"", @"impacts": @[  ], @"justification": @{ @"details": @"", @"justificationType": @"" }, @"noteName": @"", @"relatedUris": @[ @{  } ], @"remediations": @[ @{ @"details": @"", @"remediationType": @"", @"remediationUri": @{  } } ], @"state": @"" } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:parent/occurrences"]
                                                       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}}/v1beta1/:parent/occurrences" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:parent/occurrences",
  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([
    'attestation' => [
        'attestation' => [
                'genericSignedAttestation' => [
                                'contentType' => '',
                                'serializedPayload' => '',
                                'signatures' => [
                                                                [
                                                                                                                                'publicKeyId' => '',
                                                                                                                                'signature' => ''
                                                                ]
                                ]
                ],
                'pgpSignedAttestation' => [
                                'contentType' => '',
                                'pgpKeyId' => '',
                                'signature' => ''
                ]
        ]
    ],
    'build' => [
        'provenance' => [
                'buildOptions' => [
                                
                ],
                'builderVersion' => '',
                'builtArtifacts' => [
                                [
                                                                'checksum' => '',
                                                                'id' => '',
                                                                'names' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'commands' => [
                                [
                                                                'args' => [
                                                                                                                                
                                                                ],
                                                                'dir' => '',
                                                                'env' => [
                                                                                                                                
                                                                ],
                                                                'id' => '',
                                                                'name' => '',
                                                                'waitFor' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'createTime' => '',
                'creator' => '',
                'endTime' => '',
                'id' => '',
                'logsUri' => '',
                'projectId' => '',
                'sourceProvenance' => [
                                'additionalContexts' => [
                                                                [
                                                                                                                                'cloudRepo' => [
                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                ],
                                                                                                                                'gerrit' => [
                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'gerritProject' => '',
                                                                                                                                                                                                                                                                'hostUri' => '',
                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                ],
                                                                                                                                'git' => [
                                                                                                                                                                                                                                                                'revisionId' => '',
                                                                                                                                                                                                                                                                'url' => ''
                                                                                                                                ],
                                                                                                                                'labels' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'artifactStorageSourceUri' => '',
                                'context' => [
                                                                
                                ],
                                'fileHashes' => [
                                                                
                                ]
                ],
                'startTime' => '',
                'triggerId' => ''
        ],
        'provenanceBytes' => ''
    ],
    'createTime' => '',
    'deployment' => [
        'deployment' => [
                'address' => '',
                'config' => '',
                'deployTime' => '',
                'platform' => '',
                'resourceUri' => [
                                
                ],
                'undeployTime' => '',
                'userEmail' => ''
        ]
    ],
    'derivedImage' => [
        'derivedImage' => [
                'baseResourceUrl' => '',
                'distance' => 0,
                'fingerprint' => [
                                'v1Name' => '',
                                'v2Blob' => [
                                                                
                                ],
                                'v2Name' => ''
                ],
                'layerInfo' => [
                                [
                                                                'arguments' => '',
                                                                'directive' => ''
                                ]
                ]
        ]
    ],
    'discovered' => [
        'discovered' => [
                'analysisCompleted' => [
                                'analysisType' => [
                                                                
                                ]
                ],
                'analysisError' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ],
                'analysisStatus' => '',
                'analysisStatusError' => [
                                
                ],
                'continuousAnalysis' => '',
                'lastAnalysisTime' => ''
        ]
    ],
    'envelope' => [
        'payload' => '',
        'payloadType' => '',
        'signatures' => [
                [
                                'keyid' => '',
                                'sig' => ''
                ]
        ]
    ],
    'installation' => [
        'installation' => [
                'architecture' => '',
                'cpeUri' => '',
                'license' => [
                                'comments' => '',
                                'expression' => ''
                ],
                'location' => [
                                [
                                                                'cpeUri' => '',
                                                                'path' => '',
                                                                'version' => [
                                                                                                                                'epoch' => 0,
                                                                                                                                'inclusive' => null,
                                                                                                                                'kind' => '',
                                                                                                                                'name' => '',
                                                                                                                                'revision' => ''
                                                                ]
                                ]
                ],
                'name' => '',
                'packageType' => '',
                'version' => [
                                
                ]
        ]
    ],
    'intoto' => [
        'signatures' => [
                [
                                'keyid' => '',
                                'sig' => ''
                ]
        ],
        'signed' => [
                'byproducts' => [
                                'customValues' => [
                                                                
                                ]
                ],
                'command' => [
                                
                ],
                'environment' => [
                                'customValues' => [
                                                                
                                ]
                ],
                'materials' => [
                                [
                                                                'hashes' => [
                                                                                                                                'sha256' => ''
                                                                ],
                                                                'resourceUri' => ''
                                ]
                ],
                'products' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'kind' => '',
    'name' => '',
    'noteName' => '',
    'remediation' => '',
    'resource' => [
        'contentHash' => [
                'type' => '',
                'value' => ''
        ],
        'name' => '',
        'uri' => ''
    ],
    'sbom' => [
        'createTime' => '',
        'creatorComment' => '',
        'creators' => [
                
        ],
        'documentComment' => '',
        'externalDocumentRefs' => [
                
        ],
        'id' => '',
        'licenseListVersion' => '',
        'namespace' => '',
        'title' => ''
    ],
    'sbomReference' => [
        'payload' => [
                '_type' => '',
                'predicate' => [
                                'digest' => [
                                                                
                                ],
                                'location' => '',
                                'mimeType' => '',
                                'referrerId' => ''
                ],
                'predicateType' => '',
                'subject' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'name' => ''
                                ]
                ]
        ],
        'payloadType' => '',
        'signatures' => [
                [
                                
                ]
        ]
    ],
    'spdxFile' => [
        'attributions' => [
                
        ],
        'comment' => '',
        'contributors' => [
                
        ],
        'copyright' => '',
        'filesLicenseInfo' => [
                
        ],
        'id' => '',
        'licenseConcluded' => [
                
        ],
        'notice' => ''
    ],
    'spdxPackage' => [
        'comment' => '',
        'filename' => '',
        'homePage' => '',
        'id' => '',
        'licenseConcluded' => [
                
        ],
        'packageType' => '',
        'sourceInfo' => '',
        'summaryDescription' => '',
        'title' => '',
        'version' => ''
    ],
    'spdxRelationship' => [
        'comment' => '',
        'source' => '',
        'target' => '',
        'type' => ''
    ],
    'updateTime' => '',
    'vulnerability' => [
        'cvssScore' => '',
        'cvssV2' => [
                'attackComplexity' => '',
                'attackVector' => '',
                'authentication' => '',
                'availabilityImpact' => '',
                'baseScore' => '',
                'confidentialityImpact' => '',
                'exploitabilityScore' => '',
                'impactScore' => '',
                'integrityImpact' => '',
                'privilegesRequired' => '',
                'scope' => '',
                'userInteraction' => ''
        ],
        'cvssV3' => [
                
        ],
        'cvssVersion' => '',
        'effectiveSeverity' => '',
        'longDescription' => '',
        'packageIssue' => [
                [
                                'affectedLocation' => [
                                                                'cpeUri' => '',
                                                                'package' => '',
                                                                'version' => [
                                                                                                                                
                                                                ]
                                ],
                                'effectiveSeverity' => '',
                                'fixedLocation' => [
                                                                
                                ],
                                'packageType' => '',
                                'severityName' => ''
                ]
        ],
        'relatedUrls' => [
                [
                                'label' => '',
                                'url' => ''
                ]
        ],
        'severity' => '',
        'shortDescription' => '',
        'type' => '',
        'vexAssessment' => [
                'cve' => '',
                'impacts' => [
                                
                ],
                'justification' => [
                                'details' => '',
                                'justificationType' => ''
                ],
                'noteName' => '',
                'relatedUris' => [
                                [
                                                                
                                ]
                ],
                'remediations' => [
                                [
                                                                'details' => '',
                                                                'remediationType' => '',
                                                                'remediationUri' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'state' => ''
        ]
    ]
  ]),
  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}}/v1beta1/:parent/occurrences', [
  'body' => '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attestation' => [
    'attestation' => [
        'genericSignedAttestation' => [
                'contentType' => '',
                'serializedPayload' => '',
                'signatures' => [
                                [
                                                                'publicKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'pgpSignedAttestation' => [
                'contentType' => '',
                'pgpKeyId' => '',
                'signature' => ''
        ]
    ]
  ],
  'build' => [
    'provenance' => [
        'buildOptions' => [
                
        ],
        'builderVersion' => '',
        'builtArtifacts' => [
                [
                                'checksum' => '',
                                'id' => '',
                                'names' => [
                                                                
                                ]
                ]
        ],
        'commands' => [
                [
                                'args' => [
                                                                
                                ],
                                'dir' => '',
                                'env' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'waitFor' => [
                                                                
                                ]
                ]
        ],
        'createTime' => '',
        'creator' => '',
        'endTime' => '',
        'id' => '',
        'logsUri' => '',
        'projectId' => '',
        'sourceProvenance' => [
                'additionalContexts' => [
                                [
                                                                'cloudRepo' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ],
                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                ],
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'gerrit' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'gerritProject' => '',
                                                                                                                                'hostUri' => '',
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'git' => [
                                                                                                                                'revisionId' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'labels' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'artifactStorageSourceUri' => '',
                'context' => [
                                
                ],
                'fileHashes' => [
                                
                ]
        ],
        'startTime' => '',
        'triggerId' => ''
    ],
    'provenanceBytes' => ''
  ],
  'createTime' => '',
  'deployment' => [
    'deployment' => [
        'address' => '',
        'config' => '',
        'deployTime' => '',
        'platform' => '',
        'resourceUri' => [
                
        ],
        'undeployTime' => '',
        'userEmail' => ''
    ]
  ],
  'derivedImage' => [
    'derivedImage' => [
        'baseResourceUrl' => '',
        'distance' => 0,
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'layerInfo' => [
                [
                                'arguments' => '',
                                'directive' => ''
                ]
        ]
    ]
  ],
  'discovered' => [
    'discovered' => [
        'analysisCompleted' => [
                'analysisType' => [
                                
                ]
        ],
        'analysisError' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ],
        'analysisStatus' => '',
        'analysisStatusError' => [
                
        ],
        'continuousAnalysis' => '',
        'lastAnalysisTime' => ''
    ]
  ],
  'envelope' => [
    'payload' => '',
    'payloadType' => '',
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ]
  ],
  'installation' => [
    'installation' => [
        'architecture' => '',
        'cpeUri' => '',
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'location' => [
                [
                                'cpeUri' => '',
                                'path' => '',
                                'version' => [
                                                                'epoch' => 0,
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ]
                ]
        ],
        'name' => '',
        'packageType' => '',
        'version' => [
                
        ]
    ]
  ],
  'intoto' => [
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ],
    'signed' => [
        'byproducts' => [
                'customValues' => [
                                
                ]
        ],
        'command' => [
                
        ],
        'environment' => [
                'customValues' => [
                                
                ]
        ],
        'materials' => [
                [
                                'hashes' => [
                                                                'sha256' => ''
                                ],
                                'resourceUri' => ''
                ]
        ],
        'products' => [
                [
                                
                ]
        ]
    ]
  ],
  'kind' => '',
  'name' => '',
  'noteName' => '',
  'remediation' => '',
  'resource' => [
    'contentHash' => [
        'type' => '',
        'value' => ''
    ],
    'name' => '',
    'uri' => ''
  ],
  'sbom' => [
    'createTime' => '',
    'creatorComment' => '',
    'creators' => [
        
    ],
    'documentComment' => '',
    'externalDocumentRefs' => [
        
    ],
    'id' => '',
    'licenseListVersion' => '',
    'namespace' => '',
    'title' => ''
  ],
  'sbomReference' => [
    'payload' => [
        '_type' => '',
        'predicate' => [
                'digest' => [
                                
                ],
                'location' => '',
                'mimeType' => '',
                'referrerId' => ''
        ],
        'predicateType' => '',
        'subject' => [
                [
                                'digest' => [
                                                                
                                ],
                                'name' => ''
                ]
        ]
    ],
    'payloadType' => '',
    'signatures' => [
        [
                
        ]
    ]
  ],
  'spdxFile' => [
    'attributions' => [
        
    ],
    'comment' => '',
    'contributors' => [
        
    ],
    'copyright' => '',
    'filesLicenseInfo' => [
        
    ],
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'notice' => ''
  ],
  'spdxPackage' => [
    'comment' => '',
    'filename' => '',
    'homePage' => '',
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'packageType' => '',
    'sourceInfo' => '',
    'summaryDescription' => '',
    'title' => '',
    'version' => ''
  ],
  'spdxRelationship' => [
    'comment' => '',
    'source' => '',
    'target' => '',
    'type' => ''
  ],
  'updateTime' => '',
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssV3' => [
        
    ],
    'cvssVersion' => '',
    'effectiveSeverity' => '',
    'longDescription' => '',
    'packageIssue' => [
        [
                'affectedLocation' => [
                                'cpeUri' => '',
                                'package' => '',
                                'version' => [
                                                                
                                ]
                ],
                'effectiveSeverity' => '',
                'fixedLocation' => [
                                
                ],
                'packageType' => '',
                'severityName' => ''
        ]
    ],
    'relatedUrls' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'severity' => '',
    'shortDescription' => '',
    'type' => '',
    'vexAssessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'noteName' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'state' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attestation' => [
    'attestation' => [
        'genericSignedAttestation' => [
                'contentType' => '',
                'serializedPayload' => '',
                'signatures' => [
                                [
                                                                'publicKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'pgpSignedAttestation' => [
                'contentType' => '',
                'pgpKeyId' => '',
                'signature' => ''
        ]
    ]
  ],
  'build' => [
    'provenance' => [
        'buildOptions' => [
                
        ],
        'builderVersion' => '',
        'builtArtifacts' => [
                [
                                'checksum' => '',
                                'id' => '',
                                'names' => [
                                                                
                                ]
                ]
        ],
        'commands' => [
                [
                                'args' => [
                                                                
                                ],
                                'dir' => '',
                                'env' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'waitFor' => [
                                                                
                                ]
                ]
        ],
        'createTime' => '',
        'creator' => '',
        'endTime' => '',
        'id' => '',
        'logsUri' => '',
        'projectId' => '',
        'sourceProvenance' => [
                'additionalContexts' => [
                                [
                                                                'cloudRepo' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ],
                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                ],
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'gerrit' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'gerritProject' => '',
                                                                                                                                'hostUri' => '',
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'git' => [
                                                                                                                                'revisionId' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'labels' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'artifactStorageSourceUri' => '',
                'context' => [
                                
                ],
                'fileHashes' => [
                                
                ]
        ],
        'startTime' => '',
        'triggerId' => ''
    ],
    'provenanceBytes' => ''
  ],
  'createTime' => '',
  'deployment' => [
    'deployment' => [
        'address' => '',
        'config' => '',
        'deployTime' => '',
        'platform' => '',
        'resourceUri' => [
                
        ],
        'undeployTime' => '',
        'userEmail' => ''
    ]
  ],
  'derivedImage' => [
    'derivedImage' => [
        'baseResourceUrl' => '',
        'distance' => 0,
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'layerInfo' => [
                [
                                'arguments' => '',
                                'directive' => ''
                ]
        ]
    ]
  ],
  'discovered' => [
    'discovered' => [
        'analysisCompleted' => [
                'analysisType' => [
                                
                ]
        ],
        'analysisError' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ],
        'analysisStatus' => '',
        'analysisStatusError' => [
                
        ],
        'continuousAnalysis' => '',
        'lastAnalysisTime' => ''
    ]
  ],
  'envelope' => [
    'payload' => '',
    'payloadType' => '',
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ]
  ],
  'installation' => [
    'installation' => [
        'architecture' => '',
        'cpeUri' => '',
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'location' => [
                [
                                'cpeUri' => '',
                                'path' => '',
                                'version' => [
                                                                'epoch' => 0,
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ]
                ]
        ],
        'name' => '',
        'packageType' => '',
        'version' => [
                
        ]
    ]
  ],
  'intoto' => [
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ],
    'signed' => [
        'byproducts' => [
                'customValues' => [
                                
                ]
        ],
        'command' => [
                
        ],
        'environment' => [
                'customValues' => [
                                
                ]
        ],
        'materials' => [
                [
                                'hashes' => [
                                                                'sha256' => ''
                                ],
                                'resourceUri' => ''
                ]
        ],
        'products' => [
                [
                                
                ]
        ]
    ]
  ],
  'kind' => '',
  'name' => '',
  'noteName' => '',
  'remediation' => '',
  'resource' => [
    'contentHash' => [
        'type' => '',
        'value' => ''
    ],
    'name' => '',
    'uri' => ''
  ],
  'sbom' => [
    'createTime' => '',
    'creatorComment' => '',
    'creators' => [
        
    ],
    'documentComment' => '',
    'externalDocumentRefs' => [
        
    ],
    'id' => '',
    'licenseListVersion' => '',
    'namespace' => '',
    'title' => ''
  ],
  'sbomReference' => [
    'payload' => [
        '_type' => '',
        'predicate' => [
                'digest' => [
                                
                ],
                'location' => '',
                'mimeType' => '',
                'referrerId' => ''
        ],
        'predicateType' => '',
        'subject' => [
                [
                                'digest' => [
                                                                
                                ],
                                'name' => ''
                ]
        ]
    ],
    'payloadType' => '',
    'signatures' => [
        [
                
        ]
    ]
  ],
  'spdxFile' => [
    'attributions' => [
        
    ],
    'comment' => '',
    'contributors' => [
        
    ],
    'copyright' => '',
    'filesLicenseInfo' => [
        
    ],
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'notice' => ''
  ],
  'spdxPackage' => [
    'comment' => '',
    'filename' => '',
    'homePage' => '',
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'packageType' => '',
    'sourceInfo' => '',
    'summaryDescription' => '',
    'title' => '',
    'version' => ''
  ],
  'spdxRelationship' => [
    'comment' => '',
    'source' => '',
    'target' => '',
    'type' => ''
  ],
  'updateTime' => '',
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssV3' => [
        
    ],
    'cvssVersion' => '',
    'effectiveSeverity' => '',
    'longDescription' => '',
    'packageIssue' => [
        [
                'affectedLocation' => [
                                'cpeUri' => '',
                                'package' => '',
                                'version' => [
                                                                
                                ]
                ],
                'effectiveSeverity' => '',
                'fixedLocation' => [
                                
                ],
                'packageType' => '',
                'severityName' => ''
        ]
    ],
    'relatedUrls' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'severity' => '',
    'shortDescription' => '',
    'type' => '',
    'vexAssessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'noteName' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'state' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:parent/occurrences');
$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}}/v1beta1/:parent/occurrences' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:parent/occurrences' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:parent/occurrences", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:parent/occurrences"

payload = {
    "attestation": { "attestation": {
            "genericSignedAttestation": {
                "contentType": "",
                "serializedPayload": "",
                "signatures": [
                    {
                        "publicKeyId": "",
                        "signature": ""
                    }
                ]
            },
            "pgpSignedAttestation": {
                "contentType": "",
                "pgpKeyId": "",
                "signature": ""
            }
        } },
    "build": {
        "provenance": {
            "buildOptions": {},
            "builderVersion": "",
            "builtArtifacts": [
                {
                    "checksum": "",
                    "id": "",
                    "names": []
                }
            ],
            "commands": [
                {
                    "args": [],
                    "dir": "",
                    "env": [],
                    "id": "",
                    "name": "",
                    "waitFor": []
                }
            ],
            "createTime": "",
            "creator": "",
            "endTime": "",
            "id": "",
            "logsUri": "",
            "projectId": "",
            "sourceProvenance": {
                "additionalContexts": [
                    {
                        "cloudRepo": {
                            "aliasContext": {
                                "kind": "",
                                "name": ""
                            },
                            "repoId": {
                                "projectRepoId": {
                                    "projectId": "",
                                    "repoName": ""
                                },
                                "uid": ""
                            },
                            "revisionId": ""
                        },
                        "gerrit": {
                            "aliasContext": {},
                            "gerritProject": "",
                            "hostUri": "",
                            "revisionId": ""
                        },
                        "git": {
                            "revisionId": "",
                            "url": ""
                        },
                        "labels": {}
                    }
                ],
                "artifactStorageSourceUri": "",
                "context": {},
                "fileHashes": {}
            },
            "startTime": "",
            "triggerId": ""
        },
        "provenanceBytes": ""
    },
    "createTime": "",
    "deployment": { "deployment": {
            "address": "",
            "config": "",
            "deployTime": "",
            "platform": "",
            "resourceUri": [],
            "undeployTime": "",
            "userEmail": ""
        } },
    "derivedImage": { "derivedImage": {
            "baseResourceUrl": "",
            "distance": 0,
            "fingerprint": {
                "v1Name": "",
                "v2Blob": [],
                "v2Name": ""
            },
            "layerInfo": [
                {
                    "arguments": "",
                    "directive": ""
                }
            ]
        } },
    "discovered": { "discovered": {
            "analysisCompleted": { "analysisType": [] },
            "analysisError": [
                {
                    "code": 0,
                    "details": [{}],
                    "message": ""
                }
            ],
            "analysisStatus": "",
            "analysisStatusError": {},
            "continuousAnalysis": "",
            "lastAnalysisTime": ""
        } },
    "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
            {
                "keyid": "",
                "sig": ""
            }
        ]
    },
    "installation": { "installation": {
            "architecture": "",
            "cpeUri": "",
            "license": {
                "comments": "",
                "expression": ""
            },
            "location": [
                {
                    "cpeUri": "",
                    "path": "",
                    "version": {
                        "epoch": 0,
                        "inclusive": False,
                        "kind": "",
                        "name": "",
                        "revision": ""
                    }
                }
            ],
            "name": "",
            "packageType": "",
            "version": {}
        } },
    "intoto": {
        "signatures": [
            {
                "keyid": "",
                "sig": ""
            }
        ],
        "signed": {
            "byproducts": { "customValues": {} },
            "command": [],
            "environment": { "customValues": {} },
            "materials": [
                {
                    "hashes": { "sha256": "" },
                    "resourceUri": ""
                }
            ],
            "products": [{}]
        }
    },
    "kind": "",
    "name": "",
    "noteName": "",
    "remediation": "",
    "resource": {
        "contentHash": {
            "type": "",
            "value": ""
        },
        "name": "",
        "uri": ""
    },
    "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
    },
    "sbomReference": {
        "payload": {
            "_type": "",
            "predicate": {
                "digest": {},
                "location": "",
                "mimeType": "",
                "referrerId": ""
            },
            "predicateType": "",
            "subject": [
                {
                    "digest": {},
                    "name": ""
                }
            ]
        },
        "payloadType": "",
        "signatures": [{}]
    },
    "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
    },
    "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
    },
    "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
    },
    "updateTime": "",
    "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
            "attackComplexity": "",
            "attackVector": "",
            "authentication": "",
            "availabilityImpact": "",
            "baseScore": "",
            "confidentialityImpact": "",
            "exploitabilityScore": "",
            "impactScore": "",
            "integrityImpact": "",
            "privilegesRequired": "",
            "scope": "",
            "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
            {
                "affectedLocation": {
                    "cpeUri": "",
                    "package": "",
                    "version": {}
                },
                "effectiveSeverity": "",
                "fixedLocation": {},
                "packageType": "",
                "severityName": ""
            }
        ],
        "relatedUrls": [
            {
                "label": "",
                "url": ""
            }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
            "cve": "",
            "impacts": [],
            "justification": {
                "details": "",
                "justificationType": ""
            },
            "noteName": "",
            "relatedUris": [{}],
            "remediations": [
                {
                    "details": "",
                    "remediationType": "",
                    "remediationUri": {}
                }
            ],
            "state": ""
        }
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:parent/occurrences"

payload <- "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/occurrences")

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  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

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

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

response = conn.post('/baseUrl/v1beta1/:parent/occurrences') do |req|
  req.body = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"
end

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

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

    let payload = json!({
        "attestation": json!({"attestation": json!({
                "genericSignedAttestation": json!({
                    "contentType": "",
                    "serializedPayload": "",
                    "signatures": (
                        json!({
                            "publicKeyId": "",
                            "signature": ""
                        })
                    )
                }),
                "pgpSignedAttestation": json!({
                    "contentType": "",
                    "pgpKeyId": "",
                    "signature": ""
                })
            })}),
        "build": json!({
            "provenance": json!({
                "buildOptions": json!({}),
                "builderVersion": "",
                "builtArtifacts": (
                    json!({
                        "checksum": "",
                        "id": "",
                        "names": ()
                    })
                ),
                "commands": (
                    json!({
                        "args": (),
                        "dir": "",
                        "env": (),
                        "id": "",
                        "name": "",
                        "waitFor": ()
                    })
                ),
                "createTime": "",
                "creator": "",
                "endTime": "",
                "id": "",
                "logsUri": "",
                "projectId": "",
                "sourceProvenance": json!({
                    "additionalContexts": (
                        json!({
                            "cloudRepo": json!({
                                "aliasContext": json!({
                                    "kind": "",
                                    "name": ""
                                }),
                                "repoId": json!({
                                    "projectRepoId": json!({
                                        "projectId": "",
                                        "repoName": ""
                                    }),
                                    "uid": ""
                                }),
                                "revisionId": ""
                            }),
                            "gerrit": json!({
                                "aliasContext": json!({}),
                                "gerritProject": "",
                                "hostUri": "",
                                "revisionId": ""
                            }),
                            "git": json!({
                                "revisionId": "",
                                "url": ""
                            }),
                            "labels": json!({})
                        })
                    ),
                    "artifactStorageSourceUri": "",
                    "context": json!({}),
                    "fileHashes": json!({})
                }),
                "startTime": "",
                "triggerId": ""
            }),
            "provenanceBytes": ""
        }),
        "createTime": "",
        "deployment": json!({"deployment": json!({
                "address": "",
                "config": "",
                "deployTime": "",
                "platform": "",
                "resourceUri": (),
                "undeployTime": "",
                "userEmail": ""
            })}),
        "derivedImage": json!({"derivedImage": json!({
                "baseResourceUrl": "",
                "distance": 0,
                "fingerprint": json!({
                    "v1Name": "",
                    "v2Blob": (),
                    "v2Name": ""
                }),
                "layerInfo": (
                    json!({
                        "arguments": "",
                        "directive": ""
                    })
                )
            })}),
        "discovered": json!({"discovered": json!({
                "analysisCompleted": json!({"analysisType": ()}),
                "analysisError": (
                    json!({
                        "code": 0,
                        "details": (json!({})),
                        "message": ""
                    })
                ),
                "analysisStatus": "",
                "analysisStatusError": json!({}),
                "continuousAnalysis": "",
                "lastAnalysisTime": ""
            })}),
        "envelope": json!({
            "payload": "",
            "payloadType": "",
            "signatures": (
                json!({
                    "keyid": "",
                    "sig": ""
                })
            )
        }),
        "installation": json!({"installation": json!({
                "architecture": "",
                "cpeUri": "",
                "license": json!({
                    "comments": "",
                    "expression": ""
                }),
                "location": (
                    json!({
                        "cpeUri": "",
                        "path": "",
                        "version": json!({
                            "epoch": 0,
                            "inclusive": false,
                            "kind": "",
                            "name": "",
                            "revision": ""
                        })
                    })
                ),
                "name": "",
                "packageType": "",
                "version": json!({})
            })}),
        "intoto": json!({
            "signatures": (
                json!({
                    "keyid": "",
                    "sig": ""
                })
            ),
            "signed": json!({
                "byproducts": json!({"customValues": json!({})}),
                "command": (),
                "environment": json!({"customValues": json!({})}),
                "materials": (
                    json!({
                        "hashes": json!({"sha256": ""}),
                        "resourceUri": ""
                    })
                ),
                "products": (json!({}))
            })
        }),
        "kind": "",
        "name": "",
        "noteName": "",
        "remediation": "",
        "resource": json!({
            "contentHash": json!({
                "type": "",
                "value": ""
            }),
            "name": "",
            "uri": ""
        }),
        "sbom": json!({
            "createTime": "",
            "creatorComment": "",
            "creators": (),
            "documentComment": "",
            "externalDocumentRefs": (),
            "id": "",
            "licenseListVersion": "",
            "namespace": "",
            "title": ""
        }),
        "sbomReference": json!({
            "payload": json!({
                "_type": "",
                "predicate": json!({
                    "digest": json!({}),
                    "location": "",
                    "mimeType": "",
                    "referrerId": ""
                }),
                "predicateType": "",
                "subject": (
                    json!({
                        "digest": json!({}),
                        "name": ""
                    })
                )
            }),
            "payloadType": "",
            "signatures": (json!({}))
        }),
        "spdxFile": json!({
            "attributions": (),
            "comment": "",
            "contributors": (),
            "copyright": "",
            "filesLicenseInfo": (),
            "id": "",
            "licenseConcluded": json!({}),
            "notice": ""
        }),
        "spdxPackage": json!({
            "comment": "",
            "filename": "",
            "homePage": "",
            "id": "",
            "licenseConcluded": json!({}),
            "packageType": "",
            "sourceInfo": "",
            "summaryDescription": "",
            "title": "",
            "version": ""
        }),
        "spdxRelationship": json!({
            "comment": "",
            "source": "",
            "target": "",
            "type": ""
        }),
        "updateTime": "",
        "vulnerability": json!({
            "cvssScore": "",
            "cvssV2": json!({
                "attackComplexity": "",
                "attackVector": "",
                "authentication": "",
                "availabilityImpact": "",
                "baseScore": "",
                "confidentialityImpact": "",
                "exploitabilityScore": "",
                "impactScore": "",
                "integrityImpact": "",
                "privilegesRequired": "",
                "scope": "",
                "userInteraction": ""
            }),
            "cvssV3": json!({}),
            "cvssVersion": "",
            "effectiveSeverity": "",
            "longDescription": "",
            "packageIssue": (
                json!({
                    "affectedLocation": json!({
                        "cpeUri": "",
                        "package": "",
                        "version": json!({})
                    }),
                    "effectiveSeverity": "",
                    "fixedLocation": json!({}),
                    "packageType": "",
                    "severityName": ""
                })
            ),
            "relatedUrls": (
                json!({
                    "label": "",
                    "url": ""
                })
            ),
            "severity": "",
            "shortDescription": "",
            "type": "",
            "vexAssessment": json!({
                "cve": "",
                "impacts": (),
                "justification": json!({
                    "details": "",
                    "justificationType": ""
                }),
                "noteName": "",
                "relatedUris": (json!({})),
                "remediations": (
                    json!({
                        "details": "",
                        "remediationType": "",
                        "remediationUri": json!({})
                    })
                ),
                "state": ""
            })
        })
    });

    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}}/v1beta1/:parent/occurrences \
  --header 'content-type: application/json' \
  --data '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}'
echo '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:parent/occurrences \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attestation": {\n    "attestation": {\n      "genericSignedAttestation": {\n        "contentType": "",\n        "serializedPayload": "",\n        "signatures": [\n          {\n            "publicKeyId": "",\n            "signature": ""\n          }\n        ]\n      },\n      "pgpSignedAttestation": {\n        "contentType": "",\n        "pgpKeyId": "",\n        "signature": ""\n      }\n    }\n  },\n  "build": {\n    "provenance": {\n      "buildOptions": {},\n      "builderVersion": "",\n      "builtArtifacts": [\n        {\n          "checksum": "",\n          "id": "",\n          "names": []\n        }\n      ],\n      "commands": [\n        {\n          "args": [],\n          "dir": "",\n          "env": [],\n          "id": "",\n          "name": "",\n          "waitFor": []\n        }\n      ],\n      "createTime": "",\n      "creator": "",\n      "endTime": "",\n      "id": "",\n      "logsUri": "",\n      "projectId": "",\n      "sourceProvenance": {\n        "additionalContexts": [\n          {\n            "cloudRepo": {\n              "aliasContext": {\n                "kind": "",\n                "name": ""\n              },\n              "repoId": {\n                "projectRepoId": {\n                  "projectId": "",\n                  "repoName": ""\n                },\n                "uid": ""\n              },\n              "revisionId": ""\n            },\n            "gerrit": {\n              "aliasContext": {},\n              "gerritProject": "",\n              "hostUri": "",\n              "revisionId": ""\n            },\n            "git": {\n              "revisionId": "",\n              "url": ""\n            },\n            "labels": {}\n          }\n        ],\n        "artifactStorageSourceUri": "",\n        "context": {},\n        "fileHashes": {}\n      },\n      "startTime": "",\n      "triggerId": ""\n    },\n    "provenanceBytes": ""\n  },\n  "createTime": "",\n  "deployment": {\n    "deployment": {\n      "address": "",\n      "config": "",\n      "deployTime": "",\n      "platform": "",\n      "resourceUri": [],\n      "undeployTime": "",\n      "userEmail": ""\n    }\n  },\n  "derivedImage": {\n    "derivedImage": {\n      "baseResourceUrl": "",\n      "distance": 0,\n      "fingerprint": {\n        "v1Name": "",\n        "v2Blob": [],\n        "v2Name": ""\n      },\n      "layerInfo": [\n        {\n          "arguments": "",\n          "directive": ""\n        }\n      ]\n    }\n  },\n  "discovered": {\n    "discovered": {\n      "analysisCompleted": {\n        "analysisType": []\n      },\n      "analysisError": [\n        {\n          "code": 0,\n          "details": [\n            {}\n          ],\n          "message": ""\n        }\n      ],\n      "analysisStatus": "",\n      "analysisStatusError": {},\n      "continuousAnalysis": "",\n      "lastAnalysisTime": ""\n    }\n  },\n  "envelope": {\n    "payload": "",\n    "payloadType": "",\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ]\n  },\n  "installation": {\n    "installation": {\n      "architecture": "",\n      "cpeUri": "",\n      "license": {\n        "comments": "",\n        "expression": ""\n      },\n      "location": [\n        {\n          "cpeUri": "",\n          "path": "",\n          "version": {\n            "epoch": 0,\n            "inclusive": false,\n            "kind": "",\n            "name": "",\n            "revision": ""\n          }\n        }\n      ],\n      "name": "",\n      "packageType": "",\n      "version": {}\n    }\n  },\n  "intoto": {\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ],\n    "signed": {\n      "byproducts": {\n        "customValues": {}\n      },\n      "command": [],\n      "environment": {\n        "customValues": {}\n      },\n      "materials": [\n        {\n          "hashes": {\n            "sha256": ""\n          },\n          "resourceUri": ""\n        }\n      ],\n      "products": [\n        {}\n      ]\n    }\n  },\n  "kind": "",\n  "name": "",\n  "noteName": "",\n  "remediation": "",\n  "resource": {\n    "contentHash": {\n      "type": "",\n      "value": ""\n    },\n    "name": "",\n    "uri": ""\n  },\n  "sbom": {\n    "createTime": "",\n    "creatorComment": "",\n    "creators": [],\n    "documentComment": "",\n    "externalDocumentRefs": [],\n    "id": "",\n    "licenseListVersion": "",\n    "namespace": "",\n    "title": ""\n  },\n  "sbomReference": {\n    "payload": {\n      "_type": "",\n      "predicate": {\n        "digest": {},\n        "location": "",\n        "mimeType": "",\n        "referrerId": ""\n      },\n      "predicateType": "",\n      "subject": [\n        {\n          "digest": {},\n          "name": ""\n        }\n      ]\n    },\n    "payloadType": "",\n    "signatures": [\n      {}\n    ]\n  },\n  "spdxFile": {\n    "attributions": [],\n    "comment": "",\n    "contributors": [],\n    "copyright": "",\n    "filesLicenseInfo": [],\n    "id": "",\n    "licenseConcluded": {},\n    "notice": ""\n  },\n  "spdxPackage": {\n    "comment": "",\n    "filename": "",\n    "homePage": "",\n    "id": "",\n    "licenseConcluded": {},\n    "packageType": "",\n    "sourceInfo": "",\n    "summaryDescription": "",\n    "title": "",\n    "version": ""\n  },\n  "spdxRelationship": {\n    "comment": "",\n    "source": "",\n    "target": "",\n    "type": ""\n  },\n  "updateTime": "",\n  "vulnerability": {\n    "cvssScore": "",\n    "cvssV2": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "authentication": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssV3": {},\n    "cvssVersion": "",\n    "effectiveSeverity": "",\n    "longDescription": "",\n    "packageIssue": [\n      {\n        "affectedLocation": {\n          "cpeUri": "",\n          "package": "",\n          "version": {}\n        },\n        "effectiveSeverity": "",\n        "fixedLocation": {},\n        "packageType": "",\n        "severityName": ""\n      }\n    ],\n    "relatedUrls": [\n      {\n        "label": "",\n        "url": ""\n      }\n    ],\n    "severity": "",\n    "shortDescription": "",\n    "type": "",\n    "vexAssessment": {\n      "cve": "",\n      "impacts": [],\n      "justification": {\n        "details": "",\n        "justificationType": ""\n      },\n      "noteName": "",\n      "relatedUris": [\n        {}\n      ],\n      "remediations": [\n        {\n          "details": "",\n          "remediationType": "",\n          "remediationUri": {}\n        }\n      ],\n      "state": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/occurrences
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attestation": ["attestation": [
      "genericSignedAttestation": [
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          [
            "publicKeyId": "",
            "signature": ""
          ]
        ]
      ],
      "pgpSignedAttestation": [
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      ]
    ]],
  "build": [
    "provenance": [
      "buildOptions": [],
      "builderVersion": "",
      "builtArtifacts": [
        [
          "checksum": "",
          "id": "",
          "names": []
        ]
      ],
      "commands": [
        [
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        ]
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": [
        "additionalContexts": [
          [
            "cloudRepo": [
              "aliasContext": [
                "kind": "",
                "name": ""
              ],
              "repoId": [
                "projectRepoId": [
                  "projectId": "",
                  "repoName": ""
                ],
                "uid": ""
              ],
              "revisionId": ""
            ],
            "gerrit": [
              "aliasContext": [],
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            ],
            "git": [
              "revisionId": "",
              "url": ""
            ],
            "labels": []
          ]
        ],
        "artifactStorageSourceUri": "",
        "context": [],
        "fileHashes": []
      ],
      "startTime": "",
      "triggerId": ""
    ],
    "provenanceBytes": ""
  ],
  "createTime": "",
  "deployment": ["deployment": [
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    ]],
  "derivedImage": ["derivedImage": [
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": [
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      ],
      "layerInfo": [
        [
          "arguments": "",
          "directive": ""
        ]
      ]
    ]],
  "discovered": ["discovered": [
      "analysisCompleted": ["analysisType": []],
      "analysisError": [
        [
          "code": 0,
          "details": [[]],
          "message": ""
        ]
      ],
      "analysisStatus": "",
      "analysisStatusError": [],
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    ]],
  "envelope": [
    "payload": "",
    "payloadType": "",
    "signatures": [
      [
        "keyid": "",
        "sig": ""
      ]
    ]
  ],
  "installation": ["installation": [
      "architecture": "",
      "cpeUri": "",
      "license": [
        "comments": "",
        "expression": ""
      ],
      "location": [
        [
          "cpeUri": "",
          "path": "",
          "version": [
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          ]
        ]
      ],
      "name": "",
      "packageType": "",
      "version": []
    ]],
  "intoto": [
    "signatures": [
      [
        "keyid": "",
        "sig": ""
      ]
    ],
    "signed": [
      "byproducts": ["customValues": []],
      "command": [],
      "environment": ["customValues": []],
      "materials": [
        [
          "hashes": ["sha256": ""],
          "resourceUri": ""
        ]
      ],
      "products": [[]]
    ]
  ],
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": [
    "contentHash": [
      "type": "",
      "value": ""
    ],
    "name": "",
    "uri": ""
  ],
  "sbom": [
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  ],
  "sbomReference": [
    "payload": [
      "_type": "",
      "predicate": [
        "digest": [],
        "location": "",
        "mimeType": "",
        "referrerId": ""
      ],
      "predicateType": "",
      "subject": [
        [
          "digest": [],
          "name": ""
        ]
      ]
    ],
    "payloadType": "",
    "signatures": [[]]
  ],
  "spdxFile": [
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": [],
    "notice": ""
  ],
  "spdxPackage": [
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": [],
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  ],
  "spdxRelationship": [
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  ],
  "updateTime": "",
  "vulnerability": [
    "cvssScore": "",
    "cvssV2": [
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    ],
    "cvssV3": [],
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      [
        "affectedLocation": [
          "cpeUri": "",
          "package": "",
          "version": []
        ],
        "effectiveSeverity": "",
        "fixedLocation": [],
        "packageType": "",
        "severityName": ""
      ]
    ],
    "relatedUrls": [
      [
        "label": "",
        "url": ""
      ]
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": [
      "cve": "",
      "impacts": [],
      "justification": [
        "details": "",
        "justificationType": ""
      ],
      "noteName": "",
      "relatedUris": [[]],
      "remediations": [
        [
          "details": "",
          "remediationType": "",
          "remediationUri": []
        ]
      ],
      "state": ""
    ]
  ]
] as [String : Any]

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

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

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

dataTask.resume()
DELETE containeranalysis.projects.occurrences.delete
{{baseUrl}}/v1beta1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

dataTask.resume()
GET containeranalysis.projects.occurrences.get
{{baseUrl}}/v1beta1/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
POST containeranalysis.projects.occurrences.getIamPolicy
{{baseUrl}}/v1beta1/:resource:getIamPolicy
QUERY PARAMS

resource
BODY json

{
  "options": {
    "requestedPolicyVersion": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:resource:getIamPolicy");

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  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:resource:getIamPolicy" {:content-type :json
                                                                           :form-params {:options {:requestedPolicyVersion 0}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:resource:getIamPolicy"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:resource:getIamPolicy"

	payload := strings.NewReader("{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta1/:resource:getIamPolicy HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 54

{
  "options": {
    "requestedPolicyVersion": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:resource:getIamPolicy")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:resource:getIamPolicy")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:resource:getIamPolicy")
  .header("content-type", "application/json")
  .body("{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  options: {
    requestedPolicyVersion: 0
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:resource:getIamPolicy');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:resource:getIamPolicy',
  headers: {'content-type': 'application/json'},
  data: {options: {requestedPolicyVersion: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:resource:getIamPolicy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"options":{"requestedPolicyVersion":0}}'
};

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}}/v1beta1/:resource:getIamPolicy',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "options": {\n    "requestedPolicyVersion": 0\n  }\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:resource:getIamPolicy',
  headers: {'content-type': 'application/json'},
  body: {options: {requestedPolicyVersion: 0}},
  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}}/v1beta1/:resource:getIamPolicy');

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

req.type('json');
req.send({
  options: {
    requestedPolicyVersion: 0
  }
});

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}}/v1beta1/:resource:getIamPolicy',
  headers: {'content-type': 'application/json'},
  data: {options: {requestedPolicyVersion: 0}}
};

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

const url = '{{baseUrl}}/v1beta1/:resource:getIamPolicy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"options":{"requestedPolicyVersion":0}}'
};

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 = @{ @"options": @{ @"requestedPolicyVersion": @0 } };

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:resource:getIamPolicy');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

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

payload = "{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:resource:getIamPolicy", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:resource:getIamPolicy"

payload = { "options": { "requestedPolicyVersion": 0 } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:resource:getIamPolicy"

payload <- "{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta1/:resource:getIamPolicy")

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  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}"

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

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

response = conn.post('/baseUrl/v1beta1/:resource:getIamPolicy') do |req|
  req.body = "{\n  \"options\": {\n    \"requestedPolicyVersion\": 0\n  }\n}"
end

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

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

    let payload = json!({"options": json!({"requestedPolicyVersion": 0})});

    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}}/v1beta1/:resource:getIamPolicy \
  --header 'content-type: application/json' \
  --data '{
  "options": {
    "requestedPolicyVersion": 0
  }
}'
echo '{
  "options": {
    "requestedPolicyVersion": 0
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:resource:getIamPolicy \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "options": {\n    "requestedPolicyVersion": 0\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:resource:getIamPolicy
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:resource:getIamPolicy")! 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 containeranalysis.projects.occurrences.getNotes
{{baseUrl}}/v1beta1/:name/notes
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/v1beta1/:name/notes"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:name/notes"

	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/v1beta1/:name/notes HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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}}/v1beta1/:name/notes'};

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

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

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1beta1/:name/notes"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:name/notes"

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

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

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

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/v1beta1/:name/notes') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:name/notes
http GET {{baseUrl}}/v1beta1/:name/notes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:name/notes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:name/notes")! 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 containeranalysis.projects.occurrences.getVulnerabilitySummary
{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary");

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

(client/get "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary"

	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/v1beta1/:parent/occurrences:vulnerabilitySummary HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary');

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}}/v1beta1/:parent/occurrences:vulnerabilitySummary'
};

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

const url = '{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary';
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}}/v1beta1/:parent/occurrences:vulnerabilitySummary"]
                                                       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}}/v1beta1/:parent/occurrences:vulnerabilitySummary" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/occurrences:vulnerabilitySummary")

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

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

url = "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary")

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/v1beta1/:parent/occurrences:vulnerabilitySummary') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/occurrences:vulnerabilitySummary
http GET {{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:parent/occurrences:vulnerabilitySummary")! 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 containeranalysis.projects.occurrences.list
{{baseUrl}}/v1beta1/:parent/occurrences
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v1beta1/:parent/occurrences")
require "http/client"

url = "{{baseUrl}}/v1beta1/:parent/occurrences"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:parent/occurrences"

	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/v1beta1/:parent/occurrences HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v1beta1/:parent/occurrences'};

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

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

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

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

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

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

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

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

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}}/v1beta1/:parent/occurrences'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v1beta1/:parent/occurrences")

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

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

url = "{{baseUrl}}/v1beta1/:parent/occurrences"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1beta1/:parent/occurrences"

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

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

url = URI("{{baseUrl}}/v1beta1/:parent/occurrences")

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/v1beta1/:parent/occurrences') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v1beta1/:parent/occurrences
http GET {{baseUrl}}/v1beta1/:parent/occurrences
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v1beta1/:parent/occurrences
import Foundation

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

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

dataTask.resume()
PATCH containeranalysis.projects.occurrences.patch
{{baseUrl}}/v1beta1/:name
QUERY PARAMS

name
BODY json

{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}");

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

(client/patch "{{baseUrl}}/v1beta1/:name" {:content-type :json
                                                           :form-params {:attestation {:attestation {:genericSignedAttestation {:contentType ""
                                                                                                                                :serializedPayload ""
                                                                                                                                :signatures [{:publicKeyId ""
                                                                                                                                              :signature ""}]}
                                                                                                     :pgpSignedAttestation {:contentType ""
                                                                                                                            :pgpKeyId ""
                                                                                                                            :signature ""}}}
                                                                         :build {:provenance {:buildOptions {}
                                                                                              :builderVersion ""
                                                                                              :builtArtifacts [{:checksum ""
                                                                                                                :id ""
                                                                                                                :names []}]
                                                                                              :commands [{:args []
                                                                                                          :dir ""
                                                                                                          :env []
                                                                                                          :id ""
                                                                                                          :name ""
                                                                                                          :waitFor []}]
                                                                                              :createTime ""
                                                                                              :creator ""
                                                                                              :endTime ""
                                                                                              :id ""
                                                                                              :logsUri ""
                                                                                              :projectId ""
                                                                                              :sourceProvenance {:additionalContexts [{:cloudRepo {:aliasContext {:kind ""
                                                                                                                                                                  :name ""}
                                                                                                                                                   :repoId {:projectRepoId {:projectId ""
                                                                                                                                                                            :repoName ""}
                                                                                                                                                            :uid ""}
                                                                                                                                                   :revisionId ""}
                                                                                                                                       :gerrit {:aliasContext {}
                                                                                                                                                :gerritProject ""
                                                                                                                                                :hostUri ""
                                                                                                                                                :revisionId ""}
                                                                                                                                       :git {:revisionId ""
                                                                                                                                             :url ""}
                                                                                                                                       :labels {}}]
                                                                                                                 :artifactStorageSourceUri ""
                                                                                                                 :context {}
                                                                                                                 :fileHashes {}}
                                                                                              :startTime ""
                                                                                              :triggerId ""}
                                                                                 :provenanceBytes ""}
                                                                         :createTime ""
                                                                         :deployment {:deployment {:address ""
                                                                                                   :config ""
                                                                                                   :deployTime ""
                                                                                                   :platform ""
                                                                                                   :resourceUri []
                                                                                                   :undeployTime ""
                                                                                                   :userEmail ""}}
                                                                         :derivedImage {:derivedImage {:baseResourceUrl ""
                                                                                                       :distance 0
                                                                                                       :fingerprint {:v1Name ""
                                                                                                                     :v2Blob []
                                                                                                                     :v2Name ""}
                                                                                                       :layerInfo [{:arguments ""
                                                                                                                    :directive ""}]}}
                                                                         :discovered {:discovered {:analysisCompleted {:analysisType []}
                                                                                                   :analysisError [{:code 0
                                                                                                                    :details [{}]
                                                                                                                    :message ""}]
                                                                                                   :analysisStatus ""
                                                                                                   :analysisStatusError {}
                                                                                                   :continuousAnalysis ""
                                                                                                   :lastAnalysisTime ""}}
                                                                         :envelope {:payload ""
                                                                                    :payloadType ""
                                                                                    :signatures [{:keyid ""
                                                                                                  :sig ""}]}
                                                                         :installation {:installation {:architecture ""
                                                                                                       :cpeUri ""
                                                                                                       :license {:comments ""
                                                                                                                 :expression ""}
                                                                                                       :location [{:cpeUri ""
                                                                                                                   :path ""
                                                                                                                   :version {:epoch 0
                                                                                                                             :inclusive false
                                                                                                                             :kind ""
                                                                                                                             :name ""
                                                                                                                             :revision ""}}]
                                                                                                       :name ""
                                                                                                       :packageType ""
                                                                                                       :version {}}}
                                                                         :intoto {:signatures [{:keyid ""
                                                                                                :sig ""}]
                                                                                  :signed {:byproducts {:customValues {}}
                                                                                           :command []
                                                                                           :environment {:customValues {}}
                                                                                           :materials [{:hashes {:sha256 ""}
                                                                                                        :resourceUri ""}]
                                                                                           :products [{}]}}
                                                                         :kind ""
                                                                         :name ""
                                                                         :noteName ""
                                                                         :remediation ""
                                                                         :resource {:contentHash {:type ""
                                                                                                  :value ""}
                                                                                    :name ""
                                                                                    :uri ""}
                                                                         :sbom {:createTime ""
                                                                                :creatorComment ""
                                                                                :creators []
                                                                                :documentComment ""
                                                                                :externalDocumentRefs []
                                                                                :id ""
                                                                                :licenseListVersion ""
                                                                                :namespace ""
                                                                                :title ""}
                                                                         :sbomReference {:payload {:_type ""
                                                                                                   :predicate {:digest {}
                                                                                                               :location ""
                                                                                                               :mimeType ""
                                                                                                               :referrerId ""}
                                                                                                   :predicateType ""
                                                                                                   :subject [{:digest {}
                                                                                                              :name ""}]}
                                                                                         :payloadType ""
                                                                                         :signatures [{}]}
                                                                         :spdxFile {:attributions []
                                                                                    :comment ""
                                                                                    :contributors []
                                                                                    :copyright ""
                                                                                    :filesLicenseInfo []
                                                                                    :id ""
                                                                                    :licenseConcluded {}
                                                                                    :notice ""}
                                                                         :spdxPackage {:comment ""
                                                                                       :filename ""
                                                                                       :homePage ""
                                                                                       :id ""
                                                                                       :licenseConcluded {}
                                                                                       :packageType ""
                                                                                       :sourceInfo ""
                                                                                       :summaryDescription ""
                                                                                       :title ""
                                                                                       :version ""}
                                                                         :spdxRelationship {:comment ""
                                                                                            :source ""
                                                                                            :target ""
                                                                                            :type ""}
                                                                         :updateTime ""
                                                                         :vulnerability {:cvssScore ""
                                                                                         :cvssV2 {:attackComplexity ""
                                                                                                  :attackVector ""
                                                                                                  :authentication ""
                                                                                                  :availabilityImpact ""
                                                                                                  :baseScore ""
                                                                                                  :confidentialityImpact ""
                                                                                                  :exploitabilityScore ""
                                                                                                  :impactScore ""
                                                                                                  :integrityImpact ""
                                                                                                  :privilegesRequired ""
                                                                                                  :scope ""
                                                                                                  :userInteraction ""}
                                                                                         :cvssV3 {}
                                                                                         :cvssVersion ""
                                                                                         :effectiveSeverity ""
                                                                                         :longDescription ""
                                                                                         :packageIssue [{:affectedLocation {:cpeUri ""
                                                                                                                            :package ""
                                                                                                                            :version {}}
                                                                                                         :effectiveSeverity ""
                                                                                                         :fixedLocation {}
                                                                                                         :packageType ""
                                                                                                         :severityName ""}]
                                                                                         :relatedUrls [{:label ""
                                                                                                        :url ""}]
                                                                                         :severity ""
                                                                                         :shortDescription ""
                                                                                         :type ""
                                                                                         :vexAssessment {:cve ""
                                                                                                         :impacts []
                                                                                                         :justification {:details ""
                                                                                                                         :justificationType ""}
                                                                                                         :noteName ""
                                                                                                         :relatedUris [{}]
                                                                                                         :remediations [{:details ""
                                                                                                                         :remediationType ""
                                                                                                                         :remediationUri {}}]
                                                                                                         :state ""}}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1beta1/:name"),
    Content = new StringContent("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")

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

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

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

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

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

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

{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1beta1/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1beta1/:name")
  .header("content-type", "application/json")
  .body("{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  attestation: {
    attestation: {
      genericSignedAttestation: {
        contentType: '',
        serializedPayload: '',
        signatures: [
          {
            publicKeyId: '',
            signature: ''
          }
        ]
      },
      pgpSignedAttestation: {
        contentType: '',
        pgpKeyId: '',
        signature: ''
      }
    }
  },
  build: {
    provenance: {
      buildOptions: {},
      builderVersion: '',
      builtArtifacts: [
        {
          checksum: '',
          id: '',
          names: []
        }
      ],
      commands: [
        {
          args: [],
          dir: '',
          env: [],
          id: '',
          name: '',
          waitFor: []
        }
      ],
      createTime: '',
      creator: '',
      endTime: '',
      id: '',
      logsUri: '',
      projectId: '',
      sourceProvenance: {
        additionalContexts: [
          {
            cloudRepo: {
              aliasContext: {
                kind: '',
                name: ''
              },
              repoId: {
                projectRepoId: {
                  projectId: '',
                  repoName: ''
                },
                uid: ''
              },
              revisionId: ''
            },
            gerrit: {
              aliasContext: {},
              gerritProject: '',
              hostUri: '',
              revisionId: ''
            },
            git: {
              revisionId: '',
              url: ''
            },
            labels: {}
          }
        ],
        artifactStorageSourceUri: '',
        context: {},
        fileHashes: {}
      },
      startTime: '',
      triggerId: ''
    },
    provenanceBytes: ''
  },
  createTime: '',
  deployment: {
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    }
  },
  derivedImage: {
    derivedImage: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {
        v1Name: '',
        v2Blob: [],
        v2Name: ''
      },
      layerInfo: [
        {
          arguments: '',
          directive: ''
        }
      ]
    }
  },
  discovered: {
    discovered: {
      analysisCompleted: {
        analysisType: []
      },
      analysisError: [
        {
          code: 0,
          details: [
            {}
          ],
          message: ''
        }
      ],
      analysisStatus: '',
      analysisStatusError: {},
      continuousAnalysis: '',
      lastAnalysisTime: ''
    }
  },
  envelope: {
    payload: '',
    payloadType: '',
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ]
  },
  installation: {
    installation: {
      architecture: '',
      cpeUri: '',
      license: {
        comments: '',
        expression: ''
      },
      location: [
        {
          cpeUri: '',
          path: '',
          version: {
            epoch: 0,
            inclusive: false,
            kind: '',
            name: '',
            revision: ''
          }
        }
      ],
      name: '',
      packageType: '',
      version: {}
    }
  },
  intoto: {
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ],
    signed: {
      byproducts: {
        customValues: {}
      },
      command: [],
      environment: {
        customValues: {}
      },
      materials: [
        {
          hashes: {
            sha256: ''
          },
          resourceUri: ''
        }
      ],
      products: [
        {}
      ]
    }
  },
  kind: '',
  name: '',
  noteName: '',
  remediation: '',
  resource: {
    contentHash: {
      type: '',
      value: ''
    },
    name: '',
    uri: ''
  },
  sbom: {
    createTime: '',
    creatorComment: '',
    creators: [],
    documentComment: '',
    externalDocumentRefs: [],
    id: '',
    licenseListVersion: '',
    namespace: '',
    title: ''
  },
  sbomReference: {
    payload: {
      _type: '',
      predicate: {
        digest: {},
        location: '',
        mimeType: '',
        referrerId: ''
      },
      predicateType: '',
      subject: [
        {
          digest: {},
          name: ''
        }
      ]
    },
    payloadType: '',
    signatures: [
      {}
    ]
  },
  spdxFile: {
    attributions: [],
    comment: '',
    contributors: [],
    copyright: '',
    filesLicenseInfo: [],
    id: '',
    licenseConcluded: {},
    notice: ''
  },
  spdxPackage: {
    comment: '',
    filename: '',
    homePage: '',
    id: '',
    licenseConcluded: {},
    packageType: '',
    sourceInfo: '',
    summaryDescription: '',
    title: '',
    version: ''
  },
  spdxRelationship: {
    comment: '',
    source: '',
    target: '',
    type: ''
  },
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {},
    cvssVersion: '',
    effectiveSeverity: '',
    longDescription: '',
    packageIssue: [
      {
        affectedLocation: {
          cpeUri: '',
          package: '',
          version: {}
        },
        effectiveSeverity: '',
        fixedLocation: {},
        packageType: '',
        severityName: ''
      }
    ],
    relatedUrls: [
      {
        label: '',
        url: ''
      }
    ],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      noteName: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      state: ''
    }
  }
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {
      attestation: {
        genericSignedAttestation: {
          contentType: '',
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
      }
    },
    build: {
      provenance: {
        buildOptions: {},
        builderVersion: '',
        builtArtifacts: [{checksum: '', id: '', names: []}],
        commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
        createTime: '',
        creator: '',
        endTime: '',
        id: '',
        logsUri: '',
        projectId: '',
        sourceProvenance: {
          additionalContexts: [
            {
              cloudRepo: {
                aliasContext: {kind: '', name: ''},
                repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                revisionId: ''
              },
              gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
              git: {revisionId: '', url: ''},
              labels: {}
            }
          ],
          artifactStorageSourceUri: '',
          context: {},
          fileHashes: {}
        },
        startTime: '',
        triggerId: ''
      },
      provenanceBytes: ''
    },
    createTime: '',
    deployment: {
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      }
    },
    derivedImage: {
      derivedImage: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      }
    },
    discovered: {
      discovered: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        continuousAnalysis: '',
        lastAnalysisTime: ''
      }
    },
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    installation: {
      installation: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      }
    },
    intoto: {
      signatures: [{keyid: '', sig: ''}],
      signed: {
        byproducts: {customValues: {}},
        command: [],
        environment: {customValues: {}},
        materials: [{hashes: {sha256: ''}, resourceUri: ''}],
        products: [{}]
      }
    },
    kind: '',
    name: '',
    noteName: '',
    remediation: '',
    resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
    sbom: {
      createTime: '',
      creatorComment: '',
      creators: [],
      documentComment: '',
      externalDocumentRefs: [],
      id: '',
      licenseListVersion: '',
      namespace: '',
      title: ''
    },
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      payloadType: '',
      signatures: [{}]
    },
    spdxFile: {
      attributions: [],
      comment: '',
      contributors: [],
      copyright: '',
      filesLicenseInfo: [],
      id: '',
      licenseConcluded: {},
      notice: ''
    },
    spdxPackage: {
      comment: '',
      filename: '',
      homePage: '',
      id: '',
      licenseConcluded: {},
      packageType: '',
      sourceInfo: '',
      summaryDescription: '',
      title: '',
      version: ''
    },
    spdxRelationship: {comment: '', source: '', target: '', type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {},
      cvssVersion: '',
      effectiveSeverity: '',
      longDescription: '',
      packageIssue: [
        {
          affectedLocation: {cpeUri: '', package: '', version: {}},
          effectiveSeverity: '',
          fixedLocation: {},
          packageType: '',
          severityName: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: ''
      }
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"attestation":{"genericSignedAttestation":{"contentType":"","serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"pgpSignedAttestation":{"contentType":"","pgpKeyId":"","signature":""}}},"build":{"provenance":{"buildOptions":{},"builderVersion":"","builtArtifacts":[{"checksum":"","id":"","names":[]}],"commands":[{"args":[],"dir":"","env":[],"id":"","name":"","waitFor":[]}],"createTime":"","creator":"","endTime":"","id":"","logsUri":"","projectId":"","sourceProvenance":{"additionalContexts":[{"cloudRepo":{"aliasContext":{"kind":"","name":""},"repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"gerrit":{"aliasContext":{},"gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""},"labels":{}}],"artifactStorageSourceUri":"","context":{},"fileHashes":{}},"startTime":"","triggerId":""},"provenanceBytes":""},"createTime":"","deployment":{"deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""}},"derivedImage":{"derivedImage":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]}},"discovered":{"discovered":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"continuousAnalysis":"","lastAnalysisTime":""}},"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"installation":{"installation":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}}},"intoto":{"signatures":[{"keyid":"","sig":""}],"signed":{"byproducts":{"customValues":{}},"command":[],"environment":{"customValues":{}},"materials":[{"hashes":{"sha256":""},"resourceUri":""}],"products":[{}]}},"kind":"","name":"","noteName":"","remediation":"","resource":{"contentHash":{"type":"","value":""},"name":"","uri":""},"sbom":{"createTime":"","creatorComment":"","creators":[],"documentComment":"","externalDocumentRefs":[],"id":"","licenseListVersion":"","namespace":"","title":""},"sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{"digest":{},"name":""}]},"payloadType":"","signatures":[{}]},"spdxFile":{"attributions":[],"comment":"","contributors":[],"copyright":"","filesLicenseInfo":[],"id":"","licenseConcluded":{},"notice":""},"spdxPackage":{"comment":"","filename":"","homePage":"","id":"","licenseConcluded":{},"packageType":"","sourceInfo":"","summaryDescription":"","title":"","version":""},"spdxRelationship":{"comment":"","source":"","target":"","type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{},"cvssVersion":"","effectiveSeverity":"","longDescription":"","packageIssue":[{"affectedLocation":{"cpeUri":"","package":"","version":{}},"effectiveSeverity":"","fixedLocation":{},"packageType":"","severityName":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":""}}}'
};

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}}/v1beta1/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attestation": {\n    "attestation": {\n      "genericSignedAttestation": {\n        "contentType": "",\n        "serializedPayload": "",\n        "signatures": [\n          {\n            "publicKeyId": "",\n            "signature": ""\n          }\n        ]\n      },\n      "pgpSignedAttestation": {\n        "contentType": "",\n        "pgpKeyId": "",\n        "signature": ""\n      }\n    }\n  },\n  "build": {\n    "provenance": {\n      "buildOptions": {},\n      "builderVersion": "",\n      "builtArtifacts": [\n        {\n          "checksum": "",\n          "id": "",\n          "names": []\n        }\n      ],\n      "commands": [\n        {\n          "args": [],\n          "dir": "",\n          "env": [],\n          "id": "",\n          "name": "",\n          "waitFor": []\n        }\n      ],\n      "createTime": "",\n      "creator": "",\n      "endTime": "",\n      "id": "",\n      "logsUri": "",\n      "projectId": "",\n      "sourceProvenance": {\n        "additionalContexts": [\n          {\n            "cloudRepo": {\n              "aliasContext": {\n                "kind": "",\n                "name": ""\n              },\n              "repoId": {\n                "projectRepoId": {\n                  "projectId": "",\n                  "repoName": ""\n                },\n                "uid": ""\n              },\n              "revisionId": ""\n            },\n            "gerrit": {\n              "aliasContext": {},\n              "gerritProject": "",\n              "hostUri": "",\n              "revisionId": ""\n            },\n            "git": {\n              "revisionId": "",\n              "url": ""\n            },\n            "labels": {}\n          }\n        ],\n        "artifactStorageSourceUri": "",\n        "context": {},\n        "fileHashes": {}\n      },\n      "startTime": "",\n      "triggerId": ""\n    },\n    "provenanceBytes": ""\n  },\n  "createTime": "",\n  "deployment": {\n    "deployment": {\n      "address": "",\n      "config": "",\n      "deployTime": "",\n      "platform": "",\n      "resourceUri": [],\n      "undeployTime": "",\n      "userEmail": ""\n    }\n  },\n  "derivedImage": {\n    "derivedImage": {\n      "baseResourceUrl": "",\n      "distance": 0,\n      "fingerprint": {\n        "v1Name": "",\n        "v2Blob": [],\n        "v2Name": ""\n      },\n      "layerInfo": [\n        {\n          "arguments": "",\n          "directive": ""\n        }\n      ]\n    }\n  },\n  "discovered": {\n    "discovered": {\n      "analysisCompleted": {\n        "analysisType": []\n      },\n      "analysisError": [\n        {\n          "code": 0,\n          "details": [\n            {}\n          ],\n          "message": ""\n        }\n      ],\n      "analysisStatus": "",\n      "analysisStatusError": {},\n      "continuousAnalysis": "",\n      "lastAnalysisTime": ""\n    }\n  },\n  "envelope": {\n    "payload": "",\n    "payloadType": "",\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ]\n  },\n  "installation": {\n    "installation": {\n      "architecture": "",\n      "cpeUri": "",\n      "license": {\n        "comments": "",\n        "expression": ""\n      },\n      "location": [\n        {\n          "cpeUri": "",\n          "path": "",\n          "version": {\n            "epoch": 0,\n            "inclusive": false,\n            "kind": "",\n            "name": "",\n            "revision": ""\n          }\n        }\n      ],\n      "name": "",\n      "packageType": "",\n      "version": {}\n    }\n  },\n  "intoto": {\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ],\n    "signed": {\n      "byproducts": {\n        "customValues": {}\n      },\n      "command": [],\n      "environment": {\n        "customValues": {}\n      },\n      "materials": [\n        {\n          "hashes": {\n            "sha256": ""\n          },\n          "resourceUri": ""\n        }\n      ],\n      "products": [\n        {}\n      ]\n    }\n  },\n  "kind": "",\n  "name": "",\n  "noteName": "",\n  "remediation": "",\n  "resource": {\n    "contentHash": {\n      "type": "",\n      "value": ""\n    },\n    "name": "",\n    "uri": ""\n  },\n  "sbom": {\n    "createTime": "",\n    "creatorComment": "",\n    "creators": [],\n    "documentComment": "",\n    "externalDocumentRefs": [],\n    "id": "",\n    "licenseListVersion": "",\n    "namespace": "",\n    "title": ""\n  },\n  "sbomReference": {\n    "payload": {\n      "_type": "",\n      "predicate": {\n        "digest": {},\n        "location": "",\n        "mimeType": "",\n        "referrerId": ""\n      },\n      "predicateType": "",\n      "subject": [\n        {\n          "digest": {},\n          "name": ""\n        }\n      ]\n    },\n    "payloadType": "",\n    "signatures": [\n      {}\n    ]\n  },\n  "spdxFile": {\n    "attributions": [],\n    "comment": "",\n    "contributors": [],\n    "copyright": "",\n    "filesLicenseInfo": [],\n    "id": "",\n    "licenseConcluded": {},\n    "notice": ""\n  },\n  "spdxPackage": {\n    "comment": "",\n    "filename": "",\n    "homePage": "",\n    "id": "",\n    "licenseConcluded": {},\n    "packageType": "",\n    "sourceInfo": "",\n    "summaryDescription": "",\n    "title": "",\n    "version": ""\n  },\n  "spdxRelationship": {\n    "comment": "",\n    "source": "",\n    "target": "",\n    "type": ""\n  },\n  "updateTime": "",\n  "vulnerability": {\n    "cvssScore": "",\n    "cvssV2": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "authentication": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssV3": {},\n    "cvssVersion": "",\n    "effectiveSeverity": "",\n    "longDescription": "",\n    "packageIssue": [\n      {\n        "affectedLocation": {\n          "cpeUri": "",\n          "package": "",\n          "version": {}\n        },\n        "effectiveSeverity": "",\n        "fixedLocation": {},\n        "packageType": "",\n        "severityName": ""\n      }\n    ],\n    "relatedUrls": [\n      {\n        "label": "",\n        "url": ""\n      }\n    ],\n    "severity": "",\n    "shortDescription": "",\n    "type": "",\n    "vexAssessment": {\n      "cve": "",\n      "impacts": [],\n      "justification": {\n        "details": "",\n        "justificationType": ""\n      },\n      "noteName": "",\n      "relatedUris": [\n        {}\n      ],\n      "remediations": [\n        {\n          "details": "",\n          "remediationType": "",\n          "remediationUri": {}\n        }\n      ],\n      "state": ""\n    }\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v1beta1/:name',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  attestation: {
    attestation: {
      genericSignedAttestation: {
        contentType: '',
        serializedPayload: '',
        signatures: [{publicKeyId: '', signature: ''}]
      },
      pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
    }
  },
  build: {
    provenance: {
      buildOptions: {},
      builderVersion: '',
      builtArtifacts: [{checksum: '', id: '', names: []}],
      commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
      createTime: '',
      creator: '',
      endTime: '',
      id: '',
      logsUri: '',
      projectId: '',
      sourceProvenance: {
        additionalContexts: [
          {
            cloudRepo: {
              aliasContext: {kind: '', name: ''},
              repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
              revisionId: ''
            },
            gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
            git: {revisionId: '', url: ''},
            labels: {}
          }
        ],
        artifactStorageSourceUri: '',
        context: {},
        fileHashes: {}
      },
      startTime: '',
      triggerId: ''
    },
    provenanceBytes: ''
  },
  createTime: '',
  deployment: {
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    }
  },
  derivedImage: {
    derivedImage: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
      layerInfo: [{arguments: '', directive: ''}]
    }
  },
  discovered: {
    discovered: {
      analysisCompleted: {analysisType: []},
      analysisError: [{code: 0, details: [{}], message: ''}],
      analysisStatus: '',
      analysisStatusError: {},
      continuousAnalysis: '',
      lastAnalysisTime: ''
    }
  },
  envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
  installation: {
    installation: {
      architecture: '',
      cpeUri: '',
      license: {comments: '', expression: ''},
      location: [
        {
          cpeUri: '',
          path: '',
          version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
        }
      ],
      name: '',
      packageType: '',
      version: {}
    }
  },
  intoto: {
    signatures: [{keyid: '', sig: ''}],
    signed: {
      byproducts: {customValues: {}},
      command: [],
      environment: {customValues: {}},
      materials: [{hashes: {sha256: ''}, resourceUri: ''}],
      products: [{}]
    }
  },
  kind: '',
  name: '',
  noteName: '',
  remediation: '',
  resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
  sbom: {
    createTime: '',
    creatorComment: '',
    creators: [],
    documentComment: '',
    externalDocumentRefs: [],
    id: '',
    licenseListVersion: '',
    namespace: '',
    title: ''
  },
  sbomReference: {
    payload: {
      _type: '',
      predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
      predicateType: '',
      subject: [{digest: {}, name: ''}]
    },
    payloadType: '',
    signatures: [{}]
  },
  spdxFile: {
    attributions: [],
    comment: '',
    contributors: [],
    copyright: '',
    filesLicenseInfo: [],
    id: '',
    licenseConcluded: {},
    notice: ''
  },
  spdxPackage: {
    comment: '',
    filename: '',
    homePage: '',
    id: '',
    licenseConcluded: {},
    packageType: '',
    sourceInfo: '',
    summaryDescription: '',
    title: '',
    version: ''
  },
  spdxRelationship: {comment: '', source: '', target: '', type: ''},
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {},
    cvssVersion: '',
    effectiveSeverity: '',
    longDescription: '',
    packageIssue: [
      {
        affectedLocation: {cpeUri: '', package: '', version: {}},
        effectiveSeverity: '',
        fixedLocation: {},
        packageType: '',
        severityName: ''
      }
    ],
    relatedUrls: [{label: '', url: ''}],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {details: '', justificationType: ''},
      noteName: '',
      relatedUris: [{}],
      remediations: [{details: '', remediationType: '', remediationUri: {}}],
      state: ''
    }
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta1/:name',
  headers: {'content-type': 'application/json'},
  body: {
    attestation: {
      attestation: {
        genericSignedAttestation: {
          contentType: '',
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
      }
    },
    build: {
      provenance: {
        buildOptions: {},
        builderVersion: '',
        builtArtifacts: [{checksum: '', id: '', names: []}],
        commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
        createTime: '',
        creator: '',
        endTime: '',
        id: '',
        logsUri: '',
        projectId: '',
        sourceProvenance: {
          additionalContexts: [
            {
              cloudRepo: {
                aliasContext: {kind: '', name: ''},
                repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                revisionId: ''
              },
              gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
              git: {revisionId: '', url: ''},
              labels: {}
            }
          ],
          artifactStorageSourceUri: '',
          context: {},
          fileHashes: {}
        },
        startTime: '',
        triggerId: ''
      },
      provenanceBytes: ''
    },
    createTime: '',
    deployment: {
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      }
    },
    derivedImage: {
      derivedImage: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      }
    },
    discovered: {
      discovered: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        continuousAnalysis: '',
        lastAnalysisTime: ''
      }
    },
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    installation: {
      installation: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      }
    },
    intoto: {
      signatures: [{keyid: '', sig: ''}],
      signed: {
        byproducts: {customValues: {}},
        command: [],
        environment: {customValues: {}},
        materials: [{hashes: {sha256: ''}, resourceUri: ''}],
        products: [{}]
      }
    },
    kind: '',
    name: '',
    noteName: '',
    remediation: '',
    resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
    sbom: {
      createTime: '',
      creatorComment: '',
      creators: [],
      documentComment: '',
      externalDocumentRefs: [],
      id: '',
      licenseListVersion: '',
      namespace: '',
      title: ''
    },
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      payloadType: '',
      signatures: [{}]
    },
    spdxFile: {
      attributions: [],
      comment: '',
      contributors: [],
      copyright: '',
      filesLicenseInfo: [],
      id: '',
      licenseConcluded: {},
      notice: ''
    },
    spdxPackage: {
      comment: '',
      filename: '',
      homePage: '',
      id: '',
      licenseConcluded: {},
      packageType: '',
      sourceInfo: '',
      summaryDescription: '',
      title: '',
      version: ''
    },
    spdxRelationship: {comment: '', source: '', target: '', type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {},
      cvssVersion: '',
      effectiveSeverity: '',
      longDescription: '',
      packageIssue: [
        {
          affectedLocation: {cpeUri: '', package: '', version: {}},
          effectiveSeverity: '',
          fixedLocation: {},
          packageType: '',
          severityName: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: ''
      }
    }
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  attestation: {
    attestation: {
      genericSignedAttestation: {
        contentType: '',
        serializedPayload: '',
        signatures: [
          {
            publicKeyId: '',
            signature: ''
          }
        ]
      },
      pgpSignedAttestation: {
        contentType: '',
        pgpKeyId: '',
        signature: ''
      }
    }
  },
  build: {
    provenance: {
      buildOptions: {},
      builderVersion: '',
      builtArtifacts: [
        {
          checksum: '',
          id: '',
          names: []
        }
      ],
      commands: [
        {
          args: [],
          dir: '',
          env: [],
          id: '',
          name: '',
          waitFor: []
        }
      ],
      createTime: '',
      creator: '',
      endTime: '',
      id: '',
      logsUri: '',
      projectId: '',
      sourceProvenance: {
        additionalContexts: [
          {
            cloudRepo: {
              aliasContext: {
                kind: '',
                name: ''
              },
              repoId: {
                projectRepoId: {
                  projectId: '',
                  repoName: ''
                },
                uid: ''
              },
              revisionId: ''
            },
            gerrit: {
              aliasContext: {},
              gerritProject: '',
              hostUri: '',
              revisionId: ''
            },
            git: {
              revisionId: '',
              url: ''
            },
            labels: {}
          }
        ],
        artifactStorageSourceUri: '',
        context: {},
        fileHashes: {}
      },
      startTime: '',
      triggerId: ''
    },
    provenanceBytes: ''
  },
  createTime: '',
  deployment: {
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    }
  },
  derivedImage: {
    derivedImage: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {
        v1Name: '',
        v2Blob: [],
        v2Name: ''
      },
      layerInfo: [
        {
          arguments: '',
          directive: ''
        }
      ]
    }
  },
  discovered: {
    discovered: {
      analysisCompleted: {
        analysisType: []
      },
      analysisError: [
        {
          code: 0,
          details: [
            {}
          ],
          message: ''
        }
      ],
      analysisStatus: '',
      analysisStatusError: {},
      continuousAnalysis: '',
      lastAnalysisTime: ''
    }
  },
  envelope: {
    payload: '',
    payloadType: '',
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ]
  },
  installation: {
    installation: {
      architecture: '',
      cpeUri: '',
      license: {
        comments: '',
        expression: ''
      },
      location: [
        {
          cpeUri: '',
          path: '',
          version: {
            epoch: 0,
            inclusive: false,
            kind: '',
            name: '',
            revision: ''
          }
        }
      ],
      name: '',
      packageType: '',
      version: {}
    }
  },
  intoto: {
    signatures: [
      {
        keyid: '',
        sig: ''
      }
    ],
    signed: {
      byproducts: {
        customValues: {}
      },
      command: [],
      environment: {
        customValues: {}
      },
      materials: [
        {
          hashes: {
            sha256: ''
          },
          resourceUri: ''
        }
      ],
      products: [
        {}
      ]
    }
  },
  kind: '',
  name: '',
  noteName: '',
  remediation: '',
  resource: {
    contentHash: {
      type: '',
      value: ''
    },
    name: '',
    uri: ''
  },
  sbom: {
    createTime: '',
    creatorComment: '',
    creators: [],
    documentComment: '',
    externalDocumentRefs: [],
    id: '',
    licenseListVersion: '',
    namespace: '',
    title: ''
  },
  sbomReference: {
    payload: {
      _type: '',
      predicate: {
        digest: {},
        location: '',
        mimeType: '',
        referrerId: ''
      },
      predicateType: '',
      subject: [
        {
          digest: {},
          name: ''
        }
      ]
    },
    payloadType: '',
    signatures: [
      {}
    ]
  },
  spdxFile: {
    attributions: [],
    comment: '',
    contributors: [],
    copyright: '',
    filesLicenseInfo: [],
    id: '',
    licenseConcluded: {},
    notice: ''
  },
  spdxPackage: {
    comment: '',
    filename: '',
    homePage: '',
    id: '',
    licenseConcluded: {},
    packageType: '',
    sourceInfo: '',
    summaryDescription: '',
    title: '',
    version: ''
  },
  spdxRelationship: {
    comment: '',
    source: '',
    target: '',
    type: ''
  },
  updateTime: '',
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssV3: {},
    cvssVersion: '',
    effectiveSeverity: '',
    longDescription: '',
    packageIssue: [
      {
        affectedLocation: {
          cpeUri: '',
          package: '',
          version: {}
        },
        effectiveSeverity: '',
        fixedLocation: {},
        packageType: '',
        severityName: ''
      }
    ],
    relatedUrls: [
      {
        label: '',
        url: ''
      }
    ],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      noteName: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      state: ''
    }
  }
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1beta1/:name',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {
      attestation: {
        genericSignedAttestation: {
          contentType: '',
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        pgpSignedAttestation: {contentType: '', pgpKeyId: '', signature: ''}
      }
    },
    build: {
      provenance: {
        buildOptions: {},
        builderVersion: '',
        builtArtifacts: [{checksum: '', id: '', names: []}],
        commands: [{args: [], dir: '', env: [], id: '', name: '', waitFor: []}],
        createTime: '',
        creator: '',
        endTime: '',
        id: '',
        logsUri: '',
        projectId: '',
        sourceProvenance: {
          additionalContexts: [
            {
              cloudRepo: {
                aliasContext: {kind: '', name: ''},
                repoId: {projectRepoId: {projectId: '', repoName: ''}, uid: ''},
                revisionId: ''
              },
              gerrit: {aliasContext: {}, gerritProject: '', hostUri: '', revisionId: ''},
              git: {revisionId: '', url: ''},
              labels: {}
            }
          ],
          artifactStorageSourceUri: '',
          context: {},
          fileHashes: {}
        },
        startTime: '',
        triggerId: ''
      },
      provenanceBytes: ''
    },
    createTime: '',
    deployment: {
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      }
    },
    derivedImage: {
      derivedImage: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      }
    },
    discovered: {
      discovered: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        continuousAnalysis: '',
        lastAnalysisTime: ''
      }
    },
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    installation: {
      installation: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      }
    },
    intoto: {
      signatures: [{keyid: '', sig: ''}],
      signed: {
        byproducts: {customValues: {}},
        command: [],
        environment: {customValues: {}},
        materials: [{hashes: {sha256: ''}, resourceUri: ''}],
        products: [{}]
      }
    },
    kind: '',
    name: '',
    noteName: '',
    remediation: '',
    resource: {contentHash: {type: '', value: ''}, name: '', uri: ''},
    sbom: {
      createTime: '',
      creatorComment: '',
      creators: [],
      documentComment: '',
      externalDocumentRefs: [],
      id: '',
      licenseListVersion: '',
      namespace: '',
      title: ''
    },
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      payloadType: '',
      signatures: [{}]
    },
    spdxFile: {
      attributions: [],
      comment: '',
      contributors: [],
      copyright: '',
      filesLicenseInfo: [],
      id: '',
      licenseConcluded: {},
      notice: ''
    },
    spdxPackage: {
      comment: '',
      filename: '',
      homePage: '',
      id: '',
      licenseConcluded: {},
      packageType: '',
      sourceInfo: '',
      summaryDescription: '',
      title: '',
      version: ''
    },
    spdxRelationship: {comment: '', source: '', target: '', type: ''},
    updateTime: '',
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssV3: {},
      cvssVersion: '',
      effectiveSeverity: '',
      longDescription: '',
      packageIssue: [
        {
          affectedLocation: {cpeUri: '', package: '', version: {}},
          effectiveSeverity: '',
          fixedLocation: {},
          packageType: '',
          severityName: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: ''
      }
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"attestation":{"genericSignedAttestation":{"contentType":"","serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"pgpSignedAttestation":{"contentType":"","pgpKeyId":"","signature":""}}},"build":{"provenance":{"buildOptions":{},"builderVersion":"","builtArtifacts":[{"checksum":"","id":"","names":[]}],"commands":[{"args":[],"dir":"","env":[],"id":"","name":"","waitFor":[]}],"createTime":"","creator":"","endTime":"","id":"","logsUri":"","projectId":"","sourceProvenance":{"additionalContexts":[{"cloudRepo":{"aliasContext":{"kind":"","name":""},"repoId":{"projectRepoId":{"projectId":"","repoName":""},"uid":""},"revisionId":""},"gerrit":{"aliasContext":{},"gerritProject":"","hostUri":"","revisionId":""},"git":{"revisionId":"","url":""},"labels":{}}],"artifactStorageSourceUri":"","context":{},"fileHashes":{}},"startTime":"","triggerId":""},"provenanceBytes":""},"createTime":"","deployment":{"deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""}},"derivedImage":{"derivedImage":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]}},"discovered":{"discovered":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"continuousAnalysis":"","lastAnalysisTime":""}},"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"installation":{"installation":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}}},"intoto":{"signatures":[{"keyid":"","sig":""}],"signed":{"byproducts":{"customValues":{}},"command":[],"environment":{"customValues":{}},"materials":[{"hashes":{"sha256":""},"resourceUri":""}],"products":[{}]}},"kind":"","name":"","noteName":"","remediation":"","resource":{"contentHash":{"type":"","value":""},"name":"","uri":""},"sbom":{"createTime":"","creatorComment":"","creators":[],"documentComment":"","externalDocumentRefs":[],"id":"","licenseListVersion":"","namespace":"","title":""},"sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{"digest":{},"name":""}]},"payloadType":"","signatures":[{}]},"spdxFile":{"attributions":[],"comment":"","contributors":[],"copyright":"","filesLicenseInfo":[],"id":"","licenseConcluded":{},"notice":""},"spdxPackage":{"comment":"","filename":"","homePage":"","id":"","licenseConcluded":{},"packageType":"","sourceInfo":"","summaryDescription":"","title":"","version":""},"spdxRelationship":{"comment":"","source":"","target":"","type":""},"updateTime":"","vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssV3":{},"cvssVersion":"","effectiveSeverity":"","longDescription":"","packageIssue":[{"affectedLocation":{"cpeUri":"","package":"","version":{}},"effectiveSeverity":"","fixedLocation":{},"packageType":"","severityName":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":""}}}'
};

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 = @{ @"attestation": @{ @"attestation": @{ @"genericSignedAttestation": @{ @"contentType": @"", @"serializedPayload": @"", @"signatures": @[ @{ @"publicKeyId": @"", @"signature": @"" } ] }, @"pgpSignedAttestation": @{ @"contentType": @"", @"pgpKeyId": @"", @"signature": @"" } } },
                              @"build": @{ @"provenance": @{ @"buildOptions": @{  }, @"builderVersion": @"", @"builtArtifacts": @[ @{ @"checksum": @"", @"id": @"", @"names": @[  ] } ], @"commands": @[ @{ @"args": @[  ], @"dir": @"", @"env": @[  ], @"id": @"", @"name": @"", @"waitFor": @[  ] } ], @"createTime": @"", @"creator": @"", @"endTime": @"", @"id": @"", @"logsUri": @"", @"projectId": @"", @"sourceProvenance": @{ @"additionalContexts": @[ @{ @"cloudRepo": @{ @"aliasContext": @{ @"kind": @"", @"name": @"" }, @"repoId": @{ @"projectRepoId": @{ @"projectId": @"", @"repoName": @"" }, @"uid": @"" }, @"revisionId": @"" }, @"gerrit": @{ @"aliasContext": @{  }, @"gerritProject": @"", @"hostUri": @"", @"revisionId": @"" }, @"git": @{ @"revisionId": @"", @"url": @"" }, @"labels": @{  } } ], @"artifactStorageSourceUri": @"", @"context": @{  }, @"fileHashes": @{  } }, @"startTime": @"", @"triggerId": @"" }, @"provenanceBytes": @"" },
                              @"createTime": @"",
                              @"deployment": @{ @"deployment": @{ @"address": @"", @"config": @"", @"deployTime": @"", @"platform": @"", @"resourceUri": @[  ], @"undeployTime": @"", @"userEmail": @"" } },
                              @"derivedImage": @{ @"derivedImage": @{ @"baseResourceUrl": @"", @"distance": @0, @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"layerInfo": @[ @{ @"arguments": @"", @"directive": @"" } ] } },
                              @"discovered": @{ @"discovered": @{ @"analysisCompleted": @{ @"analysisType": @[  ] }, @"analysisError": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ], @"analysisStatus": @"", @"analysisStatusError": @{  }, @"continuousAnalysis": @"", @"lastAnalysisTime": @"" } },
                              @"envelope": @{ @"payload": @"", @"payloadType": @"", @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ] },
                              @"installation": @{ @"installation": @{ @"architecture": @"", @"cpeUri": @"", @"license": @{ @"comments": @"", @"expression": @"" }, @"location": @[ @{ @"cpeUri": @"", @"path": @"", @"version": @{ @"epoch": @0, @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" } } ], @"name": @"", @"packageType": @"", @"version": @{  } } },
                              @"intoto": @{ @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ], @"signed": @{ @"byproducts": @{ @"customValues": @{  } }, @"command": @[  ], @"environment": @{ @"customValues": @{  } }, @"materials": @[ @{ @"hashes": @{ @"sha256": @"" }, @"resourceUri": @"" } ], @"products": @[ @{  } ] } },
                              @"kind": @"",
                              @"name": @"",
                              @"noteName": @"",
                              @"remediation": @"",
                              @"resource": @{ @"contentHash": @{ @"type": @"", @"value": @"" }, @"name": @"", @"uri": @"" },
                              @"sbom": @{ @"createTime": @"", @"creatorComment": @"", @"creators": @[  ], @"documentComment": @"", @"externalDocumentRefs": @[  ], @"id": @"", @"licenseListVersion": @"", @"namespace": @"", @"title": @"" },
                              @"sbomReference": @{ @"payload": @{ @"_type": @"", @"predicate": @{ @"digest": @{  }, @"location": @"", @"mimeType": @"", @"referrerId": @"" }, @"predicateType": @"", @"subject": @[ @{ @"digest": @{  }, @"name": @"" } ] }, @"payloadType": @"", @"signatures": @[ @{  } ] },
                              @"spdxFile": @{ @"attributions": @[  ], @"comment": @"", @"contributors": @[  ], @"copyright": @"", @"filesLicenseInfo": @[  ], @"id": @"", @"licenseConcluded": @{  }, @"notice": @"" },
                              @"spdxPackage": @{ @"comment": @"", @"filename": @"", @"homePage": @"", @"id": @"", @"licenseConcluded": @{  }, @"packageType": @"", @"sourceInfo": @"", @"summaryDescription": @"", @"title": @"", @"version": @"" },
                              @"spdxRelationship": @{ @"comment": @"", @"source": @"", @"target": @"", @"type": @"" },
                              @"updateTime": @"",
                              @"vulnerability": @{ @"cvssScore": @"", @"cvssV2": @{ @"attackComplexity": @"", @"attackVector": @"", @"authentication": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssV3": @{  }, @"cvssVersion": @"", @"effectiveSeverity": @"", @"longDescription": @"", @"packageIssue": @[ @{ @"affectedLocation": @{ @"cpeUri": @"", @"package": @"", @"version": @{  } }, @"effectiveSeverity": @"", @"fixedLocation": @{  }, @"packageType": @"", @"severityName": @"" } ], @"relatedUrls": @[ @{ @"label": @"", @"url": @"" } ], @"severity": @"", @"shortDescription": @"", @"type": @"", @"vexAssessment": @{ @"cve": @"", @"impacts": @[  ], @"justification": @{ @"details": @"", @"justificationType": @"" }, @"noteName": @"", @"relatedUris": @[ @{  } ], @"remediations": @[ @{ @"details": @"", @"remediationType": @"", @"remediationUri": @{  } } ], @"state": @"" } } };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v1beta1/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'attestation' => [
        'attestation' => [
                'genericSignedAttestation' => [
                                'contentType' => '',
                                'serializedPayload' => '',
                                'signatures' => [
                                                                [
                                                                                                                                'publicKeyId' => '',
                                                                                                                                'signature' => ''
                                                                ]
                                ]
                ],
                'pgpSignedAttestation' => [
                                'contentType' => '',
                                'pgpKeyId' => '',
                                'signature' => ''
                ]
        ]
    ],
    'build' => [
        'provenance' => [
                'buildOptions' => [
                                
                ],
                'builderVersion' => '',
                'builtArtifacts' => [
                                [
                                                                'checksum' => '',
                                                                'id' => '',
                                                                'names' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'commands' => [
                                [
                                                                'args' => [
                                                                                                                                
                                                                ],
                                                                'dir' => '',
                                                                'env' => [
                                                                                                                                
                                                                ],
                                                                'id' => '',
                                                                'name' => '',
                                                                'waitFor' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'createTime' => '',
                'creator' => '',
                'endTime' => '',
                'id' => '',
                'logsUri' => '',
                'projectId' => '',
                'sourceProvenance' => [
                                'additionalContexts' => [
                                                                [
                                                                                                                                'cloudRepo' => [
                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                ],
                                                                                                                                'gerrit' => [
                                                                                                                                                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'gerritProject' => '',
                                                                                                                                                                                                                                                                'hostUri' => '',
                                                                                                                                                                                                                                                                'revisionId' => ''
                                                                                                                                ],
                                                                                                                                'git' => [
                                                                                                                                                                                                                                                                'revisionId' => '',
                                                                                                                                                                                                                                                                'url' => ''
                                                                                                                                ],
                                                                                                                                'labels' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'artifactStorageSourceUri' => '',
                                'context' => [
                                                                
                                ],
                                'fileHashes' => [
                                                                
                                ]
                ],
                'startTime' => '',
                'triggerId' => ''
        ],
        'provenanceBytes' => ''
    ],
    'createTime' => '',
    'deployment' => [
        'deployment' => [
                'address' => '',
                'config' => '',
                'deployTime' => '',
                'platform' => '',
                'resourceUri' => [
                                
                ],
                'undeployTime' => '',
                'userEmail' => ''
        ]
    ],
    'derivedImage' => [
        'derivedImage' => [
                'baseResourceUrl' => '',
                'distance' => 0,
                'fingerprint' => [
                                'v1Name' => '',
                                'v2Blob' => [
                                                                
                                ],
                                'v2Name' => ''
                ],
                'layerInfo' => [
                                [
                                                                'arguments' => '',
                                                                'directive' => ''
                                ]
                ]
        ]
    ],
    'discovered' => [
        'discovered' => [
                'analysisCompleted' => [
                                'analysisType' => [
                                                                
                                ]
                ],
                'analysisError' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ],
                'analysisStatus' => '',
                'analysisStatusError' => [
                                
                ],
                'continuousAnalysis' => '',
                'lastAnalysisTime' => ''
        ]
    ],
    'envelope' => [
        'payload' => '',
        'payloadType' => '',
        'signatures' => [
                [
                                'keyid' => '',
                                'sig' => ''
                ]
        ]
    ],
    'installation' => [
        'installation' => [
                'architecture' => '',
                'cpeUri' => '',
                'license' => [
                                'comments' => '',
                                'expression' => ''
                ],
                'location' => [
                                [
                                                                'cpeUri' => '',
                                                                'path' => '',
                                                                'version' => [
                                                                                                                                'epoch' => 0,
                                                                                                                                'inclusive' => null,
                                                                                                                                'kind' => '',
                                                                                                                                'name' => '',
                                                                                                                                'revision' => ''
                                                                ]
                                ]
                ],
                'name' => '',
                'packageType' => '',
                'version' => [
                                
                ]
        ]
    ],
    'intoto' => [
        'signatures' => [
                [
                                'keyid' => '',
                                'sig' => ''
                ]
        ],
        'signed' => [
                'byproducts' => [
                                'customValues' => [
                                                                
                                ]
                ],
                'command' => [
                                
                ],
                'environment' => [
                                'customValues' => [
                                                                
                                ]
                ],
                'materials' => [
                                [
                                                                'hashes' => [
                                                                                                                                'sha256' => ''
                                                                ],
                                                                'resourceUri' => ''
                                ]
                ],
                'products' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'kind' => '',
    'name' => '',
    'noteName' => '',
    'remediation' => '',
    'resource' => [
        'contentHash' => [
                'type' => '',
                'value' => ''
        ],
        'name' => '',
        'uri' => ''
    ],
    'sbom' => [
        'createTime' => '',
        'creatorComment' => '',
        'creators' => [
                
        ],
        'documentComment' => '',
        'externalDocumentRefs' => [
                
        ],
        'id' => '',
        'licenseListVersion' => '',
        'namespace' => '',
        'title' => ''
    ],
    'sbomReference' => [
        'payload' => [
                '_type' => '',
                'predicate' => [
                                'digest' => [
                                                                
                                ],
                                'location' => '',
                                'mimeType' => '',
                                'referrerId' => ''
                ],
                'predicateType' => '',
                'subject' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'name' => ''
                                ]
                ]
        ],
        'payloadType' => '',
        'signatures' => [
                [
                                
                ]
        ]
    ],
    'spdxFile' => [
        'attributions' => [
                
        ],
        'comment' => '',
        'contributors' => [
                
        ],
        'copyright' => '',
        'filesLicenseInfo' => [
                
        ],
        'id' => '',
        'licenseConcluded' => [
                
        ],
        'notice' => ''
    ],
    'spdxPackage' => [
        'comment' => '',
        'filename' => '',
        'homePage' => '',
        'id' => '',
        'licenseConcluded' => [
                
        ],
        'packageType' => '',
        'sourceInfo' => '',
        'summaryDescription' => '',
        'title' => '',
        'version' => ''
    ],
    'spdxRelationship' => [
        'comment' => '',
        'source' => '',
        'target' => '',
        'type' => ''
    ],
    'updateTime' => '',
    'vulnerability' => [
        'cvssScore' => '',
        'cvssV2' => [
                'attackComplexity' => '',
                'attackVector' => '',
                'authentication' => '',
                'availabilityImpact' => '',
                'baseScore' => '',
                'confidentialityImpact' => '',
                'exploitabilityScore' => '',
                'impactScore' => '',
                'integrityImpact' => '',
                'privilegesRequired' => '',
                'scope' => '',
                'userInteraction' => ''
        ],
        'cvssV3' => [
                
        ],
        'cvssVersion' => '',
        'effectiveSeverity' => '',
        'longDescription' => '',
        'packageIssue' => [
                [
                                'affectedLocation' => [
                                                                'cpeUri' => '',
                                                                'package' => '',
                                                                'version' => [
                                                                                                                                
                                                                ]
                                ],
                                'effectiveSeverity' => '',
                                'fixedLocation' => [
                                                                
                                ],
                                'packageType' => '',
                                'severityName' => ''
                ]
        ],
        'relatedUrls' => [
                [
                                'label' => '',
                                'url' => ''
                ]
        ],
        'severity' => '',
        'shortDescription' => '',
        'type' => '',
        'vexAssessment' => [
                'cve' => '',
                'impacts' => [
                                
                ],
                'justification' => [
                                'details' => '',
                                'justificationType' => ''
                ],
                'noteName' => '',
                'relatedUris' => [
                                [
                                                                
                                ]
                ],
                'remediations' => [
                                [
                                                                'details' => '',
                                                                'remediationType' => '',
                                                                'remediationUri' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'state' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/v1beta1/:name', [
  'body' => '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attestation' => [
    'attestation' => [
        'genericSignedAttestation' => [
                'contentType' => '',
                'serializedPayload' => '',
                'signatures' => [
                                [
                                                                'publicKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'pgpSignedAttestation' => [
                'contentType' => '',
                'pgpKeyId' => '',
                'signature' => ''
        ]
    ]
  ],
  'build' => [
    'provenance' => [
        'buildOptions' => [
                
        ],
        'builderVersion' => '',
        'builtArtifacts' => [
                [
                                'checksum' => '',
                                'id' => '',
                                'names' => [
                                                                
                                ]
                ]
        ],
        'commands' => [
                [
                                'args' => [
                                                                
                                ],
                                'dir' => '',
                                'env' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'waitFor' => [
                                                                
                                ]
                ]
        ],
        'createTime' => '',
        'creator' => '',
        'endTime' => '',
        'id' => '',
        'logsUri' => '',
        'projectId' => '',
        'sourceProvenance' => [
                'additionalContexts' => [
                                [
                                                                'cloudRepo' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ],
                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                ],
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'gerrit' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'gerritProject' => '',
                                                                                                                                'hostUri' => '',
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'git' => [
                                                                                                                                'revisionId' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'labels' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'artifactStorageSourceUri' => '',
                'context' => [
                                
                ],
                'fileHashes' => [
                                
                ]
        ],
        'startTime' => '',
        'triggerId' => ''
    ],
    'provenanceBytes' => ''
  ],
  'createTime' => '',
  'deployment' => [
    'deployment' => [
        'address' => '',
        'config' => '',
        'deployTime' => '',
        'platform' => '',
        'resourceUri' => [
                
        ],
        'undeployTime' => '',
        'userEmail' => ''
    ]
  ],
  'derivedImage' => [
    'derivedImage' => [
        'baseResourceUrl' => '',
        'distance' => 0,
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'layerInfo' => [
                [
                                'arguments' => '',
                                'directive' => ''
                ]
        ]
    ]
  ],
  'discovered' => [
    'discovered' => [
        'analysisCompleted' => [
                'analysisType' => [
                                
                ]
        ],
        'analysisError' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ],
        'analysisStatus' => '',
        'analysisStatusError' => [
                
        ],
        'continuousAnalysis' => '',
        'lastAnalysisTime' => ''
    ]
  ],
  'envelope' => [
    'payload' => '',
    'payloadType' => '',
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ]
  ],
  'installation' => [
    'installation' => [
        'architecture' => '',
        'cpeUri' => '',
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'location' => [
                [
                                'cpeUri' => '',
                                'path' => '',
                                'version' => [
                                                                'epoch' => 0,
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ]
                ]
        ],
        'name' => '',
        'packageType' => '',
        'version' => [
                
        ]
    ]
  ],
  'intoto' => [
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ],
    'signed' => [
        'byproducts' => [
                'customValues' => [
                                
                ]
        ],
        'command' => [
                
        ],
        'environment' => [
                'customValues' => [
                                
                ]
        ],
        'materials' => [
                [
                                'hashes' => [
                                                                'sha256' => ''
                                ],
                                'resourceUri' => ''
                ]
        ],
        'products' => [
                [
                                
                ]
        ]
    ]
  ],
  'kind' => '',
  'name' => '',
  'noteName' => '',
  'remediation' => '',
  'resource' => [
    'contentHash' => [
        'type' => '',
        'value' => ''
    ],
    'name' => '',
    'uri' => ''
  ],
  'sbom' => [
    'createTime' => '',
    'creatorComment' => '',
    'creators' => [
        
    ],
    'documentComment' => '',
    'externalDocumentRefs' => [
        
    ],
    'id' => '',
    'licenseListVersion' => '',
    'namespace' => '',
    'title' => ''
  ],
  'sbomReference' => [
    'payload' => [
        '_type' => '',
        'predicate' => [
                'digest' => [
                                
                ],
                'location' => '',
                'mimeType' => '',
                'referrerId' => ''
        ],
        'predicateType' => '',
        'subject' => [
                [
                                'digest' => [
                                                                
                                ],
                                'name' => ''
                ]
        ]
    ],
    'payloadType' => '',
    'signatures' => [
        [
                
        ]
    ]
  ],
  'spdxFile' => [
    'attributions' => [
        
    ],
    'comment' => '',
    'contributors' => [
        
    ],
    'copyright' => '',
    'filesLicenseInfo' => [
        
    ],
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'notice' => ''
  ],
  'spdxPackage' => [
    'comment' => '',
    'filename' => '',
    'homePage' => '',
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'packageType' => '',
    'sourceInfo' => '',
    'summaryDescription' => '',
    'title' => '',
    'version' => ''
  ],
  'spdxRelationship' => [
    'comment' => '',
    'source' => '',
    'target' => '',
    'type' => ''
  ],
  'updateTime' => '',
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssV3' => [
        
    ],
    'cvssVersion' => '',
    'effectiveSeverity' => '',
    'longDescription' => '',
    'packageIssue' => [
        [
                'affectedLocation' => [
                                'cpeUri' => '',
                                'package' => '',
                                'version' => [
                                                                
                                ]
                ],
                'effectiveSeverity' => '',
                'fixedLocation' => [
                                
                ],
                'packageType' => '',
                'severityName' => ''
        ]
    ],
    'relatedUrls' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'severity' => '',
    'shortDescription' => '',
    'type' => '',
    'vexAssessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'noteName' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'state' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attestation' => [
    'attestation' => [
        'genericSignedAttestation' => [
                'contentType' => '',
                'serializedPayload' => '',
                'signatures' => [
                                [
                                                                'publicKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'pgpSignedAttestation' => [
                'contentType' => '',
                'pgpKeyId' => '',
                'signature' => ''
        ]
    ]
  ],
  'build' => [
    'provenance' => [
        'buildOptions' => [
                
        ],
        'builderVersion' => '',
        'builtArtifacts' => [
                [
                                'checksum' => '',
                                'id' => '',
                                'names' => [
                                                                
                                ]
                ]
        ],
        'commands' => [
                [
                                'args' => [
                                                                
                                ],
                                'dir' => '',
                                'env' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'waitFor' => [
                                                                
                                ]
                ]
        ],
        'createTime' => '',
        'creator' => '',
        'endTime' => '',
        'id' => '',
        'logsUri' => '',
        'projectId' => '',
        'sourceProvenance' => [
                'additionalContexts' => [
                                [
                                                                'cloudRepo' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ],
                                                                                                                                'repoId' => [
                                                                                                                                                                                                                                                                'projectRepoId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'projectId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repoName' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uid' => ''
                                                                                                                                ],
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'gerrit' => [
                                                                                                                                'aliasContext' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'gerritProject' => '',
                                                                                                                                'hostUri' => '',
                                                                                                                                'revisionId' => ''
                                                                ],
                                                                'git' => [
                                                                                                                                'revisionId' => '',
                                                                                                                                'url' => ''
                                                                ],
                                                                'labels' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'artifactStorageSourceUri' => '',
                'context' => [
                                
                ],
                'fileHashes' => [
                                
                ]
        ],
        'startTime' => '',
        'triggerId' => ''
    ],
    'provenanceBytes' => ''
  ],
  'createTime' => '',
  'deployment' => [
    'deployment' => [
        'address' => '',
        'config' => '',
        'deployTime' => '',
        'platform' => '',
        'resourceUri' => [
                
        ],
        'undeployTime' => '',
        'userEmail' => ''
    ]
  ],
  'derivedImage' => [
    'derivedImage' => [
        'baseResourceUrl' => '',
        'distance' => 0,
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'layerInfo' => [
                [
                                'arguments' => '',
                                'directive' => ''
                ]
        ]
    ]
  ],
  'discovered' => [
    'discovered' => [
        'analysisCompleted' => [
                'analysisType' => [
                                
                ]
        ],
        'analysisError' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ],
        'analysisStatus' => '',
        'analysisStatusError' => [
                
        ],
        'continuousAnalysis' => '',
        'lastAnalysisTime' => ''
    ]
  ],
  'envelope' => [
    'payload' => '',
    'payloadType' => '',
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ]
  ],
  'installation' => [
    'installation' => [
        'architecture' => '',
        'cpeUri' => '',
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'location' => [
                [
                                'cpeUri' => '',
                                'path' => '',
                                'version' => [
                                                                'epoch' => 0,
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ]
                ]
        ],
        'name' => '',
        'packageType' => '',
        'version' => [
                
        ]
    ]
  ],
  'intoto' => [
    'signatures' => [
        [
                'keyid' => '',
                'sig' => ''
        ]
    ],
    'signed' => [
        'byproducts' => [
                'customValues' => [
                                
                ]
        ],
        'command' => [
                
        ],
        'environment' => [
                'customValues' => [
                                
                ]
        ],
        'materials' => [
                [
                                'hashes' => [
                                                                'sha256' => ''
                                ],
                                'resourceUri' => ''
                ]
        ],
        'products' => [
                [
                                
                ]
        ]
    ]
  ],
  'kind' => '',
  'name' => '',
  'noteName' => '',
  'remediation' => '',
  'resource' => [
    'contentHash' => [
        'type' => '',
        'value' => ''
    ],
    'name' => '',
    'uri' => ''
  ],
  'sbom' => [
    'createTime' => '',
    'creatorComment' => '',
    'creators' => [
        
    ],
    'documentComment' => '',
    'externalDocumentRefs' => [
        
    ],
    'id' => '',
    'licenseListVersion' => '',
    'namespace' => '',
    'title' => ''
  ],
  'sbomReference' => [
    'payload' => [
        '_type' => '',
        'predicate' => [
                'digest' => [
                                
                ],
                'location' => '',
                'mimeType' => '',
                'referrerId' => ''
        ],
        'predicateType' => '',
        'subject' => [
                [
                                'digest' => [
                                                                
                                ],
                                'name' => ''
                ]
        ]
    ],
    'payloadType' => '',
    'signatures' => [
        [
                
        ]
    ]
  ],
  'spdxFile' => [
    'attributions' => [
        
    ],
    'comment' => '',
    'contributors' => [
        
    ],
    'copyright' => '',
    'filesLicenseInfo' => [
        
    ],
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'notice' => ''
  ],
  'spdxPackage' => [
    'comment' => '',
    'filename' => '',
    'homePage' => '',
    'id' => '',
    'licenseConcluded' => [
        
    ],
    'packageType' => '',
    'sourceInfo' => '',
    'summaryDescription' => '',
    'title' => '',
    'version' => ''
  ],
  'spdxRelationship' => [
    'comment' => '',
    'source' => '',
    'target' => '',
    'type' => ''
  ],
  'updateTime' => '',
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssV3' => [
        
    ],
    'cvssVersion' => '',
    'effectiveSeverity' => '',
    'longDescription' => '',
    'packageIssue' => [
        [
                'affectedLocation' => [
                                'cpeUri' => '',
                                'package' => '',
                                'version' => [
                                                                
                                ]
                ],
                'effectiveSeverity' => '',
                'fixedLocation' => [
                                
                ],
                'packageType' => '',
                'severityName' => ''
        ]
    ],
    'relatedUrls' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'severity' => '',
    'shortDescription' => '',
    'type' => '',
    'vexAssessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'noteName' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'state' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1beta1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

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

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

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

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

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

payload = {
    "attestation": { "attestation": {
            "genericSignedAttestation": {
                "contentType": "",
                "serializedPayload": "",
                "signatures": [
                    {
                        "publicKeyId": "",
                        "signature": ""
                    }
                ]
            },
            "pgpSignedAttestation": {
                "contentType": "",
                "pgpKeyId": "",
                "signature": ""
            }
        } },
    "build": {
        "provenance": {
            "buildOptions": {},
            "builderVersion": "",
            "builtArtifacts": [
                {
                    "checksum": "",
                    "id": "",
                    "names": []
                }
            ],
            "commands": [
                {
                    "args": [],
                    "dir": "",
                    "env": [],
                    "id": "",
                    "name": "",
                    "waitFor": []
                }
            ],
            "createTime": "",
            "creator": "",
            "endTime": "",
            "id": "",
            "logsUri": "",
            "projectId": "",
            "sourceProvenance": {
                "additionalContexts": [
                    {
                        "cloudRepo": {
                            "aliasContext": {
                                "kind": "",
                                "name": ""
                            },
                            "repoId": {
                                "projectRepoId": {
                                    "projectId": "",
                                    "repoName": ""
                                },
                                "uid": ""
                            },
                            "revisionId": ""
                        },
                        "gerrit": {
                            "aliasContext": {},
                            "gerritProject": "",
                            "hostUri": "",
                            "revisionId": ""
                        },
                        "git": {
                            "revisionId": "",
                            "url": ""
                        },
                        "labels": {}
                    }
                ],
                "artifactStorageSourceUri": "",
                "context": {},
                "fileHashes": {}
            },
            "startTime": "",
            "triggerId": ""
        },
        "provenanceBytes": ""
    },
    "createTime": "",
    "deployment": { "deployment": {
            "address": "",
            "config": "",
            "deployTime": "",
            "platform": "",
            "resourceUri": [],
            "undeployTime": "",
            "userEmail": ""
        } },
    "derivedImage": { "derivedImage": {
            "baseResourceUrl": "",
            "distance": 0,
            "fingerprint": {
                "v1Name": "",
                "v2Blob": [],
                "v2Name": ""
            },
            "layerInfo": [
                {
                    "arguments": "",
                    "directive": ""
                }
            ]
        } },
    "discovered": { "discovered": {
            "analysisCompleted": { "analysisType": [] },
            "analysisError": [
                {
                    "code": 0,
                    "details": [{}],
                    "message": ""
                }
            ],
            "analysisStatus": "",
            "analysisStatusError": {},
            "continuousAnalysis": "",
            "lastAnalysisTime": ""
        } },
    "envelope": {
        "payload": "",
        "payloadType": "",
        "signatures": [
            {
                "keyid": "",
                "sig": ""
            }
        ]
    },
    "installation": { "installation": {
            "architecture": "",
            "cpeUri": "",
            "license": {
                "comments": "",
                "expression": ""
            },
            "location": [
                {
                    "cpeUri": "",
                    "path": "",
                    "version": {
                        "epoch": 0,
                        "inclusive": False,
                        "kind": "",
                        "name": "",
                        "revision": ""
                    }
                }
            ],
            "name": "",
            "packageType": "",
            "version": {}
        } },
    "intoto": {
        "signatures": [
            {
                "keyid": "",
                "sig": ""
            }
        ],
        "signed": {
            "byproducts": { "customValues": {} },
            "command": [],
            "environment": { "customValues": {} },
            "materials": [
                {
                    "hashes": { "sha256": "" },
                    "resourceUri": ""
                }
            ],
            "products": [{}]
        }
    },
    "kind": "",
    "name": "",
    "noteName": "",
    "remediation": "",
    "resource": {
        "contentHash": {
            "type": "",
            "value": ""
        },
        "name": "",
        "uri": ""
    },
    "sbom": {
        "createTime": "",
        "creatorComment": "",
        "creators": [],
        "documentComment": "",
        "externalDocumentRefs": [],
        "id": "",
        "licenseListVersion": "",
        "namespace": "",
        "title": ""
    },
    "sbomReference": {
        "payload": {
            "_type": "",
            "predicate": {
                "digest": {},
                "location": "",
                "mimeType": "",
                "referrerId": ""
            },
            "predicateType": "",
            "subject": [
                {
                    "digest": {},
                    "name": ""
                }
            ]
        },
        "payloadType": "",
        "signatures": [{}]
    },
    "spdxFile": {
        "attributions": [],
        "comment": "",
        "contributors": [],
        "copyright": "",
        "filesLicenseInfo": [],
        "id": "",
        "licenseConcluded": {},
        "notice": ""
    },
    "spdxPackage": {
        "comment": "",
        "filename": "",
        "homePage": "",
        "id": "",
        "licenseConcluded": {},
        "packageType": "",
        "sourceInfo": "",
        "summaryDescription": "",
        "title": "",
        "version": ""
    },
    "spdxRelationship": {
        "comment": "",
        "source": "",
        "target": "",
        "type": ""
    },
    "updateTime": "",
    "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
            "attackComplexity": "",
            "attackVector": "",
            "authentication": "",
            "availabilityImpact": "",
            "baseScore": "",
            "confidentialityImpact": "",
            "exploitabilityScore": "",
            "impactScore": "",
            "integrityImpact": "",
            "privilegesRequired": "",
            "scope": "",
            "userInteraction": ""
        },
        "cvssV3": {},
        "cvssVersion": "",
        "effectiveSeverity": "",
        "longDescription": "",
        "packageIssue": [
            {
                "affectedLocation": {
                    "cpeUri": "",
                    "package": "",
                    "version": {}
                },
                "effectiveSeverity": "",
                "fixedLocation": {},
                "packageType": "",
                "severityName": ""
            }
        ],
        "relatedUrls": [
            {
                "label": "",
                "url": ""
            }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
            "cve": "",
            "impacts": [],
            "justification": {
                "details": "",
                "justificationType": ""
            },
            "noteName": "",
            "relatedUris": [{}],
            "remediations": [
                {
                    "details": "",
                    "remediationType": "",
                    "remediationUri": {}
                }
            ],
            "state": ""
        }
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"

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

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

response = conn.patch('/baseUrl/v1beta1/:name') do |req|
  req.body = "{\n  \"attestation\": {\n    \"attestation\": {\n      \"genericSignedAttestation\": {\n        \"contentType\": \"\",\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"pgpSignedAttestation\": {\n        \"contentType\": \"\",\n        \"pgpKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    }\n  },\n  \"build\": {\n    \"provenance\": {\n      \"buildOptions\": {},\n      \"builderVersion\": \"\",\n      \"builtArtifacts\": [\n        {\n          \"checksum\": \"\",\n          \"id\": \"\",\n          \"names\": []\n        }\n      ],\n      \"commands\": [\n        {\n          \"args\": [],\n          \"dir\": \"\",\n          \"env\": [],\n          \"id\": \"\",\n          \"name\": \"\",\n          \"waitFor\": []\n        }\n      ],\n      \"createTime\": \"\",\n      \"creator\": \"\",\n      \"endTime\": \"\",\n      \"id\": \"\",\n      \"logsUri\": \"\",\n      \"projectId\": \"\",\n      \"sourceProvenance\": {\n        \"additionalContexts\": [\n          {\n            \"cloudRepo\": {\n              \"aliasContext\": {\n                \"kind\": \"\",\n                \"name\": \"\"\n              },\n              \"repoId\": {\n                \"projectRepoId\": {\n                  \"projectId\": \"\",\n                  \"repoName\": \"\"\n                },\n                \"uid\": \"\"\n              },\n              \"revisionId\": \"\"\n            },\n            \"gerrit\": {\n              \"aliasContext\": {},\n              \"gerritProject\": \"\",\n              \"hostUri\": \"\",\n              \"revisionId\": \"\"\n            },\n            \"git\": {\n              \"revisionId\": \"\",\n              \"url\": \"\"\n            },\n            \"labels\": {}\n          }\n        ],\n        \"artifactStorageSourceUri\": \"\",\n        \"context\": {},\n        \"fileHashes\": {}\n      },\n      \"startTime\": \"\",\n      \"triggerId\": \"\"\n    },\n    \"provenanceBytes\": \"\"\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"deployment\": {\n      \"address\": \"\",\n      \"config\": \"\",\n      \"deployTime\": \"\",\n      \"platform\": \"\",\n      \"resourceUri\": [],\n      \"undeployTime\": \"\",\n      \"userEmail\": \"\"\n    }\n  },\n  \"derivedImage\": {\n    \"derivedImage\": {\n      \"baseResourceUrl\": \"\",\n      \"distance\": 0,\n      \"fingerprint\": {\n        \"v1Name\": \"\",\n        \"v2Blob\": [],\n        \"v2Name\": \"\"\n      },\n      \"layerInfo\": [\n        {\n          \"arguments\": \"\",\n          \"directive\": \"\"\n        }\n      ]\n    }\n  },\n  \"discovered\": {\n    \"discovered\": {\n      \"analysisCompleted\": {\n        \"analysisType\": []\n      },\n      \"analysisError\": [\n        {\n          \"code\": 0,\n          \"details\": [\n            {}\n          ],\n          \"message\": \"\"\n        }\n      ],\n      \"analysisStatus\": \"\",\n      \"analysisStatusError\": {},\n      \"continuousAnalysis\": \"\",\n      \"lastAnalysisTime\": \"\"\n    }\n  },\n  \"envelope\": {\n    \"payload\": \"\",\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ]\n  },\n  \"installation\": {\n    \"installation\": {\n      \"architecture\": \"\",\n      \"cpeUri\": \"\",\n      \"license\": {\n        \"comments\": \"\",\n        \"expression\": \"\"\n      },\n      \"location\": [\n        {\n          \"cpeUri\": \"\",\n          \"path\": \"\",\n          \"version\": {\n            \"epoch\": 0,\n            \"inclusive\": false,\n            \"kind\": \"\",\n            \"name\": \"\",\n            \"revision\": \"\"\n          }\n        }\n      ],\n      \"name\": \"\",\n      \"packageType\": \"\",\n      \"version\": {}\n    }\n  },\n  \"intoto\": {\n    \"signatures\": [\n      {\n        \"keyid\": \"\",\n        \"sig\": \"\"\n      }\n    ],\n    \"signed\": {\n      \"byproducts\": {\n        \"customValues\": {}\n      },\n      \"command\": [],\n      \"environment\": {\n        \"customValues\": {}\n      },\n      \"materials\": [\n        {\n          \"hashes\": {\n            \"sha256\": \"\"\n          },\n          \"resourceUri\": \"\"\n        }\n      ],\n      \"products\": [\n        {}\n      ]\n    }\n  },\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"remediation\": \"\",\n  \"resource\": {\n    \"contentHash\": {\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"name\": \"\",\n    \"uri\": \"\"\n  },\n  \"sbom\": {\n    \"createTime\": \"\",\n    \"creatorComment\": \"\",\n    \"creators\": [],\n    \"documentComment\": \"\",\n    \"externalDocumentRefs\": [],\n    \"id\": \"\",\n    \"licenseListVersion\": \"\",\n    \"namespace\": \"\",\n    \"title\": \"\"\n  },\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"spdxFile\": {\n    \"attributions\": [],\n    \"comment\": \"\",\n    \"contributors\": [],\n    \"copyright\": \"\",\n    \"filesLicenseInfo\": [],\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"notice\": \"\"\n  },\n  \"spdxPackage\": {\n    \"comment\": \"\",\n    \"filename\": \"\",\n    \"homePage\": \"\",\n    \"id\": \"\",\n    \"licenseConcluded\": {},\n    \"packageType\": \"\",\n    \"sourceInfo\": \"\",\n    \"summaryDescription\": \"\",\n    \"title\": \"\",\n    \"version\": \"\"\n  },\n  \"spdxRelationship\": {\n    \"comment\": \"\",\n    \"source\": \"\",\n    \"target\": \"\",\n    \"type\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vulnerability\": {\n    \"cvssScore\": \"\",\n    \"cvssV2\": {\n      \"attackComplexity\": \"\",\n      \"attackVector\": \"\",\n      \"authentication\": \"\",\n      \"availabilityImpact\": \"\",\n      \"baseScore\": \"\",\n      \"confidentialityImpact\": \"\",\n      \"exploitabilityScore\": \"\",\n      \"impactScore\": \"\",\n      \"integrityImpact\": \"\",\n      \"privilegesRequired\": \"\",\n      \"scope\": \"\",\n      \"userInteraction\": \"\"\n    },\n    \"cvssV3\": {},\n    \"cvssVersion\": \"\",\n    \"effectiveSeverity\": \"\",\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedLocation\": {\n          \"cpeUri\": \"\",\n          \"package\": \"\",\n          \"version\": {}\n        },\n        \"effectiveSeverity\": \"\",\n        \"fixedLocation\": {},\n        \"packageType\": \"\",\n        \"severityName\": \"\"\n      }\n    ],\n    \"relatedUrls\": [\n      {\n        \"label\": \"\",\n        \"url\": \"\"\n      }\n    ],\n    \"severity\": \"\",\n    \"shortDescription\": \"\",\n    \"type\": \"\",\n    \"vexAssessment\": {\n      \"cve\": \"\",\n      \"impacts\": [],\n      \"justification\": {\n        \"details\": \"\",\n        \"justificationType\": \"\"\n      },\n      \"noteName\": \"\",\n      \"relatedUris\": [\n        {}\n      ],\n      \"remediations\": [\n        {\n          \"details\": \"\",\n          \"remediationType\": \"\",\n          \"remediationUri\": {}\n        }\n      ],\n      \"state\": \"\"\n    }\n  }\n}"
end

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

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

    let payload = json!({
        "attestation": json!({"attestation": json!({
                "genericSignedAttestation": json!({
                    "contentType": "",
                    "serializedPayload": "",
                    "signatures": (
                        json!({
                            "publicKeyId": "",
                            "signature": ""
                        })
                    )
                }),
                "pgpSignedAttestation": json!({
                    "contentType": "",
                    "pgpKeyId": "",
                    "signature": ""
                })
            })}),
        "build": json!({
            "provenance": json!({
                "buildOptions": json!({}),
                "builderVersion": "",
                "builtArtifacts": (
                    json!({
                        "checksum": "",
                        "id": "",
                        "names": ()
                    })
                ),
                "commands": (
                    json!({
                        "args": (),
                        "dir": "",
                        "env": (),
                        "id": "",
                        "name": "",
                        "waitFor": ()
                    })
                ),
                "createTime": "",
                "creator": "",
                "endTime": "",
                "id": "",
                "logsUri": "",
                "projectId": "",
                "sourceProvenance": json!({
                    "additionalContexts": (
                        json!({
                            "cloudRepo": json!({
                                "aliasContext": json!({
                                    "kind": "",
                                    "name": ""
                                }),
                                "repoId": json!({
                                    "projectRepoId": json!({
                                        "projectId": "",
                                        "repoName": ""
                                    }),
                                    "uid": ""
                                }),
                                "revisionId": ""
                            }),
                            "gerrit": json!({
                                "aliasContext": json!({}),
                                "gerritProject": "",
                                "hostUri": "",
                                "revisionId": ""
                            }),
                            "git": json!({
                                "revisionId": "",
                                "url": ""
                            }),
                            "labels": json!({})
                        })
                    ),
                    "artifactStorageSourceUri": "",
                    "context": json!({}),
                    "fileHashes": json!({})
                }),
                "startTime": "",
                "triggerId": ""
            }),
            "provenanceBytes": ""
        }),
        "createTime": "",
        "deployment": json!({"deployment": json!({
                "address": "",
                "config": "",
                "deployTime": "",
                "platform": "",
                "resourceUri": (),
                "undeployTime": "",
                "userEmail": ""
            })}),
        "derivedImage": json!({"derivedImage": json!({
                "baseResourceUrl": "",
                "distance": 0,
                "fingerprint": json!({
                    "v1Name": "",
                    "v2Blob": (),
                    "v2Name": ""
                }),
                "layerInfo": (
                    json!({
                        "arguments": "",
                        "directive": ""
                    })
                )
            })}),
        "discovered": json!({"discovered": json!({
                "analysisCompleted": json!({"analysisType": ()}),
                "analysisError": (
                    json!({
                        "code": 0,
                        "details": (json!({})),
                        "message": ""
                    })
                ),
                "analysisStatus": "",
                "analysisStatusError": json!({}),
                "continuousAnalysis": "",
                "lastAnalysisTime": ""
            })}),
        "envelope": json!({
            "payload": "",
            "payloadType": "",
            "signatures": (
                json!({
                    "keyid": "",
                    "sig": ""
                })
            )
        }),
        "installation": json!({"installation": json!({
                "architecture": "",
                "cpeUri": "",
                "license": json!({
                    "comments": "",
                    "expression": ""
                }),
                "location": (
                    json!({
                        "cpeUri": "",
                        "path": "",
                        "version": json!({
                            "epoch": 0,
                            "inclusive": false,
                            "kind": "",
                            "name": "",
                            "revision": ""
                        })
                    })
                ),
                "name": "",
                "packageType": "",
                "version": json!({})
            })}),
        "intoto": json!({
            "signatures": (
                json!({
                    "keyid": "",
                    "sig": ""
                })
            ),
            "signed": json!({
                "byproducts": json!({"customValues": json!({})}),
                "command": (),
                "environment": json!({"customValues": json!({})}),
                "materials": (
                    json!({
                        "hashes": json!({"sha256": ""}),
                        "resourceUri": ""
                    })
                ),
                "products": (json!({}))
            })
        }),
        "kind": "",
        "name": "",
        "noteName": "",
        "remediation": "",
        "resource": json!({
            "contentHash": json!({
                "type": "",
                "value": ""
            }),
            "name": "",
            "uri": ""
        }),
        "sbom": json!({
            "createTime": "",
            "creatorComment": "",
            "creators": (),
            "documentComment": "",
            "externalDocumentRefs": (),
            "id": "",
            "licenseListVersion": "",
            "namespace": "",
            "title": ""
        }),
        "sbomReference": json!({
            "payload": json!({
                "_type": "",
                "predicate": json!({
                    "digest": json!({}),
                    "location": "",
                    "mimeType": "",
                    "referrerId": ""
                }),
                "predicateType": "",
                "subject": (
                    json!({
                        "digest": json!({}),
                        "name": ""
                    })
                )
            }),
            "payloadType": "",
            "signatures": (json!({}))
        }),
        "spdxFile": json!({
            "attributions": (),
            "comment": "",
            "contributors": (),
            "copyright": "",
            "filesLicenseInfo": (),
            "id": "",
            "licenseConcluded": json!({}),
            "notice": ""
        }),
        "spdxPackage": json!({
            "comment": "",
            "filename": "",
            "homePage": "",
            "id": "",
            "licenseConcluded": json!({}),
            "packageType": "",
            "sourceInfo": "",
            "summaryDescription": "",
            "title": "",
            "version": ""
        }),
        "spdxRelationship": json!({
            "comment": "",
            "source": "",
            "target": "",
            "type": ""
        }),
        "updateTime": "",
        "vulnerability": json!({
            "cvssScore": "",
            "cvssV2": json!({
                "attackComplexity": "",
                "attackVector": "",
                "authentication": "",
                "availabilityImpact": "",
                "baseScore": "",
                "confidentialityImpact": "",
                "exploitabilityScore": "",
                "impactScore": "",
                "integrityImpact": "",
                "privilegesRequired": "",
                "scope": "",
                "userInteraction": ""
            }),
            "cvssV3": json!({}),
            "cvssVersion": "",
            "effectiveSeverity": "",
            "longDescription": "",
            "packageIssue": (
                json!({
                    "affectedLocation": json!({
                        "cpeUri": "",
                        "package": "",
                        "version": json!({})
                    }),
                    "effectiveSeverity": "",
                    "fixedLocation": json!({}),
                    "packageType": "",
                    "severityName": ""
                })
            ),
            "relatedUrls": (
                json!({
                    "label": "",
                    "url": ""
                })
            ),
            "severity": "",
            "shortDescription": "",
            "type": "",
            "vexAssessment": json!({
                "cve": "",
                "impacts": (),
                "justification": json!({
                    "details": "",
                    "justificationType": ""
                }),
                "noteName": "",
                "relatedUris": (json!({})),
                "remediations": (
                    json!({
                        "details": "",
                        "remediationType": "",
                        "remediationUri": json!({})
                    })
                ),
                "state": ""
            })
        })
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v1beta1/:name \
  --header 'content-type: application/json' \
  --data '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}'
echo '{
  "attestation": {
    "attestation": {
      "genericSignedAttestation": {
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "pgpSignedAttestation": {
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      }
    }
  },
  "build": {
    "provenance": {
      "buildOptions": {},
      "builderVersion": "",
      "builtArtifacts": [
        {
          "checksum": "",
          "id": "",
          "names": []
        }
      ],
      "commands": [
        {
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        }
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": {
        "additionalContexts": [
          {
            "cloudRepo": {
              "aliasContext": {
                "kind": "",
                "name": ""
              },
              "repoId": {
                "projectRepoId": {
                  "projectId": "",
                  "repoName": ""
                },
                "uid": ""
              },
              "revisionId": ""
            },
            "gerrit": {
              "aliasContext": {},
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            },
            "git": {
              "revisionId": "",
              "url": ""
            },
            "labels": {}
          }
        ],
        "artifactStorageSourceUri": "",
        "context": {},
        "fileHashes": {}
      },
      "startTime": "",
      "triggerId": ""
    },
    "provenanceBytes": ""
  },
  "createTime": "",
  "deployment": {
    "deployment": {
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    }
  },
  "derivedImage": {
    "derivedImage": {
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": {
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      },
      "layerInfo": [
        {
          "arguments": "",
          "directive": ""
        }
      ]
    }
  },
  "discovered": {
    "discovered": {
      "analysisCompleted": {
        "analysisType": []
      },
      "analysisError": [
        {
          "code": 0,
          "details": [
            {}
          ],
          "message": ""
        }
      ],
      "analysisStatus": "",
      "analysisStatusError": {},
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    }
  },
  "envelope": {
    "payload": "",
    "payloadType": "",
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ]
  },
  "installation": {
    "installation": {
      "architecture": "",
      "cpeUri": "",
      "license": {
        "comments": "",
        "expression": ""
      },
      "location": [
        {
          "cpeUri": "",
          "path": "",
          "version": {
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          }
        }
      ],
      "name": "",
      "packageType": "",
      "version": {}
    }
  },
  "intoto": {
    "signatures": [
      {
        "keyid": "",
        "sig": ""
      }
    ],
    "signed": {
      "byproducts": {
        "customValues": {}
      },
      "command": [],
      "environment": {
        "customValues": {}
      },
      "materials": [
        {
          "hashes": {
            "sha256": ""
          },
          "resourceUri": ""
        }
      ],
      "products": [
        {}
      ]
    }
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": {
    "contentHash": {
      "type": "",
      "value": ""
    },
    "name": "",
    "uri": ""
  },
  "sbom": {
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  },
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "spdxFile": {
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": {},
    "notice": ""
  },
  "spdxPackage": {
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": {},
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  },
  "spdxRelationship": {
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  },
  "updateTime": "",
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssV3": {},
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      {
        "affectedLocation": {
          "cpeUri": "",
          "package": "",
          "version": {}
        },
        "effectiveSeverity": "",
        "fixedLocation": {},
        "packageType": "",
        "severityName": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": ""
    }
  }
}' |  \
  http PATCH {{baseUrl}}/v1beta1/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "attestation": {\n    "attestation": {\n      "genericSignedAttestation": {\n        "contentType": "",\n        "serializedPayload": "",\n        "signatures": [\n          {\n            "publicKeyId": "",\n            "signature": ""\n          }\n        ]\n      },\n      "pgpSignedAttestation": {\n        "contentType": "",\n        "pgpKeyId": "",\n        "signature": ""\n      }\n    }\n  },\n  "build": {\n    "provenance": {\n      "buildOptions": {},\n      "builderVersion": "",\n      "builtArtifacts": [\n        {\n          "checksum": "",\n          "id": "",\n          "names": []\n        }\n      ],\n      "commands": [\n        {\n          "args": [],\n          "dir": "",\n          "env": [],\n          "id": "",\n          "name": "",\n          "waitFor": []\n        }\n      ],\n      "createTime": "",\n      "creator": "",\n      "endTime": "",\n      "id": "",\n      "logsUri": "",\n      "projectId": "",\n      "sourceProvenance": {\n        "additionalContexts": [\n          {\n            "cloudRepo": {\n              "aliasContext": {\n                "kind": "",\n                "name": ""\n              },\n              "repoId": {\n                "projectRepoId": {\n                  "projectId": "",\n                  "repoName": ""\n                },\n                "uid": ""\n              },\n              "revisionId": ""\n            },\n            "gerrit": {\n              "aliasContext": {},\n              "gerritProject": "",\n              "hostUri": "",\n              "revisionId": ""\n            },\n            "git": {\n              "revisionId": "",\n              "url": ""\n            },\n            "labels": {}\n          }\n        ],\n        "artifactStorageSourceUri": "",\n        "context": {},\n        "fileHashes": {}\n      },\n      "startTime": "",\n      "triggerId": ""\n    },\n    "provenanceBytes": ""\n  },\n  "createTime": "",\n  "deployment": {\n    "deployment": {\n      "address": "",\n      "config": "",\n      "deployTime": "",\n      "platform": "",\n      "resourceUri": [],\n      "undeployTime": "",\n      "userEmail": ""\n    }\n  },\n  "derivedImage": {\n    "derivedImage": {\n      "baseResourceUrl": "",\n      "distance": 0,\n      "fingerprint": {\n        "v1Name": "",\n        "v2Blob": [],\n        "v2Name": ""\n      },\n      "layerInfo": [\n        {\n          "arguments": "",\n          "directive": ""\n        }\n      ]\n    }\n  },\n  "discovered": {\n    "discovered": {\n      "analysisCompleted": {\n        "analysisType": []\n      },\n      "analysisError": [\n        {\n          "code": 0,\n          "details": [\n            {}\n          ],\n          "message": ""\n        }\n      ],\n      "analysisStatus": "",\n      "analysisStatusError": {},\n      "continuousAnalysis": "",\n      "lastAnalysisTime": ""\n    }\n  },\n  "envelope": {\n    "payload": "",\n    "payloadType": "",\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ]\n  },\n  "installation": {\n    "installation": {\n      "architecture": "",\n      "cpeUri": "",\n      "license": {\n        "comments": "",\n        "expression": ""\n      },\n      "location": [\n        {\n          "cpeUri": "",\n          "path": "",\n          "version": {\n            "epoch": 0,\n            "inclusive": false,\n            "kind": "",\n            "name": "",\n            "revision": ""\n          }\n        }\n      ],\n      "name": "",\n      "packageType": "",\n      "version": {}\n    }\n  },\n  "intoto": {\n    "signatures": [\n      {\n        "keyid": "",\n        "sig": ""\n      }\n    ],\n    "signed": {\n      "byproducts": {\n        "customValues": {}\n      },\n      "command": [],\n      "environment": {\n        "customValues": {}\n      },\n      "materials": [\n        {\n          "hashes": {\n            "sha256": ""\n          },\n          "resourceUri": ""\n        }\n      ],\n      "products": [\n        {}\n      ]\n    }\n  },\n  "kind": "",\n  "name": "",\n  "noteName": "",\n  "remediation": "",\n  "resource": {\n    "contentHash": {\n      "type": "",\n      "value": ""\n    },\n    "name": "",\n    "uri": ""\n  },\n  "sbom": {\n    "createTime": "",\n    "creatorComment": "",\n    "creators": [],\n    "documentComment": "",\n    "externalDocumentRefs": [],\n    "id": "",\n    "licenseListVersion": "",\n    "namespace": "",\n    "title": ""\n  },\n  "sbomReference": {\n    "payload": {\n      "_type": "",\n      "predicate": {\n        "digest": {},\n        "location": "",\n        "mimeType": "",\n        "referrerId": ""\n      },\n      "predicateType": "",\n      "subject": [\n        {\n          "digest": {},\n          "name": ""\n        }\n      ]\n    },\n    "payloadType": "",\n    "signatures": [\n      {}\n    ]\n  },\n  "spdxFile": {\n    "attributions": [],\n    "comment": "",\n    "contributors": [],\n    "copyright": "",\n    "filesLicenseInfo": [],\n    "id": "",\n    "licenseConcluded": {},\n    "notice": ""\n  },\n  "spdxPackage": {\n    "comment": "",\n    "filename": "",\n    "homePage": "",\n    "id": "",\n    "licenseConcluded": {},\n    "packageType": "",\n    "sourceInfo": "",\n    "summaryDescription": "",\n    "title": "",\n    "version": ""\n  },\n  "spdxRelationship": {\n    "comment": "",\n    "source": "",\n    "target": "",\n    "type": ""\n  },\n  "updateTime": "",\n  "vulnerability": {\n    "cvssScore": "",\n    "cvssV2": {\n      "attackComplexity": "",\n      "attackVector": "",\n      "authentication": "",\n      "availabilityImpact": "",\n      "baseScore": "",\n      "confidentialityImpact": "",\n      "exploitabilityScore": "",\n      "impactScore": "",\n      "integrityImpact": "",\n      "privilegesRequired": "",\n      "scope": "",\n      "userInteraction": ""\n    },\n    "cvssV3": {},\n    "cvssVersion": "",\n    "effectiveSeverity": "",\n    "longDescription": "",\n    "packageIssue": [\n      {\n        "affectedLocation": {\n          "cpeUri": "",\n          "package": "",\n          "version": {}\n        },\n        "effectiveSeverity": "",\n        "fixedLocation": {},\n        "packageType": "",\n        "severityName": ""\n      }\n    ],\n    "relatedUrls": [\n      {\n        "label": "",\n        "url": ""\n      }\n    ],\n    "severity": "",\n    "shortDescription": "",\n    "type": "",\n    "vexAssessment": {\n      "cve": "",\n      "impacts": [],\n      "justification": {\n        "details": "",\n        "justificationType": ""\n      },\n      "noteName": "",\n      "relatedUris": [\n        {}\n      ],\n      "remediations": [\n        {\n          "details": "",\n          "remediationType": "",\n          "remediationUri": {}\n        }\n      ],\n      "state": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attestation": ["attestation": [
      "genericSignedAttestation": [
        "contentType": "",
        "serializedPayload": "",
        "signatures": [
          [
            "publicKeyId": "",
            "signature": ""
          ]
        ]
      ],
      "pgpSignedAttestation": [
        "contentType": "",
        "pgpKeyId": "",
        "signature": ""
      ]
    ]],
  "build": [
    "provenance": [
      "buildOptions": [],
      "builderVersion": "",
      "builtArtifacts": [
        [
          "checksum": "",
          "id": "",
          "names": []
        ]
      ],
      "commands": [
        [
          "args": [],
          "dir": "",
          "env": [],
          "id": "",
          "name": "",
          "waitFor": []
        ]
      ],
      "createTime": "",
      "creator": "",
      "endTime": "",
      "id": "",
      "logsUri": "",
      "projectId": "",
      "sourceProvenance": [
        "additionalContexts": [
          [
            "cloudRepo": [
              "aliasContext": [
                "kind": "",
                "name": ""
              ],
              "repoId": [
                "projectRepoId": [
                  "projectId": "",
                  "repoName": ""
                ],
                "uid": ""
              ],
              "revisionId": ""
            ],
            "gerrit": [
              "aliasContext": [],
              "gerritProject": "",
              "hostUri": "",
              "revisionId": ""
            ],
            "git": [
              "revisionId": "",
              "url": ""
            ],
            "labels": []
          ]
        ],
        "artifactStorageSourceUri": "",
        "context": [],
        "fileHashes": []
      ],
      "startTime": "",
      "triggerId": ""
    ],
    "provenanceBytes": ""
  ],
  "createTime": "",
  "deployment": ["deployment": [
      "address": "",
      "config": "",
      "deployTime": "",
      "platform": "",
      "resourceUri": [],
      "undeployTime": "",
      "userEmail": ""
    ]],
  "derivedImage": ["derivedImage": [
      "baseResourceUrl": "",
      "distance": 0,
      "fingerprint": [
        "v1Name": "",
        "v2Blob": [],
        "v2Name": ""
      ],
      "layerInfo": [
        [
          "arguments": "",
          "directive": ""
        ]
      ]
    ]],
  "discovered": ["discovered": [
      "analysisCompleted": ["analysisType": []],
      "analysisError": [
        [
          "code": 0,
          "details": [[]],
          "message": ""
        ]
      ],
      "analysisStatus": "",
      "analysisStatusError": [],
      "continuousAnalysis": "",
      "lastAnalysisTime": ""
    ]],
  "envelope": [
    "payload": "",
    "payloadType": "",
    "signatures": [
      [
        "keyid": "",
        "sig": ""
      ]
    ]
  ],
  "installation": ["installation": [
      "architecture": "",
      "cpeUri": "",
      "license": [
        "comments": "",
        "expression": ""
      ],
      "location": [
        [
          "cpeUri": "",
          "path": "",
          "version": [
            "epoch": 0,
            "inclusive": false,
            "kind": "",
            "name": "",
            "revision": ""
          ]
        ]
      ],
      "name": "",
      "packageType": "",
      "version": []
    ]],
  "intoto": [
    "signatures": [
      [
        "keyid": "",
        "sig": ""
      ]
    ],
    "signed": [
      "byproducts": ["customValues": []],
      "command": [],
      "environment": ["customValues": []],
      "materials": [
        [
          "hashes": ["sha256": ""],
          "resourceUri": ""
        ]
      ],
      "products": [[]]
    ]
  ],
  "kind": "",
  "name": "",
  "noteName": "",
  "remediation": "",
  "resource": [
    "contentHash": [
      "type": "",
      "value": ""
    ],
    "name": "",
    "uri": ""
  ],
  "sbom": [
    "createTime": "",
    "creatorComment": "",
    "creators": [],
    "documentComment": "",
    "externalDocumentRefs": [],
    "id": "",
    "licenseListVersion": "",
    "namespace": "",
    "title": ""
  ],
  "sbomReference": [
    "payload": [
      "_type": "",
      "predicate": [
        "digest": [],
        "location": "",
        "mimeType": "",
        "referrerId": ""
      ],
      "predicateType": "",
      "subject": [
        [
          "digest": [],
          "name": ""
        ]
      ]
    ],
    "payloadType": "",
    "signatures": [[]]
  ],
  "spdxFile": [
    "attributions": [],
    "comment": "",
    "contributors": [],
    "copyright": "",
    "filesLicenseInfo": [],
    "id": "",
    "licenseConcluded": [],
    "notice": ""
  ],
  "spdxPackage": [
    "comment": "",
    "filename": "",
    "homePage": "",
    "id": "",
    "licenseConcluded": [],
    "packageType": "",
    "sourceInfo": "",
    "summaryDescription": "",
    "title": "",
    "version": ""
  ],
  "spdxRelationship": [
    "comment": "",
    "source": "",
    "target": "",
    "type": ""
  ],
  "updateTime": "",
  "vulnerability": [
    "cvssScore": "",
    "cvssV2": [
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    ],
    "cvssV3": [],
    "cvssVersion": "",
    "effectiveSeverity": "",
    "longDescription": "",
    "packageIssue": [
      [
        "affectedLocation": [
          "cpeUri": "",
          "package": "",
          "version": []
        ],
        "effectiveSeverity": "",
        "fixedLocation": [],
        "packageType": "",
        "severityName": ""
      ]
    ],
    "relatedUrls": [
      [
        "label": "",
        "url": ""
      ]
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": [
      "cve": "",
      "impacts": [],
      "justification": [
        "details": "",
        "justificationType": ""
      ],
      "noteName": "",
      "relatedUris": [[]],
      "remediations": [
        [
          "details": "",
          "remediationType": "",
          "remediationUri": []
        ]
      ],
      "state": ""
    ]
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST containeranalysis.projects.occurrences.setIamPolicy
{{baseUrl}}/v1beta1/:resource:setIamPolicy
QUERY PARAMS

resource
BODY json

{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:resource:setIamPolicy");

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  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}");

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

(client/post "{{baseUrl}}/v1beta1/:resource:setIamPolicy" {:content-type :json
                                                                           :form-params {:policy {:bindings [{:condition {:description ""
                                                                                                                          :expression ""
                                                                                                                          :location ""
                                                                                                                          :title ""}
                                                                                                              :members []
                                                                                                              :role ""}]
                                                                                                  :etag ""
                                                                                                  :version 0}}})
require "http/client"

url = "{{baseUrl}}/v1beta1/:resource:setIamPolicy"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v1beta1/:resource:setIamPolicy"),
    Content = new StringContent("{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v1beta1/:resource:setIamPolicy");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1beta1/:resource:setIamPolicy"

	payload := strings.NewReader("{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}")

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

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

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

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

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

}
POST /baseUrl/v1beta1/:resource:setIamPolicy HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 276

{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1beta1/:resource:setIamPolicy")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1beta1/:resource:setIamPolicy"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1beta1/:resource:setIamPolicy")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1beta1/:resource:setIamPolicy")
  .header("content-type", "application/json")
  .body("{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  policy: {
    bindings: [
      {
        condition: {
          description: '',
          expression: '',
          location: '',
          title: ''
        },
        members: [],
        role: ''
      }
    ],
    etag: '',
    version: 0
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:resource:setIamPolicy');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:resource:setIamPolicy',
  headers: {'content-type': 'application/json'},
  data: {
    policy: {
      bindings: [
        {
          condition: {description: '', expression: '', location: '', title: ''},
          members: [],
          role: ''
        }
      ],
      etag: '',
      version: 0
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1beta1/:resource:setIamPolicy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"policy":{"bindings":[{"condition":{"description":"","expression":"","location":"","title":""},"members":[],"role":""}],"etag":"","version":0}}'
};

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}}/v1beta1/:resource:setIamPolicy',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "policy": {\n    "bindings": [\n      {\n        "condition": {\n          "description": "",\n          "expression": "",\n          "location": "",\n          "title": ""\n        },\n        "members": [],\n        "role": ""\n      }\n    ],\n    "etag": "",\n    "version": 0\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1beta1/:resource:setIamPolicy")
  .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/v1beta1/:resource:setIamPolicy',
  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({
  policy: {
    bindings: [
      {
        condition: {description: '', expression: '', location: '', title: ''},
        members: [],
        role: ''
      }
    ],
    etag: '',
    version: 0
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:resource:setIamPolicy',
  headers: {'content-type': 'application/json'},
  body: {
    policy: {
      bindings: [
        {
          condition: {description: '', expression: '', location: '', title: ''},
          members: [],
          role: ''
        }
      ],
      etag: '',
      version: 0
    }
  },
  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}}/v1beta1/:resource:setIamPolicy');

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

req.type('json');
req.send({
  policy: {
    bindings: [
      {
        condition: {
          description: '',
          expression: '',
          location: '',
          title: ''
        },
        members: [],
        role: ''
      }
    ],
    etag: '',
    version: 0
  }
});

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}}/v1beta1/:resource:setIamPolicy',
  headers: {'content-type': 'application/json'},
  data: {
    policy: {
      bindings: [
        {
          condition: {description: '', expression: '', location: '', title: ''},
          members: [],
          role: ''
        }
      ],
      etag: '',
      version: 0
    }
  }
};

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

const url = '{{baseUrl}}/v1beta1/:resource:setIamPolicy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"policy":{"bindings":[{"condition":{"description":"","expression":"","location":"","title":""},"members":[],"role":""}],"etag":"","version":0}}'
};

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 = @{ @"policy": @{ @"bindings": @[ @{ @"condition": @{ @"description": @"", @"expression": @"", @"location": @"", @"title": @"" }, @"members": @[  ], @"role": @"" } ], @"etag": @"", @"version": @0 } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1beta1/:resource:setIamPolicy"]
                                                       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}}/v1beta1/:resource:setIamPolicy" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1beta1/:resource:setIamPolicy",
  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([
    'policy' => [
        'bindings' => [
                [
                                'condition' => [
                                                                'description' => '',
                                                                'expression' => '',
                                                                'location' => '',
                                                                'title' => ''
                                ],
                                'members' => [
                                                                
                                ],
                                'role' => ''
                ]
        ],
        'etag' => '',
        'version' => 0
    ]
  ]),
  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}}/v1beta1/:resource:setIamPolicy', [
  'body' => '{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:resource:setIamPolicy');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'policy' => [
    'bindings' => [
        [
                'condition' => [
                                'description' => '',
                                'expression' => '',
                                'location' => '',
                                'title' => ''
                ],
                'members' => [
                                
                ],
                'role' => ''
        ]
    ],
    'etag' => '',
    'version' => 0
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'policy' => [
    'bindings' => [
        [
                'condition' => [
                                'description' => '',
                                'expression' => '',
                                'location' => '',
                                'title' => ''
                ],
                'members' => [
                                
                ],
                'role' => ''
        ]
    ],
    'etag' => '',
    'version' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1beta1/:resource:setIamPolicy');
$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}}/v1beta1/:resource:setIamPolicy' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1beta1/:resource:setIamPolicy' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}'
import http.client

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

payload = "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}"

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

conn.request("POST", "/baseUrl/v1beta1/:resource:setIamPolicy", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:resource:setIamPolicy"

payload = { "policy": {
        "bindings": [
            {
                "condition": {
                    "description": "",
                    "expression": "",
                    "location": "",
                    "title": ""
                },
                "members": [],
                "role": ""
            }
        ],
        "etag": "",
        "version": 0
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1beta1/:resource:setIamPolicy"

payload <- "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v1beta1/:resource:setIamPolicy")

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  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}"

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

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

response = conn.post('/baseUrl/v1beta1/:resource:setIamPolicy') do |req|
  req.body = "{\n  \"policy\": {\n    \"bindings\": [\n      {\n        \"condition\": {\n          \"description\": \"\",\n          \"expression\": \"\",\n          \"location\": \"\",\n          \"title\": \"\"\n        },\n        \"members\": [],\n        \"role\": \"\"\n      }\n    ],\n    \"etag\": \"\",\n    \"version\": 0\n  }\n}"
end

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

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

    let payload = json!({"policy": json!({
            "bindings": (
                json!({
                    "condition": json!({
                        "description": "",
                        "expression": "",
                        "location": "",
                        "title": ""
                    }),
                    "members": (),
                    "role": ""
                })
            ),
            "etag": "",
            "version": 0
        })});

    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}}/v1beta1/:resource:setIamPolicy \
  --header 'content-type: application/json' \
  --data '{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}'
echo '{
  "policy": {
    "bindings": [
      {
        "condition": {
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        },
        "members": [],
        "role": ""
      }
    ],
    "etag": "",
    "version": 0
  }
}' |  \
  http POST {{baseUrl}}/v1beta1/:resource:setIamPolicy \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "policy": {\n    "bindings": [\n      {\n        "condition": {\n          "description": "",\n          "expression": "",\n          "location": "",\n          "title": ""\n        },\n        "members": [],\n        "role": ""\n      }\n    ],\n    "etag": "",\n    "version": 0\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v1beta1/:resource:setIamPolicy
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["policy": [
    "bindings": [
      [
        "condition": [
          "description": "",
          "expression": "",
          "location": "",
          "title": ""
        ],
        "members": [],
        "role": ""
      ]
    ],
    "etag": "",
    "version": 0
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1beta1/:resource:setIamPolicy")! 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 containeranalysis.projects.occurrences.testIamPermissions
{{baseUrl}}/v1beta1/:resource:testIamPermissions
QUERY PARAMS

resource
BODY json

{
  "permissions": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1beta1/:resource:testIamPermissions");

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

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

(client/post "{{baseUrl}}/v1beta1/:resource:testIamPermissions" {:content-type :json
                                                                                 :form-params {:permissions []}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/v1beta1/:resource:testIamPermissions"

	payload := strings.NewReader("{\n  \"permissions\": []\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/v1beta1/:resource:testIamPermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

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

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

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

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

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

xhr.open('POST', '{{baseUrl}}/v1beta1/:resource:testIamPermissions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:resource:testIamPermissions',
  headers: {'content-type': 'application/json'},
  data: {permissions: []}
};

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

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}}/v1beta1/:resource:testIamPermissions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "permissions": []\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1beta1/:resource:testIamPermissions',
  headers: {'content-type': 'application/json'},
  body: {permissions: []},
  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}}/v1beta1/:resource:testIamPermissions');

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

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

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}}/v1beta1/:resource:testIamPermissions',
  headers: {'content-type': 'application/json'},
  data: {permissions: []}
};

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

const url = '{{baseUrl}}/v1beta1/:resource:testIamPermissions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"permissions":[]}'
};

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

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v1beta1/:resource:testIamPermissions');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

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

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

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

conn.request("POST", "/baseUrl/v1beta1/:resource:testIamPermissions", payload, headers)

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

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

url = "{{baseUrl}}/v1beta1/:resource:testIamPermissions"

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

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

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

url <- "{{baseUrl}}/v1beta1/:resource:testIamPermissions"

payload <- "{\n  \"permissions\": []\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}}/v1beta1/:resource:testIamPermissions")

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  \"permissions\": []\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/v1beta1/:resource:testIamPermissions') do |req|
  req.body = "{\n  \"permissions\": []\n}"
end

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

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

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

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

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

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

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