POST containeranalysis.projects.locations.notes.batchCreate
{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+parent/notes:batchCreate" {:content-type :json
                                                                          :form-params {:notes {}}})
require "http/client"

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+parent/notes:batchCreate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+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}}/v1/:+parent/notes:batchCreate');
xhr.setRequestHeader('content-type', 'application/json');

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+parent/notes:batchCreate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "notes": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+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/v1/:+parent/notes:batchCreate", payload, headers)

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+parent/notes:batchCreate' \
  --header 'content-type: application/json' \
  --data '{
  "notes": {}
}'
echo '{
  "notes": {}
}' |  \
  http POST '{{baseUrl}}/v1/:+parent/notes:batchCreate' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "notes": {}\n}' \
  --output-document \
  - '{{baseUrl}}/v1/:+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}}/v1/:+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.locations.notes.create
{{baseUrl}}/v1/:+parent/notes
QUERY PARAMS

parent
BODY json

{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "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}}/v1/:+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  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes" {:content-type :json
                                                              :form-params {:attestation {:hint {:humanReadableName ""}}
                                                                            :build {:builderVersion ""}
                                                                            :compliance {:cisBenchmark {:profileLevel 0
                                                                                                        :severity ""}
                                                                                         :description ""
                                                                                         :impact ""
                                                                                         :rationale ""
                                                                                         :remediation ""
                                                                                         :scanInstructions ""
                                                                                         :title ""
                                                                                         :version [{:benchmarkDocument ""
                                                                                                    :cpeUri ""
                                                                                                    :version ""}]}
                                                                            :createTime ""
                                                                            :deployment {:resourceUri []}
                                                                            :discovery {:analysisKind ""}
                                                                            :dsseAttestation {:hint {:humanReadableName ""}}
                                                                            :expirationTime ""
                                                                            :image {:fingerprint {:v1Name ""
                                                                                                  :v2Blob []
                                                                                                  :v2Name ""}
                                                                                    :resourceUrl ""}
                                                                            :kind ""
                                                                            :longDescription ""
                                                                            :name ""
                                                                            :package {:architecture ""
                                                                                      :cpeUri ""
                                                                                      :description ""
                                                                                      :digest [{:algo ""
                                                                                                :digestBytes ""}]
                                                                                      :distribution [{:architecture ""
                                                                                                      :cpeUri ""
                                                                                                      :description ""
                                                                                                      :latestVersion {:epoch 0
                                                                                                                      :fullName ""
                                                                                                                      :inclusive false
                                                                                                                      :kind ""
                                                                                                                      :name ""
                                                                                                                      :revision ""}
                                                                                                      :maintainer ""
                                                                                                      :url ""}]
                                                                                      :license {:comments ""
                                                                                                :expression ""}
                                                                                      :maintainer ""
                                                                                      :name ""
                                                                                      :packageType ""
                                                                                      :url ""
                                                                                      :version {}}
                                                                            :relatedNoteNames []
                                                                            :relatedUrl [{:label ""
                                                                                          :url ""}]
                                                                            :sbomReference {:format ""
                                                                                            :version ""}
                                                                            :shortDescription ""
                                                                            :updateTime ""
                                                                            :upgrade {:distributions [{:classification ""
                                                                                                       :cpeUri ""
                                                                                                       :cve []
                                                                                                       :severity ""}]
                                                                                      :package ""
                                                                                      :version {}
                                                                                      :windowsUpdate {:categories [{:categoryId ""
                                                                                                                    :name ""}]
                                                                                                      :description ""
                                                                                                      :identity {:revision 0
                                                                                                                 :updateId ""}
                                                                                                      :kbArticleIds []
                                                                                                      :lastPublishedTimestamp ""
                                                                                                      :supportUrl ""
                                                                                                      :title ""}}
                                                                            :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 ""
                                                                                            :details [{:affectedCpeUri ""
                                                                                                       :affectedPackage ""
                                                                                                       :affectedVersionEnd {}
                                                                                                       :affectedVersionStart {}
                                                                                                       :description ""
                                                                                                       :fixedCpeUri ""
                                                                                                       :fixedPackage ""
                                                                                                       :fixedVersion {}
                                                                                                       :isObsolete false
                                                                                                       :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 ""
                                                                                                                   :vulnerabilityId ""}
                                                                                                      :languageCode ""
                                                                                                      :longDescription ""
                                                                                                      :product {:genericUri ""
                                                                                                                :id ""
                                                                                                                :name ""}
                                                                                                      :publisher {:issuingAuthority ""
                                                                                                                  :name ""
                                                                                                                  :publisherNamespace ""}
                                                                                                      :shortDescription ""
                                                                                                      :title ""}}})
require "http/client"

url = "{{baseUrl}}/v1/:+parent/notes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes"),
    Content = new StringContent("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes"

	payload := strings.NewReader("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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/v1/:+parent/notes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4510

{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:+parent/notes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+parent/notes")
  .header("content-type", "application/json")
  .body("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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({
  attestation: {
    hint: {
      humanReadableName: ''
    }
  },
  build: {
    builderVersion: ''
  },
  compliance: {
    cisBenchmark: {
      profileLevel: 0,
      severity: ''
    },
    description: '',
    impact: '',
    rationale: '',
    remediation: '',
    scanInstructions: '',
    title: '',
    version: [
      {
        benchmarkDocument: '',
        cpeUri: '',
        version: ''
      }
    ]
  },
  createTime: '',
  deployment: {
    resourceUri: []
  },
  discovery: {
    analysisKind: ''
  },
  dsseAttestation: {
    hint: {
      humanReadableName: ''
    }
  },
  expirationTime: '',
  image: {
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    resourceUrl: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [
      {
        algo: '',
        digestBytes: ''
      }
    ],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {
          epoch: 0,
          fullName: '',
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        },
        maintainer: '',
        url: ''
      }
    ],
    license: {
      comments: '',
      expression: ''
    },
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [
    {
      label: '',
      url: ''
    }
  ],
  sbomReference: {
    format: '',
    version: ''
  },
  shortDescription: '',
  updateTime: '',
  upgrade: {
    distributions: [
      {
        classification: '',
        cpeUri: '',
        cve: [],
        severity: ''
      }
    ],
    package: '',
    version: {},
    windowsUpdate: {
      categories: [
        {
          categoryId: '',
          name: ''
        }
      ],
      description: '',
      identity: {
        revision: 0,
        updateId: ''
      },
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  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: '',
    details: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersionEnd: {},
        affectedVersionStart: {},
        description: '',
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        isObsolete: false,
        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: '',
      vulnerabilityId: ''
    },
    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}}/v1/:+parent/notes');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/notes',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {hint: {humanReadableName: ''}},
    build: {builderVersion: ''},
    compliance: {
      cisBenchmark: {profileLevel: 0, severity: ''},
      description: '',
      impact: '',
      rationale: '',
      remediation: '',
      scanInstructions: '',
      title: '',
      version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
    },
    createTime: '',
    deployment: {resourceUri: []},
    discovery: {analysisKind: ''},
    dsseAttestation: {hint: {humanReadableName: ''}},
    expirationTime: '',
    image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    updateTime: '',
    upgrade: {
      distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
      package: '',
      version: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    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: '',
      details: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersionEnd: {},
          affectedVersionStart: {},
          description: '',
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          isObsolete: false,
          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: '',
        vulnerabilityId: ''
      },
      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}}/v1/:+parent/notes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"hint":{"humanReadableName":""}},"build":{"builderVersion":""},"compliance":{"cisBenchmark":{"profileLevel":0,"severity":""},"description":"","impact":"","rationale":"","remediation":"","scanInstructions":"","title":"","version":[{"benchmarkDocument":"","cpeUri":"","version":""}]},"createTime":"","deployment":{"resourceUri":[]},"discovery":{"analysisKind":""},"dsseAttestation":{"hint":{"humanReadableName":""}},"expirationTime":"","image":{"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"resourceUrl":""},"kind":"","longDescription":"","name":"","package":{"architecture":"","cpeUri":"","description":"","digest":[{"algo":"","digestBytes":""}],"distribution":[{"architecture":"","cpeUri":"","description":"","latestVersion":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""},"maintainer":"","url":""}],"license":{"comments":"","expression":""},"maintainer":"","name":"","packageType":"","url":"","version":{}},"relatedNoteNames":[],"relatedUrl":[{"label":"","url":""}],"sbomReference":{"format":"","version":""},"shortDescription":"","updateTime":"","upgrade":{"distributions":[{"classification":"","cpeUri":"","cve":[],"severity":""}],"package":"","version":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"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":"","details":[{"affectedCpeUri":"","affectedPackage":"","affectedVersionEnd":{},"affectedVersionStart":{},"description":"","fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"isObsolete":false,"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":"","vulnerabilityId":""},"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}}/v1/:+parent/notes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "build": {\n    "builderVersion": ""\n  },\n  "compliance": {\n    "cisBenchmark": {\n      "profileLevel": 0,\n      "severity": ""\n    },\n    "description": "",\n    "impact": "",\n    "rationale": "",\n    "remediation": "",\n    "scanInstructions": "",\n    "title": "",\n    "version": [\n      {\n        "benchmarkDocument": "",\n        "cpeUri": "",\n        "version": ""\n      }\n    ]\n  },\n  "createTime": "",\n  "deployment": {\n    "resourceUri": []\n  },\n  "discovery": {\n    "analysisKind": ""\n  },\n  "dsseAttestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "expirationTime": "",\n  "image": {\n    "fingerprint": {\n      "v1Name": "",\n      "v2Blob": [],\n      "v2Name": ""\n    },\n    "resourceUrl": ""\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          "fullName": "",\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  "sbomReference": {\n    "format": "",\n    "version": ""\n  },\n  "shortDescription": "",\n  "updateTime": "",\n  "upgrade": {\n    "distributions": [\n      {\n        "classification": "",\n        "cpeUri": "",\n        "cve": [],\n        "severity": ""\n      }\n    ],\n    "package": "",\n    "version": {},\n    "windowsUpdate": {\n      "categories": [\n        {\n          "categoryId": "",\n          "name": ""\n        }\n      ],\n      "description": "",\n      "identity": {\n        "revision": 0,\n        "updateId": ""\n      },\n      "kbArticleIds": [],\n      "lastPublishedTimestamp": "",\n      "supportUrl": "",\n      "title": ""\n    }\n  },\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    "details": [\n      {\n        "affectedCpeUri": "",\n        "affectedPackage": "",\n        "affectedVersionEnd": {},\n        "affectedVersionStart": {},\n        "description": "",\n        "fixedCpeUri": "",\n        "fixedPackage": "",\n        "fixedVersion": {},\n        "isObsolete": false,\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      "vulnerabilityId": ""\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  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+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/v1/:+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({
  attestation: {hint: {humanReadableName: ''}},
  build: {builderVersion: ''},
  compliance: {
    cisBenchmark: {profileLevel: 0, severity: ''},
    description: '',
    impact: '',
    rationale: '',
    remediation: '',
    scanInstructions: '',
    title: '',
    version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
  },
  createTime: '',
  deployment: {resourceUri: []},
  discovery: {analysisKind: ''},
  dsseAttestation: {hint: {humanReadableName: ''}},
  expirationTime: '',
  image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [{algo: '', digestBytes: ''}],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
        maintainer: '',
        url: ''
      }
    ],
    license: {comments: '', expression: ''},
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [{label: '', url: ''}],
  sbomReference: {format: '', version: ''},
  shortDescription: '',
  updateTime: '',
  upgrade: {
    distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
    package: '',
    version: {},
    windowsUpdate: {
      categories: [{categoryId: '', name: ''}],
      description: '',
      identity: {revision: 0, updateId: ''},
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  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: '',
    details: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersionEnd: {},
        affectedVersionStart: {},
        description: '',
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        isObsolete: false,
        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: '',
      vulnerabilityId: ''
    },
    languageCode: '',
    longDescription: '',
    product: {genericUri: '', id: '', name: ''},
    publisher: {issuingAuthority: '', name: '', publisherNamespace: ''},
    shortDescription: '',
    title: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/notes',
  headers: {'content-type': 'application/json'},
  body: {
    attestation: {hint: {humanReadableName: ''}},
    build: {builderVersion: ''},
    compliance: {
      cisBenchmark: {profileLevel: 0, severity: ''},
      description: '',
      impact: '',
      rationale: '',
      remediation: '',
      scanInstructions: '',
      title: '',
      version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
    },
    createTime: '',
    deployment: {resourceUri: []},
    discovery: {analysisKind: ''},
    dsseAttestation: {hint: {humanReadableName: ''}},
    expirationTime: '',
    image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    updateTime: '',
    upgrade: {
      distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
      package: '',
      version: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    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: '',
      details: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersionEnd: {},
          affectedVersionStart: {},
          description: '',
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          isObsolete: false,
          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: '',
        vulnerabilityId: ''
      },
      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}}/v1/:+parent/notes');

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

req.type('json');
req.send({
  attestation: {
    hint: {
      humanReadableName: ''
    }
  },
  build: {
    builderVersion: ''
  },
  compliance: {
    cisBenchmark: {
      profileLevel: 0,
      severity: ''
    },
    description: '',
    impact: '',
    rationale: '',
    remediation: '',
    scanInstructions: '',
    title: '',
    version: [
      {
        benchmarkDocument: '',
        cpeUri: '',
        version: ''
      }
    ]
  },
  createTime: '',
  deployment: {
    resourceUri: []
  },
  discovery: {
    analysisKind: ''
  },
  dsseAttestation: {
    hint: {
      humanReadableName: ''
    }
  },
  expirationTime: '',
  image: {
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    resourceUrl: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [
      {
        algo: '',
        digestBytes: ''
      }
    ],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {
          epoch: 0,
          fullName: '',
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        },
        maintainer: '',
        url: ''
      }
    ],
    license: {
      comments: '',
      expression: ''
    },
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [
    {
      label: '',
      url: ''
    }
  ],
  sbomReference: {
    format: '',
    version: ''
  },
  shortDescription: '',
  updateTime: '',
  upgrade: {
    distributions: [
      {
        classification: '',
        cpeUri: '',
        cve: [],
        severity: ''
      }
    ],
    package: '',
    version: {},
    windowsUpdate: {
      categories: [
        {
          categoryId: '',
          name: ''
        }
      ],
      description: '',
      identity: {
        revision: 0,
        updateId: ''
      },
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  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: '',
    details: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersionEnd: {},
        affectedVersionStart: {},
        description: '',
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        isObsolete: false,
        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: '',
      vulnerabilityId: ''
    },
    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}}/v1/:+parent/notes',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {hint: {humanReadableName: ''}},
    build: {builderVersion: ''},
    compliance: {
      cisBenchmark: {profileLevel: 0, severity: ''},
      description: '',
      impact: '',
      rationale: '',
      remediation: '',
      scanInstructions: '',
      title: '',
      version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
    },
    createTime: '',
    deployment: {resourceUri: []},
    discovery: {analysisKind: ''},
    dsseAttestation: {hint: {humanReadableName: ''}},
    expirationTime: '',
    image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    updateTime: '',
    upgrade: {
      distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
      package: '',
      version: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    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: '',
      details: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersionEnd: {},
          affectedVersionStart: {},
          description: '',
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          isObsolete: false,
          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: '',
        vulnerabilityId: ''
      },
      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}}/v1/:+parent/notes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"hint":{"humanReadableName":""}},"build":{"builderVersion":""},"compliance":{"cisBenchmark":{"profileLevel":0,"severity":""},"description":"","impact":"","rationale":"","remediation":"","scanInstructions":"","title":"","version":[{"benchmarkDocument":"","cpeUri":"","version":""}]},"createTime":"","deployment":{"resourceUri":[]},"discovery":{"analysisKind":""},"dsseAttestation":{"hint":{"humanReadableName":""}},"expirationTime":"","image":{"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"resourceUrl":""},"kind":"","longDescription":"","name":"","package":{"architecture":"","cpeUri":"","description":"","digest":[{"algo":"","digestBytes":""}],"distribution":[{"architecture":"","cpeUri":"","description":"","latestVersion":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""},"maintainer":"","url":""}],"license":{"comments":"","expression":""},"maintainer":"","name":"","packageType":"","url":"","version":{}},"relatedNoteNames":[],"relatedUrl":[{"label":"","url":""}],"sbomReference":{"format":"","version":""},"shortDescription":"","updateTime":"","upgrade":{"distributions":[{"classification":"","cpeUri":"","cve":[],"severity":""}],"package":"","version":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"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":"","details":[{"affectedCpeUri":"","affectedPackage":"","affectedVersionEnd":{},"affectedVersionStart":{},"description":"","fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"isObsolete":false,"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":"","vulnerabilityId":""},"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 = @{ @"attestation": @{ @"hint": @{ @"humanReadableName": @"" } },
                              @"build": @{ @"builderVersion": @"" },
                              @"compliance": @{ @"cisBenchmark": @{ @"profileLevel": @0, @"severity": @"" }, @"description": @"", @"impact": @"", @"rationale": @"", @"remediation": @"", @"scanInstructions": @"", @"title": @"", @"version": @[ @{ @"benchmarkDocument": @"", @"cpeUri": @"", @"version": @"" } ] },
                              @"createTime": @"",
                              @"deployment": @{ @"resourceUri": @[  ] },
                              @"discovery": @{ @"analysisKind": @"" },
                              @"dsseAttestation": @{ @"hint": @{ @"humanReadableName": @"" } },
                              @"expirationTime": @"",
                              @"image": @{ @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"resourceUrl": @"" },
                              @"kind": @"",
                              @"longDescription": @"",
                              @"name": @"",
                              @"package": @{ @"architecture": @"", @"cpeUri": @"", @"description": @"", @"digest": @[ @{ @"algo": @"", @"digestBytes": @"" } ], @"distribution": @[ @{ @"architecture": @"", @"cpeUri": @"", @"description": @"", @"latestVersion": @{ @"epoch": @0, @"fullName": @"", @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" }, @"maintainer": @"", @"url": @"" } ], @"license": @{ @"comments": @"", @"expression": @"" }, @"maintainer": @"", @"name": @"", @"packageType": @"", @"url": @"", @"version": @{  } },
                              @"relatedNoteNames": @[  ],
                              @"relatedUrl": @[ @{ @"label": @"", @"url": @"" } ],
                              @"sbomReference": @{ @"format": @"", @"version": @"" },
                              @"shortDescription": @"",
                              @"updateTime": @"",
                              @"upgrade": @{ @"distributions": @[ @{ @"classification": @"", @"cpeUri": @"", @"cve": @[  ], @"severity": @"" } ], @"package": @"", @"version": @{  }, @"windowsUpdate": @{ @"categories": @[ @{ @"categoryId": @"", @"name": @"" } ], @"description": @"", @"identity": @{ @"revision": @0, @"updateId": @"" }, @"kbArticleIds": @[  ], @"lastPublishedTimestamp": @"", @"supportUrl": @"", @"title": @"" } },
                              @"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": @"", @"details": @[ @{ @"affectedCpeUri": @"", @"affectedPackage": @"", @"affectedVersionEnd": @{  }, @"affectedVersionStart": @{  }, @"description": @"", @"fixedCpeUri": @"", @"fixedPackage": @"", @"fixedVersion": @{  }, @"isObsolete": @NO, @"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": @"", @"vulnerabilityId": @"" }, @"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}}/v1/:+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}}/v1/:+parent/notes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+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([
    'attestation' => [
        'hint' => [
                'humanReadableName' => ''
        ]
    ],
    'build' => [
        'builderVersion' => ''
    ],
    'compliance' => [
        'cisBenchmark' => [
                'profileLevel' => 0,
                'severity' => ''
        ],
        'description' => '',
        'impact' => '',
        'rationale' => '',
        'remediation' => '',
        'scanInstructions' => '',
        'title' => '',
        'version' => [
                [
                                'benchmarkDocument' => '',
                                'cpeUri' => '',
                                'version' => ''
                ]
        ]
    ],
    'createTime' => '',
    'deployment' => [
        'resourceUri' => [
                
        ]
    ],
    'discovery' => [
        'analysisKind' => ''
    ],
    'dsseAttestation' => [
        'hint' => [
                'humanReadableName' => ''
        ]
    ],
    'expirationTime' => '',
    'image' => [
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'resourceUrl' => ''
    ],
    'kind' => '',
    'longDescription' => '',
    'name' => '',
    'package' => [
        'architecture' => '',
        'cpeUri' => '',
        'description' => '',
        'digest' => [
                [
                                'algo' => '',
                                'digestBytes' => ''
                ]
        ],
        'distribution' => [
                [
                                'architecture' => '',
                                'cpeUri' => '',
                                'description' => '',
                                'latestVersion' => [
                                                                'epoch' => 0,
                                                                'fullName' => '',
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ],
                                'maintainer' => '',
                                'url' => ''
                ]
        ],
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'maintainer' => '',
        'name' => '',
        'packageType' => '',
        'url' => '',
        'version' => [
                
        ]
    ],
    'relatedNoteNames' => [
        
    ],
    'relatedUrl' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'sbomReference' => [
        'format' => '',
        'version' => ''
    ],
    'shortDescription' => '',
    'updateTime' => '',
    'upgrade' => [
        'distributions' => [
                [
                                'classification' => '',
                                'cpeUri' => '',
                                'cve' => [
                                                                
                                ],
                                'severity' => ''
                ]
        ],
        'package' => '',
        'version' => [
                
        ],
        'windowsUpdate' => [
                'categories' => [
                                [
                                                                'categoryId' => '',
                                                                'name' => ''
                                ]
                ],
                'description' => '',
                'identity' => [
                                'revision' => 0,
                                'updateId' => ''
                ],
                'kbArticleIds' => [
                                
                ],
                'lastPublishedTimestamp' => '',
                'supportUrl' => '',
                'title' => ''
        ]
    ],
    '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' => '',
        'details' => [
                [
                                'affectedCpeUri' => '',
                                'affectedPackage' => '',
                                'affectedVersionEnd' => [
                                                                
                                ],
                                'affectedVersionStart' => [
                                                                
                                ],
                                'description' => '',
                                'fixedCpeUri' => '',
                                'fixedPackage' => '',
                                'fixedVersion' => [
                                                                
                                ],
                                'isObsolete' => null,
                                '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' => '',
                'vulnerabilityId' => ''
        ],
        '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}}/v1/:+parent/notes', [
  'body' => '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'build' => [
    'builderVersion' => ''
  ],
  'compliance' => [
    'cisBenchmark' => [
        'profileLevel' => 0,
        'severity' => ''
    ],
    'description' => '',
    'impact' => '',
    'rationale' => '',
    'remediation' => '',
    'scanInstructions' => '',
    'title' => '',
    'version' => [
        [
                'benchmarkDocument' => '',
                'cpeUri' => '',
                'version' => ''
        ]
    ]
  ],
  'createTime' => '',
  'deployment' => [
    'resourceUri' => [
        
    ]
  ],
  'discovery' => [
    'analysisKind' => ''
  ],
  'dsseAttestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'expirationTime' => '',
  'image' => [
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'resourceUrl' => ''
  ],
  'kind' => '',
  'longDescription' => '',
  'name' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'description' => '',
    'digest' => [
        [
                'algo' => '',
                'digestBytes' => ''
        ]
    ],
    'distribution' => [
        [
                'architecture' => '',
                'cpeUri' => '',
                'description' => '',
                'latestVersion' => [
                                'epoch' => 0,
                                'fullName' => '',
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ],
                'maintainer' => '',
                'url' => ''
        ]
    ],
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'maintainer' => '',
    'name' => '',
    'packageType' => '',
    'url' => '',
    'version' => [
        
    ]
  ],
  'relatedNoteNames' => [
    
  ],
  'relatedUrl' => [
    [
        'label' => '',
        'url' => ''
    ]
  ],
  'sbomReference' => [
    'format' => '',
    'version' => ''
  ],
  'shortDescription' => '',
  'updateTime' => '',
  'upgrade' => [
    'distributions' => [
        [
                'classification' => '',
                'cpeUri' => '',
                'cve' => [
                                
                ],
                'severity' => ''
        ]
    ],
    'package' => '',
    'version' => [
        
    ],
    'windowsUpdate' => [
        'categories' => [
                [
                                'categoryId' => '',
                                'name' => ''
                ]
        ],
        'description' => '',
        'identity' => [
                'revision' => 0,
                'updateId' => ''
        ],
        'kbArticleIds' => [
                
        ],
        'lastPublishedTimestamp' => '',
        'supportUrl' => '',
        'title' => ''
    ]
  ],
  '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' => '',
    'details' => [
        [
                'affectedCpeUri' => '',
                'affectedPackage' => '',
                'affectedVersionEnd' => [
                                
                ],
                'affectedVersionStart' => [
                                
                ],
                'description' => '',
                'fixedCpeUri' => '',
                'fixedPackage' => '',
                'fixedVersion' => [
                                
                ],
                'isObsolete' => null,
                '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' => '',
        'vulnerabilityId' => ''
    ],
    '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([
  'attestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'build' => [
    'builderVersion' => ''
  ],
  'compliance' => [
    'cisBenchmark' => [
        'profileLevel' => 0,
        'severity' => ''
    ],
    'description' => '',
    'impact' => '',
    'rationale' => '',
    'remediation' => '',
    'scanInstructions' => '',
    'title' => '',
    'version' => [
        [
                'benchmarkDocument' => '',
                'cpeUri' => '',
                'version' => ''
        ]
    ]
  ],
  'createTime' => '',
  'deployment' => [
    'resourceUri' => [
        
    ]
  ],
  'discovery' => [
    'analysisKind' => ''
  ],
  'dsseAttestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'expirationTime' => '',
  'image' => [
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'resourceUrl' => ''
  ],
  'kind' => '',
  'longDescription' => '',
  'name' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'description' => '',
    'digest' => [
        [
                'algo' => '',
                'digestBytes' => ''
        ]
    ],
    'distribution' => [
        [
                'architecture' => '',
                'cpeUri' => '',
                'description' => '',
                'latestVersion' => [
                                'epoch' => 0,
                                'fullName' => '',
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ],
                'maintainer' => '',
                'url' => ''
        ]
    ],
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'maintainer' => '',
    'name' => '',
    'packageType' => '',
    'url' => '',
    'version' => [
        
    ]
  ],
  'relatedNoteNames' => [
    
  ],
  'relatedUrl' => [
    [
        'label' => '',
        'url' => ''
    ]
  ],
  'sbomReference' => [
    'format' => '',
    'version' => ''
  ],
  'shortDescription' => '',
  'updateTime' => '',
  'upgrade' => [
    'distributions' => [
        [
                'classification' => '',
                'cpeUri' => '',
                'cve' => [
                                
                ],
                'severity' => ''
        ]
    ],
    'package' => '',
    'version' => [
        
    ],
    'windowsUpdate' => [
        'categories' => [
                [
                                'categoryId' => '',
                                'name' => ''
                ]
        ],
        'description' => '',
        'identity' => [
                'revision' => 0,
                'updateId' => ''
        ],
        'kbArticleIds' => [
                
        ],
        'lastPublishedTimestamp' => '',
        'supportUrl' => '',
        'title' => ''
    ]
  ],
  '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' => '',
    'details' => [
        [
                'affectedCpeUri' => '',
                'affectedPackage' => '',
                'affectedVersionEnd' => [
                                
                ],
                'affectedVersionStart' => [
                                
                ],
                'description' => '',
                'fixedCpeUri' => '',
                'fixedPackage' => '',
                'fixedVersion' => [
                                
                ],
                'isObsolete' => null,
                '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' => '',
        'vulnerabilityId' => ''
    ],
    'languageCode' => '',
    'longDescription' => '',
    'product' => [
        'genericUri' => '',
        'id' => '',
        'name' => ''
    ],
    'publisher' => [
        'issuingAuthority' => '',
        'name' => '',
        'publisherNamespace' => ''
    ],
    'shortDescription' => '',
    'title' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:+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}}/v1/:+parent/notes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+parent/notes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
import http.client

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

payload = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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/v1/:+parent/notes", payload, headers)

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

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

url = "{{baseUrl}}/v1/:+parent/notes"

payload = {
    "attestation": { "hint": { "humanReadableName": "" } },
    "build": { "builderVersion": "" },
    "compliance": {
        "cisBenchmark": {
            "profileLevel": 0,
            "severity": ""
        },
        "description": "",
        "impact": "",
        "rationale": "",
        "remediation": "",
        "scanInstructions": "",
        "title": "",
        "version": [
            {
                "benchmarkDocument": "",
                "cpeUri": "",
                "version": ""
            }
        ]
    },
    "createTime": "",
    "deployment": { "resourceUri": [] },
    "discovery": { "analysisKind": "" },
    "dsseAttestation": { "hint": { "humanReadableName": "" } },
    "expirationTime": "",
    "image": {
        "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
        },
        "resourceUrl": ""
    },
    "kind": "",
    "longDescription": "",
    "name": "",
    "package": {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "digest": [
            {
                "algo": "",
                "digestBytes": ""
            }
        ],
        "distribution": [
            {
                "architecture": "",
                "cpeUri": "",
                "description": "",
                "latestVersion": {
                    "epoch": 0,
                    "fullName": "",
                    "inclusive": False,
                    "kind": "",
                    "name": "",
                    "revision": ""
                },
                "maintainer": "",
                "url": ""
            }
        ],
        "license": {
            "comments": "",
            "expression": ""
        },
        "maintainer": "",
        "name": "",
        "packageType": "",
        "url": "",
        "version": {}
    },
    "relatedNoteNames": [],
    "relatedUrl": [
        {
            "label": "",
            "url": ""
        }
    ],
    "sbomReference": {
        "format": "",
        "version": ""
    },
    "shortDescription": "",
    "updateTime": "",
    "upgrade": {
        "distributions": [
            {
                "classification": "",
                "cpeUri": "",
                "cve": [],
                "severity": ""
            }
        ],
        "package": "",
        "version": {},
        "windowsUpdate": {
            "categories": [
                {
                    "categoryId": "",
                    "name": ""
                }
            ],
            "description": "",
            "identity": {
                "revision": 0,
                "updateId": ""
            },
            "kbArticleIds": [],
            "lastPublishedTimestamp": "",
            "supportUrl": "",
            "title": ""
        }
    },
    "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": "",
        "details": [
            {
                "affectedCpeUri": "",
                "affectedPackage": "",
                "affectedVersionEnd": {},
                "affectedVersionStart": {},
                "description": "",
                "fixedCpeUri": "",
                "fixedPackage": "",
                "fixedVersion": {},
                "isObsolete": False,
                "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": "",
            "vulnerabilityId": ""
        },
        "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}}/v1/:+parent/notes"

payload <- "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+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  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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/v1/:+parent/notes') do |req|
  req.body = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/notes";

    let payload = json!({
        "attestation": json!({"hint": json!({"humanReadableName": ""})}),
        "build": json!({"builderVersion": ""}),
        "compliance": json!({
            "cisBenchmark": json!({
                "profileLevel": 0,
                "severity": ""
            }),
            "description": "",
            "impact": "",
            "rationale": "",
            "remediation": "",
            "scanInstructions": "",
            "title": "",
            "version": (
                json!({
                    "benchmarkDocument": "",
                    "cpeUri": "",
                    "version": ""
                })
            )
        }),
        "createTime": "",
        "deployment": json!({"resourceUri": ()}),
        "discovery": json!({"analysisKind": ""}),
        "dsseAttestation": json!({"hint": json!({"humanReadableName": ""})}),
        "expirationTime": "",
        "image": json!({
            "fingerprint": json!({
                "v1Name": "",
                "v2Blob": (),
                "v2Name": ""
            }),
            "resourceUrl": ""
        }),
        "kind": "",
        "longDescription": "",
        "name": "",
        "package": json!({
            "architecture": "",
            "cpeUri": "",
            "description": "",
            "digest": (
                json!({
                    "algo": "",
                    "digestBytes": ""
                })
            ),
            "distribution": (
                json!({
                    "architecture": "",
                    "cpeUri": "",
                    "description": "",
                    "latestVersion": json!({
                        "epoch": 0,
                        "fullName": "",
                        "inclusive": false,
                        "kind": "",
                        "name": "",
                        "revision": ""
                    }),
                    "maintainer": "",
                    "url": ""
                })
            ),
            "license": json!({
                "comments": "",
                "expression": ""
            }),
            "maintainer": "",
            "name": "",
            "packageType": "",
            "url": "",
            "version": json!({})
        }),
        "relatedNoteNames": (),
        "relatedUrl": (
            json!({
                "label": "",
                "url": ""
            })
        ),
        "sbomReference": json!({
            "format": "",
            "version": ""
        }),
        "shortDescription": "",
        "updateTime": "",
        "upgrade": json!({
            "distributions": (
                json!({
                    "classification": "",
                    "cpeUri": "",
                    "cve": (),
                    "severity": ""
                })
            ),
            "package": "",
            "version": json!({}),
            "windowsUpdate": json!({
                "categories": (
                    json!({
                        "categoryId": "",
                        "name": ""
                    })
                ),
                "description": "",
                "identity": json!({
                    "revision": 0,
                    "updateId": ""
                }),
                "kbArticleIds": (),
                "lastPublishedTimestamp": "",
                "supportUrl": "",
                "title": ""
            })
        }),
        "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": "",
            "details": (
                json!({
                    "affectedCpeUri": "",
                    "affectedPackage": "",
                    "affectedVersionEnd": json!({}),
                    "affectedVersionStart": json!({}),
                    "description": "",
                    "fixedCpeUri": "",
                    "fixedPackage": "",
                    "fixedVersion": json!({}),
                    "isObsolete": false,
                    "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": "",
                "vulnerabilityId": ""
            }),
            "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}}/v1/:+parent/notes' \
  --header 'content-type: application/json' \
  --data '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
echo '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}' |  \
  http POST '{{baseUrl}}/v1/:+parent/notes' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "build": {\n    "builderVersion": ""\n  },\n  "compliance": {\n    "cisBenchmark": {\n      "profileLevel": 0,\n      "severity": ""\n    },\n    "description": "",\n    "impact": "",\n    "rationale": "",\n    "remediation": "",\n    "scanInstructions": "",\n    "title": "",\n    "version": [\n      {\n        "benchmarkDocument": "",\n        "cpeUri": "",\n        "version": ""\n      }\n    ]\n  },\n  "createTime": "",\n  "deployment": {\n    "resourceUri": []\n  },\n  "discovery": {\n    "analysisKind": ""\n  },\n  "dsseAttestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "expirationTime": "",\n  "image": {\n    "fingerprint": {\n      "v1Name": "",\n      "v2Blob": [],\n      "v2Name": ""\n    },\n    "resourceUrl": ""\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          "fullName": "",\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  "sbomReference": {\n    "format": "",\n    "version": ""\n  },\n  "shortDescription": "",\n  "updateTime": "",\n  "upgrade": {\n    "distributions": [\n      {\n        "classification": "",\n        "cpeUri": "",\n        "cve": [],\n        "severity": ""\n      }\n    ],\n    "package": "",\n    "version": {},\n    "windowsUpdate": {\n      "categories": [\n        {\n          "categoryId": "",\n          "name": ""\n        }\n      ],\n      "description": "",\n      "identity": {\n        "revision": 0,\n        "updateId": ""\n      },\n      "kbArticleIds": [],\n      "lastPublishedTimestamp": "",\n      "supportUrl": "",\n      "title": ""\n    }\n  },\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    "details": [\n      {\n        "affectedCpeUri": "",\n        "affectedPackage": "",\n        "affectedVersionEnd": {},\n        "affectedVersionStart": {},\n        "description": "",\n        "fixedCpeUri": "",\n        "fixedPackage": "",\n        "fixedVersion": {},\n        "isObsolete": false,\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      "vulnerabilityId": ""\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}}/v1/:+parent/notes'
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attestation": ["hint": ["humanReadableName": ""]],
  "build": ["builderVersion": ""],
  "compliance": [
    "cisBenchmark": [
      "profileLevel": 0,
      "severity": ""
    ],
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      [
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      ]
    ]
  ],
  "createTime": "",
  "deployment": ["resourceUri": []],
  "discovery": ["analysisKind": ""],
  "dsseAttestation": ["hint": ["humanReadableName": ""]],
  "expirationTime": "",
  "image": [
    "fingerprint": [
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    ],
    "resourceUrl": ""
  ],
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": [
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      [
        "algo": "",
        "digestBytes": ""
      ]
    ],
    "distribution": [
      [
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": [
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        ],
        "maintainer": "",
        "url": ""
      ]
    ],
    "license": [
      "comments": "",
      "expression": ""
    ],
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": []
  ],
  "relatedNoteNames": [],
  "relatedUrl": [
    [
      "label": "",
      "url": ""
    ]
  ],
  "sbomReference": [
    "format": "",
    "version": ""
  ],
  "shortDescription": "",
  "updateTime": "",
  "upgrade": [
    "distributions": [
      [
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      ]
    ],
    "package": "",
    "version": [],
    "windowsUpdate": [
      "categories": [
        [
          "categoryId": "",
          "name": ""
        ]
      ],
      "description": "",
      "identity": [
        "revision": 0,
        "updateId": ""
      ],
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    ]
  ],
  "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": "",
    "details": [
      [
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": [],
        "affectedVersionStart": [],
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": [],
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    ],
    "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}}/v1/:+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()
DELETE containeranalysis.projects.locations.notes.delete
{{baseUrl}}/v1/:+name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

dataTask.resume()
GET containeranalysis.projects.locations.notes.get
{{baseUrl}}/v1/:+name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
POST containeranalysis.projects.locations.notes.getIamPolicy
{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+resource:getIamPolicy" {:content-type :json
                                                                       :form-params {:options {:requestedPolicyVersion 0}}})
require "http/client"

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+resource:getIamPolicy")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+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}}/v1/:+resource:getIamPolicy');
xhr.setRequestHeader('content-type', 'application/json');

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+resource:getIamPolicy", payload, headers)

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+resource:getIamPolicy' \
  --header 'content-type: application/json' \
  --data '{
  "options": {
    "requestedPolicyVersion": 0
  }
}'
echo '{
  "options": {
    "requestedPolicyVersion": 0
  }
}' |  \
  http POST '{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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.locations.notes.list
{{baseUrl}}/v1/:+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}}/v1/:+parent/notes");

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+parent/notes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:+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/v1/:+parent/notes HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+parent/notes" in

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1/:+parent/notes"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:+parent/notes"

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

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

url = URI("{{baseUrl}}/v1/:+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/v1/:+parent/notes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+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}}/v1/:+parent/notes'
http GET '{{baseUrl}}/v1/:+parent/notes'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+parent/notes'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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.locations.notes.occurrences.list
{{baseUrl}}/v1/:+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}}/v1/:+name/occurrences");

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+name/occurrences");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:+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/v1/:+name/occurrences HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+name/occurrences" in

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/v1/:+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/v1/:+name/occurrences') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+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}}/v1/:+name/occurrences'
http GET '{{baseUrl}}/v1/:+name/occurrences'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+name/occurrences'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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()
PATCH containeranalysis.projects.locations.notes.patch
{{baseUrl}}/v1/:+name
QUERY PARAMS

name
BODY json

{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "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, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+name");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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/patch "{{baseUrl}}/v1/:+name" {:content-type :json
                                                       :form-params {:attestation {:hint {:humanReadableName ""}}
                                                                     :build {:builderVersion ""}
                                                                     :compliance {:cisBenchmark {:profileLevel 0
                                                                                                 :severity ""}
                                                                                  :description ""
                                                                                  :impact ""
                                                                                  :rationale ""
                                                                                  :remediation ""
                                                                                  :scanInstructions ""
                                                                                  :title ""
                                                                                  :version [{:benchmarkDocument ""
                                                                                             :cpeUri ""
                                                                                             :version ""}]}
                                                                     :createTime ""
                                                                     :deployment {:resourceUri []}
                                                                     :discovery {:analysisKind ""}
                                                                     :dsseAttestation {:hint {:humanReadableName ""}}
                                                                     :expirationTime ""
                                                                     :image {:fingerprint {:v1Name ""
                                                                                           :v2Blob []
                                                                                           :v2Name ""}
                                                                             :resourceUrl ""}
                                                                     :kind ""
                                                                     :longDescription ""
                                                                     :name ""
                                                                     :package {:architecture ""
                                                                               :cpeUri ""
                                                                               :description ""
                                                                               :digest [{:algo ""
                                                                                         :digestBytes ""}]
                                                                               :distribution [{:architecture ""
                                                                                               :cpeUri ""
                                                                                               :description ""
                                                                                               :latestVersion {:epoch 0
                                                                                                               :fullName ""
                                                                                                               :inclusive false
                                                                                                               :kind ""
                                                                                                               :name ""
                                                                                                               :revision ""}
                                                                                               :maintainer ""
                                                                                               :url ""}]
                                                                               :license {:comments ""
                                                                                         :expression ""}
                                                                               :maintainer ""
                                                                               :name ""
                                                                               :packageType ""
                                                                               :url ""
                                                                               :version {}}
                                                                     :relatedNoteNames []
                                                                     :relatedUrl [{:label ""
                                                                                   :url ""}]
                                                                     :sbomReference {:format ""
                                                                                     :version ""}
                                                                     :shortDescription ""
                                                                     :updateTime ""
                                                                     :upgrade {:distributions [{:classification ""
                                                                                                :cpeUri ""
                                                                                                :cve []
                                                                                                :severity ""}]
                                                                               :package ""
                                                                               :version {}
                                                                               :windowsUpdate {:categories [{:categoryId ""
                                                                                                             :name ""}]
                                                                                               :description ""
                                                                                               :identity {:revision 0
                                                                                                          :updateId ""}
                                                                                               :kbArticleIds []
                                                                                               :lastPublishedTimestamp ""
                                                                                               :supportUrl ""
                                                                                               :title ""}}
                                                                     :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 ""
                                                                                     :details [{:affectedCpeUri ""
                                                                                                :affectedPackage ""
                                                                                                :affectedVersionEnd {}
                                                                                                :affectedVersionStart {}
                                                                                                :description ""
                                                                                                :fixedCpeUri ""
                                                                                                :fixedPackage ""
                                                                                                :fixedVersion {}
                                                                                                :isObsolete false
                                                                                                :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 ""
                                                                                                            :vulnerabilityId ""}
                                                                                               :languageCode ""
                                                                                               :longDescription ""
                                                                                               :product {:genericUri ""
                                                                                                         :id ""
                                                                                                         :name ""}
                                                                                               :publisher {:issuingAuthority ""
                                                                                                           :name ""
                                                                                                           :publisherNamespace ""}
                                                                                               :shortDescription ""
                                                                                               :title ""}}})
require "http/client"

url = "{{baseUrl}}/v1/:+name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v1/:+name"),
    Content = new StringContent("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+name"

	payload := strings.NewReader("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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("PATCH", url, payload)

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

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

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

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

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

{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v1/:+name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v1/:+name")
  .header("content-type", "application/json")
  .body("{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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({
  attestation: {
    hint: {
      humanReadableName: ''
    }
  },
  build: {
    builderVersion: ''
  },
  compliance: {
    cisBenchmark: {
      profileLevel: 0,
      severity: ''
    },
    description: '',
    impact: '',
    rationale: '',
    remediation: '',
    scanInstructions: '',
    title: '',
    version: [
      {
        benchmarkDocument: '',
        cpeUri: '',
        version: ''
      }
    ]
  },
  createTime: '',
  deployment: {
    resourceUri: []
  },
  discovery: {
    analysisKind: ''
  },
  dsseAttestation: {
    hint: {
      humanReadableName: ''
    }
  },
  expirationTime: '',
  image: {
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    resourceUrl: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [
      {
        algo: '',
        digestBytes: ''
      }
    ],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {
          epoch: 0,
          fullName: '',
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        },
        maintainer: '',
        url: ''
      }
    ],
    license: {
      comments: '',
      expression: ''
    },
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [
    {
      label: '',
      url: ''
    }
  ],
  sbomReference: {
    format: '',
    version: ''
  },
  shortDescription: '',
  updateTime: '',
  upgrade: {
    distributions: [
      {
        classification: '',
        cpeUri: '',
        cve: [],
        severity: ''
      }
    ],
    package: '',
    version: {},
    windowsUpdate: {
      categories: [
        {
          categoryId: '',
          name: ''
        }
      ],
      description: '',
      identity: {
        revision: 0,
        updateId: ''
      },
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  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: '',
    details: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersionEnd: {},
        affectedVersionStart: {},
        description: '',
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        isObsolete: false,
        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: '',
      vulnerabilityId: ''
    },
    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('PATCH', '{{baseUrl}}/v1/:+name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:+name',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {hint: {humanReadableName: ''}},
    build: {builderVersion: ''},
    compliance: {
      cisBenchmark: {profileLevel: 0, severity: ''},
      description: '',
      impact: '',
      rationale: '',
      remediation: '',
      scanInstructions: '',
      title: '',
      version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
    },
    createTime: '',
    deployment: {resourceUri: []},
    discovery: {analysisKind: ''},
    dsseAttestation: {hint: {humanReadableName: ''}},
    expirationTime: '',
    image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    updateTime: '',
    upgrade: {
      distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
      package: '',
      version: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    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: '',
      details: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersionEnd: {},
          affectedVersionStart: {},
          description: '',
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          isObsolete: false,
          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: '',
        vulnerabilityId: ''
      },
      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}}/v1/:+name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"hint":{"humanReadableName":""}},"build":{"builderVersion":""},"compliance":{"cisBenchmark":{"profileLevel":0,"severity":""},"description":"","impact":"","rationale":"","remediation":"","scanInstructions":"","title":"","version":[{"benchmarkDocument":"","cpeUri":"","version":""}]},"createTime":"","deployment":{"resourceUri":[]},"discovery":{"analysisKind":""},"dsseAttestation":{"hint":{"humanReadableName":""}},"expirationTime":"","image":{"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"resourceUrl":""},"kind":"","longDescription":"","name":"","package":{"architecture":"","cpeUri":"","description":"","digest":[{"algo":"","digestBytes":""}],"distribution":[{"architecture":"","cpeUri":"","description":"","latestVersion":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""},"maintainer":"","url":""}],"license":{"comments":"","expression":""},"maintainer":"","name":"","packageType":"","url":"","version":{}},"relatedNoteNames":[],"relatedUrl":[{"label":"","url":""}],"sbomReference":{"format":"","version":""},"shortDescription":"","updateTime":"","upgrade":{"distributions":[{"classification":"","cpeUri":"","cve":[],"severity":""}],"package":"","version":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"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":"","details":[{"affectedCpeUri":"","affectedPackage":"","affectedVersionEnd":{},"affectedVersionStart":{},"description":"","fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"isObsolete":false,"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":"","vulnerabilityId":""},"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}}/v1/:+name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "build": {\n    "builderVersion": ""\n  },\n  "compliance": {\n    "cisBenchmark": {\n      "profileLevel": 0,\n      "severity": ""\n    },\n    "description": "",\n    "impact": "",\n    "rationale": "",\n    "remediation": "",\n    "scanInstructions": "",\n    "title": "",\n    "version": [\n      {\n        "benchmarkDocument": "",\n        "cpeUri": "",\n        "version": ""\n      }\n    ]\n  },\n  "createTime": "",\n  "deployment": {\n    "resourceUri": []\n  },\n  "discovery": {\n    "analysisKind": ""\n  },\n  "dsseAttestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "expirationTime": "",\n  "image": {\n    "fingerprint": {\n      "v1Name": "",\n      "v2Blob": [],\n      "v2Name": ""\n    },\n    "resourceUrl": ""\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          "fullName": "",\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  "sbomReference": {\n    "format": "",\n    "version": ""\n  },\n  "shortDescription": "",\n  "updateTime": "",\n  "upgrade": {\n    "distributions": [\n      {\n        "classification": "",\n        "cpeUri": "",\n        "cve": [],\n        "severity": ""\n      }\n    ],\n    "package": "",\n    "version": {},\n    "windowsUpdate": {\n      "categories": [\n        {\n          "categoryId": "",\n          "name": ""\n        }\n      ],\n      "description": "",\n      "identity": {\n        "revision": 0,\n        "updateId": ""\n      },\n      "kbArticleIds": [],\n      "lastPublishedTimestamp": "",\n      "supportUrl": "",\n      "title": ""\n    }\n  },\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    "details": [\n      {\n        "affectedCpeUri": "",\n        "affectedPackage": "",\n        "affectedVersionEnd": {},\n        "affectedVersionStart": {},\n        "description": "",\n        "fixedCpeUri": "",\n        "fixedPackage": "",\n        "fixedVersion": {},\n        "isObsolete": false,\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      "vulnerabilityId": ""\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  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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}}/v1/:+name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

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

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

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

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

req.write(JSON.stringify({
  attestation: {hint: {humanReadableName: ''}},
  build: {builderVersion: ''},
  compliance: {
    cisBenchmark: {profileLevel: 0, severity: ''},
    description: '',
    impact: '',
    rationale: '',
    remediation: '',
    scanInstructions: '',
    title: '',
    version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
  },
  createTime: '',
  deployment: {resourceUri: []},
  discovery: {analysisKind: ''},
  dsseAttestation: {hint: {humanReadableName: ''}},
  expirationTime: '',
  image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [{algo: '', digestBytes: ''}],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
        maintainer: '',
        url: ''
      }
    ],
    license: {comments: '', expression: ''},
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [{label: '', url: ''}],
  sbomReference: {format: '', version: ''},
  shortDescription: '',
  updateTime: '',
  upgrade: {
    distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
    package: '',
    version: {},
    windowsUpdate: {
      categories: [{categoryId: '', name: ''}],
      description: '',
      identity: {revision: 0, updateId: ''},
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  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: '',
    details: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersionEnd: {},
        affectedVersionStart: {},
        description: '',
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        isObsolete: false,
        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: '',
      vulnerabilityId: ''
    },
    languageCode: '',
    longDescription: '',
    product: {genericUri: '', id: '', name: ''},
    publisher: {issuingAuthority: '', name: '', publisherNamespace: ''},
    shortDescription: '',
    title: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v1/:+name',
  headers: {'content-type': 'application/json'},
  body: {
    attestation: {hint: {humanReadableName: ''}},
    build: {builderVersion: ''},
    compliance: {
      cisBenchmark: {profileLevel: 0, severity: ''},
      description: '',
      impact: '',
      rationale: '',
      remediation: '',
      scanInstructions: '',
      title: '',
      version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
    },
    createTime: '',
    deployment: {resourceUri: []},
    discovery: {analysisKind: ''},
    dsseAttestation: {hint: {humanReadableName: ''}},
    expirationTime: '',
    image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    updateTime: '',
    upgrade: {
      distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
      package: '',
      version: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    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: '',
      details: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersionEnd: {},
          affectedVersionStart: {},
          description: '',
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          isObsolete: false,
          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: '',
        vulnerabilityId: ''
      },
      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('PATCH', '{{baseUrl}}/v1/:+name');

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

req.type('json');
req.send({
  attestation: {
    hint: {
      humanReadableName: ''
    }
  },
  build: {
    builderVersion: ''
  },
  compliance: {
    cisBenchmark: {
      profileLevel: 0,
      severity: ''
    },
    description: '',
    impact: '',
    rationale: '',
    remediation: '',
    scanInstructions: '',
    title: '',
    version: [
      {
        benchmarkDocument: '',
        cpeUri: '',
        version: ''
      }
    ]
  },
  createTime: '',
  deployment: {
    resourceUri: []
  },
  discovery: {
    analysisKind: ''
  },
  dsseAttestation: {
    hint: {
      humanReadableName: ''
    }
  },
  expirationTime: '',
  image: {
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    resourceUrl: ''
  },
  kind: '',
  longDescription: '',
  name: '',
  package: {
    architecture: '',
    cpeUri: '',
    description: '',
    digest: [
      {
        algo: '',
        digestBytes: ''
      }
    ],
    distribution: [
      {
        architecture: '',
        cpeUri: '',
        description: '',
        latestVersion: {
          epoch: 0,
          fullName: '',
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        },
        maintainer: '',
        url: ''
      }
    ],
    license: {
      comments: '',
      expression: ''
    },
    maintainer: '',
    name: '',
    packageType: '',
    url: '',
    version: {}
  },
  relatedNoteNames: [],
  relatedUrl: [
    {
      label: '',
      url: ''
    }
  ],
  sbomReference: {
    format: '',
    version: ''
  },
  shortDescription: '',
  updateTime: '',
  upgrade: {
    distributions: [
      {
        classification: '',
        cpeUri: '',
        cve: [],
        severity: ''
      }
    ],
    package: '',
    version: {},
    windowsUpdate: {
      categories: [
        {
          categoryId: '',
          name: ''
        }
      ],
      description: '',
      identity: {
        revision: 0,
        updateId: ''
      },
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  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: '',
    details: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersionEnd: {},
        affectedVersionStart: {},
        description: '',
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        isObsolete: false,
        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: '',
      vulnerabilityId: ''
    },
    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: 'PATCH',
  url: '{{baseUrl}}/v1/:+name',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {hint: {humanReadableName: ''}},
    build: {builderVersion: ''},
    compliance: {
      cisBenchmark: {profileLevel: 0, severity: ''},
      description: '',
      impact: '',
      rationale: '',
      remediation: '',
      scanInstructions: '',
      title: '',
      version: [{benchmarkDocument: '', cpeUri: '', version: ''}]
    },
    createTime: '',
    deployment: {resourceUri: []},
    discovery: {analysisKind: ''},
    dsseAttestation: {hint: {humanReadableName: ''}},
    expirationTime: '',
    image: {fingerprint: {v1Name: '', v2Blob: [], v2Name: ''}, resourceUrl: ''},
    kind: '',
    longDescription: '',
    name: '',
    package: {
      architecture: '',
      cpeUri: '',
      description: '',
      digest: [{algo: '', digestBytes: ''}],
      distribution: [
        {
          architecture: '',
          cpeUri: '',
          description: '',
          latestVersion: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''},
          maintainer: '',
          url: ''
        }
      ],
      license: {comments: '', expression: ''},
      maintainer: '',
      name: '',
      packageType: '',
      url: '',
      version: {}
    },
    relatedNoteNames: [],
    relatedUrl: [{label: '', url: ''}],
    sbomReference: {format: '', version: ''},
    shortDescription: '',
    updateTime: '',
    upgrade: {
      distributions: [{classification: '', cpeUri: '', cve: [], severity: ''}],
      package: '',
      version: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    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: '',
      details: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersionEnd: {},
          affectedVersionStart: {},
          description: '',
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          isObsolete: false,
          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: '',
        vulnerabilityId: ''
      },
      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}}/v1/:+name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"hint":{"humanReadableName":""}},"build":{"builderVersion":""},"compliance":{"cisBenchmark":{"profileLevel":0,"severity":""},"description":"","impact":"","rationale":"","remediation":"","scanInstructions":"","title":"","version":[{"benchmarkDocument":"","cpeUri":"","version":""}]},"createTime":"","deployment":{"resourceUri":[]},"discovery":{"analysisKind":""},"dsseAttestation":{"hint":{"humanReadableName":""}},"expirationTime":"","image":{"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"resourceUrl":""},"kind":"","longDescription":"","name":"","package":{"architecture":"","cpeUri":"","description":"","digest":[{"algo":"","digestBytes":""}],"distribution":[{"architecture":"","cpeUri":"","description":"","latestVersion":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""},"maintainer":"","url":""}],"license":{"comments":"","expression":""},"maintainer":"","name":"","packageType":"","url":"","version":{}},"relatedNoteNames":[],"relatedUrl":[{"label":"","url":""}],"sbomReference":{"format":"","version":""},"shortDescription":"","updateTime":"","upgrade":{"distributions":[{"classification":"","cpeUri":"","cve":[],"severity":""}],"package":"","version":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"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":"","details":[{"affectedCpeUri":"","affectedPackage":"","affectedVersionEnd":{},"affectedVersionStart":{},"description":"","fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"isObsolete":false,"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":"","vulnerabilityId":""},"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 = @{ @"attestation": @{ @"hint": @{ @"humanReadableName": @"" } },
                              @"build": @{ @"builderVersion": @"" },
                              @"compliance": @{ @"cisBenchmark": @{ @"profileLevel": @0, @"severity": @"" }, @"description": @"", @"impact": @"", @"rationale": @"", @"remediation": @"", @"scanInstructions": @"", @"title": @"", @"version": @[ @{ @"benchmarkDocument": @"", @"cpeUri": @"", @"version": @"" } ] },
                              @"createTime": @"",
                              @"deployment": @{ @"resourceUri": @[  ] },
                              @"discovery": @{ @"analysisKind": @"" },
                              @"dsseAttestation": @{ @"hint": @{ @"humanReadableName": @"" } },
                              @"expirationTime": @"",
                              @"image": @{ @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"resourceUrl": @"" },
                              @"kind": @"",
                              @"longDescription": @"",
                              @"name": @"",
                              @"package": @{ @"architecture": @"", @"cpeUri": @"", @"description": @"", @"digest": @[ @{ @"algo": @"", @"digestBytes": @"" } ], @"distribution": @[ @{ @"architecture": @"", @"cpeUri": @"", @"description": @"", @"latestVersion": @{ @"epoch": @0, @"fullName": @"", @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" }, @"maintainer": @"", @"url": @"" } ], @"license": @{ @"comments": @"", @"expression": @"" }, @"maintainer": @"", @"name": @"", @"packageType": @"", @"url": @"", @"version": @{  } },
                              @"relatedNoteNames": @[  ],
                              @"relatedUrl": @[ @{ @"label": @"", @"url": @"" } ],
                              @"sbomReference": @{ @"format": @"", @"version": @"" },
                              @"shortDescription": @"",
                              @"updateTime": @"",
                              @"upgrade": @{ @"distributions": @[ @{ @"classification": @"", @"cpeUri": @"", @"cve": @[  ], @"severity": @"" } ], @"package": @"", @"version": @{  }, @"windowsUpdate": @{ @"categories": @[ @{ @"categoryId": @"", @"name": @"" } ], @"description": @"", @"identity": @{ @"revision": @0, @"updateId": @"" }, @"kbArticleIds": @[  ], @"lastPublishedTimestamp": @"", @"supportUrl": @"", @"title": @"" } },
                              @"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": @"", @"details": @[ @{ @"affectedCpeUri": @"", @"affectedPackage": @"", @"affectedVersionEnd": @{  }, @"affectedVersionStart": @{  }, @"description": @"", @"fixedCpeUri": @"", @"fixedPackage": @"", @"fixedVersion": @{  }, @"isObsolete": @NO, @"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": @"", @"vulnerabilityId": @"" }, @"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}}/v1/:+name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/v1/:+name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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 `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'attestation' => [
        'hint' => [
                'humanReadableName' => ''
        ]
    ],
    'build' => [
        'builderVersion' => ''
    ],
    'compliance' => [
        'cisBenchmark' => [
                'profileLevel' => 0,
                'severity' => ''
        ],
        'description' => '',
        'impact' => '',
        'rationale' => '',
        'remediation' => '',
        'scanInstructions' => '',
        'title' => '',
        'version' => [
                [
                                'benchmarkDocument' => '',
                                'cpeUri' => '',
                                'version' => ''
                ]
        ]
    ],
    'createTime' => '',
    'deployment' => [
        'resourceUri' => [
                
        ]
    ],
    'discovery' => [
        'analysisKind' => ''
    ],
    'dsseAttestation' => [
        'hint' => [
                'humanReadableName' => ''
        ]
    ],
    'expirationTime' => '',
    'image' => [
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'resourceUrl' => ''
    ],
    'kind' => '',
    'longDescription' => '',
    'name' => '',
    'package' => [
        'architecture' => '',
        'cpeUri' => '',
        'description' => '',
        'digest' => [
                [
                                'algo' => '',
                                'digestBytes' => ''
                ]
        ],
        'distribution' => [
                [
                                'architecture' => '',
                                'cpeUri' => '',
                                'description' => '',
                                'latestVersion' => [
                                                                'epoch' => 0,
                                                                'fullName' => '',
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ],
                                'maintainer' => '',
                                'url' => ''
                ]
        ],
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'maintainer' => '',
        'name' => '',
        'packageType' => '',
        'url' => '',
        'version' => [
                
        ]
    ],
    'relatedNoteNames' => [
        
    ],
    'relatedUrl' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'sbomReference' => [
        'format' => '',
        'version' => ''
    ],
    'shortDescription' => '',
    'updateTime' => '',
    'upgrade' => [
        'distributions' => [
                [
                                'classification' => '',
                                'cpeUri' => '',
                                'cve' => [
                                                                
                                ],
                                'severity' => ''
                ]
        ],
        'package' => '',
        'version' => [
                
        ],
        'windowsUpdate' => [
                'categories' => [
                                [
                                                                'categoryId' => '',
                                                                'name' => ''
                                ]
                ],
                'description' => '',
                'identity' => [
                                'revision' => 0,
                                'updateId' => ''
                ],
                'kbArticleIds' => [
                                
                ],
                'lastPublishedTimestamp' => '',
                'supportUrl' => '',
                'title' => ''
        ]
    ],
    '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' => '',
        'details' => [
                [
                                'affectedCpeUri' => '',
                                'affectedPackage' => '',
                                'affectedVersionEnd' => [
                                                                
                                ],
                                'affectedVersionStart' => [
                                                                
                                ],
                                'description' => '',
                                'fixedCpeUri' => '',
                                'fixedPackage' => '',
                                'fixedVersion' => [
                                                                
                                ],
                                'isObsolete' => null,
                                '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' => '',
                'vulnerabilityId' => ''
        ],
        '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('PATCH', '{{baseUrl}}/v1/:+name', [
  'body' => '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'build' => [
    'builderVersion' => ''
  ],
  'compliance' => [
    'cisBenchmark' => [
        'profileLevel' => 0,
        'severity' => ''
    ],
    'description' => '',
    'impact' => '',
    'rationale' => '',
    'remediation' => '',
    'scanInstructions' => '',
    'title' => '',
    'version' => [
        [
                'benchmarkDocument' => '',
                'cpeUri' => '',
                'version' => ''
        ]
    ]
  ],
  'createTime' => '',
  'deployment' => [
    'resourceUri' => [
        
    ]
  ],
  'discovery' => [
    'analysisKind' => ''
  ],
  'dsseAttestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'expirationTime' => '',
  'image' => [
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'resourceUrl' => ''
  ],
  'kind' => '',
  'longDescription' => '',
  'name' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'description' => '',
    'digest' => [
        [
                'algo' => '',
                'digestBytes' => ''
        ]
    ],
    'distribution' => [
        [
                'architecture' => '',
                'cpeUri' => '',
                'description' => '',
                'latestVersion' => [
                                'epoch' => 0,
                                'fullName' => '',
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ],
                'maintainer' => '',
                'url' => ''
        ]
    ],
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'maintainer' => '',
    'name' => '',
    'packageType' => '',
    'url' => '',
    'version' => [
        
    ]
  ],
  'relatedNoteNames' => [
    
  ],
  'relatedUrl' => [
    [
        'label' => '',
        'url' => ''
    ]
  ],
  'sbomReference' => [
    'format' => '',
    'version' => ''
  ],
  'shortDescription' => '',
  'updateTime' => '',
  'upgrade' => [
    'distributions' => [
        [
                'classification' => '',
                'cpeUri' => '',
                'cve' => [
                                
                ],
                'severity' => ''
        ]
    ],
    'package' => '',
    'version' => [
        
    ],
    'windowsUpdate' => [
        'categories' => [
                [
                                'categoryId' => '',
                                'name' => ''
                ]
        ],
        'description' => '',
        'identity' => [
                'revision' => 0,
                'updateId' => ''
        ],
        'kbArticleIds' => [
                
        ],
        'lastPublishedTimestamp' => '',
        'supportUrl' => '',
        'title' => ''
    ]
  ],
  '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' => '',
    'details' => [
        [
                'affectedCpeUri' => '',
                'affectedPackage' => '',
                'affectedVersionEnd' => [
                                
                ],
                'affectedVersionStart' => [
                                
                ],
                'description' => '',
                'fixedCpeUri' => '',
                'fixedPackage' => '',
                'fixedVersion' => [
                                
                ],
                'isObsolete' => null,
                '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' => '',
        'vulnerabilityId' => ''
    ],
    '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([
  'attestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'build' => [
    'builderVersion' => ''
  ],
  'compliance' => [
    'cisBenchmark' => [
        'profileLevel' => 0,
        'severity' => ''
    ],
    'description' => '',
    'impact' => '',
    'rationale' => '',
    'remediation' => '',
    'scanInstructions' => '',
    'title' => '',
    'version' => [
        [
                'benchmarkDocument' => '',
                'cpeUri' => '',
                'version' => ''
        ]
    ]
  ],
  'createTime' => '',
  'deployment' => [
    'resourceUri' => [
        
    ]
  ],
  'discovery' => [
    'analysisKind' => ''
  ],
  'dsseAttestation' => [
    'hint' => [
        'humanReadableName' => ''
    ]
  ],
  'expirationTime' => '',
  'image' => [
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'resourceUrl' => ''
  ],
  'kind' => '',
  'longDescription' => '',
  'name' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'description' => '',
    'digest' => [
        [
                'algo' => '',
                'digestBytes' => ''
        ]
    ],
    'distribution' => [
        [
                'architecture' => '',
                'cpeUri' => '',
                'description' => '',
                'latestVersion' => [
                                'epoch' => 0,
                                'fullName' => '',
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ],
                'maintainer' => '',
                'url' => ''
        ]
    ],
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'maintainer' => '',
    'name' => '',
    'packageType' => '',
    'url' => '',
    'version' => [
        
    ]
  ],
  'relatedNoteNames' => [
    
  ],
  'relatedUrl' => [
    [
        'label' => '',
        'url' => ''
    ]
  ],
  'sbomReference' => [
    'format' => '',
    'version' => ''
  ],
  'shortDescription' => '',
  'updateTime' => '',
  'upgrade' => [
    'distributions' => [
        [
                'classification' => '',
                'cpeUri' => '',
                'cve' => [
                                
                ],
                'severity' => ''
        ]
    ],
    'package' => '',
    'version' => [
        
    ],
    'windowsUpdate' => [
        'categories' => [
                [
                                'categoryId' => '',
                                'name' => ''
                ]
        ],
        'description' => '',
        'identity' => [
                'revision' => 0,
                'updateId' => ''
        ],
        'kbArticleIds' => [
                
        ],
        'lastPublishedTimestamp' => '',
        'supportUrl' => '',
        'title' => ''
    ]
  ],
  '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' => '',
    'details' => [
        [
                'affectedCpeUri' => '',
                'affectedPackage' => '',
                'affectedVersionEnd' => [
                                
                ],
                'affectedVersionStart' => [
                                
                ],
                'description' => '',
                'fixedCpeUri' => '',
                'fixedPackage' => '',
                'fixedVersion' => [
                                
                ],
                'isObsolete' => null,
                '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' => '',
        'vulnerabilityId' => ''
    ],
    'languageCode' => '',
    'longDescription' => '',
    'product' => [
        'genericUri' => '',
        'id' => '',
        'name' => ''
    ],
    'publisher' => [
        'issuingAuthority' => '',
        'name' => '',
        'publisherNamespace' => ''
    ],
    'shortDescription' => '',
    'title' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:+name');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v1/:+name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
import http.client

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

payload = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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("PATCH", "/baseUrl/v1/:+name", payload, headers)

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

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

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

payload = {
    "attestation": { "hint": { "humanReadableName": "" } },
    "build": { "builderVersion": "" },
    "compliance": {
        "cisBenchmark": {
            "profileLevel": 0,
            "severity": ""
        },
        "description": "",
        "impact": "",
        "rationale": "",
        "remediation": "",
        "scanInstructions": "",
        "title": "",
        "version": [
            {
                "benchmarkDocument": "",
                "cpeUri": "",
                "version": ""
            }
        ]
    },
    "createTime": "",
    "deployment": { "resourceUri": [] },
    "discovery": { "analysisKind": "" },
    "dsseAttestation": { "hint": { "humanReadableName": "" } },
    "expirationTime": "",
    "image": {
        "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
        },
        "resourceUrl": ""
    },
    "kind": "",
    "longDescription": "",
    "name": "",
    "package": {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "digest": [
            {
                "algo": "",
                "digestBytes": ""
            }
        ],
        "distribution": [
            {
                "architecture": "",
                "cpeUri": "",
                "description": "",
                "latestVersion": {
                    "epoch": 0,
                    "fullName": "",
                    "inclusive": False,
                    "kind": "",
                    "name": "",
                    "revision": ""
                },
                "maintainer": "",
                "url": ""
            }
        ],
        "license": {
            "comments": "",
            "expression": ""
        },
        "maintainer": "",
        "name": "",
        "packageType": "",
        "url": "",
        "version": {}
    },
    "relatedNoteNames": [],
    "relatedUrl": [
        {
            "label": "",
            "url": ""
        }
    ],
    "sbomReference": {
        "format": "",
        "version": ""
    },
    "shortDescription": "",
    "updateTime": "",
    "upgrade": {
        "distributions": [
            {
                "classification": "",
                "cpeUri": "",
                "cve": [],
                "severity": ""
            }
        ],
        "package": "",
        "version": {},
        "windowsUpdate": {
            "categories": [
                {
                    "categoryId": "",
                    "name": ""
                }
            ],
            "description": "",
            "identity": {
                "revision": 0,
                "updateId": ""
            },
            "kbArticleIds": [],
            "lastPublishedTimestamp": "",
            "supportUrl": "",
            "title": ""
        }
    },
    "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": "",
        "details": [
            {
                "affectedCpeUri": "",
                "affectedPackage": "",
                "affectedVersionEnd": {},
                "affectedVersionStart": {},
                "description": "",
                "fixedCpeUri": "",
                "fixedPackage": "",
                "fixedVersion": {},
                "isObsolete": False,
                "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": "",
            "vulnerabilityId": ""
        },
        "languageCode": "",
        "longDescription": "",
        "product": {
            "genericUri": "",
            "id": "",
            "name": ""
        },
        "publisher": {
            "issuingAuthority": "",
            "name": "",
            "publisherNamespace": ""
        },
        "shortDescription": "",
        "title": ""
    }
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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("PATCH", url, body = payload, content_type("application/json"), encode = encode)

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

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

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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.patch('/baseUrl/v1/:+name') do |req|
  req.body = "{\n  \"attestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"build\": {\n    \"builderVersion\": \"\"\n  },\n  \"compliance\": {\n    \"cisBenchmark\": {\n      \"profileLevel\": 0,\n      \"severity\": \"\"\n    },\n    \"description\": \"\",\n    \"impact\": \"\",\n    \"rationale\": \"\",\n    \"remediation\": \"\",\n    \"scanInstructions\": \"\",\n    \"title\": \"\",\n    \"version\": [\n      {\n        \"benchmarkDocument\": \"\",\n        \"cpeUri\": \"\",\n        \"version\": \"\"\n      }\n    ]\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"resourceUri\": []\n  },\n  \"discovery\": {\n    \"analysisKind\": \"\"\n  },\n  \"dsseAttestation\": {\n    \"hint\": {\n      \"humanReadableName\": \"\"\n    }\n  },\n  \"expirationTime\": \"\",\n  \"image\": {\n    \"fingerprint\": {\n      \"v1Name\": \"\",\n      \"v2Blob\": [],\n      \"v2Name\": \"\"\n    },\n    \"resourceUrl\": \"\"\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          \"fullName\": \"\",\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  \"sbomReference\": {\n    \"format\": \"\",\n    \"version\": \"\"\n  },\n  \"shortDescription\": \"\",\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distributions\": [\n      {\n        \"classification\": \"\",\n        \"cpeUri\": \"\",\n        \"cve\": [],\n        \"severity\": \"\"\n      }\n    ],\n    \"package\": \"\",\n    \"version\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"details\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersionEnd\": {},\n        \"affectedVersionStart\": {},\n        \"description\": \"\",\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"isObsolete\": false,\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      \"vulnerabilityId\": \"\"\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 std::str::FromStr;
use serde_json::json;
use reqwest;

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

    let payload = json!({
        "attestation": json!({"hint": json!({"humanReadableName": ""})}),
        "build": json!({"builderVersion": ""}),
        "compliance": json!({
            "cisBenchmark": json!({
                "profileLevel": 0,
                "severity": ""
            }),
            "description": "",
            "impact": "",
            "rationale": "",
            "remediation": "",
            "scanInstructions": "",
            "title": "",
            "version": (
                json!({
                    "benchmarkDocument": "",
                    "cpeUri": "",
                    "version": ""
                })
            )
        }),
        "createTime": "",
        "deployment": json!({"resourceUri": ()}),
        "discovery": json!({"analysisKind": ""}),
        "dsseAttestation": json!({"hint": json!({"humanReadableName": ""})}),
        "expirationTime": "",
        "image": json!({
            "fingerprint": json!({
                "v1Name": "",
                "v2Blob": (),
                "v2Name": ""
            }),
            "resourceUrl": ""
        }),
        "kind": "",
        "longDescription": "",
        "name": "",
        "package": json!({
            "architecture": "",
            "cpeUri": "",
            "description": "",
            "digest": (
                json!({
                    "algo": "",
                    "digestBytes": ""
                })
            ),
            "distribution": (
                json!({
                    "architecture": "",
                    "cpeUri": "",
                    "description": "",
                    "latestVersion": json!({
                        "epoch": 0,
                        "fullName": "",
                        "inclusive": false,
                        "kind": "",
                        "name": "",
                        "revision": ""
                    }),
                    "maintainer": "",
                    "url": ""
                })
            ),
            "license": json!({
                "comments": "",
                "expression": ""
            }),
            "maintainer": "",
            "name": "",
            "packageType": "",
            "url": "",
            "version": json!({})
        }),
        "relatedNoteNames": (),
        "relatedUrl": (
            json!({
                "label": "",
                "url": ""
            })
        ),
        "sbomReference": json!({
            "format": "",
            "version": ""
        }),
        "shortDescription": "",
        "updateTime": "",
        "upgrade": json!({
            "distributions": (
                json!({
                    "classification": "",
                    "cpeUri": "",
                    "cve": (),
                    "severity": ""
                })
            ),
            "package": "",
            "version": json!({}),
            "windowsUpdate": json!({
                "categories": (
                    json!({
                        "categoryId": "",
                        "name": ""
                    })
                ),
                "description": "",
                "identity": json!({
                    "revision": 0,
                    "updateId": ""
                }),
                "kbArticleIds": (),
                "lastPublishedTimestamp": "",
                "supportUrl": "",
                "title": ""
            })
        }),
        "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": "",
            "details": (
                json!({
                    "affectedCpeUri": "",
                    "affectedPackage": "",
                    "affectedVersionEnd": json!({}),
                    "affectedVersionStart": json!({}),
                    "description": "",
                    "fixedCpeUri": "",
                    "fixedPackage": "",
                    "fixedVersion": json!({}),
                    "isObsolete": false,
                    "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": "",
                "vulnerabilityId": ""
            }),
            "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.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/v1/:+name' \
  --header 'content-type: application/json' \
  --data '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}'
echo '{
  "attestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "build": {
    "builderVersion": ""
  },
  "compliance": {
    "cisBenchmark": {
      "profileLevel": 0,
      "severity": ""
    },
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      {
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      }
    ]
  },
  "createTime": "",
  "deployment": {
    "resourceUri": []
  },
  "discovery": {
    "analysisKind": ""
  },
  "dsseAttestation": {
    "hint": {
      "humanReadableName": ""
    }
  },
  "expirationTime": "",
  "image": {
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "resourceUrl": ""
  },
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      {
        "algo": "",
        "digestBytes": ""
      }
    ],
    "distribution": [
      {
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        },
        "maintainer": "",
        "url": ""
      }
    ],
    "license": {
      "comments": "",
      "expression": ""
    },
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": {}
  },
  "relatedNoteNames": [],
  "relatedUrl": [
    {
      "label": "",
      "url": ""
    }
  ],
  "sbomReference": {
    "format": "",
    "version": ""
  },
  "shortDescription": "",
  "updateTime": "",
  "upgrade": {
    "distributions": [
      {
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      }
    ],
    "package": "",
    "version": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "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": "",
    "details": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": {},
        "affectedVersionStart": {},
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    },
    "languageCode": "",
    "longDescription": "",
    "product": {
      "genericUri": "",
      "id": "",
      "name": ""
    },
    "publisher": {
      "issuingAuthority": "",
      "name": "",
      "publisherNamespace": ""
    },
    "shortDescription": "",
    "title": ""
  }
}' |  \
  http PATCH '{{baseUrl}}/v1/:+name' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "attestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "build": {\n    "builderVersion": ""\n  },\n  "compliance": {\n    "cisBenchmark": {\n      "profileLevel": 0,\n      "severity": ""\n    },\n    "description": "",\n    "impact": "",\n    "rationale": "",\n    "remediation": "",\n    "scanInstructions": "",\n    "title": "",\n    "version": [\n      {\n        "benchmarkDocument": "",\n        "cpeUri": "",\n        "version": ""\n      }\n    ]\n  },\n  "createTime": "",\n  "deployment": {\n    "resourceUri": []\n  },\n  "discovery": {\n    "analysisKind": ""\n  },\n  "dsseAttestation": {\n    "hint": {\n      "humanReadableName": ""\n    }\n  },\n  "expirationTime": "",\n  "image": {\n    "fingerprint": {\n      "v1Name": "",\n      "v2Blob": [],\n      "v2Name": ""\n    },\n    "resourceUrl": ""\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          "fullName": "",\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  "sbomReference": {\n    "format": "",\n    "version": ""\n  },\n  "shortDescription": "",\n  "updateTime": "",\n  "upgrade": {\n    "distributions": [\n      {\n        "classification": "",\n        "cpeUri": "",\n        "cve": [],\n        "severity": ""\n      }\n    ],\n    "package": "",\n    "version": {},\n    "windowsUpdate": {\n      "categories": [\n        {\n          "categoryId": "",\n          "name": ""\n        }\n      ],\n      "description": "",\n      "identity": {\n        "revision": 0,\n        "updateId": ""\n      },\n      "kbArticleIds": [],\n      "lastPublishedTimestamp": "",\n      "supportUrl": "",\n      "title": ""\n    }\n  },\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    "details": [\n      {\n        "affectedCpeUri": "",\n        "affectedPackage": "",\n        "affectedVersionEnd": {},\n        "affectedVersionStart": {},\n        "description": "",\n        "fixedCpeUri": "",\n        "fixedPackage": "",\n        "fixedVersion": {},\n        "isObsolete": false,\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      "vulnerabilityId": ""\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}}/v1/:+name'
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attestation": ["hint": ["humanReadableName": ""]],
  "build": ["builderVersion": ""],
  "compliance": [
    "cisBenchmark": [
      "profileLevel": 0,
      "severity": ""
    ],
    "description": "",
    "impact": "",
    "rationale": "",
    "remediation": "",
    "scanInstructions": "",
    "title": "",
    "version": [
      [
        "benchmarkDocument": "",
        "cpeUri": "",
        "version": ""
      ]
    ]
  ],
  "createTime": "",
  "deployment": ["resourceUri": []],
  "discovery": ["analysisKind": ""],
  "dsseAttestation": ["hint": ["humanReadableName": ""]],
  "expirationTime": "",
  "image": [
    "fingerprint": [
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    ],
    "resourceUrl": ""
  ],
  "kind": "",
  "longDescription": "",
  "name": "",
  "package": [
    "architecture": "",
    "cpeUri": "",
    "description": "",
    "digest": [
      [
        "algo": "",
        "digestBytes": ""
      ]
    ],
    "distribution": [
      [
        "architecture": "",
        "cpeUri": "",
        "description": "",
        "latestVersion": [
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        ],
        "maintainer": "",
        "url": ""
      ]
    ],
    "license": [
      "comments": "",
      "expression": ""
    ],
    "maintainer": "",
    "name": "",
    "packageType": "",
    "url": "",
    "version": []
  ],
  "relatedNoteNames": [],
  "relatedUrl": [
    [
      "label": "",
      "url": ""
    ]
  ],
  "sbomReference": [
    "format": "",
    "version": ""
  ],
  "shortDescription": "",
  "updateTime": "",
  "upgrade": [
    "distributions": [
      [
        "classification": "",
        "cpeUri": "",
        "cve": [],
        "severity": ""
      ]
    ],
    "package": "",
    "version": [],
    "windowsUpdate": [
      "categories": [
        [
          "categoryId": "",
          "name": ""
        ]
      ],
      "description": "",
      "identity": [
        "revision": 0,
        "updateId": ""
      ],
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    ]
  ],
  "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": "",
    "details": [
      [
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersionEnd": [],
        "affectedVersionStart": [],
        "description": "",
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": [],
        "isObsolete": false,
        "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": "",
      "vulnerabilityId": ""
    ],
    "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}}/v1/:+name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
POST containeranalysis.projects.locations.notes.setIamPolicy
{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+resource:setIamPolicy" {:content-type :json
                                                                       :form-params {:policy {:bindings [{:condition {:description ""
                                                                                                                      :expression ""
                                                                                                                      :location ""
                                                                                                                      :title ""}
                                                                                                          :members []
                                                                                                          :role ""}]
                                                                                              :etag ""
                                                                                              :version 0}}})
require "http/client"

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+resource:setIamPolicy")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+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}}/v1/:+resource:setIamPolicy');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+resource:setIamPolicy", payload, headers)

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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.locations.notes.testIamPermissions
{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+resource:testIamPermissions" {:content-type :json
                                                                             :form-params {:permissions []}})
require "http/client"

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+resource:testIamPermissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

{
  "permissions": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+resource:testIamPermissions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+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}}/v1/:+resource:testIamPermissions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+resource:testIamPermissions', [
  'body' => '{
  "permissions": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+resource:testIamPermissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "permissions": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+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/v1/:+resource:testIamPermissions", payload, headers)

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

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

url = "{{baseUrl}}/v1/:+resource:testIamPermissions"

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

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

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

url <- "{{baseUrl}}/v1/:+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}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+resource:testIamPermissions' \
  --header 'content-type: application/json' \
  --data '{
  "permissions": []
}'
echo '{
  "permissions": []
}' |  \
  http POST '{{baseUrl}}/v1/:+resource:testIamPermissions' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "permissions": []\n}' \
  --output-document \
  - '{{baseUrl}}/v1/:+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}}/v1/:+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()
POST containeranalysis.projects.locations.occurrences.batchCreate
{{baseUrl}}/v1/:+parent/occurrences:batchCreate
QUERY PARAMS

parent
BODY json

{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+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        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/v1/:+parent/occurrences:batchCreate" {:content-type :json
                                                                                :form-params {:occurrences [{:attestation {:jwts [{:compactJwt ""}]
                                                                                                                           :serializedPayload ""
                                                                                                                           :signatures [{:publicKeyId ""
                                                                                                                                         :signature ""}]}
                                                                                                             :build {:inTotoSlsaProvenanceV1 {:_type ""
                                                                                                                                              :predicate {:buildDefinition {:buildType ""
                                                                                                                                                                            :externalParameters {}
                                                                                                                                                                            :internalParameters {}
                                                                                                                                                                            :resolvedDependencies [{:annotations {}
                                                                                                                                                                                                    :content ""
                                                                                                                                                                                                    :digest {}
                                                                                                                                                                                                    :downloadLocation ""
                                                                                                                                                                                                    :mediaType ""
                                                                                                                                                                                                    :name ""
                                                                                                                                                                                                    :uri ""}]}
                                                                                                                                                          :runDetails {:builder {:builderDependencies [{}]
                                                                                                                                                                                 :id ""
                                                                                                                                                                                 :version {}}
                                                                                                                                                                       :byproducts [{}]
                                                                                                                                                                       :metadata {:finishedOn ""
                                                                                                                                                                                  :invocationId ""
                                                                                                                                                                                  :startedOn ""}}}
                                                                                                                                              :predicateType ""
                                                                                                                                              :subject [{:digest {}
                                                                                                                                                         :name ""}]}
                                                                                                                     :intotoProvenance {:builderConfig {:id ""}
                                                                                                                                        :materials []
                                                                                                                                        :metadata {:buildFinishedOn ""
                                                                                                                                                   :buildInvocationId ""
                                                                                                                                                   :buildStartedOn ""
                                                                                                                                                   :completeness {:arguments false
                                                                                                                                                                  :environment false
                                                                                                                                                                  :materials false}
                                                                                                                                                   :reproducible false}
                                                                                                                                        :recipe {:arguments [{}]
                                                                                                                                                 :definedInMaterial ""
                                                                                                                                                 :entryPoint ""
                                                                                                                                                 :environment [{}]
                                                                                                                                                 :type ""}}
                                                                                                                     :intotoStatement {:_type ""
                                                                                                                                       :predicateType ""
                                                                                                                                       :provenance {}
                                                                                                                                       :slsaProvenance {:builder {:id ""}
                                                                                                                                                        :materials [{:digest {}
                                                                                                                                                                     :uri ""}]
                                                                                                                                                        :metadata {:buildFinishedOn ""
                                                                                                                                                                   :buildInvocationId ""
                                                                                                                                                                   :buildStartedOn ""
                                                                                                                                                                   :completeness {:arguments false
                                                                                                                                                                                  :environment false
                                                                                                                                                                                  :materials false}
                                                                                                                                                                   :reproducible false}
                                                                                                                                                        :recipe {:arguments {}
                                                                                                                                                                 :definedInMaterial ""
                                                                                                                                                                 :entryPoint ""
                                                                                                                                                                 :environment {}
                                                                                                                                                                 :type ""}}
                                                                                                                                       :slsaProvenanceZeroTwo {:buildConfig {}
                                                                                                                                                               :buildType ""
                                                                                                                                                               :builder {:id ""}
                                                                                                                                                               :invocation {:parameters {}
                                                                                                                                                                            :configSource {:digest {}
                                                                                                                                                                                           :entryPoint ""
                                                                                                                                                                                           :uri ""}
                                                                                                                                                                            :environment {}}
                                                                                                                                                               :materials [{:digest {}
                                                                                                                                                                            :uri ""}]
                                                                                                                                                               :metadata {:buildFinishedOn ""
                                                                                                                                                                          :buildInvocationId ""
                                                                                                                                                                          :buildStartedOn ""
                                                                                                                                                                          :completeness {:parameters false
                                                                                                                                                                                         :environment false
                                                                                                                                                                                         :materials false}
                                                                                                                                                                          :reproducible false}}
                                                                                                                                       :subject [{}]}
                                                                                                                     :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 ""}
                                                                                                             :compliance {:nonComplianceReason ""
                                                                                                                          :nonCompliantFiles [{:displayCommand ""
                                                                                                                                               :path ""
                                                                                                                                               :reason ""}]
                                                                                                                          :version {:benchmarkDocument ""
                                                                                                                                    :cpeUri ""
                                                                                                                                    :version ""}}
                                                                                                             :createTime ""
                                                                                                             :deployment {:address ""
                                                                                                                          :config ""
                                                                                                                          :deployTime ""
                                                                                                                          :platform ""
                                                                                                                          :resourceUri []
                                                                                                                          :undeployTime ""
                                                                                                                          :userEmail ""}
                                                                                                             :discovery {:analysisCompleted {:analysisType []}
                                                                                                                         :analysisError [{:code 0
                                                                                                                                          :details [{}]
                                                                                                                                          :message ""}]
                                                                                                                         :analysisStatus ""
                                                                                                                         :analysisStatusError {}
                                                                                                                         :archiveTime ""
                                                                                                                         :continuousAnalysis ""
                                                                                                                         :cpe ""
                                                                                                                         :lastScanTime ""
                                                                                                                         :sbomStatus {:error ""
                                                                                                                                      :sbomState ""}}
                                                                                                             :dsseAttestation {:envelope {:payload ""
                                                                                                                                          :payloadType ""
                                                                                                                                          :signatures [{:keyid ""
                                                                                                                                                        :sig ""}]}
                                                                                                                               :statement {}}
                                                                                                             :envelope {}
                                                                                                             :image {:baseResourceUrl ""
                                                                                                                     :distance 0
                                                                                                                     :fingerprint {:v1Name ""
                                                                                                                                   :v2Blob []
                                                                                                                                   :v2Name ""}
                                                                                                                     :layerInfo [{:arguments ""
                                                                                                                                  :directive ""}]}
                                                                                                             :kind ""
                                                                                                             :name ""
                                                                                                             :noteName ""
                                                                                                             :package {:architecture ""
                                                                                                                       :cpeUri ""
                                                                                                                       :license {:comments ""
                                                                                                                                 :expression ""}
                                                                                                                       :location [{:cpeUri ""
                                                                                                                                   :path ""
                                                                                                                                   :version {:epoch 0
                                                                                                                                             :fullName ""
                                                                                                                                             :inclusive false
                                                                                                                                             :kind ""
                                                                                                                                             :name ""
                                                                                                                                             :revision ""}}]
                                                                                                                       :name ""
                                                                                                                       :packageType ""
                                                                                                                       :version {}}
                                                                                                             :remediation ""
                                                                                                             :resourceUri ""
                                                                                                             :sbomReference {:payload {:_type ""
                                                                                                                                       :predicate {:digest {}
                                                                                                                                                   :location ""
                                                                                                                                                   :mimeType ""
                                                                                                                                                   :referrerId ""}
                                                                                                                                       :predicateType ""
                                                                                                                                       :subject [{}]}
                                                                                                                             :payloadType ""
                                                                                                                             :signatures [{}]}
                                                                                                             :updateTime ""
                                                                                                             :upgrade {:distribution {:classification ""
                                                                                                                                      :cpeUri ""
                                                                                                                                      :cve []
                                                                                                                                      :severity ""}
                                                                                                                       :package ""
                                                                                                                       :parsedVersion {}
                                                                                                                       :windowsUpdate {:categories [{:categoryId ""
                                                                                                                                                     :name ""}]
                                                                                                                                       :description ""
                                                                                                                                       :identity {:revision 0
                                                                                                                                                  :updateId ""}
                                                                                                                                       :kbArticleIds []
                                                                                                                                       :lastPublishedTimestamp ""
                                                                                                                                       :supportUrl ""
                                                                                                                                       :title ""}}
                                                                                                             :vulnerability {:cvssScore ""
                                                                                                                             :cvssV2 {:attackComplexity ""
                                                                                                                                      :attackVector ""
                                                                                                                                      :authentication ""
                                                                                                                                      :availabilityImpact ""
                                                                                                                                      :baseScore ""
                                                                                                                                      :confidentialityImpact ""
                                                                                                                                      :exploitabilityScore ""
                                                                                                                                      :impactScore ""
                                                                                                                                      :integrityImpact ""
                                                                                                                                      :privilegesRequired ""
                                                                                                                                      :scope ""
                                                                                                                                      :userInteraction ""}
                                                                                                                             :cvssVersion ""
                                                                                                                             :cvssv3 {}
                                                                                                                             :effectiveSeverity ""
                                                                                                                             :extraDetails ""
                                                                                                                             :fixAvailable false
                                                                                                                             :longDescription ""
                                                                                                                             :packageIssue [{:affectedCpeUri ""
                                                                                                                                             :affectedPackage ""
                                                                                                                                             :affectedVersion {}
                                                                                                                                             :effectiveSeverity ""
                                                                                                                                             :fileLocation [{:filePath ""
                                                                                                                                                             :layerDetails {:baseImages [{:layerCount 0
                                                                                                                                                                                          :name ""
                                                                                                                                                                                          :repository ""}]
                                                                                                                                                                            :command ""
                                                                                                                                                                            :diffId ""
                                                                                                                                                                            :index 0}}]
                                                                                                                                             :fixAvailable false
                                                                                                                                             :fixedCpeUri ""
                                                                                                                                             :fixedPackage ""
                                                                                                                                             :fixedVersion {}
                                                                                                                                             :packageType ""}]
                                                                                                                             :relatedUrls [{:label ""
                                                                                                                                            :url ""}]
                                                                                                                             :severity ""
                                                                                                                             :shortDescription ""
                                                                                                                             :type ""
                                                                                                                             :vexAssessment {:cve ""
                                                                                                                                             :impacts []
                                                                                                                                             :justification {:details ""
                                                                                                                                                             :justificationType ""}
                                                                                                                                             :noteName ""
                                                                                                                                             :relatedUris [{}]
                                                                                                                                             :remediations [{:details ""
                                                                                                                                                             :remediationType ""
                                                                                                                                                             :remediationUri {}}]
                                                                                                                                             :state ""
                                                                                                                                             :vulnerabilityId ""}}}]}})
require "http/client"

url = "{{baseUrl}}/v1/:+parent/occurrences:batchCreate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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}}/v1/:+parent/occurrences:batchCreate"),
    Content = new StringContent("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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}}/v1/:+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        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:+parent/occurrences:batchCreate"

	payload := strings.NewReader("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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/v1/:+parent/occurrences:batchCreate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 11254

{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:+parent/occurrences:batchCreate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:+parent/occurrences:batchCreate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:+parent/occurrences:batchCreate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+parent/occurrences:batchCreate")
  .header("content-type", "application/json")
  .body("{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  occurrences: [
    {
      attestation: {
        jwts: [
          {
            compactJwt: ''
          }
        ],
        serializedPayload: '',
        signatures: [
          {
            publicKeyId: '',
            signature: ''
          }
        ]
      },
      build: {
        inTotoSlsaProvenanceV1: {
          _type: '',
          predicate: {
            buildDefinition: {
              buildType: '',
              externalParameters: {},
              internalParameters: {},
              resolvedDependencies: [
                {
                  annotations: {},
                  content: '',
                  digest: {},
                  downloadLocation: '',
                  mediaType: '',
                  name: '',
                  uri: ''
                }
              ]
            },
            runDetails: {
              builder: {
                builderDependencies: [
                  {}
                ],
                id: '',
                version: {}
              },
              byproducts: [
                {}
              ],
              metadata: {
                finishedOn: '',
                invocationId: '',
                startedOn: ''
              }
            }
          },
          predicateType: '',
          subject: [
            {
              digest: {},
              name: ''
            }
          ]
        },
        intotoProvenance: {
          builderConfig: {
            id: ''
          },
          materials: [],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {
              arguments: false,
              environment: false,
              materials: false
            },
            reproducible: false
          },
          recipe: {
            arguments: [
              {}
            ],
            definedInMaterial: '',
            entryPoint: '',
            environment: [
              {}
            ],
            type: ''
          }
        },
        intotoStatement: {
          _type: '',
          predicateType: '',
          provenance: {},
          slsaProvenance: {
            builder: {
              id: ''
            },
            materials: [
              {
                digest: {},
                uri: ''
              }
            ],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {
                arguments: false,
                environment: false,
                materials: false
              },
              reproducible: false
            },
            recipe: {
              arguments: {},
              definedInMaterial: '',
              entryPoint: '',
              environment: {},
              type: ''
            }
          },
          slsaProvenanceZeroTwo: {
            buildConfig: {},
            buildType: '',
            builder: {
              id: ''
            },
            invocation: {
              parameters: {},
              configSource: {
                digest: {},
                entryPoint: '',
                uri: ''
              },
              environment: {}
            },
            materials: [
              {
                digest: {},
                uri: ''
              }
            ],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {
                parameters: false,
                environment: false,
                materials: false
              },
              reproducible: false
            }
          },
          subject: [
            {}
          ]
        },
        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: ''
      },
      compliance: {
        nonComplianceReason: '',
        nonCompliantFiles: [
          {
            displayCommand: '',
            path: '',
            reason: ''
          }
        ],
        version: {
          benchmarkDocument: '',
          cpeUri: '',
          version: ''
        }
      },
      createTime: '',
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      },
      discovery: {
        analysisCompleted: {
          analysisType: []
        },
        analysisError: [
          {
            code: 0,
            details: [
              {}
            ],
            message: ''
          }
        ],
        analysisStatus: '',
        analysisStatusError: {},
        archiveTime: '',
        continuousAnalysis: '',
        cpe: '',
        lastScanTime: '',
        sbomStatus: {
          error: '',
          sbomState: ''
        }
      },
      dsseAttestation: {
        envelope: {
          payload: '',
          payloadType: '',
          signatures: [
            {
              keyid: '',
              sig: ''
            }
          ]
        },
        statement: {}
      },
      envelope: {},
      image: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {
          v1Name: '',
          v2Blob: [],
          v2Name: ''
        },
        layerInfo: [
          {
            arguments: '',
            directive: ''
          }
        ]
      },
      kind: '',
      name: '',
      noteName: '',
      package: {
        architecture: '',
        cpeUri: '',
        license: {
          comments: '',
          expression: ''
        },
        location: [
          {
            cpeUri: '',
            path: '',
            version: {
              epoch: 0,
              fullName: '',
              inclusive: false,
              kind: '',
              name: '',
              revision: ''
            }
          }
        ],
        name: '',
        packageType: '',
        version: {}
      },
      remediation: '',
      resourceUri: '',
      sbomReference: {
        payload: {
          _type: '',
          predicate: {
            digest: {},
            location: '',
            mimeType: '',
            referrerId: ''
          },
          predicateType: '',
          subject: [
            {}
          ]
        },
        payloadType: '',
        signatures: [
          {}
        ]
      },
      updateTime: '',
      upgrade: {
        distribution: {
          classification: '',
          cpeUri: '',
          cve: [],
          severity: ''
        },
        package: '',
        parsedVersion: {},
        windowsUpdate: {
          categories: [
            {
              categoryId: '',
              name: ''
            }
          ],
          description: '',
          identity: {
            revision: 0,
            updateId: ''
          },
          kbArticleIds: [],
          lastPublishedTimestamp: '',
          supportUrl: '',
          title: ''
        }
      },
      vulnerability: {
        cvssScore: '',
        cvssV2: {
          attackComplexity: '',
          attackVector: '',
          authentication: '',
          availabilityImpact: '',
          baseScore: '',
          confidentialityImpact: '',
          exploitabilityScore: '',
          impactScore: '',
          integrityImpact: '',
          privilegesRequired: '',
          scope: '',
          userInteraction: ''
        },
        cvssVersion: '',
        cvssv3: {},
        effectiveSeverity: '',
        extraDetails: '',
        fixAvailable: false,
        longDescription: '',
        packageIssue: [
          {
            affectedCpeUri: '',
            affectedPackage: '',
            affectedVersion: {},
            effectiveSeverity: '',
            fileLocation: [
              {
                filePath: '',
                layerDetails: {
                  baseImages: [
                    {
                      layerCount: 0,
                      name: '',
                      repository: ''
                    }
                  ],
                  command: '',
                  diffId: '',
                  index: 0
                }
              }
            ],
            fixAvailable: false,
            fixedCpeUri: '',
            fixedPackage: '',
            fixedVersion: {},
            packageType: ''
          }
        ],
        relatedUrls: [
          {
            label: '',
            url: ''
          }
        ],
        severity: '',
        shortDescription: '',
        type: '',
        vexAssessment: {
          cve: '',
          impacts: [],
          justification: {
            details: '',
            justificationType: ''
          },
          noteName: '',
          relatedUris: [
            {}
          ],
          remediations: [
            {
              details: '',
              remediationType: '',
              remediationUri: {}
            }
          ],
          state: '',
          vulnerabilityId: ''
        }
      }
    }
  ]
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/occurrences:batchCreate',
  headers: {'content-type': 'application/json'},
  data: {
    occurrences: [
      {
        attestation: {
          jwts: [{compactJwt: ''}],
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        build: {
          inTotoSlsaProvenanceV1: {
            _type: '',
            predicate: {
              buildDefinition: {
                buildType: '',
                externalParameters: {},
                internalParameters: {},
                resolvedDependencies: [
                  {
                    annotations: {},
                    content: '',
                    digest: {},
                    downloadLocation: '',
                    mediaType: '',
                    name: '',
                    uri: ''
                  }
                ]
              },
              runDetails: {
                builder: {builderDependencies: [{}], id: '', version: {}},
                byproducts: [{}],
                metadata: {finishedOn: '', invocationId: '', startedOn: ''}
              }
            },
            predicateType: '',
            subject: [{digest: {}, name: ''}]
          },
          intotoProvenance: {
            builderConfig: {id: ''},
            materials: [],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {arguments: false, environment: false, materials: false},
              reproducible: false
            },
            recipe: {
              arguments: [{}],
              definedInMaterial: '',
              entryPoint: '',
              environment: [{}],
              type: ''
            }
          },
          intotoStatement: {
            _type: '',
            predicateType: '',
            provenance: {},
            slsaProvenance: {
              builder: {id: ''},
              materials: [{digest: {}, uri: ''}],
              metadata: {
                buildFinishedOn: '',
                buildInvocationId: '',
                buildStartedOn: '',
                completeness: {arguments: false, environment: false, materials: false},
                reproducible: false
              },
              recipe: {
                arguments: {},
                definedInMaterial: '',
                entryPoint: '',
                environment: {},
                type: ''
              }
            },
            slsaProvenanceZeroTwo: {
              buildConfig: {},
              buildType: '',
              builder: {id: ''},
              invocation: {
                parameters: {},
                configSource: {digest: {}, entryPoint: '', uri: ''},
                environment: {}
              },
              materials: [{digest: {}, uri: ''}],
              metadata: {
                buildFinishedOn: '',
                buildInvocationId: '',
                buildStartedOn: '',
                completeness: {parameters: false, environment: false, materials: false},
                reproducible: false
              }
            },
            subject: [{}]
          },
          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: ''
        },
        compliance: {
          nonComplianceReason: '',
          nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
          version: {benchmarkDocument: '', cpeUri: '', version: ''}
        },
        createTime: '',
        deployment: {
          address: '',
          config: '',
          deployTime: '',
          platform: '',
          resourceUri: [],
          undeployTime: '',
          userEmail: ''
        },
        discovery: {
          analysisCompleted: {analysisType: []},
          analysisError: [{code: 0, details: [{}], message: ''}],
          analysisStatus: '',
          analysisStatusError: {},
          archiveTime: '',
          continuousAnalysis: '',
          cpe: '',
          lastScanTime: '',
          sbomStatus: {error: '', sbomState: ''}
        },
        dsseAttestation: {
          envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
          statement: {}
        },
        envelope: {},
        image: {
          baseResourceUrl: '',
          distance: 0,
          fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
          layerInfo: [{arguments: '', directive: ''}]
        },
        kind: '',
        name: '',
        noteName: '',
        package: {
          architecture: '',
          cpeUri: '',
          license: {comments: '', expression: ''},
          location: [
            {
              cpeUri: '',
              path: '',
              version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
            }
          ],
          name: '',
          packageType: '',
          version: {}
        },
        remediation: '',
        resourceUri: '',
        sbomReference: {
          payload: {
            _type: '',
            predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
            predicateType: '',
            subject: [{}]
          },
          payloadType: '',
          signatures: [{}]
        },
        updateTime: '',
        upgrade: {
          distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
          package: '',
          parsedVersion: {},
          windowsUpdate: {
            categories: [{categoryId: '', name: ''}],
            description: '',
            identity: {revision: 0, updateId: ''},
            kbArticleIds: [],
            lastPublishedTimestamp: '',
            supportUrl: '',
            title: ''
          }
        },
        vulnerability: {
          cvssScore: '',
          cvssV2: {
            attackComplexity: '',
            attackVector: '',
            authentication: '',
            availabilityImpact: '',
            baseScore: '',
            confidentialityImpact: '',
            exploitabilityScore: '',
            impactScore: '',
            integrityImpact: '',
            privilegesRequired: '',
            scope: '',
            userInteraction: ''
          },
          cvssVersion: '',
          cvssv3: {},
          effectiveSeverity: '',
          extraDetails: '',
          fixAvailable: false,
          longDescription: '',
          packageIssue: [
            {
              affectedCpeUri: '',
              affectedPackage: '',
              affectedVersion: {},
              effectiveSeverity: '',
              fileLocation: [
                {
                  filePath: '',
                  layerDetails: {
                    baseImages: [{layerCount: 0, name: '', repository: ''}],
                    command: '',
                    diffId: '',
                    index: 0
                  }
                }
              ],
              fixAvailable: false,
              fixedCpeUri: '',
              fixedPackage: '',
              fixedVersion: {},
              packageType: ''
            }
          ],
          relatedUrls: [{label: '', url: ''}],
          severity: '',
          shortDescription: '',
          type: '',
          vexAssessment: {
            cve: '',
            impacts: [],
            justification: {details: '', justificationType: ''},
            noteName: '',
            relatedUris: [{}],
            remediations: [{details: '', remediationType: '', remediationUri: {}}],
            state: '',
            vulnerabilityId: ''
          }
        }
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:+parent/occurrences:batchCreate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"occurrences":[{"attestation":{"jwts":[{"compactJwt":""}],"serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"build":{"inTotoSlsaProvenanceV1":{"_type":"","predicate":{"buildDefinition":{"buildType":"","externalParameters":{},"internalParameters":{},"resolvedDependencies":[{"annotations":{},"content":"","digest":{},"downloadLocation":"","mediaType":"","name":"","uri":""}]},"runDetails":{"builder":{"builderDependencies":[{}],"id":"","version":{}},"byproducts":[{}],"metadata":{"finishedOn":"","invocationId":"","startedOn":""}}},"predicateType":"","subject":[{"digest":{},"name":""}]},"intotoProvenance":{"builderConfig":{"id":""},"materials":[],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":[{}],"definedInMaterial":"","entryPoint":"","environment":[{}],"type":""}},"intotoStatement":{"_type":"","predicateType":"","provenance":{},"slsaProvenance":{"builder":{"id":""},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":{},"definedInMaterial":"","entryPoint":"","environment":{},"type":""}},"slsaProvenanceZeroTwo":{"buildConfig":{},"buildType":"","builder":{"id":""},"invocation":{"parameters":{},"configSource":{"digest":{},"entryPoint":"","uri":""},"environment":{}},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"parameters":false,"environment":false,"materials":false},"reproducible":false}},"subject":[{}]},"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":""},"compliance":{"nonComplianceReason":"","nonCompliantFiles":[{"displayCommand":"","path":"","reason":""}],"version":{"benchmarkDocument":"","cpeUri":"","version":""}},"createTime":"","deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""},"discovery":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"archiveTime":"","continuousAnalysis":"","cpe":"","lastScanTime":"","sbomStatus":{"error":"","sbomState":""}},"dsseAttestation":{"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"statement":{}},"envelope":{},"image":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]},"kind":"","name":"","noteName":"","package":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}},"remediation":"","resourceUri":"","sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{}]},"payloadType":"","signatures":[{}]},"updateTime":"","upgrade":{"distribution":{"classification":"","cpeUri":"","cve":[],"severity":""},"package":"","parsedVersion":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssVersion":"","cvssv3":{},"effectiveSeverity":"","extraDetails":"","fixAvailable":false,"longDescription":"","packageIssue":[{"affectedCpeUri":"","affectedPackage":"","affectedVersion":{},"effectiveSeverity":"","fileLocation":[{"filePath":"","layerDetails":{"baseImages":[{"layerCount":0,"name":"","repository":""}],"command":"","diffId":"","index":0}}],"fixAvailable":false,"fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"packageType":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":"","vulnerabilityId":""}}}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:+parent/occurrences:batchCreate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "occurrences": [\n    {\n      "attestation": {\n        "jwts": [\n          {\n            "compactJwt": ""\n          }\n        ],\n        "serializedPayload": "",\n        "signatures": [\n          {\n            "publicKeyId": "",\n            "signature": ""\n          }\n        ]\n      },\n      "build": {\n        "inTotoSlsaProvenanceV1": {\n          "_type": "",\n          "predicate": {\n            "buildDefinition": {\n              "buildType": "",\n              "externalParameters": {},\n              "internalParameters": {},\n              "resolvedDependencies": [\n                {\n                  "annotations": {},\n                  "content": "",\n                  "digest": {},\n                  "downloadLocation": "",\n                  "mediaType": "",\n                  "name": "",\n                  "uri": ""\n                }\n              ]\n            },\n            "runDetails": {\n              "builder": {\n                "builderDependencies": [\n                  {}\n                ],\n                "id": "",\n                "version": {}\n              },\n              "byproducts": [\n                {}\n              ],\n              "metadata": {\n                "finishedOn": "",\n                "invocationId": "",\n                "startedOn": ""\n              }\n            }\n          },\n          "predicateType": "",\n          "subject": [\n            {\n              "digest": {},\n              "name": ""\n            }\n          ]\n        },\n        "intotoProvenance": {\n          "builderConfig": {\n            "id": ""\n          },\n          "materials": [],\n          "metadata": {\n            "buildFinishedOn": "",\n            "buildInvocationId": "",\n            "buildStartedOn": "",\n            "completeness": {\n              "arguments": false,\n              "environment": false,\n              "materials": false\n            },\n            "reproducible": false\n          },\n          "recipe": {\n            "arguments": [\n              {}\n            ],\n            "definedInMaterial": "",\n            "entryPoint": "",\n            "environment": [\n              {}\n            ],\n            "type": ""\n          }\n        },\n        "intotoStatement": {\n          "_type": "",\n          "predicateType": "",\n          "provenance": {},\n          "slsaProvenance": {\n            "builder": {\n              "id": ""\n            },\n            "materials": [\n              {\n                "digest": {},\n                "uri": ""\n              }\n            ],\n            "metadata": {\n              "buildFinishedOn": "",\n              "buildInvocationId": "",\n              "buildStartedOn": "",\n              "completeness": {\n                "arguments": false,\n                "environment": false,\n                "materials": false\n              },\n              "reproducible": false\n            },\n            "recipe": {\n              "arguments": {},\n              "definedInMaterial": "",\n              "entryPoint": "",\n              "environment": {},\n              "type": ""\n            }\n          },\n          "slsaProvenanceZeroTwo": {\n            "buildConfig": {},\n            "buildType": "",\n            "builder": {\n              "id": ""\n            },\n            "invocation": {\n              "parameters": {},\n              "configSource": {\n                "digest": {},\n                "entryPoint": "",\n                "uri": ""\n              },\n              "environment": {}\n            },\n            "materials": [\n              {\n                "digest": {},\n                "uri": ""\n              }\n            ],\n            "metadata": {\n              "buildFinishedOn": "",\n              "buildInvocationId": "",\n              "buildStartedOn": "",\n              "completeness": {\n                "parameters": false,\n                "environment": false,\n                "materials": false\n              },\n              "reproducible": false\n            }\n          },\n          "subject": [\n            {}\n          ]\n        },\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      "compliance": {\n        "nonComplianceReason": "",\n        "nonCompliantFiles": [\n          {\n            "displayCommand": "",\n            "path": "",\n            "reason": ""\n          }\n        ],\n        "version": {\n          "benchmarkDocument": "",\n          "cpeUri": "",\n          "version": ""\n        }\n      },\n      "createTime": "",\n      "deployment": {\n        "address": "",\n        "config": "",\n        "deployTime": "",\n        "platform": "",\n        "resourceUri": [],\n        "undeployTime": "",\n        "userEmail": ""\n      },\n      "discovery": {\n        "analysisCompleted": {\n          "analysisType": []\n        },\n        "analysisError": [\n          {\n            "code": 0,\n            "details": [\n              {}\n            ],\n            "message": ""\n          }\n        ],\n        "analysisStatus": "",\n        "analysisStatusError": {},\n        "archiveTime": "",\n        "continuousAnalysis": "",\n        "cpe": "",\n        "lastScanTime": "",\n        "sbomStatus": {\n          "error": "",\n          "sbomState": ""\n        }\n      },\n      "dsseAttestation": {\n        "envelope": {\n          "payload": "",\n          "payloadType": "",\n          "signatures": [\n            {\n              "keyid": "",\n              "sig": ""\n            }\n          ]\n        },\n        "statement": {}\n      },\n      "envelope": {},\n      "image": {\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      "kind": "",\n      "name": "",\n      "noteName": "",\n      "package": {\n        "architecture": "",\n        "cpeUri": "",\n        "license": {\n          "comments": "",\n          "expression": ""\n        },\n        "location": [\n          {\n            "cpeUri": "",\n            "path": "",\n            "version": {\n              "epoch": 0,\n              "fullName": "",\n              "inclusive": false,\n              "kind": "",\n              "name": "",\n              "revision": ""\n            }\n          }\n        ],\n        "name": "",\n        "packageType": "",\n        "version": {}\n      },\n      "remediation": "",\n      "resourceUri": "",\n      "sbomReference": {\n        "payload": {\n          "_type": "",\n          "predicate": {\n            "digest": {},\n            "location": "",\n            "mimeType": "",\n            "referrerId": ""\n          },\n          "predicateType": "",\n          "subject": [\n            {}\n          ]\n        },\n        "payloadType": "",\n        "signatures": [\n          {}\n        ]\n      },\n      "updateTime": "",\n      "upgrade": {\n        "distribution": {\n          "classification": "",\n          "cpeUri": "",\n          "cve": [],\n          "severity": ""\n        },\n        "package": "",\n        "parsedVersion": {},\n        "windowsUpdate": {\n          "categories": [\n            {\n              "categoryId": "",\n              "name": ""\n            }\n          ],\n          "description": "",\n          "identity": {\n            "revision": 0,\n            "updateId": ""\n          },\n          "kbArticleIds": [],\n          "lastPublishedTimestamp": "",\n          "supportUrl": "",\n          "title": ""\n        }\n      },\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        "cvssVersion": "",\n        "cvssv3": {},\n        "effectiveSeverity": "",\n        "extraDetails": "",\n        "fixAvailable": false,\n        "longDescription": "",\n        "packageIssue": [\n          {\n            "affectedCpeUri": "",\n            "affectedPackage": "",\n            "affectedVersion": {},\n            "effectiveSeverity": "",\n            "fileLocation": [\n              {\n                "filePath": "",\n                "layerDetails": {\n                  "baseImages": [\n                    {\n                      "layerCount": 0,\n                      "name": "",\n                      "repository": ""\n                    }\n                  ],\n                  "command": "",\n                  "diffId": "",\n                  "index": 0\n                }\n              }\n            ],\n            "fixAvailable": false,\n            "fixedCpeUri": "",\n            "fixedPackage": "",\n            "fixedVersion": {},\n            "packageType": ""\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          "vulnerabilityId": ""\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        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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: {
        jwts: [{compactJwt: ''}],
        serializedPayload: '',
        signatures: [{publicKeyId: '', signature: ''}]
      },
      build: {
        inTotoSlsaProvenanceV1: {
          _type: '',
          predicate: {
            buildDefinition: {
              buildType: '',
              externalParameters: {},
              internalParameters: {},
              resolvedDependencies: [
                {
                  annotations: {},
                  content: '',
                  digest: {},
                  downloadLocation: '',
                  mediaType: '',
                  name: '',
                  uri: ''
                }
              ]
            },
            runDetails: {
              builder: {builderDependencies: [{}], id: '', version: {}},
              byproducts: [{}],
              metadata: {finishedOn: '', invocationId: '', startedOn: ''}
            }
          },
          predicateType: '',
          subject: [{digest: {}, name: ''}]
        },
        intotoProvenance: {
          builderConfig: {id: ''},
          materials: [],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {arguments: false, environment: false, materials: false},
            reproducible: false
          },
          recipe: {
            arguments: [{}],
            definedInMaterial: '',
            entryPoint: '',
            environment: [{}],
            type: ''
          }
        },
        intotoStatement: {
          _type: '',
          predicateType: '',
          provenance: {},
          slsaProvenance: {
            builder: {id: ''},
            materials: [{digest: {}, uri: ''}],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {arguments: false, environment: false, materials: false},
              reproducible: false
            },
            recipe: {
              arguments: {},
              definedInMaterial: '',
              entryPoint: '',
              environment: {},
              type: ''
            }
          },
          slsaProvenanceZeroTwo: {
            buildConfig: {},
            buildType: '',
            builder: {id: ''},
            invocation: {
              parameters: {},
              configSource: {digest: {}, entryPoint: '', uri: ''},
              environment: {}
            },
            materials: [{digest: {}, uri: ''}],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {parameters: false, environment: false, materials: false},
              reproducible: false
            }
          },
          subject: [{}]
        },
        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: ''
      },
      compliance: {
        nonComplianceReason: '',
        nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
        version: {benchmarkDocument: '', cpeUri: '', version: ''}
      },
      createTime: '',
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      },
      discovery: {
        analysisCompleted: {analysisType: []},
        analysisError: [{code: 0, details: [{}], message: ''}],
        analysisStatus: '',
        analysisStatusError: {},
        archiveTime: '',
        continuousAnalysis: '',
        cpe: '',
        lastScanTime: '',
        sbomStatus: {error: '', sbomState: ''}
      },
      dsseAttestation: {
        envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
        statement: {}
      },
      envelope: {},
      image: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
        layerInfo: [{arguments: '', directive: ''}]
      },
      kind: '',
      name: '',
      noteName: '',
      package: {
        architecture: '',
        cpeUri: '',
        license: {comments: '', expression: ''},
        location: [
          {
            cpeUri: '',
            path: '',
            version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
          }
        ],
        name: '',
        packageType: '',
        version: {}
      },
      remediation: '',
      resourceUri: '',
      sbomReference: {
        payload: {
          _type: '',
          predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
          predicateType: '',
          subject: [{}]
        },
        payloadType: '',
        signatures: [{}]
      },
      updateTime: '',
      upgrade: {
        distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
        package: '',
        parsedVersion: {},
        windowsUpdate: {
          categories: [{categoryId: '', name: ''}],
          description: '',
          identity: {revision: 0, updateId: ''},
          kbArticleIds: [],
          lastPublishedTimestamp: '',
          supportUrl: '',
          title: ''
        }
      },
      vulnerability: {
        cvssScore: '',
        cvssV2: {
          attackComplexity: '',
          attackVector: '',
          authentication: '',
          availabilityImpact: '',
          baseScore: '',
          confidentialityImpact: '',
          exploitabilityScore: '',
          impactScore: '',
          integrityImpact: '',
          privilegesRequired: '',
          scope: '',
          userInteraction: ''
        },
        cvssVersion: '',
        cvssv3: {},
        effectiveSeverity: '',
        extraDetails: '',
        fixAvailable: false,
        longDescription: '',
        packageIssue: [
          {
            affectedCpeUri: '',
            affectedPackage: '',
            affectedVersion: {},
            effectiveSeverity: '',
            fileLocation: [
              {
                filePath: '',
                layerDetails: {
                  baseImages: [{layerCount: 0, name: '', repository: ''}],
                  command: '',
                  diffId: '',
                  index: 0
                }
              }
            ],
            fixAvailable: false,
            fixedCpeUri: '',
            fixedPackage: '',
            fixedVersion: {},
            packageType: ''
          }
        ],
        relatedUrls: [{label: '', url: ''}],
        severity: '',
        shortDescription: '',
        type: '',
        vexAssessment: {
          cve: '',
          impacts: [],
          justification: {details: '', justificationType: ''},
          noteName: '',
          relatedUris: [{}],
          remediations: [{details: '', remediationType: '', remediationUri: {}}],
          state: '',
          vulnerabilityId: ''
        }
      }
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/occurrences:batchCreate',
  headers: {'content-type': 'application/json'},
  body: {
    occurrences: [
      {
        attestation: {
          jwts: [{compactJwt: ''}],
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        build: {
          inTotoSlsaProvenanceV1: {
            _type: '',
            predicate: {
              buildDefinition: {
                buildType: '',
                externalParameters: {},
                internalParameters: {},
                resolvedDependencies: [
                  {
                    annotations: {},
                    content: '',
                    digest: {},
                    downloadLocation: '',
                    mediaType: '',
                    name: '',
                    uri: ''
                  }
                ]
              },
              runDetails: {
                builder: {builderDependencies: [{}], id: '', version: {}},
                byproducts: [{}],
                metadata: {finishedOn: '', invocationId: '', startedOn: ''}
              }
            },
            predicateType: '',
            subject: [{digest: {}, name: ''}]
          },
          intotoProvenance: {
            builderConfig: {id: ''},
            materials: [],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {arguments: false, environment: false, materials: false},
              reproducible: false
            },
            recipe: {
              arguments: [{}],
              definedInMaterial: '',
              entryPoint: '',
              environment: [{}],
              type: ''
            }
          },
          intotoStatement: {
            _type: '',
            predicateType: '',
            provenance: {},
            slsaProvenance: {
              builder: {id: ''},
              materials: [{digest: {}, uri: ''}],
              metadata: {
                buildFinishedOn: '',
                buildInvocationId: '',
                buildStartedOn: '',
                completeness: {arguments: false, environment: false, materials: false},
                reproducible: false
              },
              recipe: {
                arguments: {},
                definedInMaterial: '',
                entryPoint: '',
                environment: {},
                type: ''
              }
            },
            slsaProvenanceZeroTwo: {
              buildConfig: {},
              buildType: '',
              builder: {id: ''},
              invocation: {
                parameters: {},
                configSource: {digest: {}, entryPoint: '', uri: ''},
                environment: {}
              },
              materials: [{digest: {}, uri: ''}],
              metadata: {
                buildFinishedOn: '',
                buildInvocationId: '',
                buildStartedOn: '',
                completeness: {parameters: false, environment: false, materials: false},
                reproducible: false
              }
            },
            subject: [{}]
          },
          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: ''
        },
        compliance: {
          nonComplianceReason: '',
          nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
          version: {benchmarkDocument: '', cpeUri: '', version: ''}
        },
        createTime: '',
        deployment: {
          address: '',
          config: '',
          deployTime: '',
          platform: '',
          resourceUri: [],
          undeployTime: '',
          userEmail: ''
        },
        discovery: {
          analysisCompleted: {analysisType: []},
          analysisError: [{code: 0, details: [{}], message: ''}],
          analysisStatus: '',
          analysisStatusError: {},
          archiveTime: '',
          continuousAnalysis: '',
          cpe: '',
          lastScanTime: '',
          sbomStatus: {error: '', sbomState: ''}
        },
        dsseAttestation: {
          envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
          statement: {}
        },
        envelope: {},
        image: {
          baseResourceUrl: '',
          distance: 0,
          fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
          layerInfo: [{arguments: '', directive: ''}]
        },
        kind: '',
        name: '',
        noteName: '',
        package: {
          architecture: '',
          cpeUri: '',
          license: {comments: '', expression: ''},
          location: [
            {
              cpeUri: '',
              path: '',
              version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
            }
          ],
          name: '',
          packageType: '',
          version: {}
        },
        remediation: '',
        resourceUri: '',
        sbomReference: {
          payload: {
            _type: '',
            predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
            predicateType: '',
            subject: [{}]
          },
          payloadType: '',
          signatures: [{}]
        },
        updateTime: '',
        upgrade: {
          distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
          package: '',
          parsedVersion: {},
          windowsUpdate: {
            categories: [{categoryId: '', name: ''}],
            description: '',
            identity: {revision: 0, updateId: ''},
            kbArticleIds: [],
            lastPublishedTimestamp: '',
            supportUrl: '',
            title: ''
          }
        },
        vulnerability: {
          cvssScore: '',
          cvssV2: {
            attackComplexity: '',
            attackVector: '',
            authentication: '',
            availabilityImpact: '',
            baseScore: '',
            confidentialityImpact: '',
            exploitabilityScore: '',
            impactScore: '',
            integrityImpact: '',
            privilegesRequired: '',
            scope: '',
            userInteraction: ''
          },
          cvssVersion: '',
          cvssv3: {},
          effectiveSeverity: '',
          extraDetails: '',
          fixAvailable: false,
          longDescription: '',
          packageIssue: [
            {
              affectedCpeUri: '',
              affectedPackage: '',
              affectedVersion: {},
              effectiveSeverity: '',
              fileLocation: [
                {
                  filePath: '',
                  layerDetails: {
                    baseImages: [{layerCount: 0, name: '', repository: ''}],
                    command: '',
                    diffId: '',
                    index: 0
                  }
                }
              ],
              fixAvailable: false,
              fixedCpeUri: '',
              fixedPackage: '',
              fixedVersion: {},
              packageType: ''
            }
          ],
          relatedUrls: [{label: '', url: ''}],
          severity: '',
          shortDescription: '',
          type: '',
          vexAssessment: {
            cve: '',
            impacts: [],
            justification: {details: '', justificationType: ''},
            noteName: '',
            relatedUris: [{}],
            remediations: [{details: '', remediationType: '', remediationUri: {}}],
            state: '',
            vulnerabilityId: ''
          }
        }
      }
    ]
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  occurrences: [
    {
      attestation: {
        jwts: [
          {
            compactJwt: ''
          }
        ],
        serializedPayload: '',
        signatures: [
          {
            publicKeyId: '',
            signature: ''
          }
        ]
      },
      build: {
        inTotoSlsaProvenanceV1: {
          _type: '',
          predicate: {
            buildDefinition: {
              buildType: '',
              externalParameters: {},
              internalParameters: {},
              resolvedDependencies: [
                {
                  annotations: {},
                  content: '',
                  digest: {},
                  downloadLocation: '',
                  mediaType: '',
                  name: '',
                  uri: ''
                }
              ]
            },
            runDetails: {
              builder: {
                builderDependencies: [
                  {}
                ],
                id: '',
                version: {}
              },
              byproducts: [
                {}
              ],
              metadata: {
                finishedOn: '',
                invocationId: '',
                startedOn: ''
              }
            }
          },
          predicateType: '',
          subject: [
            {
              digest: {},
              name: ''
            }
          ]
        },
        intotoProvenance: {
          builderConfig: {
            id: ''
          },
          materials: [],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {
              arguments: false,
              environment: false,
              materials: false
            },
            reproducible: false
          },
          recipe: {
            arguments: [
              {}
            ],
            definedInMaterial: '',
            entryPoint: '',
            environment: [
              {}
            ],
            type: ''
          }
        },
        intotoStatement: {
          _type: '',
          predicateType: '',
          provenance: {},
          slsaProvenance: {
            builder: {
              id: ''
            },
            materials: [
              {
                digest: {},
                uri: ''
              }
            ],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {
                arguments: false,
                environment: false,
                materials: false
              },
              reproducible: false
            },
            recipe: {
              arguments: {},
              definedInMaterial: '',
              entryPoint: '',
              environment: {},
              type: ''
            }
          },
          slsaProvenanceZeroTwo: {
            buildConfig: {},
            buildType: '',
            builder: {
              id: ''
            },
            invocation: {
              parameters: {},
              configSource: {
                digest: {},
                entryPoint: '',
                uri: ''
              },
              environment: {}
            },
            materials: [
              {
                digest: {},
                uri: ''
              }
            ],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {
                parameters: false,
                environment: false,
                materials: false
              },
              reproducible: false
            }
          },
          subject: [
            {}
          ]
        },
        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: ''
      },
      compliance: {
        nonComplianceReason: '',
        nonCompliantFiles: [
          {
            displayCommand: '',
            path: '',
            reason: ''
          }
        ],
        version: {
          benchmarkDocument: '',
          cpeUri: '',
          version: ''
        }
      },
      createTime: '',
      deployment: {
        address: '',
        config: '',
        deployTime: '',
        platform: '',
        resourceUri: [],
        undeployTime: '',
        userEmail: ''
      },
      discovery: {
        analysisCompleted: {
          analysisType: []
        },
        analysisError: [
          {
            code: 0,
            details: [
              {}
            ],
            message: ''
          }
        ],
        analysisStatus: '',
        analysisStatusError: {},
        archiveTime: '',
        continuousAnalysis: '',
        cpe: '',
        lastScanTime: '',
        sbomStatus: {
          error: '',
          sbomState: ''
        }
      },
      dsseAttestation: {
        envelope: {
          payload: '',
          payloadType: '',
          signatures: [
            {
              keyid: '',
              sig: ''
            }
          ]
        },
        statement: {}
      },
      envelope: {},
      image: {
        baseResourceUrl: '',
        distance: 0,
        fingerprint: {
          v1Name: '',
          v2Blob: [],
          v2Name: ''
        },
        layerInfo: [
          {
            arguments: '',
            directive: ''
          }
        ]
      },
      kind: '',
      name: '',
      noteName: '',
      package: {
        architecture: '',
        cpeUri: '',
        license: {
          comments: '',
          expression: ''
        },
        location: [
          {
            cpeUri: '',
            path: '',
            version: {
              epoch: 0,
              fullName: '',
              inclusive: false,
              kind: '',
              name: '',
              revision: ''
            }
          }
        ],
        name: '',
        packageType: '',
        version: {}
      },
      remediation: '',
      resourceUri: '',
      sbomReference: {
        payload: {
          _type: '',
          predicate: {
            digest: {},
            location: '',
            mimeType: '',
            referrerId: ''
          },
          predicateType: '',
          subject: [
            {}
          ]
        },
        payloadType: '',
        signatures: [
          {}
        ]
      },
      updateTime: '',
      upgrade: {
        distribution: {
          classification: '',
          cpeUri: '',
          cve: [],
          severity: ''
        },
        package: '',
        parsedVersion: {},
        windowsUpdate: {
          categories: [
            {
              categoryId: '',
              name: ''
            }
          ],
          description: '',
          identity: {
            revision: 0,
            updateId: ''
          },
          kbArticleIds: [],
          lastPublishedTimestamp: '',
          supportUrl: '',
          title: ''
        }
      },
      vulnerability: {
        cvssScore: '',
        cvssV2: {
          attackComplexity: '',
          attackVector: '',
          authentication: '',
          availabilityImpact: '',
          baseScore: '',
          confidentialityImpact: '',
          exploitabilityScore: '',
          impactScore: '',
          integrityImpact: '',
          privilegesRequired: '',
          scope: '',
          userInteraction: ''
        },
        cvssVersion: '',
        cvssv3: {},
        effectiveSeverity: '',
        extraDetails: '',
        fixAvailable: false,
        longDescription: '',
        packageIssue: [
          {
            affectedCpeUri: '',
            affectedPackage: '',
            affectedVersion: {},
            effectiveSeverity: '',
            fileLocation: [
              {
                filePath: '',
                layerDetails: {
                  baseImages: [
                    {
                      layerCount: 0,
                      name: '',
                      repository: ''
                    }
                  ],
                  command: '',
                  diffId: '',
                  index: 0
                }
              }
            ],
            fixAvailable: false,
            fixedCpeUri: '',
            fixedPackage: '',
            fixedVersion: {},
            packageType: ''
          }
        ],
        relatedUrls: [
          {
            label: '',
            url: ''
          }
        ],
        severity: '',
        shortDescription: '',
        type: '',
        vexAssessment: {
          cve: '',
          impacts: [],
          justification: {
            details: '',
            justificationType: ''
          },
          noteName: '',
          relatedUris: [
            {}
          ],
          remediations: [
            {
              details: '',
              remediationType: '',
              remediationUri: {}
            }
          ],
          state: '',
          vulnerabilityId: ''
        }
      }
    }
  ]
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/occurrences:batchCreate',
  headers: {'content-type': 'application/json'},
  data: {
    occurrences: [
      {
        attestation: {
          jwts: [{compactJwt: ''}],
          serializedPayload: '',
          signatures: [{publicKeyId: '', signature: ''}]
        },
        build: {
          inTotoSlsaProvenanceV1: {
            _type: '',
            predicate: {
              buildDefinition: {
                buildType: '',
                externalParameters: {},
                internalParameters: {},
                resolvedDependencies: [
                  {
                    annotations: {},
                    content: '',
                    digest: {},
                    downloadLocation: '',
                    mediaType: '',
                    name: '',
                    uri: ''
                  }
                ]
              },
              runDetails: {
                builder: {builderDependencies: [{}], id: '', version: {}},
                byproducts: [{}],
                metadata: {finishedOn: '', invocationId: '', startedOn: ''}
              }
            },
            predicateType: '',
            subject: [{digest: {}, name: ''}]
          },
          intotoProvenance: {
            builderConfig: {id: ''},
            materials: [],
            metadata: {
              buildFinishedOn: '',
              buildInvocationId: '',
              buildStartedOn: '',
              completeness: {arguments: false, environment: false, materials: false},
              reproducible: false
            },
            recipe: {
              arguments: [{}],
              definedInMaterial: '',
              entryPoint: '',
              environment: [{}],
              type: ''
            }
          },
          intotoStatement: {
            _type: '',
            predicateType: '',
            provenance: {},
            slsaProvenance: {
              builder: {id: ''},
              materials: [{digest: {}, uri: ''}],
              metadata: {
                buildFinishedOn: '',
                buildInvocationId: '',
                buildStartedOn: '',
                completeness: {arguments: false, environment: false, materials: false},
                reproducible: false
              },
              recipe: {
                arguments: {},
                definedInMaterial: '',
                entryPoint: '',
                environment: {},
                type: ''
              }
            },
            slsaProvenanceZeroTwo: {
              buildConfig: {},
              buildType: '',
              builder: {id: ''},
              invocation: {
                parameters: {},
                configSource: {digest: {}, entryPoint: '', uri: ''},
                environment: {}
              },
              materials: [{digest: {}, uri: ''}],
              metadata: {
                buildFinishedOn: '',
                buildInvocationId: '',
                buildStartedOn: '',
                completeness: {parameters: false, environment: false, materials: false},
                reproducible: false
              }
            },
            subject: [{}]
          },
          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: ''
        },
        compliance: {
          nonComplianceReason: '',
          nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
          version: {benchmarkDocument: '', cpeUri: '', version: ''}
        },
        createTime: '',
        deployment: {
          address: '',
          config: '',
          deployTime: '',
          platform: '',
          resourceUri: [],
          undeployTime: '',
          userEmail: ''
        },
        discovery: {
          analysisCompleted: {analysisType: []},
          analysisError: [{code: 0, details: [{}], message: ''}],
          analysisStatus: '',
          analysisStatusError: {},
          archiveTime: '',
          continuousAnalysis: '',
          cpe: '',
          lastScanTime: '',
          sbomStatus: {error: '', sbomState: ''}
        },
        dsseAttestation: {
          envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
          statement: {}
        },
        envelope: {},
        image: {
          baseResourceUrl: '',
          distance: 0,
          fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
          layerInfo: [{arguments: '', directive: ''}]
        },
        kind: '',
        name: '',
        noteName: '',
        package: {
          architecture: '',
          cpeUri: '',
          license: {comments: '', expression: ''},
          location: [
            {
              cpeUri: '',
              path: '',
              version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
            }
          ],
          name: '',
          packageType: '',
          version: {}
        },
        remediation: '',
        resourceUri: '',
        sbomReference: {
          payload: {
            _type: '',
            predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
            predicateType: '',
            subject: [{}]
          },
          payloadType: '',
          signatures: [{}]
        },
        updateTime: '',
        upgrade: {
          distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
          package: '',
          parsedVersion: {},
          windowsUpdate: {
            categories: [{categoryId: '', name: ''}],
            description: '',
            identity: {revision: 0, updateId: ''},
            kbArticleIds: [],
            lastPublishedTimestamp: '',
            supportUrl: '',
            title: ''
          }
        },
        vulnerability: {
          cvssScore: '',
          cvssV2: {
            attackComplexity: '',
            attackVector: '',
            authentication: '',
            availabilityImpact: '',
            baseScore: '',
            confidentialityImpact: '',
            exploitabilityScore: '',
            impactScore: '',
            integrityImpact: '',
            privilegesRequired: '',
            scope: '',
            userInteraction: ''
          },
          cvssVersion: '',
          cvssv3: {},
          effectiveSeverity: '',
          extraDetails: '',
          fixAvailable: false,
          longDescription: '',
          packageIssue: [
            {
              affectedCpeUri: '',
              affectedPackage: '',
              affectedVersion: {},
              effectiveSeverity: '',
              fileLocation: [
                {
                  filePath: '',
                  layerDetails: {
                    baseImages: [{layerCount: 0, name: '', repository: ''}],
                    command: '',
                    diffId: '',
                    index: 0
                  }
                }
              ],
              fixAvailable: false,
              fixedCpeUri: '',
              fixedPackage: '',
              fixedVersion: {},
              packageType: ''
            }
          ],
          relatedUrls: [{label: '', url: ''}],
          severity: '',
          shortDescription: '',
          type: '',
          vexAssessment: {
            cve: '',
            impacts: [],
            justification: {details: '', justificationType: ''},
            noteName: '',
            relatedUris: [{}],
            remediations: [{details: '', remediationType: '', remediationUri: {}}],
            state: '',
            vulnerabilityId: ''
          }
        }
      }
    ]
  }
};

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

const url = '{{baseUrl}}/v1/:+parent/occurrences:batchCreate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"occurrences":[{"attestation":{"jwts":[{"compactJwt":""}],"serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"build":{"inTotoSlsaProvenanceV1":{"_type":"","predicate":{"buildDefinition":{"buildType":"","externalParameters":{},"internalParameters":{},"resolvedDependencies":[{"annotations":{},"content":"","digest":{},"downloadLocation":"","mediaType":"","name":"","uri":""}]},"runDetails":{"builder":{"builderDependencies":[{}],"id":"","version":{}},"byproducts":[{}],"metadata":{"finishedOn":"","invocationId":"","startedOn":""}}},"predicateType":"","subject":[{"digest":{},"name":""}]},"intotoProvenance":{"builderConfig":{"id":""},"materials":[],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":[{}],"definedInMaterial":"","entryPoint":"","environment":[{}],"type":""}},"intotoStatement":{"_type":"","predicateType":"","provenance":{},"slsaProvenance":{"builder":{"id":""},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":{},"definedInMaterial":"","entryPoint":"","environment":{},"type":""}},"slsaProvenanceZeroTwo":{"buildConfig":{},"buildType":"","builder":{"id":""},"invocation":{"parameters":{},"configSource":{"digest":{},"entryPoint":"","uri":""},"environment":{}},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"parameters":false,"environment":false,"materials":false},"reproducible":false}},"subject":[{}]},"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":""},"compliance":{"nonComplianceReason":"","nonCompliantFiles":[{"displayCommand":"","path":"","reason":""}],"version":{"benchmarkDocument":"","cpeUri":"","version":""}},"createTime":"","deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""},"discovery":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"archiveTime":"","continuousAnalysis":"","cpe":"","lastScanTime":"","sbomStatus":{"error":"","sbomState":""}},"dsseAttestation":{"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"statement":{}},"envelope":{},"image":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]},"kind":"","name":"","noteName":"","package":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}},"remediation":"","resourceUri":"","sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{}]},"payloadType":"","signatures":[{}]},"updateTime":"","upgrade":{"distribution":{"classification":"","cpeUri":"","cve":[],"severity":""},"package":"","parsedVersion":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssVersion":"","cvssv3":{},"effectiveSeverity":"","extraDetails":"","fixAvailable":false,"longDescription":"","packageIssue":[{"affectedCpeUri":"","affectedPackage":"","affectedVersion":{},"effectiveSeverity":"","fileLocation":[{"filePath":"","layerDetails":{"baseImages":[{"layerCount":0,"name":"","repository":""}],"command":"","diffId":"","index":0}}],"fixAvailable":false,"fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"packageType":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":"","vulnerabilityId":""}}}]}'
};

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": @{ @"jwts": @[ @{ @"compactJwt": @"" } ], @"serializedPayload": @"", @"signatures": @[ @{ @"publicKeyId": @"", @"signature": @"" } ] }, @"build": @{ @"inTotoSlsaProvenanceV1": @{ @"_type": @"", @"predicate": @{ @"buildDefinition": @{ @"buildType": @"", @"externalParameters": @{  }, @"internalParameters": @{  }, @"resolvedDependencies": @[ @{ @"annotations": @{  }, @"content": @"", @"digest": @{  }, @"downloadLocation": @"", @"mediaType": @"", @"name": @"", @"uri": @"" } ] }, @"runDetails": @{ @"builder": @{ @"builderDependencies": @[ @{  } ], @"id": @"", @"version": @{  } }, @"byproducts": @[ @{  } ], @"metadata": @{ @"finishedOn": @"", @"invocationId": @"", @"startedOn": @"" } } }, @"predicateType": @"", @"subject": @[ @{ @"digest": @{  }, @"name": @"" } ] }, @"intotoProvenance": @{ @"builderConfig": @{ @"id": @"" }, @"materials": @[  ], @"metadata": @{ @"buildFinishedOn": @"", @"buildInvocationId": @"", @"buildStartedOn": @"", @"completeness": @{ @"arguments": @NO, @"environment": @NO, @"materials": @NO }, @"reproducible": @NO }, @"recipe": @{ @"arguments": @[ @{  } ], @"definedInMaterial": @"", @"entryPoint": @"", @"environment": @[ @{  } ], @"type": @"" } }, @"intotoStatement": @{ @"_type": @"", @"predicateType": @"", @"provenance": @{  }, @"slsaProvenance": @{ @"builder": @{ @"id": @"" }, @"materials": @[ @{ @"digest": @{  }, @"uri": @"" } ], @"metadata": @{ @"buildFinishedOn": @"", @"buildInvocationId": @"", @"buildStartedOn": @"", @"completeness": @{ @"arguments": @NO, @"environment": @NO, @"materials": @NO }, @"reproducible": @NO }, @"recipe": @{ @"arguments": @{  }, @"definedInMaterial": @"", @"entryPoint": @"", @"environment": @{  }, @"type": @"" } }, @"slsaProvenanceZeroTwo": @{ @"buildConfig": @{  }, @"buildType": @"", @"builder": @{ @"id": @"" }, @"invocation": @{ @"parameters": @{  }, @"configSource": @{ @"digest": @{  }, @"entryPoint": @"", @"uri": @"" }, @"environment": @{  } }, @"materials": @[ @{ @"digest": @{  }, @"uri": @"" } ], @"metadata": @{ @"buildFinishedOn": @"", @"buildInvocationId": @"", @"buildStartedOn": @"", @"completeness": @{ @"parameters": @NO, @"environment": @NO, @"materials": @NO }, @"reproducible": @NO } }, @"subject": @[ @{  } ] }, @"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": @"" }, @"compliance": @{ @"nonComplianceReason": @"", @"nonCompliantFiles": @[ @{ @"displayCommand": @"", @"path": @"", @"reason": @"" } ], @"version": @{ @"benchmarkDocument": @"", @"cpeUri": @"", @"version": @"" } }, @"createTime": @"", @"deployment": @{ @"address": @"", @"config": @"", @"deployTime": @"", @"platform": @"", @"resourceUri": @[  ], @"undeployTime": @"", @"userEmail": @"" }, @"discovery": @{ @"analysisCompleted": @{ @"analysisType": @[  ] }, @"analysisError": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ], @"analysisStatus": @"", @"analysisStatusError": @{  }, @"archiveTime": @"", @"continuousAnalysis": @"", @"cpe": @"", @"lastScanTime": @"", @"sbomStatus": @{ @"error": @"", @"sbomState": @"" } }, @"dsseAttestation": @{ @"envelope": @{ @"payload": @"", @"payloadType": @"", @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ] }, @"statement": @{  } }, @"envelope": @{  }, @"image": @{ @"baseResourceUrl": @"", @"distance": @0, @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"layerInfo": @[ @{ @"arguments": @"", @"directive": @"" } ] }, @"kind": @"", @"name": @"", @"noteName": @"", @"package": @{ @"architecture": @"", @"cpeUri": @"", @"license": @{ @"comments": @"", @"expression": @"" }, @"location": @[ @{ @"cpeUri": @"", @"path": @"", @"version": @{ @"epoch": @0, @"fullName": @"", @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" } } ], @"name": @"", @"packageType": @"", @"version": @{  } }, @"remediation": @"", @"resourceUri": @"", @"sbomReference": @{ @"payload": @{ @"_type": @"", @"predicate": @{ @"digest": @{  }, @"location": @"", @"mimeType": @"", @"referrerId": @"" }, @"predicateType": @"", @"subject": @[ @{  } ] }, @"payloadType": @"", @"signatures": @[ @{  } ] }, @"updateTime": @"", @"upgrade": @{ @"distribution": @{ @"classification": @"", @"cpeUri": @"", @"cve": @[  ], @"severity": @"" }, @"package": @"", @"parsedVersion": @{  }, @"windowsUpdate": @{ @"categories": @[ @{ @"categoryId": @"", @"name": @"" } ], @"description": @"", @"identity": @{ @"revision": @0, @"updateId": @"" }, @"kbArticleIds": @[  ], @"lastPublishedTimestamp": @"", @"supportUrl": @"", @"title": @"" } }, @"vulnerability": @{ @"cvssScore": @"", @"cvssV2": @{ @"attackComplexity": @"", @"attackVector": @"", @"authentication": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssVersion": @"", @"cvssv3": @{  }, @"effectiveSeverity": @"", @"extraDetails": @"", @"fixAvailable": @NO, @"longDescription": @"", @"packageIssue": @[ @{ @"affectedCpeUri": @"", @"affectedPackage": @"", @"affectedVersion": @{  }, @"effectiveSeverity": @"", @"fileLocation": @[ @{ @"filePath": @"", @"layerDetails": @{ @"baseImages": @[ @{ @"layerCount": @0, @"name": @"", @"repository": @"" } ], @"command": @"", @"diffId": @"", @"index": @0 } } ], @"fixAvailable": @NO, @"fixedCpeUri": @"", @"fixedPackage": @"", @"fixedVersion": @{  }, @"packageType": @"" } ], @"relatedUrls": @[ @{ @"label": @"", @"url": @"" } ], @"severity": @"", @"shortDescription": @"", @"type": @"", @"vexAssessment": @{ @"cve": @"", @"impacts": @[  ], @"justification": @{ @"details": @"", @"justificationType": @"" }, @"noteName": @"", @"relatedUris": @[ @{  } ], @"remediations": @[ @{ @"details": @"", @"remediationType": @"", @"remediationUri": @{  } } ], @"state": @"", @"vulnerabilityId": @"" } } } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:+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}}/v1/:+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        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+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' => [
                                'jwts' => [
                                                                [
                                                                                                                                'compactJwt' => ''
                                                                ]
                                ],
                                'serializedPayload' => '',
                                'signatures' => [
                                                                [
                                                                                                                                'publicKeyId' => '',
                                                                                                                                'signature' => ''
                                                                ]
                                ]
                ],
                'build' => [
                                'inTotoSlsaProvenanceV1' => [
                                                                '_type' => '',
                                                                'predicate' => [
                                                                                                                                'buildDefinition' => [
                                                                                                                                                                                                                                                                'buildType' => '',
                                                                                                                                                                                                                                                                'externalParameters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'internalParameters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resolvedDependencies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'content' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'downloadLocation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'mediaType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'runDetails' => [
                                                                                                                                                                                                                                                                'builder' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'builderDependencies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'byproducts' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'finishedOn' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'invocationId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'startedOn' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'predicateType' => '',
                                                                'subject' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'intotoProvenance' => [
                                                                'builderConfig' => [
                                                                                                                                'id' => ''
                                                                ],
                                                                'materials' => [
                                                                                                                                
                                                                ],
                                                                'metadata' => [
                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                'buildInvocationId' => '',
                                                                                                                                'buildStartedOn' => '',
                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                'arguments' => null,
                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                ],
                                                                                                                                'reproducible' => null
                                                                ],
                                                                'recipe' => [
                                                                                                                                'arguments' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'definedInMaterial' => '',
                                                                                                                                'entryPoint' => '',
                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'intotoStatement' => [
                                                                '_type' => '',
                                                                'predicateType' => '',
                                                                'provenance' => [
                                                                                                                                
                                                                ],
                                                                'slsaProvenance' => [
                                                                                                                                'builder' => [
                                                                                                                                                                                                                                                                'id' => ''
                                                                                                                                ],
                                                                                                                                'materials' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                                                                                                                                                'buildInvocationId' => '',
                                                                                                                                                                                                                                                                'buildStartedOn' => '',
                                                                                                                                                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'arguments' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'reproducible' => null
                                                                                                                                ],
                                                                                                                                'recipe' => [
                                                                                                                                                                                                                                                                'arguments' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'definedInMaterial' => '',
                                                                                                                                                                                                                                                                'entryPoint' => '',
                                                                                                                                                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => ''
                                                                                                                                ]
                                                                ],
                                                                'slsaProvenanceZeroTwo' => [
                                                                                                                                'buildConfig' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'buildType' => '',
                                                                                                                                'builder' => [
                                                                                                                                                                                                                                                                'id' => ''
                                                                                                                                ],
                                                                                                                                'invocation' => [
                                                                                                                                                                                                                                                                'parameters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'configSource' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'entryPoint' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'materials' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                                                                                                                                                'buildInvocationId' => '',
                                                                                                                                                                                                                                                                'buildStartedOn' => '',
                                                                                                                                                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'parameters' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'reproducible' => null
                                                                                                                                ]
                                                                ],
                                                                'subject' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                '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' => ''
                ],
                'compliance' => [
                                'nonComplianceReason' => '',
                                'nonCompliantFiles' => [
                                                                [
                                                                                                                                'displayCommand' => '',
                                                                                                                                'path' => '',
                                                                                                                                'reason' => ''
                                                                ]
                                ],
                                'version' => [
                                                                'benchmarkDocument' => '',
                                                                'cpeUri' => '',
                                                                'version' => ''
                                ]
                ],
                'createTime' => '',
                'deployment' => [
                                'address' => '',
                                'config' => '',
                                'deployTime' => '',
                                'platform' => '',
                                'resourceUri' => [
                                                                
                                ],
                                'undeployTime' => '',
                                'userEmail' => ''
                ],
                'discovery' => [
                                'analysisCompleted' => [
                                                                'analysisType' => [
                                                                                                                                
                                                                ]
                                ],
                                'analysisError' => [
                                                                [
                                                                                                                                'code' => 0,
                                                                                                                                'details' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'message' => ''
                                                                ]
                                ],
                                'analysisStatus' => '',
                                'analysisStatusError' => [
                                                                
                                ],
                                'archiveTime' => '',
                                'continuousAnalysis' => '',
                                'cpe' => '',
                                'lastScanTime' => '',
                                'sbomStatus' => [
                                                                'error' => '',
                                                                'sbomState' => ''
                                ]
                ],
                'dsseAttestation' => [
                                'envelope' => [
                                                                'payload' => '',
                                                                'payloadType' => '',
                                                                'signatures' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'keyid' => '',
                                                                                                                                                                                                                                                                'sig' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'statement' => [
                                                                
                                ]
                ],
                'envelope' => [
                                
                ],
                'image' => [
                                'baseResourceUrl' => '',
                                'distance' => 0,
                                'fingerprint' => [
                                                                'v1Name' => '',
                                                                'v2Blob' => [
                                                                                                                                
                                                                ],
                                                                'v2Name' => ''
                                ],
                                'layerInfo' => [
                                                                [
                                                                                                                                'arguments' => '',
                                                                                                                                'directive' => ''
                                                                ]
                                ]
                ],
                'kind' => '',
                'name' => '',
                'noteName' => '',
                'package' => [
                                'architecture' => '',
                                'cpeUri' => '',
                                'license' => [
                                                                'comments' => '',
                                                                'expression' => ''
                                ],
                                'location' => [
                                                                [
                                                                                                                                'cpeUri' => '',
                                                                                                                                'path' => '',
                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                'epoch' => 0,
                                                                                                                                                                                                                                                                'fullName' => '',
                                                                                                                                                                                                                                                                'inclusive' => null,
                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'revision' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'name' => '',
                                'packageType' => '',
                                'version' => [
                                                                
                                ]
                ],
                'remediation' => '',
                'resourceUri' => '',
                'sbomReference' => [
                                'payload' => [
                                                                '_type' => '',
                                                                'predicate' => [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'location' => '',
                                                                                                                                'mimeType' => '',
                                                                                                                                'referrerId' => ''
                                                                ],
                                                                'predicateType' => '',
                                                                'subject' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'payloadType' => '',
                                'signatures' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'updateTime' => '',
                'upgrade' => [
                                'distribution' => [
                                                                'classification' => '',
                                                                'cpeUri' => '',
                                                                'cve' => [
                                                                                                                                
                                                                ],
                                                                'severity' => ''
                                ],
                                'package' => '',
                                'parsedVersion' => [
                                                                
                                ],
                                'windowsUpdate' => [
                                                                'categories' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'categoryId' => '',
                                                                                                                                                                                                                                                                'name' => ''
                                                                                                                                ]
                                                                ],
                                                                'description' => '',
                                                                'identity' => [
                                                                                                                                'revision' => 0,
                                                                                                                                'updateId' => ''
                                                                ],
                                                                'kbArticleIds' => [
                                                                                                                                
                                                                ],
                                                                'lastPublishedTimestamp' => '',
                                                                'supportUrl' => '',
                                                                'title' => ''
                                ]
                ],
                'vulnerability' => [
                                'cvssScore' => '',
                                'cvssV2' => [
                                                                'attackComplexity' => '',
                                                                'attackVector' => '',
                                                                'authentication' => '',
                                                                'availabilityImpact' => '',
                                                                'baseScore' => '',
                                                                'confidentialityImpact' => '',
                                                                'exploitabilityScore' => '',
                                                                'impactScore' => '',
                                                                'integrityImpact' => '',
                                                                'privilegesRequired' => '',
                                                                'scope' => '',
                                                                'userInteraction' => ''
                                ],
                                'cvssVersion' => '',
                                'cvssv3' => [
                                                                
                                ],
                                'effectiveSeverity' => '',
                                'extraDetails' => '',
                                'fixAvailable' => null,
                                'longDescription' => '',
                                'packageIssue' => [
                                                                [
                                                                                                                                'affectedCpeUri' => '',
                                                                                                                                'affectedPackage' => '',
                                                                                                                                'affectedVersion' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'effectiveSeverity' => '',
                                                                                                                                'fileLocation' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'filePath' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerDetails' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'baseImages' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerCount' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repository' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'command' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'diffId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'index' => 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'fixAvailable' => null,
                                                                                                                                'fixedCpeUri' => '',
                                                                                                                                'fixedPackage' => '',
                                                                                                                                'fixedVersion' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'packageType' => ''
                                                                ]
                                ],
                                'relatedUrls' => [
                                                                [
                                                                                                                                'label' => '',
                                                                                                                                'url' => ''
                                                                ]
                                ],
                                'severity' => '',
                                'shortDescription' => '',
                                'type' => '',
                                'vexAssessment' => [
                                                                'cve' => '',
                                                                'impacts' => [
                                                                                                                                
                                                                ],
                                                                'justification' => [
                                                                                                                                'details' => '',
                                                                                                                                'justificationType' => ''
                                                                ],
                                                                'noteName' => '',
                                                                'relatedUris' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'remediations' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'details' => '',
                                                                                                                                                                                                                                                                'remediationType' => '',
                                                                                                                                                                                                                                                                'remediationUri' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'state' => '',
                                                                'vulnerabilityId' => ''
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:+parent/occurrences:batchCreate', [
  'body' => '{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'occurrences' => [
    [
        'attestation' => [
                'jwts' => [
                                [
                                                                'compactJwt' => ''
                                ]
                ],
                'serializedPayload' => '',
                'signatures' => [
                                [
                                                                'publicKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'build' => [
                'inTotoSlsaProvenanceV1' => [
                                '_type' => '',
                                'predicate' => [
                                                                'buildDefinition' => [
                                                                                                                                'buildType' => '',
                                                                                                                                'externalParameters' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'internalParameters' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resolvedDependencies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'content' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'downloadLocation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'mediaType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'runDetails' => [
                                                                                                                                'builder' => [
                                                                                                                                                                                                                                                                'builderDependencies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'byproducts' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                'finishedOn' => '',
                                                                                                                                                                                                                                                                'invocationId' => '',
                                                                                                                                                                                                                                                                'startedOn' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'predicateType' => '',
                                'subject' => [
                                                                [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'intotoProvenance' => [
                                'builderConfig' => [
                                                                'id' => ''
                                ],
                                'materials' => [
                                                                
                                ],
                                'metadata' => [
                                                                'buildFinishedOn' => '',
                                                                'buildInvocationId' => '',
                                                                'buildStartedOn' => '',
                                                                'completeness' => [
                                                                                                                                'arguments' => null,
                                                                                                                                'environment' => null,
                                                                                                                                'materials' => null
                                                                ],
                                                                'reproducible' => null
                                ],
                                'recipe' => [
                                                                'arguments' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'definedInMaterial' => '',
                                                                'entryPoint' => '',
                                                                'environment' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'intotoStatement' => [
                                '_type' => '',
                                'predicateType' => '',
                                'provenance' => [
                                                                
                                ],
                                'slsaProvenance' => [
                                                                'builder' => [
                                                                                                                                'id' => ''
                                                                ],
                                                                'materials' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ]
                                                                ],
                                                                'metadata' => [
                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                'buildInvocationId' => '',
                                                                                                                                'buildStartedOn' => '',
                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                'arguments' => null,
                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                ],
                                                                                                                                'reproducible' => null
                                                                ],
                                                                'recipe' => [
                                                                                                                                'arguments' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'definedInMaterial' => '',
                                                                                                                                'entryPoint' => '',
                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'slsaProvenanceZeroTwo' => [
                                                                'buildConfig' => [
                                                                                                                                
                                                                ],
                                                                'buildType' => '',
                                                                'builder' => [
                                                                                                                                'id' => ''
                                                                ],
                                                                'invocation' => [
                                                                                                                                'parameters' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'configSource' => [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'entryPoint' => '',
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ],
                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'materials' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ]
                                                                ],
                                                                'metadata' => [
                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                'buildInvocationId' => '',
                                                                                                                                'buildStartedOn' => '',
                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                'parameters' => null,
                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                ],
                                                                                                                                'reproducible' => null
                                                                ]
                                ],
                                'subject' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                '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' => ''
        ],
        'compliance' => [
                'nonComplianceReason' => '',
                'nonCompliantFiles' => [
                                [
                                                                'displayCommand' => '',
                                                                'path' => '',
                                                                'reason' => ''
                                ]
                ],
                'version' => [
                                'benchmarkDocument' => '',
                                'cpeUri' => '',
                                'version' => ''
                ]
        ],
        'createTime' => '',
        'deployment' => [
                'address' => '',
                'config' => '',
                'deployTime' => '',
                'platform' => '',
                'resourceUri' => [
                                
                ],
                'undeployTime' => '',
                'userEmail' => ''
        ],
        'discovery' => [
                'analysisCompleted' => [
                                'analysisType' => [
                                                                
                                ]
                ],
                'analysisError' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ],
                'analysisStatus' => '',
                'analysisStatusError' => [
                                
                ],
                'archiveTime' => '',
                'continuousAnalysis' => '',
                'cpe' => '',
                'lastScanTime' => '',
                'sbomStatus' => [
                                'error' => '',
                                'sbomState' => ''
                ]
        ],
        'dsseAttestation' => [
                'envelope' => [
                                'payload' => '',
                                'payloadType' => '',
                                'signatures' => [
                                                                [
                                                                                                                                'keyid' => '',
                                                                                                                                'sig' => ''
                                                                ]
                                ]
                ],
                'statement' => [
                                
                ]
        ],
        'envelope' => [
                
        ],
        'image' => [
                'baseResourceUrl' => '',
                'distance' => 0,
                'fingerprint' => [
                                'v1Name' => '',
                                'v2Blob' => [
                                                                
                                ],
                                'v2Name' => ''
                ],
                'layerInfo' => [
                                [
                                                                'arguments' => '',
                                                                'directive' => ''
                                ]
                ]
        ],
        'kind' => '',
        'name' => '',
        'noteName' => '',
        'package' => [
                'architecture' => '',
                'cpeUri' => '',
                'license' => [
                                'comments' => '',
                                'expression' => ''
                ],
                'location' => [
                                [
                                                                'cpeUri' => '',
                                                                'path' => '',
                                                                'version' => [
                                                                                                                                'epoch' => 0,
                                                                                                                                'fullName' => '',
                                                                                                                                'inclusive' => null,
                                                                                                                                'kind' => '',
                                                                                                                                'name' => '',
                                                                                                                                'revision' => ''
                                                                ]
                                ]
                ],
                'name' => '',
                'packageType' => '',
                'version' => [
                                
                ]
        ],
        'remediation' => '',
        'resourceUri' => '',
        'sbomReference' => [
                'payload' => [
                                '_type' => '',
                                'predicate' => [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'location' => '',
                                                                'mimeType' => '',
                                                                'referrerId' => ''
                                ],
                                'predicateType' => '',
                                'subject' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'payloadType' => '',
                'signatures' => [
                                [
                                                                
                                ]
                ]
        ],
        'updateTime' => '',
        'upgrade' => [
                'distribution' => [
                                'classification' => '',
                                'cpeUri' => '',
                                'cve' => [
                                                                
                                ],
                                'severity' => ''
                ],
                'package' => '',
                'parsedVersion' => [
                                
                ],
                'windowsUpdate' => [
                                'categories' => [
                                                                [
                                                                                                                                'categoryId' => '',
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'description' => '',
                                'identity' => [
                                                                'revision' => 0,
                                                                'updateId' => ''
                                ],
                                'kbArticleIds' => [
                                                                
                                ],
                                'lastPublishedTimestamp' => '',
                                'supportUrl' => '',
                                'title' => ''
                ]
        ],
        'vulnerability' => [
                'cvssScore' => '',
                'cvssV2' => [
                                'attackComplexity' => '',
                                'attackVector' => '',
                                'authentication' => '',
                                'availabilityImpact' => '',
                                'baseScore' => '',
                                'confidentialityImpact' => '',
                                'exploitabilityScore' => '',
                                'impactScore' => '',
                                'integrityImpact' => '',
                                'privilegesRequired' => '',
                                'scope' => '',
                                'userInteraction' => ''
                ],
                'cvssVersion' => '',
                'cvssv3' => [
                                
                ],
                'effectiveSeverity' => '',
                'extraDetails' => '',
                'fixAvailable' => null,
                'longDescription' => '',
                'packageIssue' => [
                                [
                                                                'affectedCpeUri' => '',
                                                                'affectedPackage' => '',
                                                                'affectedVersion' => [
                                                                                                                                
                                                                ],
                                                                'effectiveSeverity' => '',
                                                                'fileLocation' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'filePath' => '',
                                                                                                                                                                                                                                                                'layerDetails' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'baseImages' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerCount' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repository' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'command' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'diffId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'index' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'fixAvailable' => null,
                                                                'fixedCpeUri' => '',
                                                                'fixedPackage' => '',
                                                                'fixedVersion' => [
                                                                                                                                
                                                                ],
                                                                'packageType' => ''
                                ]
                ],
                'relatedUrls' => [
                                [
                                                                'label' => '',
                                                                'url' => ''
                                ]
                ],
                'severity' => '',
                'shortDescription' => '',
                'type' => '',
                'vexAssessment' => [
                                'cve' => '',
                                'impacts' => [
                                                                
                                ],
                                'justification' => [
                                                                'details' => '',
                                                                'justificationType' => ''
                                ],
                                'noteName' => '',
                                'relatedUris' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'remediations' => [
                                                                [
                                                                                                                                'details' => '',
                                                                                                                                'remediationType' => '',
                                                                                                                                'remediationUri' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'state' => '',
                                'vulnerabilityId' => ''
                ]
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'occurrences' => [
    [
        'attestation' => [
                'jwts' => [
                                [
                                                                'compactJwt' => ''
                                ]
                ],
                'serializedPayload' => '',
                'signatures' => [
                                [
                                                                'publicKeyId' => '',
                                                                'signature' => ''
                                ]
                ]
        ],
        'build' => [
                'inTotoSlsaProvenanceV1' => [
                                '_type' => '',
                                'predicate' => [
                                                                'buildDefinition' => [
                                                                                                                                'buildType' => '',
                                                                                                                                'externalParameters' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'internalParameters' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resolvedDependencies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'content' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'downloadLocation' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'mediaType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'runDetails' => [
                                                                                                                                'builder' => [
                                                                                                                                                                                                                                                                'builderDependencies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'byproducts' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                'finishedOn' => '',
                                                                                                                                                                                                                                                                'invocationId' => '',
                                                                                                                                                                                                                                                                'startedOn' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'predicateType' => '',
                                'subject' => [
                                                                [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'intotoProvenance' => [
                                'builderConfig' => [
                                                                'id' => ''
                                ],
                                'materials' => [
                                                                
                                ],
                                'metadata' => [
                                                                'buildFinishedOn' => '',
                                                                'buildInvocationId' => '',
                                                                'buildStartedOn' => '',
                                                                'completeness' => [
                                                                                                                                'arguments' => null,
                                                                                                                                'environment' => null,
                                                                                                                                'materials' => null
                                                                ],
                                                                'reproducible' => null
                                ],
                                'recipe' => [
                                                                'arguments' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'definedInMaterial' => '',
                                                                'entryPoint' => '',
                                                                'environment' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'intotoStatement' => [
                                '_type' => '',
                                'predicateType' => '',
                                'provenance' => [
                                                                
                                ],
                                'slsaProvenance' => [
                                                                'builder' => [
                                                                                                                                'id' => ''
                                                                ],
                                                                'materials' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ]
                                                                ],
                                                                'metadata' => [
                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                'buildInvocationId' => '',
                                                                                                                                'buildStartedOn' => '',
                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                'arguments' => null,
                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                ],
                                                                                                                                'reproducible' => null
                                                                ],
                                                                'recipe' => [
                                                                                                                                'arguments' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'definedInMaterial' => '',
                                                                                                                                'entryPoint' => '',
                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'slsaProvenanceZeroTwo' => [
                                                                'buildConfig' => [
                                                                                                                                
                                                                ],
                                                                'buildType' => '',
                                                                'builder' => [
                                                                                                                                'id' => ''
                                                                ],
                                                                'invocation' => [
                                                                                                                                'parameters' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'configSource' => [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'entryPoint' => '',
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ],
                                                                                                                                'environment' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'materials' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ]
                                                                ],
                                                                'metadata' => [
                                                                                                                                'buildFinishedOn' => '',
                                                                                                                                'buildInvocationId' => '',
                                                                                                                                'buildStartedOn' => '',
                                                                                                                                'completeness' => [
                                                                                                                                                                                                                                                                'parameters' => null,
                                                                                                                                                                                                                                                                'environment' => null,
                                                                                                                                                                                                                                                                'materials' => null
                                                                                                                                ],
                                                                                                                                'reproducible' => null
                                                                ]
                                ],
                                'subject' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                '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' => ''
        ],
        'compliance' => [
                'nonComplianceReason' => '',
                'nonCompliantFiles' => [
                                [
                                                                'displayCommand' => '',
                                                                'path' => '',
                                                                'reason' => ''
                                ]
                ],
                'version' => [
                                'benchmarkDocument' => '',
                                'cpeUri' => '',
                                'version' => ''
                ]
        ],
        'createTime' => '',
        'deployment' => [
                'address' => '',
                'config' => '',
                'deployTime' => '',
                'platform' => '',
                'resourceUri' => [
                                
                ],
                'undeployTime' => '',
                'userEmail' => ''
        ],
        'discovery' => [
                'analysisCompleted' => [
                                'analysisType' => [
                                                                
                                ]
                ],
                'analysisError' => [
                                [
                                                                'code' => 0,
                                                                'details' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'message' => ''
                                ]
                ],
                'analysisStatus' => '',
                'analysisStatusError' => [
                                
                ],
                'archiveTime' => '',
                'continuousAnalysis' => '',
                'cpe' => '',
                'lastScanTime' => '',
                'sbomStatus' => [
                                'error' => '',
                                'sbomState' => ''
                ]
        ],
        'dsseAttestation' => [
                'envelope' => [
                                'payload' => '',
                                'payloadType' => '',
                                'signatures' => [
                                                                [
                                                                                                                                'keyid' => '',
                                                                                                                                'sig' => ''
                                                                ]
                                ]
                ],
                'statement' => [
                                
                ]
        ],
        'envelope' => [
                
        ],
        'image' => [
                'baseResourceUrl' => '',
                'distance' => 0,
                'fingerprint' => [
                                'v1Name' => '',
                                'v2Blob' => [
                                                                
                                ],
                                'v2Name' => ''
                ],
                'layerInfo' => [
                                [
                                                                'arguments' => '',
                                                                'directive' => ''
                                ]
                ]
        ],
        'kind' => '',
        'name' => '',
        'noteName' => '',
        'package' => [
                'architecture' => '',
                'cpeUri' => '',
                'license' => [
                                'comments' => '',
                                'expression' => ''
                ],
                'location' => [
                                [
                                                                'cpeUri' => '',
                                                                'path' => '',
                                                                'version' => [
                                                                                                                                'epoch' => 0,
                                                                                                                                'fullName' => '',
                                                                                                                                'inclusive' => null,
                                                                                                                                'kind' => '',
                                                                                                                                'name' => '',
                                                                                                                                'revision' => ''
                                                                ]
                                ]
                ],
                'name' => '',
                'packageType' => '',
                'version' => [
                                
                ]
        ],
        'remediation' => '',
        'resourceUri' => '',
        'sbomReference' => [
                'payload' => [
                                '_type' => '',
                                'predicate' => [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'location' => '',
                                                                'mimeType' => '',
                                                                'referrerId' => ''
                                ],
                                'predicateType' => '',
                                'subject' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'payloadType' => '',
                'signatures' => [
                                [
                                                                
                                ]
                ]
        ],
        'updateTime' => '',
        'upgrade' => [
                'distribution' => [
                                'classification' => '',
                                'cpeUri' => '',
                                'cve' => [
                                                                
                                ],
                                'severity' => ''
                ],
                'package' => '',
                'parsedVersion' => [
                                
                ],
                'windowsUpdate' => [
                                'categories' => [
                                                                [
                                                                                                                                'categoryId' => '',
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'description' => '',
                                'identity' => [
                                                                'revision' => 0,
                                                                'updateId' => ''
                                ],
                                'kbArticleIds' => [
                                                                
                                ],
                                'lastPublishedTimestamp' => '',
                                'supportUrl' => '',
                                'title' => ''
                ]
        ],
        'vulnerability' => [
                'cvssScore' => '',
                'cvssV2' => [
                                'attackComplexity' => '',
                                'attackVector' => '',
                                'authentication' => '',
                                'availabilityImpact' => '',
                                'baseScore' => '',
                                'confidentialityImpact' => '',
                                'exploitabilityScore' => '',
                                'impactScore' => '',
                                'integrityImpact' => '',
                                'privilegesRequired' => '',
                                'scope' => '',
                                'userInteraction' => ''
                ],
                'cvssVersion' => '',
                'cvssv3' => [
                                
                ],
                'effectiveSeverity' => '',
                'extraDetails' => '',
                'fixAvailable' => null,
                'longDescription' => '',
                'packageIssue' => [
                                [
                                                                'affectedCpeUri' => '',
                                                                'affectedPackage' => '',
                                                                'affectedVersion' => [
                                                                                                                                
                                                                ],
                                                                'effectiveSeverity' => '',
                                                                'fileLocation' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'filePath' => '',
                                                                                                                                                                                                                                                                'layerDetails' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'baseImages' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerCount' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repository' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'command' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'diffId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'index' => 0
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'fixAvailable' => null,
                                                                'fixedCpeUri' => '',
                                                                'fixedPackage' => '',
                                                                'fixedVersion' => [
                                                                                                                                
                                                                ],
                                                                'packageType' => ''
                                ]
                ],
                'relatedUrls' => [
                                [
                                                                'label' => '',
                                                                'url' => ''
                                ]
                ],
                'severity' => '',
                'shortDescription' => '',
                'type' => '',
                'vexAssessment' => [
                                'cve' => '',
                                'impacts' => [
                                                                
                                ],
                                'justification' => [
                                                                'details' => '',
                                                                'justificationType' => ''
                                ],
                                'noteName' => '',
                                'relatedUris' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'remediations' => [
                                                                [
                                                                                                                                'details' => '',
                                                                                                                                'remediationType' => '',
                                                                                                                                'remediationUri' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'state' => '',
                                'vulnerabilityId' => ''
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences:batchCreate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+parent/occurrences:batchCreate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}'
import http.client

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

payload = "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\n        }\n      }\n    }\n  ]\n}"

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

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

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

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

url = "{{baseUrl}}/v1/:+parent/occurrences:batchCreate"

payload = { "occurrences": [
        {
            "attestation": {
                "jwts": [{ "compactJwt": "" }],
                "serializedPayload": "",
                "signatures": [
                    {
                        "publicKeyId": "",
                        "signature": ""
                    }
                ]
            },
            "build": {
                "inTotoSlsaProvenanceV1": {
                    "_type": "",
                    "predicate": {
                        "buildDefinition": {
                            "buildType": "",
                            "externalParameters": {},
                            "internalParameters": {},
                            "resolvedDependencies": [
                                {
                                    "annotations": {},
                                    "content": "",
                                    "digest": {},
                                    "downloadLocation": "",
                                    "mediaType": "",
                                    "name": "",
                                    "uri": ""
                                }
                            ]
                        },
                        "runDetails": {
                            "builder": {
                                "builderDependencies": [{}],
                                "id": "",
                                "version": {}
                            },
                            "byproducts": [{}],
                            "metadata": {
                                "finishedOn": "",
                                "invocationId": "",
                                "startedOn": ""
                            }
                        }
                    },
                    "predicateType": "",
                    "subject": [
                        {
                            "digest": {},
                            "name": ""
                        }
                    ]
                },
                "intotoProvenance": {
                    "builderConfig": { "id": "" },
                    "materials": [],
                    "metadata": {
                        "buildFinishedOn": "",
                        "buildInvocationId": "",
                        "buildStartedOn": "",
                        "completeness": {
                            "arguments": False,
                            "environment": False,
                            "materials": False
                        },
                        "reproducible": False
                    },
                    "recipe": {
                        "arguments": [{}],
                        "definedInMaterial": "",
                        "entryPoint": "",
                        "environment": [{}],
                        "type": ""
                    }
                },
                "intotoStatement": {
                    "_type": "",
                    "predicateType": "",
                    "provenance": {},
                    "slsaProvenance": {
                        "builder": { "id": "" },
                        "materials": [
                            {
                                "digest": {},
                                "uri": ""
                            }
                        ],
                        "metadata": {
                            "buildFinishedOn": "",
                            "buildInvocationId": "",
                            "buildStartedOn": "",
                            "completeness": {
                                "arguments": False,
                                "environment": False,
                                "materials": False
                            },
                            "reproducible": False
                        },
                        "recipe": {
                            "arguments": {},
                            "definedInMaterial": "",
                            "entryPoint": "",
                            "environment": {},
                            "type": ""
                        }
                    },
                    "slsaProvenanceZeroTwo": {
                        "buildConfig": {},
                        "buildType": "",
                        "builder": { "id": "" },
                        "invocation": {
                            "parameters": {},
                            "configSource": {
                                "digest": {},
                                "entryPoint": "",
                                "uri": ""
                            },
                            "environment": {}
                        },
                        "materials": [
                            {
                                "digest": {},
                                "uri": ""
                            }
                        ],
                        "metadata": {
                            "buildFinishedOn": "",
                            "buildInvocationId": "",
                            "buildStartedOn": "",
                            "completeness": {
                                "parameters": False,
                                "environment": False,
                                "materials": False
                            },
                            "reproducible": False
                        }
                    },
                    "subject": [{}]
                },
                "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": ""
            },
            "compliance": {
                "nonComplianceReason": "",
                "nonCompliantFiles": [
                    {
                        "displayCommand": "",
                        "path": "",
                        "reason": ""
                    }
                ],
                "version": {
                    "benchmarkDocument": "",
                    "cpeUri": "",
                    "version": ""
                }
            },
            "createTime": "",
            "deployment": {
                "address": "",
                "config": "",
                "deployTime": "",
                "platform": "",
                "resourceUri": [],
                "undeployTime": "",
                "userEmail": ""
            },
            "discovery": {
                "analysisCompleted": { "analysisType": [] },
                "analysisError": [
                    {
                        "code": 0,
                        "details": [{}],
                        "message": ""
                    }
                ],
                "analysisStatus": "",
                "analysisStatusError": {},
                "archiveTime": "",
                "continuousAnalysis": "",
                "cpe": "",
                "lastScanTime": "",
                "sbomStatus": {
                    "error": "",
                    "sbomState": ""
                }
            },
            "dsseAttestation": {
                "envelope": {
                    "payload": "",
                    "payloadType": "",
                    "signatures": [
                        {
                            "keyid": "",
                            "sig": ""
                        }
                    ]
                },
                "statement": {}
            },
            "envelope": {},
            "image": {
                "baseResourceUrl": "",
                "distance": 0,
                "fingerprint": {
                    "v1Name": "",
                    "v2Blob": [],
                    "v2Name": ""
                },
                "layerInfo": [
                    {
                        "arguments": "",
                        "directive": ""
                    }
                ]
            },
            "kind": "",
            "name": "",
            "noteName": "",
            "package": {
                "architecture": "",
                "cpeUri": "",
                "license": {
                    "comments": "",
                    "expression": ""
                },
                "location": [
                    {
                        "cpeUri": "",
                        "path": "",
                        "version": {
                            "epoch": 0,
                            "fullName": "",
                            "inclusive": False,
                            "kind": "",
                            "name": "",
                            "revision": ""
                        }
                    }
                ],
                "name": "",
                "packageType": "",
                "version": {}
            },
            "remediation": "",
            "resourceUri": "",
            "sbomReference": {
                "payload": {
                    "_type": "",
                    "predicate": {
                        "digest": {},
                        "location": "",
                        "mimeType": "",
                        "referrerId": ""
                    },
                    "predicateType": "",
                    "subject": [{}]
                },
                "payloadType": "",
                "signatures": [{}]
            },
            "updateTime": "",
            "upgrade": {
                "distribution": {
                    "classification": "",
                    "cpeUri": "",
                    "cve": [],
                    "severity": ""
                },
                "package": "",
                "parsedVersion": {},
                "windowsUpdate": {
                    "categories": [
                        {
                            "categoryId": "",
                            "name": ""
                        }
                    ],
                    "description": "",
                    "identity": {
                        "revision": 0,
                        "updateId": ""
                    },
                    "kbArticleIds": [],
                    "lastPublishedTimestamp": "",
                    "supportUrl": "",
                    "title": ""
                }
            },
            "vulnerability": {
                "cvssScore": "",
                "cvssV2": {
                    "attackComplexity": "",
                    "attackVector": "",
                    "authentication": "",
                    "availabilityImpact": "",
                    "baseScore": "",
                    "confidentialityImpact": "",
                    "exploitabilityScore": "",
                    "impactScore": "",
                    "integrityImpact": "",
                    "privilegesRequired": "",
                    "scope": "",
                    "userInteraction": ""
                },
                "cvssVersion": "",
                "cvssv3": {},
                "effectiveSeverity": "",
                "extraDetails": "",
                "fixAvailable": False,
                "longDescription": "",
                "packageIssue": [
                    {
                        "affectedCpeUri": "",
                        "affectedPackage": "",
                        "affectedVersion": {},
                        "effectiveSeverity": "",
                        "fileLocation": [
                            {
                                "filePath": "",
                                "layerDetails": {
                                    "baseImages": [
                                        {
                                            "layerCount": 0,
                                            "name": "",
                                            "repository": ""
                                        }
                                    ],
                                    "command": "",
                                    "diffId": "",
                                    "index": 0
                                }
                            }
                        ],
                        "fixAvailable": False,
                        "fixedCpeUri": "",
                        "fixedPackage": "",
                        "fixedVersion": {},
                        "packageType": ""
                    }
                ],
                "relatedUrls": [
                    {
                        "label": "",
                        "url": ""
                    }
                ],
                "severity": "",
                "shortDescription": "",
                "type": "",
                "vexAssessment": {
                    "cve": "",
                    "impacts": [],
                    "justification": {
                        "details": "",
                        "justificationType": ""
                    },
                    "noteName": "",
                    "relatedUris": [{}],
                    "remediations": [
                        {
                            "details": "",
                            "remediationType": "",
                            "remediationUri": {}
                        }
                    ],
                    "state": "",
                    "vulnerabilityId": ""
                }
            }
        }
    ] }
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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}}/v1/:+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        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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/v1/:+parent/occurrences:batchCreate') do |req|
  req.body = "{\n  \"occurrences\": [\n    {\n      \"attestation\": {\n        \"jwts\": [\n          {\n            \"compactJwt\": \"\"\n          }\n        ],\n        \"serializedPayload\": \"\",\n        \"signatures\": [\n          {\n            \"publicKeyId\": \"\",\n            \"signature\": \"\"\n          }\n        ]\n      },\n      \"build\": {\n        \"inTotoSlsaProvenanceV1\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"buildDefinition\": {\n              \"buildType\": \"\",\n              \"externalParameters\": {},\n              \"internalParameters\": {},\n              \"resolvedDependencies\": [\n                {\n                  \"annotations\": {},\n                  \"content\": \"\",\n                  \"digest\": {},\n                  \"downloadLocation\": \"\",\n                  \"mediaType\": \"\",\n                  \"name\": \"\",\n                  \"uri\": \"\"\n                }\n              ]\n            },\n            \"runDetails\": {\n              \"builder\": {\n                \"builderDependencies\": [\n                  {}\n                ],\n                \"id\": \"\",\n                \"version\": {}\n              },\n              \"byproducts\": [\n                {}\n              ],\n              \"metadata\": {\n                \"finishedOn\": \"\",\n                \"invocationId\": \"\",\n                \"startedOn\": \"\"\n              }\n            }\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {\n              \"digest\": {},\n              \"name\": \"\"\n            }\n          ]\n        },\n        \"intotoProvenance\": {\n          \"builderConfig\": {\n            \"id\": \"\"\n          },\n          \"materials\": [],\n          \"metadata\": {\n            \"buildFinishedOn\": \"\",\n            \"buildInvocationId\": \"\",\n            \"buildStartedOn\": \"\",\n            \"completeness\": {\n              \"arguments\": false,\n              \"environment\": false,\n              \"materials\": false\n            },\n            \"reproducible\": false\n          },\n          \"recipe\": {\n            \"arguments\": [\n              {}\n            ],\n            \"definedInMaterial\": \"\",\n            \"entryPoint\": \"\",\n            \"environment\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        },\n        \"intotoStatement\": {\n          \"_type\": \"\",\n          \"predicateType\": \"\",\n          \"provenance\": {},\n          \"slsaProvenance\": {\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"arguments\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            },\n            \"recipe\": {\n              \"arguments\": {},\n              \"definedInMaterial\": \"\",\n              \"entryPoint\": \"\",\n              \"environment\": {},\n              \"type\": \"\"\n            }\n          },\n          \"slsaProvenanceZeroTwo\": {\n            \"buildConfig\": {},\n            \"buildType\": \"\",\n            \"builder\": {\n              \"id\": \"\"\n            },\n            \"invocation\": {\n              \"parameters\": {},\n              \"configSource\": {\n                \"digest\": {},\n                \"entryPoint\": \"\",\n                \"uri\": \"\"\n              },\n              \"environment\": {}\n            },\n            \"materials\": [\n              {\n                \"digest\": {},\n                \"uri\": \"\"\n              }\n            ],\n            \"metadata\": {\n              \"buildFinishedOn\": \"\",\n              \"buildInvocationId\": \"\",\n              \"buildStartedOn\": \"\",\n              \"completeness\": {\n                \"parameters\": false,\n                \"environment\": false,\n                \"materials\": false\n              },\n              \"reproducible\": false\n            }\n          },\n          \"subject\": [\n            {}\n          ]\n        },\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      \"compliance\": {\n        \"nonComplianceReason\": \"\",\n        \"nonCompliantFiles\": [\n          {\n            \"displayCommand\": \"\",\n            \"path\": \"\",\n            \"reason\": \"\"\n          }\n        ],\n        \"version\": {\n          \"benchmarkDocument\": \"\",\n          \"cpeUri\": \"\",\n          \"version\": \"\"\n        }\n      },\n      \"createTime\": \"\",\n      \"deployment\": {\n        \"address\": \"\",\n        \"config\": \"\",\n        \"deployTime\": \"\",\n        \"platform\": \"\",\n        \"resourceUri\": [],\n        \"undeployTime\": \"\",\n        \"userEmail\": \"\"\n      },\n      \"discovery\": {\n        \"analysisCompleted\": {\n          \"analysisType\": []\n        },\n        \"analysisError\": [\n          {\n            \"code\": 0,\n            \"details\": [\n              {}\n            ],\n            \"message\": \"\"\n          }\n        ],\n        \"analysisStatus\": \"\",\n        \"analysisStatusError\": {},\n        \"archiveTime\": \"\",\n        \"continuousAnalysis\": \"\",\n        \"cpe\": \"\",\n        \"lastScanTime\": \"\",\n        \"sbomStatus\": {\n          \"error\": \"\",\n          \"sbomState\": \"\"\n        }\n      },\n      \"dsseAttestation\": {\n        \"envelope\": {\n          \"payload\": \"\",\n          \"payloadType\": \"\",\n          \"signatures\": [\n            {\n              \"keyid\": \"\",\n              \"sig\": \"\"\n            }\n          ]\n        },\n        \"statement\": {}\n      },\n      \"envelope\": {},\n      \"image\": {\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      \"kind\": \"\",\n      \"name\": \"\",\n      \"noteName\": \"\",\n      \"package\": {\n        \"architecture\": \"\",\n        \"cpeUri\": \"\",\n        \"license\": {\n          \"comments\": \"\",\n          \"expression\": \"\"\n        },\n        \"location\": [\n          {\n            \"cpeUri\": \"\",\n            \"path\": \"\",\n            \"version\": {\n              \"epoch\": 0,\n              \"fullName\": \"\",\n              \"inclusive\": false,\n              \"kind\": \"\",\n              \"name\": \"\",\n              \"revision\": \"\"\n            }\n          }\n        ],\n        \"name\": \"\",\n        \"packageType\": \"\",\n        \"version\": {}\n      },\n      \"remediation\": \"\",\n      \"resourceUri\": \"\",\n      \"sbomReference\": {\n        \"payload\": {\n          \"_type\": \"\",\n          \"predicate\": {\n            \"digest\": {},\n            \"location\": \"\",\n            \"mimeType\": \"\",\n            \"referrerId\": \"\"\n          },\n          \"predicateType\": \"\",\n          \"subject\": [\n            {}\n          ]\n        },\n        \"payloadType\": \"\",\n        \"signatures\": [\n          {}\n        ]\n      },\n      \"updateTime\": \"\",\n      \"upgrade\": {\n        \"distribution\": {\n          \"classification\": \"\",\n          \"cpeUri\": \"\",\n          \"cve\": [],\n          \"severity\": \"\"\n        },\n        \"package\": \"\",\n        \"parsedVersion\": {},\n        \"windowsUpdate\": {\n          \"categories\": [\n            {\n              \"categoryId\": \"\",\n              \"name\": \"\"\n            }\n          ],\n          \"description\": \"\",\n          \"identity\": {\n            \"revision\": 0,\n            \"updateId\": \"\"\n          },\n          \"kbArticleIds\": [],\n          \"lastPublishedTimestamp\": \"\",\n          \"supportUrl\": \"\",\n          \"title\": \"\"\n        }\n      },\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        \"cvssVersion\": \"\",\n        \"cvssv3\": {},\n        \"effectiveSeverity\": \"\",\n        \"extraDetails\": \"\",\n        \"fixAvailable\": false,\n        \"longDescription\": \"\",\n        \"packageIssue\": [\n          {\n            \"affectedCpeUri\": \"\",\n            \"affectedPackage\": \"\",\n            \"affectedVersion\": {},\n            \"effectiveSeverity\": \"\",\n            \"fileLocation\": [\n              {\n                \"filePath\": \"\",\n                \"layerDetails\": {\n                  \"baseImages\": [\n                    {\n                      \"layerCount\": 0,\n                      \"name\": \"\",\n                      \"repository\": \"\"\n                    }\n                  ],\n                  \"command\": \"\",\n                  \"diffId\": \"\",\n                  \"index\": 0\n                }\n              }\n            ],\n            \"fixAvailable\": false,\n            \"fixedCpeUri\": \"\",\n            \"fixedPackage\": \"\",\n            \"fixedVersion\": {},\n            \"packageType\": \"\"\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          \"vulnerabilityId\": \"\"\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}}/v1/:+parent/occurrences:batchCreate";

    let payload = json!({"occurrences": (
            json!({
                "attestation": json!({
                    "jwts": (json!({"compactJwt": ""})),
                    "serializedPayload": "",
                    "signatures": (
                        json!({
                            "publicKeyId": "",
                            "signature": ""
                        })
                    )
                }),
                "build": json!({
                    "inTotoSlsaProvenanceV1": json!({
                        "_type": "",
                        "predicate": json!({
                            "buildDefinition": json!({
                                "buildType": "",
                                "externalParameters": json!({}),
                                "internalParameters": json!({}),
                                "resolvedDependencies": (
                                    json!({
                                        "annotations": json!({}),
                                        "content": "",
                                        "digest": json!({}),
                                        "downloadLocation": "",
                                        "mediaType": "",
                                        "name": "",
                                        "uri": ""
                                    })
                                )
                            }),
                            "runDetails": json!({
                                "builder": json!({
                                    "builderDependencies": (json!({})),
                                    "id": "",
                                    "version": json!({})
                                }),
                                "byproducts": (json!({})),
                                "metadata": json!({
                                    "finishedOn": "",
                                    "invocationId": "",
                                    "startedOn": ""
                                })
                            })
                        }),
                        "predicateType": "",
                        "subject": (
                            json!({
                                "digest": json!({}),
                                "name": ""
                            })
                        )
                    }),
                    "intotoProvenance": json!({
                        "builderConfig": json!({"id": ""}),
                        "materials": (),
                        "metadata": json!({
                            "buildFinishedOn": "",
                            "buildInvocationId": "",
                            "buildStartedOn": "",
                            "completeness": json!({
                                "arguments": false,
                                "environment": false,
                                "materials": false
                            }),
                            "reproducible": false
                        }),
                        "recipe": json!({
                            "arguments": (json!({})),
                            "definedInMaterial": "",
                            "entryPoint": "",
                            "environment": (json!({})),
                            "type": ""
                        })
                    }),
                    "intotoStatement": json!({
                        "_type": "",
                        "predicateType": "",
                        "provenance": json!({}),
                        "slsaProvenance": json!({
                            "builder": json!({"id": ""}),
                            "materials": (
                                json!({
                                    "digest": json!({}),
                                    "uri": ""
                                })
                            ),
                            "metadata": json!({
                                "buildFinishedOn": "",
                                "buildInvocationId": "",
                                "buildStartedOn": "",
                                "completeness": json!({
                                    "arguments": false,
                                    "environment": false,
                                    "materials": false
                                }),
                                "reproducible": false
                            }),
                            "recipe": json!({
                                "arguments": json!({}),
                                "definedInMaterial": "",
                                "entryPoint": "",
                                "environment": json!({}),
                                "type": ""
                            })
                        }),
                        "slsaProvenanceZeroTwo": json!({
                            "buildConfig": json!({}),
                            "buildType": "",
                            "builder": json!({"id": ""}),
                            "invocation": json!({
                                "parameters": json!({}),
                                "configSource": json!({
                                    "digest": json!({}),
                                    "entryPoint": "",
                                    "uri": ""
                                }),
                                "environment": json!({})
                            }),
                            "materials": (
                                json!({
                                    "digest": json!({}),
                                    "uri": ""
                                })
                            ),
                            "metadata": json!({
                                "buildFinishedOn": "",
                                "buildInvocationId": "",
                                "buildStartedOn": "",
                                "completeness": json!({
                                    "parameters": false,
                                    "environment": false,
                                    "materials": false
                                }),
                                "reproducible": false
                            })
                        }),
                        "subject": (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": ""
                }),
                "compliance": json!({
                    "nonComplianceReason": "",
                    "nonCompliantFiles": (
                        json!({
                            "displayCommand": "",
                            "path": "",
                            "reason": ""
                        })
                    ),
                    "version": json!({
                        "benchmarkDocument": "",
                        "cpeUri": "",
                        "version": ""
                    })
                }),
                "createTime": "",
                "deployment": json!({
                    "address": "",
                    "config": "",
                    "deployTime": "",
                    "platform": "",
                    "resourceUri": (),
                    "undeployTime": "",
                    "userEmail": ""
                }),
                "discovery": json!({
                    "analysisCompleted": json!({"analysisType": ()}),
                    "analysisError": (
                        json!({
                            "code": 0,
                            "details": (json!({})),
                            "message": ""
                        })
                    ),
                    "analysisStatus": "",
                    "analysisStatusError": json!({}),
                    "archiveTime": "",
                    "continuousAnalysis": "",
                    "cpe": "",
                    "lastScanTime": "",
                    "sbomStatus": json!({
                        "error": "",
                        "sbomState": ""
                    })
                }),
                "dsseAttestation": json!({
                    "envelope": json!({
                        "payload": "",
                        "payloadType": "",
                        "signatures": (
                            json!({
                                "keyid": "",
                                "sig": ""
                            })
                        )
                    }),
                    "statement": json!({})
                }),
                "envelope": json!({}),
                "image": json!({
                    "baseResourceUrl": "",
                    "distance": 0,
                    "fingerprint": json!({
                        "v1Name": "",
                        "v2Blob": (),
                        "v2Name": ""
                    }),
                    "layerInfo": (
                        json!({
                            "arguments": "",
                            "directive": ""
                        })
                    )
                }),
                "kind": "",
                "name": "",
                "noteName": "",
                "package": json!({
                    "architecture": "",
                    "cpeUri": "",
                    "license": json!({
                        "comments": "",
                        "expression": ""
                    }),
                    "location": (
                        json!({
                            "cpeUri": "",
                            "path": "",
                            "version": json!({
                                "epoch": 0,
                                "fullName": "",
                                "inclusive": false,
                                "kind": "",
                                "name": "",
                                "revision": ""
                            })
                        })
                    ),
                    "name": "",
                    "packageType": "",
                    "version": json!({})
                }),
                "remediation": "",
                "resourceUri": "",
                "sbomReference": json!({
                    "payload": json!({
                        "_type": "",
                        "predicate": json!({
                            "digest": json!({}),
                            "location": "",
                            "mimeType": "",
                            "referrerId": ""
                        }),
                        "predicateType": "",
                        "subject": (json!({}))
                    }),
                    "payloadType": "",
                    "signatures": (json!({}))
                }),
                "updateTime": "",
                "upgrade": json!({
                    "distribution": json!({
                        "classification": "",
                        "cpeUri": "",
                        "cve": (),
                        "severity": ""
                    }),
                    "package": "",
                    "parsedVersion": json!({}),
                    "windowsUpdate": json!({
                        "categories": (
                            json!({
                                "categoryId": "",
                                "name": ""
                            })
                        ),
                        "description": "",
                        "identity": json!({
                            "revision": 0,
                            "updateId": ""
                        }),
                        "kbArticleIds": (),
                        "lastPublishedTimestamp": "",
                        "supportUrl": "",
                        "title": ""
                    })
                }),
                "vulnerability": json!({
                    "cvssScore": "",
                    "cvssV2": json!({
                        "attackComplexity": "",
                        "attackVector": "",
                        "authentication": "",
                        "availabilityImpact": "",
                        "baseScore": "",
                        "confidentialityImpact": "",
                        "exploitabilityScore": "",
                        "impactScore": "",
                        "integrityImpact": "",
                        "privilegesRequired": "",
                        "scope": "",
                        "userInteraction": ""
                    }),
                    "cvssVersion": "",
                    "cvssv3": json!({}),
                    "effectiveSeverity": "",
                    "extraDetails": "",
                    "fixAvailable": false,
                    "longDescription": "",
                    "packageIssue": (
                        json!({
                            "affectedCpeUri": "",
                            "affectedPackage": "",
                            "affectedVersion": json!({}),
                            "effectiveSeverity": "",
                            "fileLocation": (
                                json!({
                                    "filePath": "",
                                    "layerDetails": json!({
                                        "baseImages": (
                                            json!({
                                                "layerCount": 0,
                                                "name": "",
                                                "repository": ""
                                            })
                                        ),
                                        "command": "",
                                        "diffId": "",
                                        "index": 0
                                    })
                                })
                            ),
                            "fixAvailable": false,
                            "fixedCpeUri": "",
                            "fixedPackage": "",
                            "fixedVersion": json!({}),
                            "packageType": ""
                        })
                    ),
                    "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": "",
                        "vulnerabilityId": ""
                    })
                })
            })
        )});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/v1/:+parent/occurrences:batchCreate' \
  --header 'content-type: application/json' \
  --data '{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}'
echo '{
  "occurrences": [
    {
      "attestation": {
        "jwts": [
          {
            "compactJwt": ""
          }
        ],
        "serializedPayload": "",
        "signatures": [
          {
            "publicKeyId": "",
            "signature": ""
          }
        ]
      },
      "build": {
        "inTotoSlsaProvenanceV1": {
          "_type": "",
          "predicate": {
            "buildDefinition": {
              "buildType": "",
              "externalParameters": {},
              "internalParameters": {},
              "resolvedDependencies": [
                {
                  "annotations": {},
                  "content": "",
                  "digest": {},
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                }
              ]
            },
            "runDetails": {
              "builder": {
                "builderDependencies": [
                  {}
                ],
                "id": "",
                "version": {}
              },
              "byproducts": [
                {}
              ],
              "metadata": {
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              }
            }
          },
          "predicateType": "",
          "subject": [
            {
              "digest": {},
              "name": ""
            }
          ]
        },
        "intotoProvenance": {
          "builderConfig": {
            "id": ""
          },
          "materials": [],
          "metadata": {
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": {
              "arguments": false,
              "environment": false,
              "materials": false
            },
            "reproducible": false
          },
          "recipe": {
            "arguments": [
              {}
            ],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [
              {}
            ],
            "type": ""
          }
        },
        "intotoStatement": {
          "_type": "",
          "predicateType": "",
          "provenance": {},
          "slsaProvenance": {
            "builder": {
              "id": ""
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "arguments": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            },
            "recipe": {
              "arguments": {},
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": {},
              "type": ""
            }
          },
          "slsaProvenanceZeroTwo": {
            "buildConfig": {},
            "buildType": "",
            "builder": {
              "id": ""
            },
            "invocation": {
              "parameters": {},
              "configSource": {
                "digest": {},
                "entryPoint": "",
                "uri": ""
              },
              "environment": {}
            },
            "materials": [
              {
                "digest": {},
                "uri": ""
              }
            ],
            "metadata": {
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": {
                "parameters": false,
                "environment": false,
                "materials": false
              },
              "reproducible": false
            }
          },
          "subject": [
            {}
          ]
        },
        "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": ""
      },
      "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          {
            "displayCommand": "",
            "path": "",
            "reason": ""
          }
        ],
        "version": {
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        }
      },
      "createTime": "",
      "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      },
      "discovery": {
        "analysisCompleted": {
          "analysisType": []
        },
        "analysisError": [
          {
            "code": 0,
            "details": [
              {}
            ],
            "message": ""
          }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
          "error": "",
          "sbomState": ""
        }
      },
      "dsseAttestation": {
        "envelope": {
          "payload": "",
          "payloadType": "",
          "signatures": [
            {
              "keyid": "",
              "sig": ""
            }
          ]
        },
        "statement": {}
      },
      "envelope": {},
      "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        },
        "layerInfo": [
          {
            "arguments": "",
            "directive": ""
          }
        ]
      },
      "kind": "",
      "name": "",
      "noteName": "",
      "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
          "comments": "",
          "expression": ""
        },
        "location": [
          {
            "cpeUri": "",
            "path": "",
            "version": {
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            }
          }
        ],
        "name": "",
        "packageType": "",
        "version": {}
      },
      "remediation": "",
      "resourceUri": "",
      "sbomReference": {
        "payload": {
          "_type": "",
          "predicate": {
            "digest": {},
            "location": "",
            "mimeType": "",
            "referrerId": ""
          },
          "predicateType": "",
          "subject": [
            {}
          ]
        },
        "payloadType": "",
        "signatures": [
          {}
        ]
      },
      "updateTime": "",
      "upgrade": {
        "distribution": {
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
          "categories": [
            {
              "categoryId": "",
              "name": ""
            }
          ],
          "description": "",
          "identity": {
            "revision": 0,
            "updateId": ""
          },
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        }
      },
      "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          {
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": {},
            "effectiveSeverity": "",
            "fileLocation": [
              {
                "filePath": "",
                "layerDetails": {
                  "baseImages": [
                    {
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    }
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                }
              }
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": {},
            "packageType": ""
          }
        ],
        "relatedUrls": [
          {
            "label": "",
            "url": ""
          }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
          "cve": "",
          "impacts": [],
          "justification": {
            "details": "",
            "justificationType": ""
          },
          "noteName": "",
          "relatedUris": [
            {}
          ],
          "remediations": [
            {
              "details": "",
              "remediationType": "",
              "remediationUri": {}
            }
          ],
          "state": "",
          "vulnerabilityId": ""
        }
      }
    }
  ]
}' |  \
  http POST '{{baseUrl}}/v1/:+parent/occurrences:batchCreate' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "occurrences": [\n    {\n      "attestation": {\n        "jwts": [\n          {\n            "compactJwt": ""\n          }\n        ],\n        "serializedPayload": "",\n        "signatures": [\n          {\n            "publicKeyId": "",\n            "signature": ""\n          }\n        ]\n      },\n      "build": {\n        "inTotoSlsaProvenanceV1": {\n          "_type": "",\n          "predicate": {\n            "buildDefinition": {\n              "buildType": "",\n              "externalParameters": {},\n              "internalParameters": {},\n              "resolvedDependencies": [\n                {\n                  "annotations": {},\n                  "content": "",\n                  "digest": {},\n                  "downloadLocation": "",\n                  "mediaType": "",\n                  "name": "",\n                  "uri": ""\n                }\n              ]\n            },\n            "runDetails": {\n              "builder": {\n                "builderDependencies": [\n                  {}\n                ],\n                "id": "",\n                "version": {}\n              },\n              "byproducts": [\n                {}\n              ],\n              "metadata": {\n                "finishedOn": "",\n                "invocationId": "",\n                "startedOn": ""\n              }\n            }\n          },\n          "predicateType": "",\n          "subject": [\n            {\n              "digest": {},\n              "name": ""\n            }\n          ]\n        },\n        "intotoProvenance": {\n          "builderConfig": {\n            "id": ""\n          },\n          "materials": [],\n          "metadata": {\n            "buildFinishedOn": "",\n            "buildInvocationId": "",\n            "buildStartedOn": "",\n            "completeness": {\n              "arguments": false,\n              "environment": false,\n              "materials": false\n            },\n            "reproducible": false\n          },\n          "recipe": {\n            "arguments": [\n              {}\n            ],\n            "definedInMaterial": "",\n            "entryPoint": "",\n            "environment": [\n              {}\n            ],\n            "type": ""\n          }\n        },\n        "intotoStatement": {\n          "_type": "",\n          "predicateType": "",\n          "provenance": {},\n          "slsaProvenance": {\n            "builder": {\n              "id": ""\n            },\n            "materials": [\n              {\n                "digest": {},\n                "uri": ""\n              }\n            ],\n            "metadata": {\n              "buildFinishedOn": "",\n              "buildInvocationId": "",\n              "buildStartedOn": "",\n              "completeness": {\n                "arguments": false,\n                "environment": false,\n                "materials": false\n              },\n              "reproducible": false\n            },\n            "recipe": {\n              "arguments": {},\n              "definedInMaterial": "",\n              "entryPoint": "",\n              "environment": {},\n              "type": ""\n            }\n          },\n          "slsaProvenanceZeroTwo": {\n            "buildConfig": {},\n            "buildType": "",\n            "builder": {\n              "id": ""\n            },\n            "invocation": {\n              "parameters": {},\n              "configSource": {\n                "digest": {},\n                "entryPoint": "",\n                "uri": ""\n              },\n              "environment": {}\n            },\n            "materials": [\n              {\n                "digest": {},\n                "uri": ""\n              }\n            ],\n            "metadata": {\n              "buildFinishedOn": "",\n              "buildInvocationId": "",\n              "buildStartedOn": "",\n              "completeness": {\n                "parameters": false,\n                "environment": false,\n                "materials": false\n              },\n              "reproducible": false\n            }\n          },\n          "subject": [\n            {}\n          ]\n        },\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      "compliance": {\n        "nonComplianceReason": "",\n        "nonCompliantFiles": [\n          {\n            "displayCommand": "",\n            "path": "",\n            "reason": ""\n          }\n        ],\n        "version": {\n          "benchmarkDocument": "",\n          "cpeUri": "",\n          "version": ""\n        }\n      },\n      "createTime": "",\n      "deployment": {\n        "address": "",\n        "config": "",\n        "deployTime": "",\n        "platform": "",\n        "resourceUri": [],\n        "undeployTime": "",\n        "userEmail": ""\n      },\n      "discovery": {\n        "analysisCompleted": {\n          "analysisType": []\n        },\n        "analysisError": [\n          {\n            "code": 0,\n            "details": [\n              {}\n            ],\n            "message": ""\n          }\n        ],\n        "analysisStatus": "",\n        "analysisStatusError": {},\n        "archiveTime": "",\n        "continuousAnalysis": "",\n        "cpe": "",\n        "lastScanTime": "",\n        "sbomStatus": {\n          "error": "",\n          "sbomState": ""\n        }\n      },\n      "dsseAttestation": {\n        "envelope": {\n          "payload": "",\n          "payloadType": "",\n          "signatures": [\n            {\n              "keyid": "",\n              "sig": ""\n            }\n          ]\n        },\n        "statement": {}\n      },\n      "envelope": {},\n      "image": {\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      "kind": "",\n      "name": "",\n      "noteName": "",\n      "package": {\n        "architecture": "",\n        "cpeUri": "",\n        "license": {\n          "comments": "",\n          "expression": ""\n        },\n        "location": [\n          {\n            "cpeUri": "",\n            "path": "",\n            "version": {\n              "epoch": 0,\n              "fullName": "",\n              "inclusive": false,\n              "kind": "",\n              "name": "",\n              "revision": ""\n            }\n          }\n        ],\n        "name": "",\n        "packageType": "",\n        "version": {}\n      },\n      "remediation": "",\n      "resourceUri": "",\n      "sbomReference": {\n        "payload": {\n          "_type": "",\n          "predicate": {\n            "digest": {},\n            "location": "",\n            "mimeType": "",\n            "referrerId": ""\n          },\n          "predicateType": "",\n          "subject": [\n            {}\n          ]\n        },\n        "payloadType": "",\n        "signatures": [\n          {}\n        ]\n      },\n      "updateTime": "",\n      "upgrade": {\n        "distribution": {\n          "classification": "",\n          "cpeUri": "",\n          "cve": [],\n          "severity": ""\n        },\n        "package": "",\n        "parsedVersion": {},\n        "windowsUpdate": {\n          "categories": [\n            {\n              "categoryId": "",\n              "name": ""\n            }\n          ],\n          "description": "",\n          "identity": {\n            "revision": 0,\n            "updateId": ""\n          },\n          "kbArticleIds": [],\n          "lastPublishedTimestamp": "",\n          "supportUrl": "",\n          "title": ""\n        }\n      },\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        "cvssVersion": "",\n        "cvssv3": {},\n        "effectiveSeverity": "",\n        "extraDetails": "",\n        "fixAvailable": false,\n        "longDescription": "",\n        "packageIssue": [\n          {\n            "affectedCpeUri": "",\n            "affectedPackage": "",\n            "affectedVersion": {},\n            "effectiveSeverity": "",\n            "fileLocation": [\n              {\n                "filePath": "",\n                "layerDetails": {\n                  "baseImages": [\n                    {\n                      "layerCount": 0,\n                      "name": "",\n                      "repository": ""\n                    }\n                  ],\n                  "command": "",\n                  "diffId": "",\n                  "index": 0\n                }\n              }\n            ],\n            "fixAvailable": false,\n            "fixedCpeUri": "",\n            "fixedPackage": "",\n            "fixedVersion": {},\n            "packageType": ""\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          "vulnerabilityId": ""\n        }\n      }\n    }\n  ]\n}' \
  --output-document \
  - '{{baseUrl}}/v1/:+parent/occurrences:batchCreate'
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["occurrences": [
    [
      "attestation": [
        "jwts": [["compactJwt": ""]],
        "serializedPayload": "",
        "signatures": [
          [
            "publicKeyId": "",
            "signature": ""
          ]
        ]
      ],
      "build": [
        "inTotoSlsaProvenanceV1": [
          "_type": "",
          "predicate": [
            "buildDefinition": [
              "buildType": "",
              "externalParameters": [],
              "internalParameters": [],
              "resolvedDependencies": [
                [
                  "annotations": [],
                  "content": "",
                  "digest": [],
                  "downloadLocation": "",
                  "mediaType": "",
                  "name": "",
                  "uri": ""
                ]
              ]
            ],
            "runDetails": [
              "builder": [
                "builderDependencies": [[]],
                "id": "",
                "version": []
              ],
              "byproducts": [[]],
              "metadata": [
                "finishedOn": "",
                "invocationId": "",
                "startedOn": ""
              ]
            ]
          ],
          "predicateType": "",
          "subject": [
            [
              "digest": [],
              "name": ""
            ]
          ]
        ],
        "intotoProvenance": [
          "builderConfig": ["id": ""],
          "materials": [],
          "metadata": [
            "buildFinishedOn": "",
            "buildInvocationId": "",
            "buildStartedOn": "",
            "completeness": [
              "arguments": false,
              "environment": false,
              "materials": false
            ],
            "reproducible": false
          ],
          "recipe": [
            "arguments": [[]],
            "definedInMaterial": "",
            "entryPoint": "",
            "environment": [[]],
            "type": ""
          ]
        ],
        "intotoStatement": [
          "_type": "",
          "predicateType": "",
          "provenance": [],
          "slsaProvenance": [
            "builder": ["id": ""],
            "materials": [
              [
                "digest": [],
                "uri": ""
              ]
            ],
            "metadata": [
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": [
                "arguments": false,
                "environment": false,
                "materials": false
              ],
              "reproducible": false
            ],
            "recipe": [
              "arguments": [],
              "definedInMaterial": "",
              "entryPoint": "",
              "environment": [],
              "type": ""
            ]
          ],
          "slsaProvenanceZeroTwo": [
            "buildConfig": [],
            "buildType": "",
            "builder": ["id": ""],
            "invocation": [
              "parameters": [],
              "configSource": [
                "digest": [],
                "entryPoint": "",
                "uri": ""
              ],
              "environment": []
            ],
            "materials": [
              [
                "digest": [],
                "uri": ""
              ]
            ],
            "metadata": [
              "buildFinishedOn": "",
              "buildInvocationId": "",
              "buildStartedOn": "",
              "completeness": [
                "parameters": false,
                "environment": false,
                "materials": false
              ],
              "reproducible": false
            ]
          ],
          "subject": [[]]
        ],
        "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": ""
      ],
      "compliance": [
        "nonComplianceReason": "",
        "nonCompliantFiles": [
          [
            "displayCommand": "",
            "path": "",
            "reason": ""
          ]
        ],
        "version": [
          "benchmarkDocument": "",
          "cpeUri": "",
          "version": ""
        ]
      ],
      "createTime": "",
      "deployment": [
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
      ],
      "discovery": [
        "analysisCompleted": ["analysisType": []],
        "analysisError": [
          [
            "code": 0,
            "details": [[]],
            "message": ""
          ]
        ],
        "analysisStatus": "",
        "analysisStatusError": [],
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": [
          "error": "",
          "sbomState": ""
        ]
      ],
      "dsseAttestation": [
        "envelope": [
          "payload": "",
          "payloadType": "",
          "signatures": [
            [
              "keyid": "",
              "sig": ""
            ]
          ]
        ],
        "statement": []
      ],
      "envelope": [],
      "image": [
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": [
          "v1Name": "",
          "v2Blob": [],
          "v2Name": ""
        ],
        "layerInfo": [
          [
            "arguments": "",
            "directive": ""
          ]
        ]
      ],
      "kind": "",
      "name": "",
      "noteName": "",
      "package": [
        "architecture": "",
        "cpeUri": "",
        "license": [
          "comments": "",
          "expression": ""
        ],
        "location": [
          [
            "cpeUri": "",
            "path": "",
            "version": [
              "epoch": 0,
              "fullName": "",
              "inclusive": false,
              "kind": "",
              "name": "",
              "revision": ""
            ]
          ]
        ],
        "name": "",
        "packageType": "",
        "version": []
      ],
      "remediation": "",
      "resourceUri": "",
      "sbomReference": [
        "payload": [
          "_type": "",
          "predicate": [
            "digest": [],
            "location": "",
            "mimeType": "",
            "referrerId": ""
          ],
          "predicateType": "",
          "subject": [[]]
        ],
        "payloadType": "",
        "signatures": [[]]
      ],
      "updateTime": "",
      "upgrade": [
        "distribution": [
          "classification": "",
          "cpeUri": "",
          "cve": [],
          "severity": ""
        ],
        "package": "",
        "parsedVersion": [],
        "windowsUpdate": [
          "categories": [
            [
              "categoryId": "",
              "name": ""
            ]
          ],
          "description": "",
          "identity": [
            "revision": 0,
            "updateId": ""
          ],
          "kbArticleIds": [],
          "lastPublishedTimestamp": "",
          "supportUrl": "",
          "title": ""
        ]
      ],
      "vulnerability": [
        "cvssScore": "",
        "cvssV2": [
          "attackComplexity": "",
          "attackVector": "",
          "authentication": "",
          "availabilityImpact": "",
          "baseScore": "",
          "confidentialityImpact": "",
          "exploitabilityScore": "",
          "impactScore": "",
          "integrityImpact": "",
          "privilegesRequired": "",
          "scope": "",
          "userInteraction": ""
        ],
        "cvssVersion": "",
        "cvssv3": [],
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": false,
        "longDescription": "",
        "packageIssue": [
          [
            "affectedCpeUri": "",
            "affectedPackage": "",
            "affectedVersion": [],
            "effectiveSeverity": "",
            "fileLocation": [
              [
                "filePath": "",
                "layerDetails": [
                  "baseImages": [
                    [
                      "layerCount": 0,
                      "name": "",
                      "repository": ""
                    ]
                  ],
                  "command": "",
                  "diffId": "",
                  "index": 0
                ]
              ]
            ],
            "fixAvailable": false,
            "fixedCpeUri": "",
            "fixedPackage": "",
            "fixedVersion": [],
            "packageType": ""
          ]
        ],
        "relatedUrls": [
          [
            "label": "",
            "url": ""
          ]
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": [
          "cve": "",
          "impacts": [],
          "justification": [
            "details": "",
            "justificationType": ""
          ],
          "noteName": "",
          "relatedUris": [[]],
          "remediations": [
            [
              "details": "",
              "remediationType": "",
              "remediationUri": []
            ]
          ],
          "state": "",
          "vulnerabilityId": ""
        ]
      ]
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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.locations.occurrences.create
{{baseUrl}}/v1/:+parent/occurrences
QUERY PARAMS

parent
BODY json

{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v1/:+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    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/v1/:+parent/occurrences" {:content-type :json
                                                                    :form-params {:attestation {:jwts [{:compactJwt ""}]
                                                                                                :serializedPayload ""
                                                                                                :signatures [{:publicKeyId ""
                                                                                                              :signature ""}]}
                                                                                  :build {:inTotoSlsaProvenanceV1 {:_type ""
                                                                                                                   :predicate {:buildDefinition {:buildType ""
                                                                                                                                                 :externalParameters {}
                                                                                                                                                 :internalParameters {}
                                                                                                                                                 :resolvedDependencies [{:annotations {}
                                                                                                                                                                         :content ""
                                                                                                                                                                         :digest {}
                                                                                                                                                                         :downloadLocation ""
                                                                                                                                                                         :mediaType ""
                                                                                                                                                                         :name ""
                                                                                                                                                                         :uri ""}]}
                                                                                                                               :runDetails {:builder {:builderDependencies [{}]
                                                                                                                                                      :id ""
                                                                                                                                                      :version {}}
                                                                                                                                            :byproducts [{}]
                                                                                                                                            :metadata {:finishedOn ""
                                                                                                                                                       :invocationId ""
                                                                                                                                                       :startedOn ""}}}
                                                                                                                   :predicateType ""
                                                                                                                   :subject [{:digest {}
                                                                                                                              :name ""}]}
                                                                                          :intotoProvenance {:builderConfig {:id ""}
                                                                                                             :materials []
                                                                                                             :metadata {:buildFinishedOn ""
                                                                                                                        :buildInvocationId ""
                                                                                                                        :buildStartedOn ""
                                                                                                                        :completeness {:arguments false
                                                                                                                                       :environment false
                                                                                                                                       :materials false}
                                                                                                                        :reproducible false}
                                                                                                             :recipe {:arguments [{}]
                                                                                                                      :definedInMaterial ""
                                                                                                                      :entryPoint ""
                                                                                                                      :environment [{}]
                                                                                                                      :type ""}}
                                                                                          :intotoStatement {:_type ""
                                                                                                            :predicateType ""
                                                                                                            :provenance {}
                                                                                                            :slsaProvenance {:builder {:id ""}
                                                                                                                             :materials [{:digest {}
                                                                                                                                          :uri ""}]
                                                                                                                             :metadata {:buildFinishedOn ""
                                                                                                                                        :buildInvocationId ""
                                                                                                                                        :buildStartedOn ""
                                                                                                                                        :completeness {:arguments false
                                                                                                                                                       :environment false
                                                                                                                                                       :materials false}
                                                                                                                                        :reproducible false}
                                                                                                                             :recipe {:arguments {}
                                                                                                                                      :definedInMaterial ""
                                                                                                                                      :entryPoint ""
                                                                                                                                      :environment {}
                                                                                                                                      :type ""}}
                                                                                                            :slsaProvenanceZeroTwo {:buildConfig {}
                                                                                                                                    :buildType ""
                                                                                                                                    :builder {:id ""}
                                                                                                                                    :invocation {:parameters {}
                                                                                                                                                 :configSource {:digest {}
                                                                                                                                                                :entryPoint ""
                                                                                                                                                                :uri ""}
                                                                                                                                                 :environment {}}
                                                                                                                                    :materials [{:digest {}
                                                                                                                                                 :uri ""}]
                                                                                                                                    :metadata {:buildFinishedOn ""
                                                                                                                                               :buildInvocationId ""
                                                                                                                                               :buildStartedOn ""
                                                                                                                                               :completeness {:parameters false
                                                                                                                                                              :environment false
                                                                                                                                                              :materials false}
                                                                                                                                               :reproducible false}}
                                                                                                            :subject [{}]}
                                                                                          :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 ""}
                                                                                  :compliance {:nonComplianceReason ""
                                                                                               :nonCompliantFiles [{:displayCommand ""
                                                                                                                    :path ""
                                                                                                                    :reason ""}]
                                                                                               :version {:benchmarkDocument ""
                                                                                                         :cpeUri ""
                                                                                                         :version ""}}
                                                                                  :createTime ""
                                                                                  :deployment {:address ""
                                                                                               :config ""
                                                                                               :deployTime ""
                                                                                               :platform ""
                                                                                               :resourceUri []
                                                                                               :undeployTime ""
                                                                                               :userEmail ""}
                                                                                  :discovery {:analysisCompleted {:analysisType []}
                                                                                              :analysisError [{:code 0
                                                                                                               :details [{}]
                                                                                                               :message ""}]
                                                                                              :analysisStatus ""
                                                                                              :analysisStatusError {}
                                                                                              :archiveTime ""
                                                                                              :continuousAnalysis ""
                                                                                              :cpe ""
                                                                                              :lastScanTime ""
                                                                                              :sbomStatus {:error ""
                                                                                                           :sbomState ""}}
                                                                                  :dsseAttestation {:envelope {:payload ""
                                                                                                               :payloadType ""
                                                                                                               :signatures [{:keyid ""
                                                                                                                             :sig ""}]}
                                                                                                    :statement {}}
                                                                                  :envelope {}
                                                                                  :image {:baseResourceUrl ""
                                                                                          :distance 0
                                                                                          :fingerprint {:v1Name ""
                                                                                                        :v2Blob []
                                                                                                        :v2Name ""}
                                                                                          :layerInfo [{:arguments ""
                                                                                                       :directive ""}]}
                                                                                  :kind ""
                                                                                  :name ""
                                                                                  :noteName ""
                                                                                  :package {:architecture ""
                                                                                            :cpeUri ""
                                                                                            :license {:comments ""
                                                                                                      :expression ""}
                                                                                            :location [{:cpeUri ""
                                                                                                        :path ""
                                                                                                        :version {:epoch 0
                                                                                                                  :fullName ""
                                                                                                                  :inclusive false
                                                                                                                  :kind ""
                                                                                                                  :name ""
                                                                                                                  :revision ""}}]
                                                                                            :name ""
                                                                                            :packageType ""
                                                                                            :version {}}
                                                                                  :remediation ""
                                                                                  :resourceUri ""
                                                                                  :sbomReference {:payload {:_type ""
                                                                                                            :predicate {:digest {}
                                                                                                                        :location ""
                                                                                                                        :mimeType ""
                                                                                                                        :referrerId ""}
                                                                                                            :predicateType ""
                                                                                                            :subject [{}]}
                                                                                                  :payloadType ""
                                                                                                  :signatures [{}]}
                                                                                  :updateTime ""
                                                                                  :upgrade {:distribution {:classification ""
                                                                                                           :cpeUri ""
                                                                                                           :cve []
                                                                                                           :severity ""}
                                                                                            :package ""
                                                                                            :parsedVersion {}
                                                                                            :windowsUpdate {:categories [{:categoryId ""
                                                                                                                          :name ""}]
                                                                                                            :description ""
                                                                                                            :identity {:revision 0
                                                                                                                       :updateId ""}
                                                                                                            :kbArticleIds []
                                                                                                            :lastPublishedTimestamp ""
                                                                                                            :supportUrl ""
                                                                                                            :title ""}}
                                                                                  :vulnerability {:cvssScore ""
                                                                                                  :cvssV2 {:attackComplexity ""
                                                                                                           :attackVector ""
                                                                                                           :authentication ""
                                                                                                           :availabilityImpact ""
                                                                                                           :baseScore ""
                                                                                                           :confidentialityImpact ""
                                                                                                           :exploitabilityScore ""
                                                                                                           :impactScore ""
                                                                                                           :integrityImpact ""
                                                                                                           :privilegesRequired ""
                                                                                                           :scope ""
                                                                                                           :userInteraction ""}
                                                                                                  :cvssVersion ""
                                                                                                  :cvssv3 {}
                                                                                                  :effectiveSeverity ""
                                                                                                  :extraDetails ""
                                                                                                  :fixAvailable false
                                                                                                  :longDescription ""
                                                                                                  :packageIssue [{:affectedCpeUri ""
                                                                                                                  :affectedPackage ""
                                                                                                                  :affectedVersion {}
                                                                                                                  :effectiveSeverity ""
                                                                                                                  :fileLocation [{:filePath ""
                                                                                                                                  :layerDetails {:baseImages [{:layerCount 0
                                                                                                                                                               :name ""
                                                                                                                                                               :repository ""}]
                                                                                                                                                 :command ""
                                                                                                                                                 :diffId ""
                                                                                                                                                 :index 0}}]
                                                                                                                  :fixAvailable false
                                                                                                                  :fixedCpeUri ""
                                                                                                                  :fixedPackage ""
                                                                                                                  :fixedVersion {}
                                                                                                                  :packageType ""}]
                                                                                                  :relatedUrls [{:label ""
                                                                                                                 :url ""}]
                                                                                                  :severity ""
                                                                                                  :shortDescription ""
                                                                                                  :type ""
                                                                                                  :vexAssessment {:cve ""
                                                                                                                  :impacts []
                                                                                                                  :justification {:details ""
                                                                                                                                  :justificationType ""}
                                                                                                                  :noteName ""
                                                                                                                  :relatedUris [{}]
                                                                                                                  :remediations [{:details ""
                                                                                                                                  :remediationType ""
                                                                                                                                  :remediationUri {}}]
                                                                                                                  :state ""
                                                                                                                  :vulnerabilityId ""}}}})
require "http/client"

url = "{{baseUrl}}/v1/:+parent/occurrences"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/occurrences"),
    Content = new StringContent("{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/occurrences");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:+parent/occurrences"

	payload := strings.NewReader("{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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/v1/:+parent/occurrences HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 9375

{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v1/:+parent/occurrences")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v1/:+parent/occurrences"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v1/:+parent/occurrences")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v1/:+parent/occurrences")
  .header("content-type", "application/json")
  .body("{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  attestation: {
    jwts: [
      {
        compactJwt: ''
      }
    ],
    serializedPayload: '',
    signatures: [
      {
        publicKeyId: '',
        signature: ''
      }
    ]
  },
  build: {
    inTotoSlsaProvenanceV1: {
      _type: '',
      predicate: {
        buildDefinition: {
          buildType: '',
          externalParameters: {},
          internalParameters: {},
          resolvedDependencies: [
            {
              annotations: {},
              content: '',
              digest: {},
              downloadLocation: '',
              mediaType: '',
              name: '',
              uri: ''
            }
          ]
        },
        runDetails: {
          builder: {
            builderDependencies: [
              {}
            ],
            id: '',
            version: {}
          },
          byproducts: [
            {}
          ],
          metadata: {
            finishedOn: '',
            invocationId: '',
            startedOn: ''
          }
        }
      },
      predicateType: '',
      subject: [
        {
          digest: {},
          name: ''
        }
      ]
    },
    intotoProvenance: {
      builderConfig: {
        id: ''
      },
      materials: [],
      metadata: {
        buildFinishedOn: '',
        buildInvocationId: '',
        buildStartedOn: '',
        completeness: {
          arguments: false,
          environment: false,
          materials: false
        },
        reproducible: false
      },
      recipe: {
        arguments: [
          {}
        ],
        definedInMaterial: '',
        entryPoint: '',
        environment: [
          {}
        ],
        type: ''
      }
    },
    intotoStatement: {
      _type: '',
      predicateType: '',
      provenance: {},
      slsaProvenance: {
        builder: {
          id: ''
        },
        materials: [
          {
            digest: {},
            uri: ''
          }
        ],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {
            arguments: false,
            environment: false,
            materials: false
          },
          reproducible: false
        },
        recipe: {
          arguments: {},
          definedInMaterial: '',
          entryPoint: '',
          environment: {},
          type: ''
        }
      },
      slsaProvenanceZeroTwo: {
        buildConfig: {},
        buildType: '',
        builder: {
          id: ''
        },
        invocation: {
          parameters: {},
          configSource: {
            digest: {},
            entryPoint: '',
            uri: ''
          },
          environment: {}
        },
        materials: [
          {
            digest: {},
            uri: ''
          }
        ],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {
            parameters: false,
            environment: false,
            materials: false
          },
          reproducible: false
        }
      },
      subject: [
        {}
      ]
    },
    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: ''
  },
  compliance: {
    nonComplianceReason: '',
    nonCompliantFiles: [
      {
        displayCommand: '',
        path: '',
        reason: ''
      }
    ],
    version: {
      benchmarkDocument: '',
      cpeUri: '',
      version: ''
    }
  },
  createTime: '',
  deployment: {
    address: '',
    config: '',
    deployTime: '',
    platform: '',
    resourceUri: [],
    undeployTime: '',
    userEmail: ''
  },
  discovery: {
    analysisCompleted: {
      analysisType: []
    },
    analysisError: [
      {
        code: 0,
        details: [
          {}
        ],
        message: ''
      }
    ],
    analysisStatus: '',
    analysisStatusError: {},
    archiveTime: '',
    continuousAnalysis: '',
    cpe: '',
    lastScanTime: '',
    sbomStatus: {
      error: '',
      sbomState: ''
    }
  },
  dsseAttestation: {
    envelope: {
      payload: '',
      payloadType: '',
      signatures: [
        {
          keyid: '',
          sig: ''
        }
      ]
    },
    statement: {}
  },
  envelope: {},
  image: {
    baseResourceUrl: '',
    distance: 0,
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    layerInfo: [
      {
        arguments: '',
        directive: ''
      }
    ]
  },
  kind: '',
  name: '',
  noteName: '',
  package: {
    architecture: '',
    cpeUri: '',
    license: {
      comments: '',
      expression: ''
    },
    location: [
      {
        cpeUri: '',
        path: '',
        version: {
          epoch: 0,
          fullName: '',
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        }
      }
    ],
    name: '',
    packageType: '',
    version: {}
  },
  remediation: '',
  resourceUri: '',
  sbomReference: {
    payload: {
      _type: '',
      predicate: {
        digest: {},
        location: '',
        mimeType: '',
        referrerId: ''
      },
      predicateType: '',
      subject: [
        {}
      ]
    },
    payloadType: '',
    signatures: [
      {}
    ]
  },
  updateTime: '',
  upgrade: {
    distribution: {
      classification: '',
      cpeUri: '',
      cve: [],
      severity: ''
    },
    package: '',
    parsedVersion: {},
    windowsUpdate: {
      categories: [
        {
          categoryId: '',
          name: ''
        }
      ],
      description: '',
      identity: {
        revision: 0,
        updateId: ''
      },
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssVersion: '',
    cvssv3: {},
    effectiveSeverity: '',
    extraDetails: '',
    fixAvailable: false,
    longDescription: '',
    packageIssue: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersion: {},
        effectiveSeverity: '',
        fileLocation: [
          {
            filePath: '',
            layerDetails: {
              baseImages: [
                {
                  layerCount: 0,
                  name: '',
                  repository: ''
                }
              ],
              command: '',
              diffId: '',
              index: 0
            }
          }
        ],
        fixAvailable: false,
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        packageType: ''
      }
    ],
    relatedUrls: [
      {
        label: '',
        url: ''
      }
    ],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      noteName: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      state: '',
      vulnerabilityId: ''
    }
  }
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/occurrences',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {
      jwts: [{compactJwt: ''}],
      serializedPayload: '',
      signatures: [{publicKeyId: '', signature: ''}]
    },
    build: {
      inTotoSlsaProvenanceV1: {
        _type: '',
        predicate: {
          buildDefinition: {
            buildType: '',
            externalParameters: {},
            internalParameters: {},
            resolvedDependencies: [
              {
                annotations: {},
                content: '',
                digest: {},
                downloadLocation: '',
                mediaType: '',
                name: '',
                uri: ''
              }
            ]
          },
          runDetails: {
            builder: {builderDependencies: [{}], id: '', version: {}},
            byproducts: [{}],
            metadata: {finishedOn: '', invocationId: '', startedOn: ''}
          }
        },
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      intotoProvenance: {
        builderConfig: {id: ''},
        materials: [],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {arguments: false, environment: false, materials: false},
          reproducible: false
        },
        recipe: {
          arguments: [{}],
          definedInMaterial: '',
          entryPoint: '',
          environment: [{}],
          type: ''
        }
      },
      intotoStatement: {
        _type: '',
        predicateType: '',
        provenance: {},
        slsaProvenance: {
          builder: {id: ''},
          materials: [{digest: {}, uri: ''}],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {arguments: false, environment: false, materials: false},
            reproducible: false
          },
          recipe: {
            arguments: {},
            definedInMaterial: '',
            entryPoint: '',
            environment: {},
            type: ''
          }
        },
        slsaProvenanceZeroTwo: {
          buildConfig: {},
          buildType: '',
          builder: {id: ''},
          invocation: {
            parameters: {},
            configSource: {digest: {}, entryPoint: '', uri: ''},
            environment: {}
          },
          materials: [{digest: {}, uri: ''}],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {parameters: false, environment: false, materials: false},
            reproducible: false
          }
        },
        subject: [{}]
      },
      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: ''
    },
    compliance: {
      nonComplianceReason: '',
      nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
      version: {benchmarkDocument: '', cpeUri: '', version: ''}
    },
    createTime: '',
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    },
    discovery: {
      analysisCompleted: {analysisType: []},
      analysisError: [{code: 0, details: [{}], message: ''}],
      analysisStatus: '',
      analysisStatusError: {},
      archiveTime: '',
      continuousAnalysis: '',
      cpe: '',
      lastScanTime: '',
      sbomStatus: {error: '', sbomState: ''}
    },
    dsseAttestation: {
      envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
      statement: {}
    },
    envelope: {},
    image: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
      layerInfo: [{arguments: '', directive: ''}]
    },
    kind: '',
    name: '',
    noteName: '',
    package: {
      architecture: '',
      cpeUri: '',
      license: {comments: '', expression: ''},
      location: [
        {
          cpeUri: '',
          path: '',
          version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
        }
      ],
      name: '',
      packageType: '',
      version: {}
    },
    remediation: '',
    resourceUri: '',
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{}]
      },
      payloadType: '',
      signatures: [{}]
    },
    updateTime: '',
    upgrade: {
      distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
      package: '',
      parsedVersion: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssVersion: '',
      cvssv3: {},
      effectiveSeverity: '',
      extraDetails: '',
      fixAvailable: false,
      longDescription: '',
      packageIssue: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersion: {},
          effectiveSeverity: '',
          fileLocation: [
            {
              filePath: '',
              layerDetails: {
                baseImages: [{layerCount: 0, name: '', repository: ''}],
                command: '',
                diffId: '',
                index: 0
              }
            }
          ],
          fixAvailable: false,
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          packageType: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: '',
        vulnerabilityId: ''
      }
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v1/:+parent/occurrences';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"jwts":[{"compactJwt":""}],"serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"build":{"inTotoSlsaProvenanceV1":{"_type":"","predicate":{"buildDefinition":{"buildType":"","externalParameters":{},"internalParameters":{},"resolvedDependencies":[{"annotations":{},"content":"","digest":{},"downloadLocation":"","mediaType":"","name":"","uri":""}]},"runDetails":{"builder":{"builderDependencies":[{}],"id":"","version":{}},"byproducts":[{}],"metadata":{"finishedOn":"","invocationId":"","startedOn":""}}},"predicateType":"","subject":[{"digest":{},"name":""}]},"intotoProvenance":{"builderConfig":{"id":""},"materials":[],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":[{}],"definedInMaterial":"","entryPoint":"","environment":[{}],"type":""}},"intotoStatement":{"_type":"","predicateType":"","provenance":{},"slsaProvenance":{"builder":{"id":""},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":{},"definedInMaterial":"","entryPoint":"","environment":{},"type":""}},"slsaProvenanceZeroTwo":{"buildConfig":{},"buildType":"","builder":{"id":""},"invocation":{"parameters":{},"configSource":{"digest":{},"entryPoint":"","uri":""},"environment":{}},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"parameters":false,"environment":false,"materials":false},"reproducible":false}},"subject":[{}]},"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":""},"compliance":{"nonComplianceReason":"","nonCompliantFiles":[{"displayCommand":"","path":"","reason":""}],"version":{"benchmarkDocument":"","cpeUri":"","version":""}},"createTime":"","deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""},"discovery":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"archiveTime":"","continuousAnalysis":"","cpe":"","lastScanTime":"","sbomStatus":{"error":"","sbomState":""}},"dsseAttestation":{"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"statement":{}},"envelope":{},"image":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]},"kind":"","name":"","noteName":"","package":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}},"remediation":"","resourceUri":"","sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{}]},"payloadType":"","signatures":[{}]},"updateTime":"","upgrade":{"distribution":{"classification":"","cpeUri":"","cve":[],"severity":""},"package":"","parsedVersion":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssVersion":"","cvssv3":{},"effectiveSeverity":"","extraDetails":"","fixAvailable":false,"longDescription":"","packageIssue":[{"affectedCpeUri":"","affectedPackage":"","affectedVersion":{},"effectiveSeverity":"","fileLocation":[{"filePath":"","layerDetails":{"baseImages":[{"layerCount":0,"name":"","repository":""}],"command":"","diffId":"","index":0}}],"fixAvailable":false,"fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"packageType":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":"","vulnerabilityId":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v1/:+parent/occurrences',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attestation": {\n    "jwts": [\n      {\n        "compactJwt": ""\n      }\n    ],\n    "serializedPayload": "",\n    "signatures": [\n      {\n        "publicKeyId": "",\n        "signature": ""\n      }\n    ]\n  },\n  "build": {\n    "inTotoSlsaProvenanceV1": {\n      "_type": "",\n      "predicate": {\n        "buildDefinition": {\n          "buildType": "",\n          "externalParameters": {},\n          "internalParameters": {},\n          "resolvedDependencies": [\n            {\n              "annotations": {},\n              "content": "",\n              "digest": {},\n              "downloadLocation": "",\n              "mediaType": "",\n              "name": "",\n              "uri": ""\n            }\n          ]\n        },\n        "runDetails": {\n          "builder": {\n            "builderDependencies": [\n              {}\n            ],\n            "id": "",\n            "version": {}\n          },\n          "byproducts": [\n            {}\n          ],\n          "metadata": {\n            "finishedOn": "",\n            "invocationId": "",\n            "startedOn": ""\n          }\n        }\n      },\n      "predicateType": "",\n      "subject": [\n        {\n          "digest": {},\n          "name": ""\n        }\n      ]\n    },\n    "intotoProvenance": {\n      "builderConfig": {\n        "id": ""\n      },\n      "materials": [],\n      "metadata": {\n        "buildFinishedOn": "",\n        "buildInvocationId": "",\n        "buildStartedOn": "",\n        "completeness": {\n          "arguments": false,\n          "environment": false,\n          "materials": false\n        },\n        "reproducible": false\n      },\n      "recipe": {\n        "arguments": [\n          {}\n        ],\n        "definedInMaterial": "",\n        "entryPoint": "",\n        "environment": [\n          {}\n        ],\n        "type": ""\n      }\n    },\n    "intotoStatement": {\n      "_type": "",\n      "predicateType": "",\n      "provenance": {},\n      "slsaProvenance": {\n        "builder": {\n          "id": ""\n        },\n        "materials": [\n          {\n            "digest": {},\n            "uri": ""\n          }\n        ],\n        "metadata": {\n          "buildFinishedOn": "",\n          "buildInvocationId": "",\n          "buildStartedOn": "",\n          "completeness": {\n            "arguments": false,\n            "environment": false,\n            "materials": false\n          },\n          "reproducible": false\n        },\n        "recipe": {\n          "arguments": {},\n          "definedInMaterial": "",\n          "entryPoint": "",\n          "environment": {},\n          "type": ""\n        }\n      },\n      "slsaProvenanceZeroTwo": {\n        "buildConfig": {},\n        "buildType": "",\n        "builder": {\n          "id": ""\n        },\n        "invocation": {\n          "parameters": {},\n          "configSource": {\n            "digest": {},\n            "entryPoint": "",\n            "uri": ""\n          },\n          "environment": {}\n        },\n        "materials": [\n          {\n            "digest": {},\n            "uri": ""\n          }\n        ],\n        "metadata": {\n          "buildFinishedOn": "",\n          "buildInvocationId": "",\n          "buildStartedOn": "",\n          "completeness": {\n            "parameters": false,\n            "environment": false,\n            "materials": false\n          },\n          "reproducible": false\n        }\n      },\n      "subject": [\n        {}\n      ]\n    },\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  "compliance": {\n    "nonComplianceReason": "",\n    "nonCompliantFiles": [\n      {\n        "displayCommand": "",\n        "path": "",\n        "reason": ""\n      }\n    ],\n    "version": {\n      "benchmarkDocument": "",\n      "cpeUri": "",\n      "version": ""\n    }\n  },\n  "createTime": "",\n  "deployment": {\n    "address": "",\n    "config": "",\n    "deployTime": "",\n    "platform": "",\n    "resourceUri": [],\n    "undeployTime": "",\n    "userEmail": ""\n  },\n  "discovery": {\n    "analysisCompleted": {\n      "analysisType": []\n    },\n    "analysisError": [\n      {\n        "code": 0,\n        "details": [\n          {}\n        ],\n        "message": ""\n      }\n    ],\n    "analysisStatus": "",\n    "analysisStatusError": {},\n    "archiveTime": "",\n    "continuousAnalysis": "",\n    "cpe": "",\n    "lastScanTime": "",\n    "sbomStatus": {\n      "error": "",\n      "sbomState": ""\n    }\n  },\n  "dsseAttestation": {\n    "envelope": {\n      "payload": "",\n      "payloadType": "",\n      "signatures": [\n        {\n          "keyid": "",\n          "sig": ""\n        }\n      ]\n    },\n    "statement": {}\n  },\n  "envelope": {},\n  "image": {\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  "kind": "",\n  "name": "",\n  "noteName": "",\n  "package": {\n    "architecture": "",\n    "cpeUri": "",\n    "license": {\n      "comments": "",\n      "expression": ""\n    },\n    "location": [\n      {\n        "cpeUri": "",\n        "path": "",\n        "version": {\n          "epoch": 0,\n          "fullName": "",\n          "inclusive": false,\n          "kind": "",\n          "name": "",\n          "revision": ""\n        }\n      }\n    ],\n    "name": "",\n    "packageType": "",\n    "version": {}\n  },\n  "remediation": "",\n  "resourceUri": "",\n  "sbomReference": {\n    "payload": {\n      "_type": "",\n      "predicate": {\n        "digest": {},\n        "location": "",\n        "mimeType": "",\n        "referrerId": ""\n      },\n      "predicateType": "",\n      "subject": [\n        {}\n      ]\n    },\n    "payloadType": "",\n    "signatures": [\n      {}\n    ]\n  },\n  "updateTime": "",\n  "upgrade": {\n    "distribution": {\n      "classification": "",\n      "cpeUri": "",\n      "cve": [],\n      "severity": ""\n    },\n    "package": "",\n    "parsedVersion": {},\n    "windowsUpdate": {\n      "categories": [\n        {\n          "categoryId": "",\n          "name": ""\n        }\n      ],\n      "description": "",\n      "identity": {\n        "revision": 0,\n        "updateId": ""\n      },\n      "kbArticleIds": [],\n      "lastPublishedTimestamp": "",\n      "supportUrl": "",\n      "title": ""\n    }\n  },\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    "cvssVersion": "",\n    "cvssv3": {},\n    "effectiveSeverity": "",\n    "extraDetails": "",\n    "fixAvailable": false,\n    "longDescription": "",\n    "packageIssue": [\n      {\n        "affectedCpeUri": "",\n        "affectedPackage": "",\n        "affectedVersion": {},\n        "effectiveSeverity": "",\n        "fileLocation": [\n          {\n            "filePath": "",\n            "layerDetails": {\n              "baseImages": [\n                {\n                  "layerCount": 0,\n                  "name": "",\n                  "repository": ""\n                }\n              ],\n              "command": "",\n              "diffId": "",\n              "index": 0\n            }\n          }\n        ],\n        "fixAvailable": false,\n        "fixedCpeUri": "",\n        "fixedPackage": "",\n        "fixedVersion": {},\n        "packageType": ""\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      "vulnerabilityId": ""\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    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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: {
    jwts: [{compactJwt: ''}],
    serializedPayload: '',
    signatures: [{publicKeyId: '', signature: ''}]
  },
  build: {
    inTotoSlsaProvenanceV1: {
      _type: '',
      predicate: {
        buildDefinition: {
          buildType: '',
          externalParameters: {},
          internalParameters: {},
          resolvedDependencies: [
            {
              annotations: {},
              content: '',
              digest: {},
              downloadLocation: '',
              mediaType: '',
              name: '',
              uri: ''
            }
          ]
        },
        runDetails: {
          builder: {builderDependencies: [{}], id: '', version: {}},
          byproducts: [{}],
          metadata: {finishedOn: '', invocationId: '', startedOn: ''}
        }
      },
      predicateType: '',
      subject: [{digest: {}, name: ''}]
    },
    intotoProvenance: {
      builderConfig: {id: ''},
      materials: [],
      metadata: {
        buildFinishedOn: '',
        buildInvocationId: '',
        buildStartedOn: '',
        completeness: {arguments: false, environment: false, materials: false},
        reproducible: false
      },
      recipe: {
        arguments: [{}],
        definedInMaterial: '',
        entryPoint: '',
        environment: [{}],
        type: ''
      }
    },
    intotoStatement: {
      _type: '',
      predicateType: '',
      provenance: {},
      slsaProvenance: {
        builder: {id: ''},
        materials: [{digest: {}, uri: ''}],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {arguments: false, environment: false, materials: false},
          reproducible: false
        },
        recipe: {
          arguments: {},
          definedInMaterial: '',
          entryPoint: '',
          environment: {},
          type: ''
        }
      },
      slsaProvenanceZeroTwo: {
        buildConfig: {},
        buildType: '',
        builder: {id: ''},
        invocation: {
          parameters: {},
          configSource: {digest: {}, entryPoint: '', uri: ''},
          environment: {}
        },
        materials: [{digest: {}, uri: ''}],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {parameters: false, environment: false, materials: false},
          reproducible: false
        }
      },
      subject: [{}]
    },
    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: ''
  },
  compliance: {
    nonComplianceReason: '',
    nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
    version: {benchmarkDocument: '', cpeUri: '', version: ''}
  },
  createTime: '',
  deployment: {
    address: '',
    config: '',
    deployTime: '',
    platform: '',
    resourceUri: [],
    undeployTime: '',
    userEmail: ''
  },
  discovery: {
    analysisCompleted: {analysisType: []},
    analysisError: [{code: 0, details: [{}], message: ''}],
    analysisStatus: '',
    analysisStatusError: {},
    archiveTime: '',
    continuousAnalysis: '',
    cpe: '',
    lastScanTime: '',
    sbomStatus: {error: '', sbomState: ''}
  },
  dsseAttestation: {
    envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
    statement: {}
  },
  envelope: {},
  image: {
    baseResourceUrl: '',
    distance: 0,
    fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
    layerInfo: [{arguments: '', directive: ''}]
  },
  kind: '',
  name: '',
  noteName: '',
  package: {
    architecture: '',
    cpeUri: '',
    license: {comments: '', expression: ''},
    location: [
      {
        cpeUri: '',
        path: '',
        version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
      }
    ],
    name: '',
    packageType: '',
    version: {}
  },
  remediation: '',
  resourceUri: '',
  sbomReference: {
    payload: {
      _type: '',
      predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
      predicateType: '',
      subject: [{}]
    },
    payloadType: '',
    signatures: [{}]
  },
  updateTime: '',
  upgrade: {
    distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
    package: '',
    parsedVersion: {},
    windowsUpdate: {
      categories: [{categoryId: '', name: ''}],
      description: '',
      identity: {revision: 0, updateId: ''},
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssVersion: '',
    cvssv3: {},
    effectiveSeverity: '',
    extraDetails: '',
    fixAvailable: false,
    longDescription: '',
    packageIssue: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersion: {},
        effectiveSeverity: '',
        fileLocation: [
          {
            filePath: '',
            layerDetails: {
              baseImages: [{layerCount: 0, name: '', repository: ''}],
              command: '',
              diffId: '',
              index: 0
            }
          }
        ],
        fixAvailable: false,
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        packageType: ''
      }
    ],
    relatedUrls: [{label: '', url: ''}],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {details: '', justificationType: ''},
      noteName: '',
      relatedUris: [{}],
      remediations: [{details: '', remediationType: '', remediationUri: {}}],
      state: '',
      vulnerabilityId: ''
    }
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/occurrences',
  headers: {'content-type': 'application/json'},
  body: {
    attestation: {
      jwts: [{compactJwt: ''}],
      serializedPayload: '',
      signatures: [{publicKeyId: '', signature: ''}]
    },
    build: {
      inTotoSlsaProvenanceV1: {
        _type: '',
        predicate: {
          buildDefinition: {
            buildType: '',
            externalParameters: {},
            internalParameters: {},
            resolvedDependencies: [
              {
                annotations: {},
                content: '',
                digest: {},
                downloadLocation: '',
                mediaType: '',
                name: '',
                uri: ''
              }
            ]
          },
          runDetails: {
            builder: {builderDependencies: [{}], id: '', version: {}},
            byproducts: [{}],
            metadata: {finishedOn: '', invocationId: '', startedOn: ''}
          }
        },
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      intotoProvenance: {
        builderConfig: {id: ''},
        materials: [],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {arguments: false, environment: false, materials: false},
          reproducible: false
        },
        recipe: {
          arguments: [{}],
          definedInMaterial: '',
          entryPoint: '',
          environment: [{}],
          type: ''
        }
      },
      intotoStatement: {
        _type: '',
        predicateType: '',
        provenance: {},
        slsaProvenance: {
          builder: {id: ''},
          materials: [{digest: {}, uri: ''}],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {arguments: false, environment: false, materials: false},
            reproducible: false
          },
          recipe: {
            arguments: {},
            definedInMaterial: '',
            entryPoint: '',
            environment: {},
            type: ''
          }
        },
        slsaProvenanceZeroTwo: {
          buildConfig: {},
          buildType: '',
          builder: {id: ''},
          invocation: {
            parameters: {},
            configSource: {digest: {}, entryPoint: '', uri: ''},
            environment: {}
          },
          materials: [{digest: {}, uri: ''}],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {parameters: false, environment: false, materials: false},
            reproducible: false
          }
        },
        subject: [{}]
      },
      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: ''
    },
    compliance: {
      nonComplianceReason: '',
      nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
      version: {benchmarkDocument: '', cpeUri: '', version: ''}
    },
    createTime: '',
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    },
    discovery: {
      analysisCompleted: {analysisType: []},
      analysisError: [{code: 0, details: [{}], message: ''}],
      analysisStatus: '',
      analysisStatusError: {},
      archiveTime: '',
      continuousAnalysis: '',
      cpe: '',
      lastScanTime: '',
      sbomStatus: {error: '', sbomState: ''}
    },
    dsseAttestation: {
      envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
      statement: {}
    },
    envelope: {},
    image: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
      layerInfo: [{arguments: '', directive: ''}]
    },
    kind: '',
    name: '',
    noteName: '',
    package: {
      architecture: '',
      cpeUri: '',
      license: {comments: '', expression: ''},
      location: [
        {
          cpeUri: '',
          path: '',
          version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
        }
      ],
      name: '',
      packageType: '',
      version: {}
    },
    remediation: '',
    resourceUri: '',
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{}]
      },
      payloadType: '',
      signatures: [{}]
    },
    updateTime: '',
    upgrade: {
      distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
      package: '',
      parsedVersion: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssVersion: '',
      cvssv3: {},
      effectiveSeverity: '',
      extraDetails: '',
      fixAvailable: false,
      longDescription: '',
      packageIssue: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersion: {},
          effectiveSeverity: '',
          fileLocation: [
            {
              filePath: '',
              layerDetails: {
                baseImages: [{layerCount: 0, name: '', repository: ''}],
                command: '',
                diffId: '',
                index: 0
              }
            }
          ],
          fixAvailable: false,
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          packageType: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: '',
        vulnerabilityId: ''
      }
    }
  },
  json: true
};

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

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

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

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

req.type('json');
req.send({
  attestation: {
    jwts: [
      {
        compactJwt: ''
      }
    ],
    serializedPayload: '',
    signatures: [
      {
        publicKeyId: '',
        signature: ''
      }
    ]
  },
  build: {
    inTotoSlsaProvenanceV1: {
      _type: '',
      predicate: {
        buildDefinition: {
          buildType: '',
          externalParameters: {},
          internalParameters: {},
          resolvedDependencies: [
            {
              annotations: {},
              content: '',
              digest: {},
              downloadLocation: '',
              mediaType: '',
              name: '',
              uri: ''
            }
          ]
        },
        runDetails: {
          builder: {
            builderDependencies: [
              {}
            ],
            id: '',
            version: {}
          },
          byproducts: [
            {}
          ],
          metadata: {
            finishedOn: '',
            invocationId: '',
            startedOn: ''
          }
        }
      },
      predicateType: '',
      subject: [
        {
          digest: {},
          name: ''
        }
      ]
    },
    intotoProvenance: {
      builderConfig: {
        id: ''
      },
      materials: [],
      metadata: {
        buildFinishedOn: '',
        buildInvocationId: '',
        buildStartedOn: '',
        completeness: {
          arguments: false,
          environment: false,
          materials: false
        },
        reproducible: false
      },
      recipe: {
        arguments: [
          {}
        ],
        definedInMaterial: '',
        entryPoint: '',
        environment: [
          {}
        ],
        type: ''
      }
    },
    intotoStatement: {
      _type: '',
      predicateType: '',
      provenance: {},
      slsaProvenance: {
        builder: {
          id: ''
        },
        materials: [
          {
            digest: {},
            uri: ''
          }
        ],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {
            arguments: false,
            environment: false,
            materials: false
          },
          reproducible: false
        },
        recipe: {
          arguments: {},
          definedInMaterial: '',
          entryPoint: '',
          environment: {},
          type: ''
        }
      },
      slsaProvenanceZeroTwo: {
        buildConfig: {},
        buildType: '',
        builder: {
          id: ''
        },
        invocation: {
          parameters: {},
          configSource: {
            digest: {},
            entryPoint: '',
            uri: ''
          },
          environment: {}
        },
        materials: [
          {
            digest: {},
            uri: ''
          }
        ],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {
            parameters: false,
            environment: false,
            materials: false
          },
          reproducible: false
        }
      },
      subject: [
        {}
      ]
    },
    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: ''
  },
  compliance: {
    nonComplianceReason: '',
    nonCompliantFiles: [
      {
        displayCommand: '',
        path: '',
        reason: ''
      }
    ],
    version: {
      benchmarkDocument: '',
      cpeUri: '',
      version: ''
    }
  },
  createTime: '',
  deployment: {
    address: '',
    config: '',
    deployTime: '',
    platform: '',
    resourceUri: [],
    undeployTime: '',
    userEmail: ''
  },
  discovery: {
    analysisCompleted: {
      analysisType: []
    },
    analysisError: [
      {
        code: 0,
        details: [
          {}
        ],
        message: ''
      }
    ],
    analysisStatus: '',
    analysisStatusError: {},
    archiveTime: '',
    continuousAnalysis: '',
    cpe: '',
    lastScanTime: '',
    sbomStatus: {
      error: '',
      sbomState: ''
    }
  },
  dsseAttestation: {
    envelope: {
      payload: '',
      payloadType: '',
      signatures: [
        {
          keyid: '',
          sig: ''
        }
      ]
    },
    statement: {}
  },
  envelope: {},
  image: {
    baseResourceUrl: '',
    distance: 0,
    fingerprint: {
      v1Name: '',
      v2Blob: [],
      v2Name: ''
    },
    layerInfo: [
      {
        arguments: '',
        directive: ''
      }
    ]
  },
  kind: '',
  name: '',
  noteName: '',
  package: {
    architecture: '',
    cpeUri: '',
    license: {
      comments: '',
      expression: ''
    },
    location: [
      {
        cpeUri: '',
        path: '',
        version: {
          epoch: 0,
          fullName: '',
          inclusive: false,
          kind: '',
          name: '',
          revision: ''
        }
      }
    ],
    name: '',
    packageType: '',
    version: {}
  },
  remediation: '',
  resourceUri: '',
  sbomReference: {
    payload: {
      _type: '',
      predicate: {
        digest: {},
        location: '',
        mimeType: '',
        referrerId: ''
      },
      predicateType: '',
      subject: [
        {}
      ]
    },
    payloadType: '',
    signatures: [
      {}
    ]
  },
  updateTime: '',
  upgrade: {
    distribution: {
      classification: '',
      cpeUri: '',
      cve: [],
      severity: ''
    },
    package: '',
    parsedVersion: {},
    windowsUpdate: {
      categories: [
        {
          categoryId: '',
          name: ''
        }
      ],
      description: '',
      identity: {
        revision: 0,
        updateId: ''
      },
      kbArticleIds: [],
      lastPublishedTimestamp: '',
      supportUrl: '',
      title: ''
    }
  },
  vulnerability: {
    cvssScore: '',
    cvssV2: {
      attackComplexity: '',
      attackVector: '',
      authentication: '',
      availabilityImpact: '',
      baseScore: '',
      confidentialityImpact: '',
      exploitabilityScore: '',
      impactScore: '',
      integrityImpact: '',
      privilegesRequired: '',
      scope: '',
      userInteraction: ''
    },
    cvssVersion: '',
    cvssv3: {},
    effectiveSeverity: '',
    extraDetails: '',
    fixAvailable: false,
    longDescription: '',
    packageIssue: [
      {
        affectedCpeUri: '',
        affectedPackage: '',
        affectedVersion: {},
        effectiveSeverity: '',
        fileLocation: [
          {
            filePath: '',
            layerDetails: {
              baseImages: [
                {
                  layerCount: 0,
                  name: '',
                  repository: ''
                }
              ],
              command: '',
              diffId: '',
              index: 0
            }
          }
        ],
        fixAvailable: false,
        fixedCpeUri: '',
        fixedPackage: '',
        fixedVersion: {},
        packageType: ''
      }
    ],
    relatedUrls: [
      {
        label: '',
        url: ''
      }
    ],
    severity: '',
    shortDescription: '',
    type: '',
    vexAssessment: {
      cve: '',
      impacts: [],
      justification: {
        details: '',
        justificationType: ''
      },
      noteName: '',
      relatedUris: [
        {}
      ],
      remediations: [
        {
          details: '',
          remediationType: '',
          remediationUri: {}
        }
      ],
      state: '',
      vulnerabilityId: ''
    }
  }
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+parent/occurrences',
  headers: {'content-type': 'application/json'},
  data: {
    attestation: {
      jwts: [{compactJwt: ''}],
      serializedPayload: '',
      signatures: [{publicKeyId: '', signature: ''}]
    },
    build: {
      inTotoSlsaProvenanceV1: {
        _type: '',
        predicate: {
          buildDefinition: {
            buildType: '',
            externalParameters: {},
            internalParameters: {},
            resolvedDependencies: [
              {
                annotations: {},
                content: '',
                digest: {},
                downloadLocation: '',
                mediaType: '',
                name: '',
                uri: ''
              }
            ]
          },
          runDetails: {
            builder: {builderDependencies: [{}], id: '', version: {}},
            byproducts: [{}],
            metadata: {finishedOn: '', invocationId: '', startedOn: ''}
          }
        },
        predicateType: '',
        subject: [{digest: {}, name: ''}]
      },
      intotoProvenance: {
        builderConfig: {id: ''},
        materials: [],
        metadata: {
          buildFinishedOn: '',
          buildInvocationId: '',
          buildStartedOn: '',
          completeness: {arguments: false, environment: false, materials: false},
          reproducible: false
        },
        recipe: {
          arguments: [{}],
          definedInMaterial: '',
          entryPoint: '',
          environment: [{}],
          type: ''
        }
      },
      intotoStatement: {
        _type: '',
        predicateType: '',
        provenance: {},
        slsaProvenance: {
          builder: {id: ''},
          materials: [{digest: {}, uri: ''}],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {arguments: false, environment: false, materials: false},
            reproducible: false
          },
          recipe: {
            arguments: {},
            definedInMaterial: '',
            entryPoint: '',
            environment: {},
            type: ''
          }
        },
        slsaProvenanceZeroTwo: {
          buildConfig: {},
          buildType: '',
          builder: {id: ''},
          invocation: {
            parameters: {},
            configSource: {digest: {}, entryPoint: '', uri: ''},
            environment: {}
          },
          materials: [{digest: {}, uri: ''}],
          metadata: {
            buildFinishedOn: '',
            buildInvocationId: '',
            buildStartedOn: '',
            completeness: {parameters: false, environment: false, materials: false},
            reproducible: false
          }
        },
        subject: [{}]
      },
      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: ''
    },
    compliance: {
      nonComplianceReason: '',
      nonCompliantFiles: [{displayCommand: '', path: '', reason: ''}],
      version: {benchmarkDocument: '', cpeUri: '', version: ''}
    },
    createTime: '',
    deployment: {
      address: '',
      config: '',
      deployTime: '',
      platform: '',
      resourceUri: [],
      undeployTime: '',
      userEmail: ''
    },
    discovery: {
      analysisCompleted: {analysisType: []},
      analysisError: [{code: 0, details: [{}], message: ''}],
      analysisStatus: '',
      analysisStatusError: {},
      archiveTime: '',
      continuousAnalysis: '',
      cpe: '',
      lastScanTime: '',
      sbomStatus: {error: '', sbomState: ''}
    },
    dsseAttestation: {
      envelope: {payload: '', payloadType: '', signatures: [{keyid: '', sig: ''}]},
      statement: {}
    },
    envelope: {},
    image: {
      baseResourceUrl: '',
      distance: 0,
      fingerprint: {v1Name: '', v2Blob: [], v2Name: ''},
      layerInfo: [{arguments: '', directive: ''}]
    },
    kind: '',
    name: '',
    noteName: '',
    package: {
      architecture: '',
      cpeUri: '',
      license: {comments: '', expression: ''},
      location: [
        {
          cpeUri: '',
          path: '',
          version: {epoch: 0, fullName: '', inclusive: false, kind: '', name: '', revision: ''}
        }
      ],
      name: '',
      packageType: '',
      version: {}
    },
    remediation: '',
    resourceUri: '',
    sbomReference: {
      payload: {
        _type: '',
        predicate: {digest: {}, location: '', mimeType: '', referrerId: ''},
        predicateType: '',
        subject: [{}]
      },
      payloadType: '',
      signatures: [{}]
    },
    updateTime: '',
    upgrade: {
      distribution: {classification: '', cpeUri: '', cve: [], severity: ''},
      package: '',
      parsedVersion: {},
      windowsUpdate: {
        categories: [{categoryId: '', name: ''}],
        description: '',
        identity: {revision: 0, updateId: ''},
        kbArticleIds: [],
        lastPublishedTimestamp: '',
        supportUrl: '',
        title: ''
      }
    },
    vulnerability: {
      cvssScore: '',
      cvssV2: {
        attackComplexity: '',
        attackVector: '',
        authentication: '',
        availabilityImpact: '',
        baseScore: '',
        confidentialityImpact: '',
        exploitabilityScore: '',
        impactScore: '',
        integrityImpact: '',
        privilegesRequired: '',
        scope: '',
        userInteraction: ''
      },
      cvssVersion: '',
      cvssv3: {},
      effectiveSeverity: '',
      extraDetails: '',
      fixAvailable: false,
      longDescription: '',
      packageIssue: [
        {
          affectedCpeUri: '',
          affectedPackage: '',
          affectedVersion: {},
          effectiveSeverity: '',
          fileLocation: [
            {
              filePath: '',
              layerDetails: {
                baseImages: [{layerCount: 0, name: '', repository: ''}],
                command: '',
                diffId: '',
                index: 0
              }
            }
          ],
          fixAvailable: false,
          fixedCpeUri: '',
          fixedPackage: '',
          fixedVersion: {},
          packageType: ''
        }
      ],
      relatedUrls: [{label: '', url: ''}],
      severity: '',
      shortDescription: '',
      type: '',
      vexAssessment: {
        cve: '',
        impacts: [],
        justification: {details: '', justificationType: ''},
        noteName: '',
        relatedUris: [{}],
        remediations: [{details: '', remediationType: '', remediationUri: {}}],
        state: '',
        vulnerabilityId: ''
      }
    }
  }
};

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

const url = '{{baseUrl}}/v1/:+parent/occurrences';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attestation":{"jwts":[{"compactJwt":""}],"serializedPayload":"","signatures":[{"publicKeyId":"","signature":""}]},"build":{"inTotoSlsaProvenanceV1":{"_type":"","predicate":{"buildDefinition":{"buildType":"","externalParameters":{},"internalParameters":{},"resolvedDependencies":[{"annotations":{},"content":"","digest":{},"downloadLocation":"","mediaType":"","name":"","uri":""}]},"runDetails":{"builder":{"builderDependencies":[{}],"id":"","version":{}},"byproducts":[{}],"metadata":{"finishedOn":"","invocationId":"","startedOn":""}}},"predicateType":"","subject":[{"digest":{},"name":""}]},"intotoProvenance":{"builderConfig":{"id":""},"materials":[],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":[{}],"definedInMaterial":"","entryPoint":"","environment":[{}],"type":""}},"intotoStatement":{"_type":"","predicateType":"","provenance":{},"slsaProvenance":{"builder":{"id":""},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"arguments":false,"environment":false,"materials":false},"reproducible":false},"recipe":{"arguments":{},"definedInMaterial":"","entryPoint":"","environment":{},"type":""}},"slsaProvenanceZeroTwo":{"buildConfig":{},"buildType":"","builder":{"id":""},"invocation":{"parameters":{},"configSource":{"digest":{},"entryPoint":"","uri":""},"environment":{}},"materials":[{"digest":{},"uri":""}],"metadata":{"buildFinishedOn":"","buildInvocationId":"","buildStartedOn":"","completeness":{"parameters":false,"environment":false,"materials":false},"reproducible":false}},"subject":[{}]},"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":""},"compliance":{"nonComplianceReason":"","nonCompliantFiles":[{"displayCommand":"","path":"","reason":""}],"version":{"benchmarkDocument":"","cpeUri":"","version":""}},"createTime":"","deployment":{"address":"","config":"","deployTime":"","platform":"","resourceUri":[],"undeployTime":"","userEmail":""},"discovery":{"analysisCompleted":{"analysisType":[]},"analysisError":[{"code":0,"details":[{}],"message":""}],"analysisStatus":"","analysisStatusError":{},"archiveTime":"","continuousAnalysis":"","cpe":"","lastScanTime":"","sbomStatus":{"error":"","sbomState":""}},"dsseAttestation":{"envelope":{"payload":"","payloadType":"","signatures":[{"keyid":"","sig":""}]},"statement":{}},"envelope":{},"image":{"baseResourceUrl":"","distance":0,"fingerprint":{"v1Name":"","v2Blob":[],"v2Name":""},"layerInfo":[{"arguments":"","directive":""}]},"kind":"","name":"","noteName":"","package":{"architecture":"","cpeUri":"","license":{"comments":"","expression":""},"location":[{"cpeUri":"","path":"","version":{"epoch":0,"fullName":"","inclusive":false,"kind":"","name":"","revision":""}}],"name":"","packageType":"","version":{}},"remediation":"","resourceUri":"","sbomReference":{"payload":{"_type":"","predicate":{"digest":{},"location":"","mimeType":"","referrerId":""},"predicateType":"","subject":[{}]},"payloadType":"","signatures":[{}]},"updateTime":"","upgrade":{"distribution":{"classification":"","cpeUri":"","cve":[],"severity":""},"package":"","parsedVersion":{},"windowsUpdate":{"categories":[{"categoryId":"","name":""}],"description":"","identity":{"revision":0,"updateId":""},"kbArticleIds":[],"lastPublishedTimestamp":"","supportUrl":"","title":""}},"vulnerability":{"cvssScore":"","cvssV2":{"attackComplexity":"","attackVector":"","authentication":"","availabilityImpact":"","baseScore":"","confidentialityImpact":"","exploitabilityScore":"","impactScore":"","integrityImpact":"","privilegesRequired":"","scope":"","userInteraction":""},"cvssVersion":"","cvssv3":{},"effectiveSeverity":"","extraDetails":"","fixAvailable":false,"longDescription":"","packageIssue":[{"affectedCpeUri":"","affectedPackage":"","affectedVersion":{},"effectiveSeverity":"","fileLocation":[{"filePath":"","layerDetails":{"baseImages":[{"layerCount":0,"name":"","repository":""}],"command":"","diffId":"","index":0}}],"fixAvailable":false,"fixedCpeUri":"","fixedPackage":"","fixedVersion":{},"packageType":""}],"relatedUrls":[{"label":"","url":""}],"severity":"","shortDescription":"","type":"","vexAssessment":{"cve":"","impacts":[],"justification":{"details":"","justificationType":""},"noteName":"","relatedUris":[{}],"remediations":[{"details":"","remediationType":"","remediationUri":{}}],"state":"","vulnerabilityId":""}}}'
};

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": @{ @"jwts": @[ @{ @"compactJwt": @"" } ], @"serializedPayload": @"", @"signatures": @[ @{ @"publicKeyId": @"", @"signature": @"" } ] },
                              @"build": @{ @"inTotoSlsaProvenanceV1": @{ @"_type": @"", @"predicate": @{ @"buildDefinition": @{ @"buildType": @"", @"externalParameters": @{  }, @"internalParameters": @{  }, @"resolvedDependencies": @[ @{ @"annotations": @{  }, @"content": @"", @"digest": @{  }, @"downloadLocation": @"", @"mediaType": @"", @"name": @"", @"uri": @"" } ] }, @"runDetails": @{ @"builder": @{ @"builderDependencies": @[ @{  } ], @"id": @"", @"version": @{  } }, @"byproducts": @[ @{  } ], @"metadata": @{ @"finishedOn": @"", @"invocationId": @"", @"startedOn": @"" } } }, @"predicateType": @"", @"subject": @[ @{ @"digest": @{  }, @"name": @"" } ] }, @"intotoProvenance": @{ @"builderConfig": @{ @"id": @"" }, @"materials": @[  ], @"metadata": @{ @"buildFinishedOn": @"", @"buildInvocationId": @"", @"buildStartedOn": @"", @"completeness": @{ @"arguments": @NO, @"environment": @NO, @"materials": @NO }, @"reproducible": @NO }, @"recipe": @{ @"arguments": @[ @{  } ], @"definedInMaterial": @"", @"entryPoint": @"", @"environment": @[ @{  } ], @"type": @"" } }, @"intotoStatement": @{ @"_type": @"", @"predicateType": @"", @"provenance": @{  }, @"slsaProvenance": @{ @"builder": @{ @"id": @"" }, @"materials": @[ @{ @"digest": @{  }, @"uri": @"" } ], @"metadata": @{ @"buildFinishedOn": @"", @"buildInvocationId": @"", @"buildStartedOn": @"", @"completeness": @{ @"arguments": @NO, @"environment": @NO, @"materials": @NO }, @"reproducible": @NO }, @"recipe": @{ @"arguments": @{  }, @"definedInMaterial": @"", @"entryPoint": @"", @"environment": @{  }, @"type": @"" } }, @"slsaProvenanceZeroTwo": @{ @"buildConfig": @{  }, @"buildType": @"", @"builder": @{ @"id": @"" }, @"invocation": @{ @"parameters": @{  }, @"configSource": @{ @"digest": @{  }, @"entryPoint": @"", @"uri": @"" }, @"environment": @{  } }, @"materials": @[ @{ @"digest": @{  }, @"uri": @"" } ], @"metadata": @{ @"buildFinishedOn": @"", @"buildInvocationId": @"", @"buildStartedOn": @"", @"completeness": @{ @"parameters": @NO, @"environment": @NO, @"materials": @NO }, @"reproducible": @NO } }, @"subject": @[ @{  } ] }, @"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": @"" },
                              @"compliance": @{ @"nonComplianceReason": @"", @"nonCompliantFiles": @[ @{ @"displayCommand": @"", @"path": @"", @"reason": @"" } ], @"version": @{ @"benchmarkDocument": @"", @"cpeUri": @"", @"version": @"" } },
                              @"createTime": @"",
                              @"deployment": @{ @"address": @"", @"config": @"", @"deployTime": @"", @"platform": @"", @"resourceUri": @[  ], @"undeployTime": @"", @"userEmail": @"" },
                              @"discovery": @{ @"analysisCompleted": @{ @"analysisType": @[  ] }, @"analysisError": @[ @{ @"code": @0, @"details": @[ @{  } ], @"message": @"" } ], @"analysisStatus": @"", @"analysisStatusError": @{  }, @"archiveTime": @"", @"continuousAnalysis": @"", @"cpe": @"", @"lastScanTime": @"", @"sbomStatus": @{ @"error": @"", @"sbomState": @"" } },
                              @"dsseAttestation": @{ @"envelope": @{ @"payload": @"", @"payloadType": @"", @"signatures": @[ @{ @"keyid": @"", @"sig": @"" } ] }, @"statement": @{  } },
                              @"envelope": @{  },
                              @"image": @{ @"baseResourceUrl": @"", @"distance": @0, @"fingerprint": @{ @"v1Name": @"", @"v2Blob": @[  ], @"v2Name": @"" }, @"layerInfo": @[ @{ @"arguments": @"", @"directive": @"" } ] },
                              @"kind": @"",
                              @"name": @"",
                              @"noteName": @"",
                              @"package": @{ @"architecture": @"", @"cpeUri": @"", @"license": @{ @"comments": @"", @"expression": @"" }, @"location": @[ @{ @"cpeUri": @"", @"path": @"", @"version": @{ @"epoch": @0, @"fullName": @"", @"inclusive": @NO, @"kind": @"", @"name": @"", @"revision": @"" } } ], @"name": @"", @"packageType": @"", @"version": @{  } },
                              @"remediation": @"",
                              @"resourceUri": @"",
                              @"sbomReference": @{ @"payload": @{ @"_type": @"", @"predicate": @{ @"digest": @{  }, @"location": @"", @"mimeType": @"", @"referrerId": @"" }, @"predicateType": @"", @"subject": @[ @{  } ] }, @"payloadType": @"", @"signatures": @[ @{  } ] },
                              @"updateTime": @"",
                              @"upgrade": @{ @"distribution": @{ @"classification": @"", @"cpeUri": @"", @"cve": @[  ], @"severity": @"" }, @"package": @"", @"parsedVersion": @{  }, @"windowsUpdate": @{ @"categories": @[ @{ @"categoryId": @"", @"name": @"" } ], @"description": @"", @"identity": @{ @"revision": @0, @"updateId": @"" }, @"kbArticleIds": @[  ], @"lastPublishedTimestamp": @"", @"supportUrl": @"", @"title": @"" } },
                              @"vulnerability": @{ @"cvssScore": @"", @"cvssV2": @{ @"attackComplexity": @"", @"attackVector": @"", @"authentication": @"", @"availabilityImpact": @"", @"baseScore": @"", @"confidentialityImpact": @"", @"exploitabilityScore": @"", @"impactScore": @"", @"integrityImpact": @"", @"privilegesRequired": @"", @"scope": @"", @"userInteraction": @"" }, @"cvssVersion": @"", @"cvssv3": @{  }, @"effectiveSeverity": @"", @"extraDetails": @"", @"fixAvailable": @NO, @"longDescription": @"", @"packageIssue": @[ @{ @"affectedCpeUri": @"", @"affectedPackage": @"", @"affectedVersion": @{  }, @"effectiveSeverity": @"", @"fileLocation": @[ @{ @"filePath": @"", @"layerDetails": @{ @"baseImages": @[ @{ @"layerCount": @0, @"name": @"", @"repository": @"" } ], @"command": @"", @"diffId": @"", @"index": @0 } } ], @"fixAvailable": @NO, @"fixedCpeUri": @"", @"fixedPackage": @"", @"fixedVersion": @{  }, @"packageType": @"" } ], @"relatedUrls": @[ @{ @"label": @"", @"url": @"" } ], @"severity": @"", @"shortDescription": @"", @"type": @"", @"vexAssessment": @{ @"cve": @"", @"impacts": @[  ], @"justification": @{ @"details": @"", @"justificationType": @"" }, @"noteName": @"", @"relatedUris": @[ @{  } ], @"remediations": @[ @{ @"details": @"", @"remediationType": @"", @"remediationUri": @{  } } ], @"state": @"", @"vulnerabilityId": @"" } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v1/:+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' => [
        'jwts' => [
                [
                                'compactJwt' => ''
                ]
        ],
        'serializedPayload' => '',
        'signatures' => [
                [
                                'publicKeyId' => '',
                                'signature' => ''
                ]
        ]
    ],
    'build' => [
        'inTotoSlsaProvenanceV1' => [
                '_type' => '',
                'predicate' => [
                                'buildDefinition' => [
                                                                'buildType' => '',
                                                                'externalParameters' => [
                                                                                                                                
                                                                ],
                                                                'internalParameters' => [
                                                                                                                                
                                                                ],
                                                                'resolvedDependencies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'content' => '',
                                                                                                                                                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'downloadLocation' => '',
                                                                                                                                                                                                                                                                'mediaType' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'uri' => ''
                                                                                                                                ]
                                                                ]
                                ],
                                'runDetails' => [
                                                                'builder' => [
                                                                                                                                'builderDependencies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'id' => '',
                                                                                                                                'version' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'byproducts' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'metadata' => [
                                                                                                                                'finishedOn' => '',
                                                                                                                                'invocationId' => '',
                                                                                                                                'startedOn' => ''
                                                                ]
                                ]
                ],
                'predicateType' => '',
                'subject' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'name' => ''
                                ]
                ]
        ],
        'intotoProvenance' => [
                'builderConfig' => [
                                'id' => ''
                ],
                'materials' => [
                                
                ],
                'metadata' => [
                                'buildFinishedOn' => '',
                                'buildInvocationId' => '',
                                'buildStartedOn' => '',
                                'completeness' => [
                                                                'arguments' => null,
                                                                'environment' => null,
                                                                'materials' => null
                                ],
                                'reproducible' => null
                ],
                'recipe' => [
                                'arguments' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'definedInMaterial' => '',
                                'entryPoint' => '',
                                'environment' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'type' => ''
                ]
        ],
        'intotoStatement' => [
                '_type' => '',
                'predicateType' => '',
                'provenance' => [
                                
                ],
                'slsaProvenance' => [
                                'builder' => [
                                                                'id' => ''
                                ],
                                'materials' => [
                                                                [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'uri' => ''
                                                                ]
                                ],
                                'metadata' => [
                                                                'buildFinishedOn' => '',
                                                                'buildInvocationId' => '',
                                                                'buildStartedOn' => '',
                                                                'completeness' => [
                                                                                                                                'arguments' => null,
                                                                                                                                'environment' => null,
                                                                                                                                'materials' => null
                                                                ],
                                                                'reproducible' => null
                                ],
                                'recipe' => [
                                                                'arguments' => [
                                                                                                                                
                                                                ],
                                                                'definedInMaterial' => '',
                                                                'entryPoint' => '',
                                                                'environment' => [
                                                                                                                                
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'slsaProvenanceZeroTwo' => [
                                'buildConfig' => [
                                                                
                                ],
                                'buildType' => '',
                                'builder' => [
                                                                'id' => ''
                                ],
                                'invocation' => [
                                                                'parameters' => [
                                                                                                                                
                                                                ],
                                                                'configSource' => [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'entryPoint' => '',
                                                                                                                                'uri' => ''
                                                                ],
                                                                'environment' => [
                                                                                                                                
                                                                ]
                                ],
                                'materials' => [
                                                                [
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'uri' => ''
                                                                ]
                                ],
                                'metadata' => [
                                                                'buildFinishedOn' => '',
                                                                'buildInvocationId' => '',
                                                                'buildStartedOn' => '',
                                                                'completeness' => [
                                                                                                                                'parameters' => null,
                                                                                                                                'environment' => null,
                                                                                                                                'materials' => null
                                                                ],
                                                                'reproducible' => null
                                ]
                ],
                'subject' => [
                                [
                                                                
                                ]
                ]
        ],
        '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' => ''
    ],
    'compliance' => [
        'nonComplianceReason' => '',
        'nonCompliantFiles' => [
                [
                                'displayCommand' => '',
                                'path' => '',
                                'reason' => ''
                ]
        ],
        'version' => [
                'benchmarkDocument' => '',
                'cpeUri' => '',
                'version' => ''
        ]
    ],
    'createTime' => '',
    'deployment' => [
        'address' => '',
        'config' => '',
        'deployTime' => '',
        'platform' => '',
        'resourceUri' => [
                
        ],
        'undeployTime' => '',
        'userEmail' => ''
    ],
    'discovery' => [
        'analysisCompleted' => [
                'analysisType' => [
                                
                ]
        ],
        'analysisError' => [
                [
                                'code' => 0,
                                'details' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'message' => ''
                ]
        ],
        'analysisStatus' => '',
        'analysisStatusError' => [
                
        ],
        'archiveTime' => '',
        'continuousAnalysis' => '',
        'cpe' => '',
        'lastScanTime' => '',
        'sbomStatus' => [
                'error' => '',
                'sbomState' => ''
        ]
    ],
    'dsseAttestation' => [
        'envelope' => [
                'payload' => '',
                'payloadType' => '',
                'signatures' => [
                                [
                                                                'keyid' => '',
                                                                'sig' => ''
                                ]
                ]
        ],
        'statement' => [
                
        ]
    ],
    'envelope' => [
        
    ],
    'image' => [
        'baseResourceUrl' => '',
        'distance' => 0,
        'fingerprint' => [
                'v1Name' => '',
                'v2Blob' => [
                                
                ],
                'v2Name' => ''
        ],
        'layerInfo' => [
                [
                                'arguments' => '',
                                'directive' => ''
                ]
        ]
    ],
    'kind' => '',
    'name' => '',
    'noteName' => '',
    'package' => [
        'architecture' => '',
        'cpeUri' => '',
        'license' => [
                'comments' => '',
                'expression' => ''
        ],
        'location' => [
                [
                                'cpeUri' => '',
                                'path' => '',
                                'version' => [
                                                                'epoch' => 0,
                                                                'fullName' => '',
                                                                'inclusive' => null,
                                                                'kind' => '',
                                                                'name' => '',
                                                                'revision' => ''
                                ]
                ]
        ],
        'name' => '',
        'packageType' => '',
        'version' => [
                
        ]
    ],
    'remediation' => '',
    'resourceUri' => '',
    'sbomReference' => [
        'payload' => [
                '_type' => '',
                'predicate' => [
                                'digest' => [
                                                                
                                ],
                                'location' => '',
                                'mimeType' => '',
                                'referrerId' => ''
                ],
                'predicateType' => '',
                'subject' => [
                                [
                                                                
                                ]
                ]
        ],
        'payloadType' => '',
        'signatures' => [
                [
                                
                ]
        ]
    ],
    'updateTime' => '',
    'upgrade' => [
        'distribution' => [
                'classification' => '',
                'cpeUri' => '',
                'cve' => [
                                
                ],
                'severity' => ''
        ],
        'package' => '',
        'parsedVersion' => [
                
        ],
        'windowsUpdate' => [
                'categories' => [
                                [
                                                                'categoryId' => '',
                                                                'name' => ''
                                ]
                ],
                'description' => '',
                'identity' => [
                                'revision' => 0,
                                'updateId' => ''
                ],
                'kbArticleIds' => [
                                
                ],
                'lastPublishedTimestamp' => '',
                'supportUrl' => '',
                'title' => ''
        ]
    ],
    'vulnerability' => [
        'cvssScore' => '',
        'cvssV2' => [
                'attackComplexity' => '',
                'attackVector' => '',
                'authentication' => '',
                'availabilityImpact' => '',
                'baseScore' => '',
                'confidentialityImpact' => '',
                'exploitabilityScore' => '',
                'impactScore' => '',
                'integrityImpact' => '',
                'privilegesRequired' => '',
                'scope' => '',
                'userInteraction' => ''
        ],
        'cvssVersion' => '',
        'cvssv3' => [
                
        ],
        'effectiveSeverity' => '',
        'extraDetails' => '',
        'fixAvailable' => null,
        'longDescription' => '',
        'packageIssue' => [
                [
                                'affectedCpeUri' => '',
                                'affectedPackage' => '',
                                'affectedVersion' => [
                                                                
                                ],
                                'effectiveSeverity' => '',
                                'fileLocation' => [
                                                                [
                                                                                                                                'filePath' => '',
                                                                                                                                'layerDetails' => [
                                                                                                                                                                                                                                                                'baseImages' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerCount' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repository' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'command' => '',
                                                                                                                                                                                                                                                                'diffId' => '',
                                                                                                                                                                                                                                                                'index' => 0
                                                                                                                                ]
                                                                ]
                                ],
                                'fixAvailable' => null,
                                'fixedCpeUri' => '',
                                'fixedPackage' => '',
                                'fixedVersion' => [
                                                                
                                ],
                                'packageType' => ''
                ]
        ],
        'relatedUrls' => [
                [
                                'label' => '',
                                'url' => ''
                ]
        ],
        'severity' => '',
        'shortDescription' => '',
        'type' => '',
        'vexAssessment' => [
                'cve' => '',
                'impacts' => [
                                
                ],
                'justification' => [
                                'details' => '',
                                'justificationType' => ''
                ],
                'noteName' => '',
                'relatedUris' => [
                                [
                                                                
                                ]
                ],
                'remediations' => [
                                [
                                                                'details' => '',
                                                                'remediationType' => '',
                                                                'remediationUri' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'state' => '',
                'vulnerabilityId' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v1/:+parent/occurrences', [
  'body' => '{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attestation' => [
    'jwts' => [
        [
                'compactJwt' => ''
        ]
    ],
    'serializedPayload' => '',
    'signatures' => [
        [
                'publicKeyId' => '',
                'signature' => ''
        ]
    ]
  ],
  'build' => [
    'inTotoSlsaProvenanceV1' => [
        '_type' => '',
        'predicate' => [
                'buildDefinition' => [
                                'buildType' => '',
                                'externalParameters' => [
                                                                
                                ],
                                'internalParameters' => [
                                                                
                                ],
                                'resolvedDependencies' => [
                                                                [
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'content' => '',
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'downloadLocation' => '',
                                                                                                                                'mediaType' => '',
                                                                                                                                'name' => '',
                                                                                                                                'uri' => ''
                                                                ]
                                ]
                ],
                'runDetails' => [
                                'builder' => [
                                                                'builderDependencies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'id' => '',
                                                                'version' => [
                                                                                                                                
                                                                ]
                                ],
                                'byproducts' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'metadata' => [
                                                                'finishedOn' => '',
                                                                'invocationId' => '',
                                                                'startedOn' => ''
                                ]
                ]
        ],
        'predicateType' => '',
        'subject' => [
                [
                                'digest' => [
                                                                
                                ],
                                'name' => ''
                ]
        ]
    ],
    'intotoProvenance' => [
        'builderConfig' => [
                'id' => ''
        ],
        'materials' => [
                
        ],
        'metadata' => [
                'buildFinishedOn' => '',
                'buildInvocationId' => '',
                'buildStartedOn' => '',
                'completeness' => [
                                'arguments' => null,
                                'environment' => null,
                                'materials' => null
                ],
                'reproducible' => null
        ],
        'recipe' => [
                'arguments' => [
                                [
                                                                
                                ]
                ],
                'definedInMaterial' => '',
                'entryPoint' => '',
                'environment' => [
                                [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'intotoStatement' => [
        '_type' => '',
        'predicateType' => '',
        'provenance' => [
                
        ],
        'slsaProvenance' => [
                'builder' => [
                                'id' => ''
                ],
                'materials' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'uri' => ''
                                ]
                ],
                'metadata' => [
                                'buildFinishedOn' => '',
                                'buildInvocationId' => '',
                                'buildStartedOn' => '',
                                'completeness' => [
                                                                'arguments' => null,
                                                                'environment' => null,
                                                                'materials' => null
                                ],
                                'reproducible' => null
                ],
                'recipe' => [
                                'arguments' => [
                                                                
                                ],
                                'definedInMaterial' => '',
                                'entryPoint' => '',
                                'environment' => [
                                                                
                                ],
                                'type' => ''
                ]
        ],
        'slsaProvenanceZeroTwo' => [
                'buildConfig' => [
                                
                ],
                'buildType' => '',
                'builder' => [
                                'id' => ''
                ],
                'invocation' => [
                                'parameters' => [
                                                                
                                ],
                                'configSource' => [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'entryPoint' => '',
                                                                'uri' => ''
                                ],
                                'environment' => [
                                                                
                                ]
                ],
                'materials' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'uri' => ''
                                ]
                ],
                'metadata' => [
                                'buildFinishedOn' => '',
                                'buildInvocationId' => '',
                                'buildStartedOn' => '',
                                'completeness' => [
                                                                'parameters' => null,
                                                                'environment' => null,
                                                                'materials' => null
                                ],
                                'reproducible' => null
                ]
        ],
        'subject' => [
                [
                                
                ]
        ]
    ],
    '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' => ''
  ],
  'compliance' => [
    'nonComplianceReason' => '',
    'nonCompliantFiles' => [
        [
                'displayCommand' => '',
                'path' => '',
                'reason' => ''
        ]
    ],
    'version' => [
        'benchmarkDocument' => '',
        'cpeUri' => '',
        'version' => ''
    ]
  ],
  'createTime' => '',
  'deployment' => [
    'address' => '',
    'config' => '',
    'deployTime' => '',
    'platform' => '',
    'resourceUri' => [
        
    ],
    'undeployTime' => '',
    'userEmail' => ''
  ],
  'discovery' => [
    'analysisCompleted' => [
        'analysisType' => [
                
        ]
    ],
    'analysisError' => [
        [
                'code' => 0,
                'details' => [
                                [
                                                                
                                ]
                ],
                'message' => ''
        ]
    ],
    'analysisStatus' => '',
    'analysisStatusError' => [
        
    ],
    'archiveTime' => '',
    'continuousAnalysis' => '',
    'cpe' => '',
    'lastScanTime' => '',
    'sbomStatus' => [
        'error' => '',
        'sbomState' => ''
    ]
  ],
  'dsseAttestation' => [
    'envelope' => [
        'payload' => '',
        'payloadType' => '',
        'signatures' => [
                [
                                'keyid' => '',
                                'sig' => ''
                ]
        ]
    ],
    'statement' => [
        
    ]
  ],
  'envelope' => [
    
  ],
  'image' => [
    'baseResourceUrl' => '',
    'distance' => 0,
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'layerInfo' => [
        [
                'arguments' => '',
                'directive' => ''
        ]
    ]
  ],
  'kind' => '',
  'name' => '',
  'noteName' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'location' => [
        [
                'cpeUri' => '',
                'path' => '',
                'version' => [
                                'epoch' => 0,
                                'fullName' => '',
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ]
        ]
    ],
    'name' => '',
    'packageType' => '',
    'version' => [
        
    ]
  ],
  'remediation' => '',
  'resourceUri' => '',
  'sbomReference' => [
    'payload' => [
        '_type' => '',
        'predicate' => [
                'digest' => [
                                
                ],
                'location' => '',
                'mimeType' => '',
                'referrerId' => ''
        ],
        'predicateType' => '',
        'subject' => [
                [
                                
                ]
        ]
    ],
    'payloadType' => '',
    'signatures' => [
        [
                
        ]
    ]
  ],
  'updateTime' => '',
  'upgrade' => [
    'distribution' => [
        'classification' => '',
        'cpeUri' => '',
        'cve' => [
                
        ],
        'severity' => ''
    ],
    'package' => '',
    'parsedVersion' => [
        
    ],
    'windowsUpdate' => [
        'categories' => [
                [
                                'categoryId' => '',
                                'name' => ''
                ]
        ],
        'description' => '',
        'identity' => [
                'revision' => 0,
                'updateId' => ''
        ],
        'kbArticleIds' => [
                
        ],
        'lastPublishedTimestamp' => '',
        'supportUrl' => '',
        'title' => ''
    ]
  ],
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssVersion' => '',
    'cvssv3' => [
        
    ],
    'effectiveSeverity' => '',
    'extraDetails' => '',
    'fixAvailable' => null,
    'longDescription' => '',
    'packageIssue' => [
        [
                'affectedCpeUri' => '',
                'affectedPackage' => '',
                'affectedVersion' => [
                                
                ],
                'effectiveSeverity' => '',
                'fileLocation' => [
                                [
                                                                'filePath' => '',
                                                                'layerDetails' => [
                                                                                                                                'baseImages' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerCount' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repository' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'command' => '',
                                                                                                                                'diffId' => '',
                                                                                                                                'index' => 0
                                                                ]
                                ]
                ],
                'fixAvailable' => null,
                'fixedCpeUri' => '',
                'fixedPackage' => '',
                'fixedVersion' => [
                                
                ],
                'packageType' => ''
        ]
    ],
    'relatedUrls' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'severity' => '',
    'shortDescription' => '',
    'type' => '',
    'vexAssessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'noteName' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'state' => '',
        'vulnerabilityId' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attestation' => [
    'jwts' => [
        [
                'compactJwt' => ''
        ]
    ],
    'serializedPayload' => '',
    'signatures' => [
        [
                'publicKeyId' => '',
                'signature' => ''
        ]
    ]
  ],
  'build' => [
    'inTotoSlsaProvenanceV1' => [
        '_type' => '',
        'predicate' => [
                'buildDefinition' => [
                                'buildType' => '',
                                'externalParameters' => [
                                                                
                                ],
                                'internalParameters' => [
                                                                
                                ],
                                'resolvedDependencies' => [
                                                                [
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'content' => '',
                                                                                                                                'digest' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'downloadLocation' => '',
                                                                                                                                'mediaType' => '',
                                                                                                                                'name' => '',
                                                                                                                                'uri' => ''
                                                                ]
                                ]
                ],
                'runDetails' => [
                                'builder' => [
                                                                'builderDependencies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'id' => '',
                                                                'version' => [
                                                                                                                                
                                                                ]
                                ],
                                'byproducts' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'metadata' => [
                                                                'finishedOn' => '',
                                                                'invocationId' => '',
                                                                'startedOn' => ''
                                ]
                ]
        ],
        'predicateType' => '',
        'subject' => [
                [
                                'digest' => [
                                                                
                                ],
                                'name' => ''
                ]
        ]
    ],
    'intotoProvenance' => [
        'builderConfig' => [
                'id' => ''
        ],
        'materials' => [
                
        ],
        'metadata' => [
                'buildFinishedOn' => '',
                'buildInvocationId' => '',
                'buildStartedOn' => '',
                'completeness' => [
                                'arguments' => null,
                                'environment' => null,
                                'materials' => null
                ],
                'reproducible' => null
        ],
        'recipe' => [
                'arguments' => [
                                [
                                                                
                                ]
                ],
                'definedInMaterial' => '',
                'entryPoint' => '',
                'environment' => [
                                [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'intotoStatement' => [
        '_type' => '',
        'predicateType' => '',
        'provenance' => [
                
        ],
        'slsaProvenance' => [
                'builder' => [
                                'id' => ''
                ],
                'materials' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'uri' => ''
                                ]
                ],
                'metadata' => [
                                'buildFinishedOn' => '',
                                'buildInvocationId' => '',
                                'buildStartedOn' => '',
                                'completeness' => [
                                                                'arguments' => null,
                                                                'environment' => null,
                                                                'materials' => null
                                ],
                                'reproducible' => null
                ],
                'recipe' => [
                                'arguments' => [
                                                                
                                ],
                                'definedInMaterial' => '',
                                'entryPoint' => '',
                                'environment' => [
                                                                
                                ],
                                'type' => ''
                ]
        ],
        'slsaProvenanceZeroTwo' => [
                'buildConfig' => [
                                
                ],
                'buildType' => '',
                'builder' => [
                                'id' => ''
                ],
                'invocation' => [
                                'parameters' => [
                                                                
                                ],
                                'configSource' => [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'entryPoint' => '',
                                                                'uri' => ''
                                ],
                                'environment' => [
                                                                
                                ]
                ],
                'materials' => [
                                [
                                                                'digest' => [
                                                                                                                                
                                                                ],
                                                                'uri' => ''
                                ]
                ],
                'metadata' => [
                                'buildFinishedOn' => '',
                                'buildInvocationId' => '',
                                'buildStartedOn' => '',
                                'completeness' => [
                                                                'parameters' => null,
                                                                'environment' => null,
                                                                'materials' => null
                                ],
                                'reproducible' => null
                ]
        ],
        'subject' => [
                [
                                
                ]
        ]
    ],
    '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' => ''
  ],
  'compliance' => [
    'nonComplianceReason' => '',
    'nonCompliantFiles' => [
        [
                'displayCommand' => '',
                'path' => '',
                'reason' => ''
        ]
    ],
    'version' => [
        'benchmarkDocument' => '',
        'cpeUri' => '',
        'version' => ''
    ]
  ],
  'createTime' => '',
  'deployment' => [
    'address' => '',
    'config' => '',
    'deployTime' => '',
    'platform' => '',
    'resourceUri' => [
        
    ],
    'undeployTime' => '',
    'userEmail' => ''
  ],
  'discovery' => [
    'analysisCompleted' => [
        'analysisType' => [
                
        ]
    ],
    'analysisError' => [
        [
                'code' => 0,
                'details' => [
                                [
                                                                
                                ]
                ],
                'message' => ''
        ]
    ],
    'analysisStatus' => '',
    'analysisStatusError' => [
        
    ],
    'archiveTime' => '',
    'continuousAnalysis' => '',
    'cpe' => '',
    'lastScanTime' => '',
    'sbomStatus' => [
        'error' => '',
        'sbomState' => ''
    ]
  ],
  'dsseAttestation' => [
    'envelope' => [
        'payload' => '',
        'payloadType' => '',
        'signatures' => [
                [
                                'keyid' => '',
                                'sig' => ''
                ]
        ]
    ],
    'statement' => [
        
    ]
  ],
  'envelope' => [
    
  ],
  'image' => [
    'baseResourceUrl' => '',
    'distance' => 0,
    'fingerprint' => [
        'v1Name' => '',
        'v2Blob' => [
                
        ],
        'v2Name' => ''
    ],
    'layerInfo' => [
        [
                'arguments' => '',
                'directive' => ''
        ]
    ]
  ],
  'kind' => '',
  'name' => '',
  'noteName' => '',
  'package' => [
    'architecture' => '',
    'cpeUri' => '',
    'license' => [
        'comments' => '',
        'expression' => ''
    ],
    'location' => [
        [
                'cpeUri' => '',
                'path' => '',
                'version' => [
                                'epoch' => 0,
                                'fullName' => '',
                                'inclusive' => null,
                                'kind' => '',
                                'name' => '',
                                'revision' => ''
                ]
        ]
    ],
    'name' => '',
    'packageType' => '',
    'version' => [
        
    ]
  ],
  'remediation' => '',
  'resourceUri' => '',
  'sbomReference' => [
    'payload' => [
        '_type' => '',
        'predicate' => [
                'digest' => [
                                
                ],
                'location' => '',
                'mimeType' => '',
                'referrerId' => ''
        ],
        'predicateType' => '',
        'subject' => [
                [
                                
                ]
        ]
    ],
    'payloadType' => '',
    'signatures' => [
        [
                
        ]
    ]
  ],
  'updateTime' => '',
  'upgrade' => [
    'distribution' => [
        'classification' => '',
        'cpeUri' => '',
        'cve' => [
                
        ],
        'severity' => ''
    ],
    'package' => '',
    'parsedVersion' => [
        
    ],
    'windowsUpdate' => [
        'categories' => [
                [
                                'categoryId' => '',
                                'name' => ''
                ]
        ],
        'description' => '',
        'identity' => [
                'revision' => 0,
                'updateId' => ''
        ],
        'kbArticleIds' => [
                
        ],
        'lastPublishedTimestamp' => '',
        'supportUrl' => '',
        'title' => ''
    ]
  ],
  'vulnerability' => [
    'cvssScore' => '',
    'cvssV2' => [
        'attackComplexity' => '',
        'attackVector' => '',
        'authentication' => '',
        'availabilityImpact' => '',
        'baseScore' => '',
        'confidentialityImpact' => '',
        'exploitabilityScore' => '',
        'impactScore' => '',
        'integrityImpact' => '',
        'privilegesRequired' => '',
        'scope' => '',
        'userInteraction' => ''
    ],
    'cvssVersion' => '',
    'cvssv3' => [
        
    ],
    'effectiveSeverity' => '',
    'extraDetails' => '',
    'fixAvailable' => null,
    'longDescription' => '',
    'packageIssue' => [
        [
                'affectedCpeUri' => '',
                'affectedPackage' => '',
                'affectedVersion' => [
                                
                ],
                'effectiveSeverity' => '',
                'fileLocation' => [
                                [
                                                                'filePath' => '',
                                                                'layerDetails' => [
                                                                                                                                'baseImages' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'layerCount' => 0,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'repository' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'command' => '',
                                                                                                                                'diffId' => '',
                                                                                                                                'index' => 0
                                                                ]
                                ]
                ],
                'fixAvailable' => null,
                'fixedCpeUri' => '',
                'fixedPackage' => '',
                'fixedVersion' => [
                                
                ],
                'packageType' => ''
        ]
    ],
    'relatedUrls' => [
        [
                'label' => '',
                'url' => ''
        ]
    ],
    'severity' => '',
    'shortDescription' => '',
    'type' => '',
    'vexAssessment' => [
        'cve' => '',
        'impacts' => [
                
        ],
        'justification' => [
                'details' => '',
                'justificationType' => ''
        ],
        'noteName' => '',
        'relatedUris' => [
                [
                                
                ]
        ],
        'remediations' => [
                [
                                'details' => '',
                                'remediationType' => '',
                                'remediationUri' => [
                                                                
                                ]
                ]
        ],
        'state' => '',
        'vulnerabilityId' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v1/:+parent/occurrences' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\n    }\n  }\n}"

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

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

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

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

url = "{{baseUrl}}/v1/:+parent/occurrences"

payload = {
    "attestation": {
        "jwts": [{ "compactJwt": "" }],
        "serializedPayload": "",
        "signatures": [
            {
                "publicKeyId": "",
                "signature": ""
            }
        ]
    },
    "build": {
        "inTotoSlsaProvenanceV1": {
            "_type": "",
            "predicate": {
                "buildDefinition": {
                    "buildType": "",
                    "externalParameters": {},
                    "internalParameters": {},
                    "resolvedDependencies": [
                        {
                            "annotations": {},
                            "content": "",
                            "digest": {},
                            "downloadLocation": "",
                            "mediaType": "",
                            "name": "",
                            "uri": ""
                        }
                    ]
                },
                "runDetails": {
                    "builder": {
                        "builderDependencies": [{}],
                        "id": "",
                        "version": {}
                    },
                    "byproducts": [{}],
                    "metadata": {
                        "finishedOn": "",
                        "invocationId": "",
                        "startedOn": ""
                    }
                }
            },
            "predicateType": "",
            "subject": [
                {
                    "digest": {},
                    "name": ""
                }
            ]
        },
        "intotoProvenance": {
            "builderConfig": { "id": "" },
            "materials": [],
            "metadata": {
                "buildFinishedOn": "",
                "buildInvocationId": "",
                "buildStartedOn": "",
                "completeness": {
                    "arguments": False,
                    "environment": False,
                    "materials": False
                },
                "reproducible": False
            },
            "recipe": {
                "arguments": [{}],
                "definedInMaterial": "",
                "entryPoint": "",
                "environment": [{}],
                "type": ""
            }
        },
        "intotoStatement": {
            "_type": "",
            "predicateType": "",
            "provenance": {},
            "slsaProvenance": {
                "builder": { "id": "" },
                "materials": [
                    {
                        "digest": {},
                        "uri": ""
                    }
                ],
                "metadata": {
                    "buildFinishedOn": "",
                    "buildInvocationId": "",
                    "buildStartedOn": "",
                    "completeness": {
                        "arguments": False,
                        "environment": False,
                        "materials": False
                    },
                    "reproducible": False
                },
                "recipe": {
                    "arguments": {},
                    "definedInMaterial": "",
                    "entryPoint": "",
                    "environment": {},
                    "type": ""
                }
            },
            "slsaProvenanceZeroTwo": {
                "buildConfig": {},
                "buildType": "",
                "builder": { "id": "" },
                "invocation": {
                    "parameters": {},
                    "configSource": {
                        "digest": {},
                        "entryPoint": "",
                        "uri": ""
                    },
                    "environment": {}
                },
                "materials": [
                    {
                        "digest": {},
                        "uri": ""
                    }
                ],
                "metadata": {
                    "buildFinishedOn": "",
                    "buildInvocationId": "",
                    "buildStartedOn": "",
                    "completeness": {
                        "parameters": False,
                        "environment": False,
                        "materials": False
                    },
                    "reproducible": False
                }
            },
            "subject": [{}]
        },
        "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": ""
    },
    "compliance": {
        "nonComplianceReason": "",
        "nonCompliantFiles": [
            {
                "displayCommand": "",
                "path": "",
                "reason": ""
            }
        ],
        "version": {
            "benchmarkDocument": "",
            "cpeUri": "",
            "version": ""
        }
    },
    "createTime": "",
    "deployment": {
        "address": "",
        "config": "",
        "deployTime": "",
        "platform": "",
        "resourceUri": [],
        "undeployTime": "",
        "userEmail": ""
    },
    "discovery": {
        "analysisCompleted": { "analysisType": [] },
        "analysisError": [
            {
                "code": 0,
                "details": [{}],
                "message": ""
            }
        ],
        "analysisStatus": "",
        "analysisStatusError": {},
        "archiveTime": "",
        "continuousAnalysis": "",
        "cpe": "",
        "lastScanTime": "",
        "sbomStatus": {
            "error": "",
            "sbomState": ""
        }
    },
    "dsseAttestation": {
        "envelope": {
            "payload": "",
            "payloadType": "",
            "signatures": [
                {
                    "keyid": "",
                    "sig": ""
                }
            ]
        },
        "statement": {}
    },
    "envelope": {},
    "image": {
        "baseResourceUrl": "",
        "distance": 0,
        "fingerprint": {
            "v1Name": "",
            "v2Blob": [],
            "v2Name": ""
        },
        "layerInfo": [
            {
                "arguments": "",
                "directive": ""
            }
        ]
    },
    "kind": "",
    "name": "",
    "noteName": "",
    "package": {
        "architecture": "",
        "cpeUri": "",
        "license": {
            "comments": "",
            "expression": ""
        },
        "location": [
            {
                "cpeUri": "",
                "path": "",
                "version": {
                    "epoch": 0,
                    "fullName": "",
                    "inclusive": False,
                    "kind": "",
                    "name": "",
                    "revision": ""
                }
            }
        ],
        "name": "",
        "packageType": "",
        "version": {}
    },
    "remediation": "",
    "resourceUri": "",
    "sbomReference": {
        "payload": {
            "_type": "",
            "predicate": {
                "digest": {},
                "location": "",
                "mimeType": "",
                "referrerId": ""
            },
            "predicateType": "",
            "subject": [{}]
        },
        "payloadType": "",
        "signatures": [{}]
    },
    "updateTime": "",
    "upgrade": {
        "distribution": {
            "classification": "",
            "cpeUri": "",
            "cve": [],
            "severity": ""
        },
        "package": "",
        "parsedVersion": {},
        "windowsUpdate": {
            "categories": [
                {
                    "categoryId": "",
                    "name": ""
                }
            ],
            "description": "",
            "identity": {
                "revision": 0,
                "updateId": ""
            },
            "kbArticleIds": [],
            "lastPublishedTimestamp": "",
            "supportUrl": "",
            "title": ""
        }
    },
    "vulnerability": {
        "cvssScore": "",
        "cvssV2": {
            "attackComplexity": "",
            "attackVector": "",
            "authentication": "",
            "availabilityImpact": "",
            "baseScore": "",
            "confidentialityImpact": "",
            "exploitabilityScore": "",
            "impactScore": "",
            "integrityImpact": "",
            "privilegesRequired": "",
            "scope": "",
            "userInteraction": ""
        },
        "cvssVersion": "",
        "cvssv3": {},
        "effectiveSeverity": "",
        "extraDetails": "",
        "fixAvailable": False,
        "longDescription": "",
        "packageIssue": [
            {
                "affectedCpeUri": "",
                "affectedPackage": "",
                "affectedVersion": {},
                "effectiveSeverity": "",
                "fileLocation": [
                    {
                        "filePath": "",
                        "layerDetails": {
                            "baseImages": [
                                {
                                    "layerCount": 0,
                                    "name": "",
                                    "repository": ""
                                }
                            ],
                            "command": "",
                            "diffId": "",
                            "index": 0
                        }
                    }
                ],
                "fixAvailable": False,
                "fixedCpeUri": "",
                "fixedPackage": "",
                "fixedVersion": {},
                "packageType": ""
            }
        ],
        "relatedUrls": [
            {
                "label": "",
                "url": ""
            }
        ],
        "severity": "",
        "shortDescription": "",
        "type": "",
        "vexAssessment": {
            "cve": "",
            "impacts": [],
            "justification": {
                "details": "",
                "justificationType": ""
            },
            "noteName": "",
            "relatedUris": [{}],
            "remediations": [
                {
                    "details": "",
                    "remediationType": "",
                    "remediationUri": {}
                }
            ],
            "state": "",
            "vulnerabilityId": ""
        }
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v1/:+parent/occurrences"

payload <- "{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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}}/v1/:+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    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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/v1/:+parent/occurrences') do |req|
  req.body = "{\n  \"attestation\": {\n    \"jwts\": [\n      {\n        \"compactJwt\": \"\"\n      }\n    ],\n    \"serializedPayload\": \"\",\n    \"signatures\": [\n      {\n        \"publicKeyId\": \"\",\n        \"signature\": \"\"\n      }\n    ]\n  },\n  \"build\": {\n    \"inTotoSlsaProvenanceV1\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"buildDefinition\": {\n          \"buildType\": \"\",\n          \"externalParameters\": {},\n          \"internalParameters\": {},\n          \"resolvedDependencies\": [\n            {\n              \"annotations\": {},\n              \"content\": \"\",\n              \"digest\": {},\n              \"downloadLocation\": \"\",\n              \"mediaType\": \"\",\n              \"name\": \"\",\n              \"uri\": \"\"\n            }\n          ]\n        },\n        \"runDetails\": {\n          \"builder\": {\n            \"builderDependencies\": [\n              {}\n            ],\n            \"id\": \"\",\n            \"version\": {}\n          },\n          \"byproducts\": [\n            {}\n          ],\n          \"metadata\": {\n            \"finishedOn\": \"\",\n            \"invocationId\": \"\",\n            \"startedOn\": \"\"\n          }\n        }\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {\n          \"digest\": {},\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"intotoProvenance\": {\n      \"builderConfig\": {\n        \"id\": \"\"\n      },\n      \"materials\": [],\n      \"metadata\": {\n        \"buildFinishedOn\": \"\",\n        \"buildInvocationId\": \"\",\n        \"buildStartedOn\": \"\",\n        \"completeness\": {\n          \"arguments\": false,\n          \"environment\": false,\n          \"materials\": false\n        },\n        \"reproducible\": false\n      },\n      \"recipe\": {\n        \"arguments\": [\n          {}\n        ],\n        \"definedInMaterial\": \"\",\n        \"entryPoint\": \"\",\n        \"environment\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    },\n    \"intotoStatement\": {\n      \"_type\": \"\",\n      \"predicateType\": \"\",\n      \"provenance\": {},\n      \"slsaProvenance\": {\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"arguments\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        },\n        \"recipe\": {\n          \"arguments\": {},\n          \"definedInMaterial\": \"\",\n          \"entryPoint\": \"\",\n          \"environment\": {},\n          \"type\": \"\"\n        }\n      },\n      \"slsaProvenanceZeroTwo\": {\n        \"buildConfig\": {},\n        \"buildType\": \"\",\n        \"builder\": {\n          \"id\": \"\"\n        },\n        \"invocation\": {\n          \"parameters\": {},\n          \"configSource\": {\n            \"digest\": {},\n            \"entryPoint\": \"\",\n            \"uri\": \"\"\n          },\n          \"environment\": {}\n        },\n        \"materials\": [\n          {\n            \"digest\": {},\n            \"uri\": \"\"\n          }\n        ],\n        \"metadata\": {\n          \"buildFinishedOn\": \"\",\n          \"buildInvocationId\": \"\",\n          \"buildStartedOn\": \"\",\n          \"completeness\": {\n            \"parameters\": false,\n            \"environment\": false,\n            \"materials\": false\n          },\n          \"reproducible\": false\n        }\n      },\n      \"subject\": [\n        {}\n      ]\n    },\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  \"compliance\": {\n    \"nonComplianceReason\": \"\",\n    \"nonCompliantFiles\": [\n      {\n        \"displayCommand\": \"\",\n        \"path\": \"\",\n        \"reason\": \"\"\n      }\n    ],\n    \"version\": {\n      \"benchmarkDocument\": \"\",\n      \"cpeUri\": \"\",\n      \"version\": \"\"\n    }\n  },\n  \"createTime\": \"\",\n  \"deployment\": {\n    \"address\": \"\",\n    \"config\": \"\",\n    \"deployTime\": \"\",\n    \"platform\": \"\",\n    \"resourceUri\": [],\n    \"undeployTime\": \"\",\n    \"userEmail\": \"\"\n  },\n  \"discovery\": {\n    \"analysisCompleted\": {\n      \"analysisType\": []\n    },\n    \"analysisError\": [\n      {\n        \"code\": 0,\n        \"details\": [\n          {}\n        ],\n        \"message\": \"\"\n      }\n    ],\n    \"analysisStatus\": \"\",\n    \"analysisStatusError\": {},\n    \"archiveTime\": \"\",\n    \"continuousAnalysis\": \"\",\n    \"cpe\": \"\",\n    \"lastScanTime\": \"\",\n    \"sbomStatus\": {\n      \"error\": \"\",\n      \"sbomState\": \"\"\n    }\n  },\n  \"dsseAttestation\": {\n    \"envelope\": {\n      \"payload\": \"\",\n      \"payloadType\": \"\",\n      \"signatures\": [\n        {\n          \"keyid\": \"\",\n          \"sig\": \"\"\n        }\n      ]\n    },\n    \"statement\": {}\n  },\n  \"envelope\": {},\n  \"image\": {\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"noteName\": \"\",\n  \"package\": {\n    \"architecture\": \"\",\n    \"cpeUri\": \"\",\n    \"license\": {\n      \"comments\": \"\",\n      \"expression\": \"\"\n    },\n    \"location\": [\n      {\n        \"cpeUri\": \"\",\n        \"path\": \"\",\n        \"version\": {\n          \"epoch\": 0,\n          \"fullName\": \"\",\n          \"inclusive\": false,\n          \"kind\": \"\",\n          \"name\": \"\",\n          \"revision\": \"\"\n        }\n      }\n    ],\n    \"name\": \"\",\n    \"packageType\": \"\",\n    \"version\": {}\n  },\n  \"remediation\": \"\",\n  \"resourceUri\": \"\",\n  \"sbomReference\": {\n    \"payload\": {\n      \"_type\": \"\",\n      \"predicate\": {\n        \"digest\": {},\n        \"location\": \"\",\n        \"mimeType\": \"\",\n        \"referrerId\": \"\"\n      },\n      \"predicateType\": \"\",\n      \"subject\": [\n        {}\n      ]\n    },\n    \"payloadType\": \"\",\n    \"signatures\": [\n      {}\n    ]\n  },\n  \"updateTime\": \"\",\n  \"upgrade\": {\n    \"distribution\": {\n      \"classification\": \"\",\n      \"cpeUri\": \"\",\n      \"cve\": [],\n      \"severity\": \"\"\n    },\n    \"package\": \"\",\n    \"parsedVersion\": {},\n    \"windowsUpdate\": {\n      \"categories\": [\n        {\n          \"categoryId\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"description\": \"\",\n      \"identity\": {\n        \"revision\": 0,\n        \"updateId\": \"\"\n      },\n      \"kbArticleIds\": [],\n      \"lastPublishedTimestamp\": \"\",\n      \"supportUrl\": \"\",\n      \"title\": \"\"\n    }\n  },\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    \"cvssVersion\": \"\",\n    \"cvssv3\": {},\n    \"effectiveSeverity\": \"\",\n    \"extraDetails\": \"\",\n    \"fixAvailable\": false,\n    \"longDescription\": \"\",\n    \"packageIssue\": [\n      {\n        \"affectedCpeUri\": \"\",\n        \"affectedPackage\": \"\",\n        \"affectedVersion\": {},\n        \"effectiveSeverity\": \"\",\n        \"fileLocation\": [\n          {\n            \"filePath\": \"\",\n            \"layerDetails\": {\n              \"baseImages\": [\n                {\n                  \"layerCount\": 0,\n                  \"name\": \"\",\n                  \"repository\": \"\"\n                }\n              ],\n              \"command\": \"\",\n              \"diffId\": \"\",\n              \"index\": 0\n            }\n          }\n        ],\n        \"fixAvailable\": false,\n        \"fixedCpeUri\": \"\",\n        \"fixedPackage\": \"\",\n        \"fixedVersion\": {},\n        \"packageType\": \"\"\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      \"vulnerabilityId\": \"\"\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}}/v1/:+parent/occurrences";

    let payload = json!({
        "attestation": json!({
            "jwts": (json!({"compactJwt": ""})),
            "serializedPayload": "",
            "signatures": (
                json!({
                    "publicKeyId": "",
                    "signature": ""
                })
            )
        }),
        "build": json!({
            "inTotoSlsaProvenanceV1": json!({
                "_type": "",
                "predicate": json!({
                    "buildDefinition": json!({
                        "buildType": "",
                        "externalParameters": json!({}),
                        "internalParameters": json!({}),
                        "resolvedDependencies": (
                            json!({
                                "annotations": json!({}),
                                "content": "",
                                "digest": json!({}),
                                "downloadLocation": "",
                                "mediaType": "",
                                "name": "",
                                "uri": ""
                            })
                        )
                    }),
                    "runDetails": json!({
                        "builder": json!({
                            "builderDependencies": (json!({})),
                            "id": "",
                            "version": json!({})
                        }),
                        "byproducts": (json!({})),
                        "metadata": json!({
                            "finishedOn": "",
                            "invocationId": "",
                            "startedOn": ""
                        })
                    })
                }),
                "predicateType": "",
                "subject": (
                    json!({
                        "digest": json!({}),
                        "name": ""
                    })
                )
            }),
            "intotoProvenance": json!({
                "builderConfig": json!({"id": ""}),
                "materials": (),
                "metadata": json!({
                    "buildFinishedOn": "",
                    "buildInvocationId": "",
                    "buildStartedOn": "",
                    "completeness": json!({
                        "arguments": false,
                        "environment": false,
                        "materials": false
                    }),
                    "reproducible": false
                }),
                "recipe": json!({
                    "arguments": (json!({})),
                    "definedInMaterial": "",
                    "entryPoint": "",
                    "environment": (json!({})),
                    "type": ""
                })
            }),
            "intotoStatement": json!({
                "_type": "",
                "predicateType": "",
                "provenance": json!({}),
                "slsaProvenance": json!({
                    "builder": json!({"id": ""}),
                    "materials": (
                        json!({
                            "digest": json!({}),
                            "uri": ""
                        })
                    ),
                    "metadata": json!({
                        "buildFinishedOn": "",
                        "buildInvocationId": "",
                        "buildStartedOn": "",
                        "completeness": json!({
                            "arguments": false,
                            "environment": false,
                            "materials": false
                        }),
                        "reproducible": false
                    }),
                    "recipe": json!({
                        "arguments": json!({}),
                        "definedInMaterial": "",
                        "entryPoint": "",
                        "environment": json!({}),
                        "type": ""
                    })
                }),
                "slsaProvenanceZeroTwo": json!({
                    "buildConfig": json!({}),
                    "buildType": "",
                    "builder": json!({"id": ""}),
                    "invocation": json!({
                        "parameters": json!({}),
                        "configSource": json!({
                            "digest": json!({}),
                            "entryPoint": "",
                            "uri": ""
                        }),
                        "environment": json!({})
                    }),
                    "materials": (
                        json!({
                            "digest": json!({}),
                            "uri": ""
                        })
                    ),
                    "metadata": json!({
                        "buildFinishedOn": "",
                        "buildInvocationId": "",
                        "buildStartedOn": "",
                        "completeness": json!({
                            "parameters": false,
                            "environment": false,
                            "materials": false
                        }),
                        "reproducible": false
                    })
                }),
                "subject": (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": ""
        }),
        "compliance": json!({
            "nonComplianceReason": "",
            "nonCompliantFiles": (
                json!({
                    "displayCommand": "",
                    "path": "",
                    "reason": ""
                })
            ),
            "version": json!({
                "benchmarkDocument": "",
                "cpeUri": "",
                "version": ""
            })
        }),
        "createTime": "",
        "deployment": json!({
            "address": "",
            "config": "",
            "deployTime": "",
            "platform": "",
            "resourceUri": (),
            "undeployTime": "",
            "userEmail": ""
        }),
        "discovery": json!({
            "analysisCompleted": json!({"analysisType": ()}),
            "analysisError": (
                json!({
                    "code": 0,
                    "details": (json!({})),
                    "message": ""
                })
            ),
            "analysisStatus": "",
            "analysisStatusError": json!({}),
            "archiveTime": "",
            "continuousAnalysis": "",
            "cpe": "",
            "lastScanTime": "",
            "sbomStatus": json!({
                "error": "",
                "sbomState": ""
            })
        }),
        "dsseAttestation": json!({
            "envelope": json!({
                "payload": "",
                "payloadType": "",
                "signatures": (
                    json!({
                        "keyid": "",
                        "sig": ""
                    })
                )
            }),
            "statement": json!({})
        }),
        "envelope": json!({}),
        "image": json!({
            "baseResourceUrl": "",
            "distance": 0,
            "fingerprint": json!({
                "v1Name": "",
                "v2Blob": (),
                "v2Name": ""
            }),
            "layerInfo": (
                json!({
                    "arguments": "",
                    "directive": ""
                })
            )
        }),
        "kind": "",
        "name": "",
        "noteName": "",
        "package": json!({
            "architecture": "",
            "cpeUri": "",
            "license": json!({
                "comments": "",
                "expression": ""
            }),
            "location": (
                json!({
                    "cpeUri": "",
                    "path": "",
                    "version": json!({
                        "epoch": 0,
                        "fullName": "",
                        "inclusive": false,
                        "kind": "",
                        "name": "",
                        "revision": ""
                    })
                })
            ),
            "name": "",
            "packageType": "",
            "version": json!({})
        }),
        "remediation": "",
        "resourceUri": "",
        "sbomReference": json!({
            "payload": json!({
                "_type": "",
                "predicate": json!({
                    "digest": json!({}),
                    "location": "",
                    "mimeType": "",
                    "referrerId": ""
                }),
                "predicateType": "",
                "subject": (json!({}))
            }),
            "payloadType": "",
            "signatures": (json!({}))
        }),
        "updateTime": "",
        "upgrade": json!({
            "distribution": json!({
                "classification": "",
                "cpeUri": "",
                "cve": (),
                "severity": ""
            }),
            "package": "",
            "parsedVersion": json!({}),
            "windowsUpdate": json!({
                "categories": (
                    json!({
                        "categoryId": "",
                        "name": ""
                    })
                ),
                "description": "",
                "identity": json!({
                    "revision": 0,
                    "updateId": ""
                }),
                "kbArticleIds": (),
                "lastPublishedTimestamp": "",
                "supportUrl": "",
                "title": ""
            })
        }),
        "vulnerability": json!({
            "cvssScore": "",
            "cvssV2": json!({
                "attackComplexity": "",
                "attackVector": "",
                "authentication": "",
                "availabilityImpact": "",
                "baseScore": "",
                "confidentialityImpact": "",
                "exploitabilityScore": "",
                "impactScore": "",
                "integrityImpact": "",
                "privilegesRequired": "",
                "scope": "",
                "userInteraction": ""
            }),
            "cvssVersion": "",
            "cvssv3": json!({}),
            "effectiveSeverity": "",
            "extraDetails": "",
            "fixAvailable": false,
            "longDescription": "",
            "packageIssue": (
                json!({
                    "affectedCpeUri": "",
                    "affectedPackage": "",
                    "affectedVersion": json!({}),
                    "effectiveSeverity": "",
                    "fileLocation": (
                        json!({
                            "filePath": "",
                            "layerDetails": json!({
                                "baseImages": (
                                    json!({
                                        "layerCount": 0,
                                        "name": "",
                                        "repository": ""
                                    })
                                ),
                                "command": "",
                                "diffId": "",
                                "index": 0
                            })
                        })
                    ),
                    "fixAvailable": false,
                    "fixedCpeUri": "",
                    "fixedPackage": "",
                    "fixedVersion": json!({}),
                    "packageType": ""
                })
            ),
            "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": "",
                "vulnerabilityId": ""
            })
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/v1/:+parent/occurrences' \
  --header 'content-type: application/json' \
  --data '{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}'
echo '{
  "attestation": {
    "jwts": [
      {
        "compactJwt": ""
      }
    ],
    "serializedPayload": "",
    "signatures": [
      {
        "publicKeyId": "",
        "signature": ""
      }
    ]
  },
  "build": {
    "inTotoSlsaProvenanceV1": {
      "_type": "",
      "predicate": {
        "buildDefinition": {
          "buildType": "",
          "externalParameters": {},
          "internalParameters": {},
          "resolvedDependencies": [
            {
              "annotations": {},
              "content": "",
              "digest": {},
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            }
          ]
        },
        "runDetails": {
          "builder": {
            "builderDependencies": [
              {}
            ],
            "id": "",
            "version": {}
          },
          "byproducts": [
            {}
          ],
          "metadata": {
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          }
        }
      },
      "predicateType": "",
      "subject": [
        {
          "digest": {},
          "name": ""
        }
      ]
    },
    "intotoProvenance": {
      "builderConfig": {
        "id": ""
      },
      "materials": [],
      "metadata": {
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": {
          "arguments": false,
          "environment": false,
          "materials": false
        },
        "reproducible": false
      },
      "recipe": {
        "arguments": [
          {}
        ],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [
          {}
        ],
        "type": ""
      }
    },
    "intotoStatement": {
      "_type": "",
      "predicateType": "",
      "provenance": {},
      "slsaProvenance": {
        "builder": {
          "id": ""
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "arguments": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        },
        "recipe": {
          "arguments": {},
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": {},
          "type": ""
        }
      },
      "slsaProvenanceZeroTwo": {
        "buildConfig": {},
        "buildType": "",
        "builder": {
          "id": ""
        },
        "invocation": {
          "parameters": {},
          "configSource": {
            "digest": {},
            "entryPoint": "",
            "uri": ""
          },
          "environment": {}
        },
        "materials": [
          {
            "digest": {},
            "uri": ""
          }
        ],
        "metadata": {
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": {
            "parameters": false,
            "environment": false,
            "materials": false
          },
          "reproducible": false
        }
      },
      "subject": [
        {}
      ]
    },
    "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": ""
  },
  "compliance": {
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      {
        "displayCommand": "",
        "path": "",
        "reason": ""
      }
    ],
    "version": {
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    }
  },
  "createTime": "",
  "deployment": {
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  },
  "discovery": {
    "analysisCompleted": {
      "analysisType": []
    },
    "analysisError": [
      {
        "code": 0,
        "details": [
          {}
        ],
        "message": ""
      }
    ],
    "analysisStatus": "",
    "analysisStatusError": {},
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": {
      "error": "",
      "sbomState": ""
    }
  },
  "dsseAttestation": {
    "envelope": {
      "payload": "",
      "payloadType": "",
      "signatures": [
        {
          "keyid": "",
          "sig": ""
        }
      ]
    },
    "statement": {}
  },
  "envelope": {},
  "image": {
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": {
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    },
    "layerInfo": [
      {
        "arguments": "",
        "directive": ""
      }
    ]
  },
  "kind": "",
  "name": "",
  "noteName": "",
  "package": {
    "architecture": "",
    "cpeUri": "",
    "license": {
      "comments": "",
      "expression": ""
    },
    "location": [
      {
        "cpeUri": "",
        "path": "",
        "version": {
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        }
      }
    ],
    "name": "",
    "packageType": "",
    "version": {}
  },
  "remediation": "",
  "resourceUri": "",
  "sbomReference": {
    "payload": {
      "_type": "",
      "predicate": {
        "digest": {},
        "location": "",
        "mimeType": "",
        "referrerId": ""
      },
      "predicateType": "",
      "subject": [
        {}
      ]
    },
    "payloadType": "",
    "signatures": [
      {}
    ]
  },
  "updateTime": "",
  "upgrade": {
    "distribution": {
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    },
    "package": "",
    "parsedVersion": {},
    "windowsUpdate": {
      "categories": [
        {
          "categoryId": "",
          "name": ""
        }
      ],
      "description": "",
      "identity": {
        "revision": 0,
        "updateId": ""
      },
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    }
  },
  "vulnerability": {
    "cvssScore": "",
    "cvssV2": {
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    },
    "cvssVersion": "",
    "cvssv3": {},
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      {
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": {},
        "effectiveSeverity": "",
        "fileLocation": [
          {
            "filePath": "",
            "layerDetails": {
              "baseImages": [
                {
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                }
              ],
              "command": "",
              "diffId": "",
              "index": 0
            }
          }
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": {},
        "packageType": ""
      }
    ],
    "relatedUrls": [
      {
        "label": "",
        "url": ""
      }
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": {
      "cve": "",
      "impacts": [],
      "justification": {
        "details": "",
        "justificationType": ""
      },
      "noteName": "",
      "relatedUris": [
        {}
      ],
      "remediations": [
        {
          "details": "",
          "remediationType": "",
          "remediationUri": {}
        }
      ],
      "state": "",
      "vulnerabilityId": ""
    }
  }
}' |  \
  http POST '{{baseUrl}}/v1/:+parent/occurrences' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attestation": {\n    "jwts": [\n      {\n        "compactJwt": ""\n      }\n    ],\n    "serializedPayload": "",\n    "signatures": [\n      {\n        "publicKeyId": "",\n        "signature": ""\n      }\n    ]\n  },\n  "build": {\n    "inTotoSlsaProvenanceV1": {\n      "_type": "",\n      "predicate": {\n        "buildDefinition": {\n          "buildType": "",\n          "externalParameters": {},\n          "internalParameters": {},\n          "resolvedDependencies": [\n            {\n              "annotations": {},\n              "content": "",\n              "digest": {},\n              "downloadLocation": "",\n              "mediaType": "",\n              "name": "",\n              "uri": ""\n            }\n          ]\n        },\n        "runDetails": {\n          "builder": {\n            "builderDependencies": [\n              {}\n            ],\n            "id": "",\n            "version": {}\n          },\n          "byproducts": [\n            {}\n          ],\n          "metadata": {\n            "finishedOn": "",\n            "invocationId": "",\n            "startedOn": ""\n          }\n        }\n      },\n      "predicateType": "",\n      "subject": [\n        {\n          "digest": {},\n          "name": ""\n        }\n      ]\n    },\n    "intotoProvenance": {\n      "builderConfig": {\n        "id": ""\n      },\n      "materials": [],\n      "metadata": {\n        "buildFinishedOn": "",\n        "buildInvocationId": "",\n        "buildStartedOn": "",\n        "completeness": {\n          "arguments": false,\n          "environment": false,\n          "materials": false\n        },\n        "reproducible": false\n      },\n      "recipe": {\n        "arguments": [\n          {}\n        ],\n        "definedInMaterial": "",\n        "entryPoint": "",\n        "environment": [\n          {}\n        ],\n        "type": ""\n      }\n    },\n    "intotoStatement": {\n      "_type": "",\n      "predicateType": "",\n      "provenance": {},\n      "slsaProvenance": {\n        "builder": {\n          "id": ""\n        },\n        "materials": [\n          {\n            "digest": {},\n            "uri": ""\n          }\n        ],\n        "metadata": {\n          "buildFinishedOn": "",\n          "buildInvocationId": "",\n          "buildStartedOn": "",\n          "completeness": {\n            "arguments": false,\n            "environment": false,\n            "materials": false\n          },\n          "reproducible": false\n        },\n        "recipe": {\n          "arguments": {},\n          "definedInMaterial": "",\n          "entryPoint": "",\n          "environment": {},\n          "type": ""\n        }\n      },\n      "slsaProvenanceZeroTwo": {\n        "buildConfig": {},\n        "buildType": "",\n        "builder": {\n          "id": ""\n        },\n        "invocation": {\n          "parameters": {},\n          "configSource": {\n            "digest": {},\n            "entryPoint": "",\n            "uri": ""\n          },\n          "environment": {}\n        },\n        "materials": [\n          {\n            "digest": {},\n            "uri": ""\n          }\n        ],\n        "metadata": {\n          "buildFinishedOn": "",\n          "buildInvocationId": "",\n          "buildStartedOn": "",\n          "completeness": {\n            "parameters": false,\n            "environment": false,\n            "materials": false\n          },\n          "reproducible": false\n        }\n      },\n      "subject": [\n        {}\n      ]\n    },\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  "compliance": {\n    "nonComplianceReason": "",\n    "nonCompliantFiles": [\n      {\n        "displayCommand": "",\n        "path": "",\n        "reason": ""\n      }\n    ],\n    "version": {\n      "benchmarkDocument": "",\n      "cpeUri": "",\n      "version": ""\n    }\n  },\n  "createTime": "",\n  "deployment": {\n    "address": "",\n    "config": "",\n    "deployTime": "",\n    "platform": "",\n    "resourceUri": [],\n    "undeployTime": "",\n    "userEmail": ""\n  },\n  "discovery": {\n    "analysisCompleted": {\n      "analysisType": []\n    },\n    "analysisError": [\n      {\n        "code": 0,\n        "details": [\n          {}\n        ],\n        "message": ""\n      }\n    ],\n    "analysisStatus": "",\n    "analysisStatusError": {},\n    "archiveTime": "",\n    "continuousAnalysis": "",\n    "cpe": "",\n    "lastScanTime": "",\n    "sbomStatus": {\n      "error": "",\n      "sbomState": ""\n    }\n  },\n  "dsseAttestation": {\n    "envelope": {\n      "payload": "",\n      "payloadType": "",\n      "signatures": [\n        {\n          "keyid": "",\n          "sig": ""\n        }\n      ]\n    },\n    "statement": {}\n  },\n  "envelope": {},\n  "image": {\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  "kind": "",\n  "name": "",\n  "noteName": "",\n  "package": {\n    "architecture": "",\n    "cpeUri": "",\n    "license": {\n      "comments": "",\n      "expression": ""\n    },\n    "location": [\n      {\n        "cpeUri": "",\n        "path": "",\n        "version": {\n          "epoch": 0,\n          "fullName": "",\n          "inclusive": false,\n          "kind": "",\n          "name": "",\n          "revision": ""\n        }\n      }\n    ],\n    "name": "",\n    "packageType": "",\n    "version": {}\n  },\n  "remediation": "",\n  "resourceUri": "",\n  "sbomReference": {\n    "payload": {\n      "_type": "",\n      "predicate": {\n        "digest": {},\n        "location": "",\n        "mimeType": "",\n        "referrerId": ""\n      },\n      "predicateType": "",\n      "subject": [\n        {}\n      ]\n    },\n    "payloadType": "",\n    "signatures": [\n      {}\n    ]\n  },\n  "updateTime": "",\n  "upgrade": {\n    "distribution": {\n      "classification": "",\n      "cpeUri": "",\n      "cve": [],\n      "severity": ""\n    },\n    "package": "",\n    "parsedVersion": {},\n    "windowsUpdate": {\n      "categories": [\n        {\n          "categoryId": "",\n          "name": ""\n        }\n      ],\n      "description": "",\n      "identity": {\n        "revision": 0,\n        "updateId": ""\n      },\n      "kbArticleIds": [],\n      "lastPublishedTimestamp": "",\n      "supportUrl": "",\n      "title": ""\n    }\n  },\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    "cvssVersion": "",\n    "cvssv3": {},\n    "effectiveSeverity": "",\n    "extraDetails": "",\n    "fixAvailable": false,\n    "longDescription": "",\n    "packageIssue": [\n      {\n        "affectedCpeUri": "",\n        "affectedPackage": "",\n        "affectedVersion": {},\n        "effectiveSeverity": "",\n        "fileLocation": [\n          {\n            "filePath": "",\n            "layerDetails": {\n              "baseImages": [\n                {\n                  "layerCount": 0,\n                  "name": "",\n                  "repository": ""\n                }\n              ],\n              "command": "",\n              "diffId": "",\n              "index": 0\n            }\n          }\n        ],\n        "fixAvailable": false,\n        "fixedCpeUri": "",\n        "fixedPackage": "",\n        "fixedVersion": {},\n        "packageType": ""\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      "vulnerabilityId": ""\n    }\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/v1/:+parent/occurrences'
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attestation": [
    "jwts": [["compactJwt": ""]],
    "serializedPayload": "",
    "signatures": [
      [
        "publicKeyId": "",
        "signature": ""
      ]
    ]
  ],
  "build": [
    "inTotoSlsaProvenanceV1": [
      "_type": "",
      "predicate": [
        "buildDefinition": [
          "buildType": "",
          "externalParameters": [],
          "internalParameters": [],
          "resolvedDependencies": [
            [
              "annotations": [],
              "content": "",
              "digest": [],
              "downloadLocation": "",
              "mediaType": "",
              "name": "",
              "uri": ""
            ]
          ]
        ],
        "runDetails": [
          "builder": [
            "builderDependencies": [[]],
            "id": "",
            "version": []
          ],
          "byproducts": [[]],
          "metadata": [
            "finishedOn": "",
            "invocationId": "",
            "startedOn": ""
          ]
        ]
      ],
      "predicateType": "",
      "subject": [
        [
          "digest": [],
          "name": ""
        ]
      ]
    ],
    "intotoProvenance": [
      "builderConfig": ["id": ""],
      "materials": [],
      "metadata": [
        "buildFinishedOn": "",
        "buildInvocationId": "",
        "buildStartedOn": "",
        "completeness": [
          "arguments": false,
          "environment": false,
          "materials": false
        ],
        "reproducible": false
      ],
      "recipe": [
        "arguments": [[]],
        "definedInMaterial": "",
        "entryPoint": "",
        "environment": [[]],
        "type": ""
      ]
    ],
    "intotoStatement": [
      "_type": "",
      "predicateType": "",
      "provenance": [],
      "slsaProvenance": [
        "builder": ["id": ""],
        "materials": [
          [
            "digest": [],
            "uri": ""
          ]
        ],
        "metadata": [
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": [
            "arguments": false,
            "environment": false,
            "materials": false
          ],
          "reproducible": false
        ],
        "recipe": [
          "arguments": [],
          "definedInMaterial": "",
          "entryPoint": "",
          "environment": [],
          "type": ""
        ]
      ],
      "slsaProvenanceZeroTwo": [
        "buildConfig": [],
        "buildType": "",
        "builder": ["id": ""],
        "invocation": [
          "parameters": [],
          "configSource": [
            "digest": [],
            "entryPoint": "",
            "uri": ""
          ],
          "environment": []
        ],
        "materials": [
          [
            "digest": [],
            "uri": ""
          ]
        ],
        "metadata": [
          "buildFinishedOn": "",
          "buildInvocationId": "",
          "buildStartedOn": "",
          "completeness": [
            "parameters": false,
            "environment": false,
            "materials": false
          ],
          "reproducible": false
        ]
      ],
      "subject": [[]]
    ],
    "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": ""
  ],
  "compliance": [
    "nonComplianceReason": "",
    "nonCompliantFiles": [
      [
        "displayCommand": "",
        "path": "",
        "reason": ""
      ]
    ],
    "version": [
      "benchmarkDocument": "",
      "cpeUri": "",
      "version": ""
    ]
  ],
  "createTime": "",
  "deployment": [
    "address": "",
    "config": "",
    "deployTime": "",
    "platform": "",
    "resourceUri": [],
    "undeployTime": "",
    "userEmail": ""
  ],
  "discovery": [
    "analysisCompleted": ["analysisType": []],
    "analysisError": [
      [
        "code": 0,
        "details": [[]],
        "message": ""
      ]
    ],
    "analysisStatus": "",
    "analysisStatusError": [],
    "archiveTime": "",
    "continuousAnalysis": "",
    "cpe": "",
    "lastScanTime": "",
    "sbomStatus": [
      "error": "",
      "sbomState": ""
    ]
  ],
  "dsseAttestation": [
    "envelope": [
      "payload": "",
      "payloadType": "",
      "signatures": [
        [
          "keyid": "",
          "sig": ""
        ]
      ]
    ],
    "statement": []
  ],
  "envelope": [],
  "image": [
    "baseResourceUrl": "",
    "distance": 0,
    "fingerprint": [
      "v1Name": "",
      "v2Blob": [],
      "v2Name": ""
    ],
    "layerInfo": [
      [
        "arguments": "",
        "directive": ""
      ]
    ]
  ],
  "kind": "",
  "name": "",
  "noteName": "",
  "package": [
    "architecture": "",
    "cpeUri": "",
    "license": [
      "comments": "",
      "expression": ""
    ],
    "location": [
      [
        "cpeUri": "",
        "path": "",
        "version": [
          "epoch": 0,
          "fullName": "",
          "inclusive": false,
          "kind": "",
          "name": "",
          "revision": ""
        ]
      ]
    ],
    "name": "",
    "packageType": "",
    "version": []
  ],
  "remediation": "",
  "resourceUri": "",
  "sbomReference": [
    "payload": [
      "_type": "",
      "predicate": [
        "digest": [],
        "location": "",
        "mimeType": "",
        "referrerId": ""
      ],
      "predicateType": "",
      "subject": [[]]
    ],
    "payloadType": "",
    "signatures": [[]]
  ],
  "updateTime": "",
  "upgrade": [
    "distribution": [
      "classification": "",
      "cpeUri": "",
      "cve": [],
      "severity": ""
    ],
    "package": "",
    "parsedVersion": [],
    "windowsUpdate": [
      "categories": [
        [
          "categoryId": "",
          "name": ""
        ]
      ],
      "description": "",
      "identity": [
        "revision": 0,
        "updateId": ""
      ],
      "kbArticleIds": [],
      "lastPublishedTimestamp": "",
      "supportUrl": "",
      "title": ""
    ]
  ],
  "vulnerability": [
    "cvssScore": "",
    "cvssV2": [
      "attackComplexity": "",
      "attackVector": "",
      "authentication": "",
      "availabilityImpact": "",
      "baseScore": "",
      "confidentialityImpact": "",
      "exploitabilityScore": "",
      "impactScore": "",
      "integrityImpact": "",
      "privilegesRequired": "",
      "scope": "",
      "userInteraction": ""
    ],
    "cvssVersion": "",
    "cvssv3": [],
    "effectiveSeverity": "",
    "extraDetails": "",
    "fixAvailable": false,
    "longDescription": "",
    "packageIssue": [
      [
        "affectedCpeUri": "",
        "affectedPackage": "",
        "affectedVersion": [],
        "effectiveSeverity": "",
        "fileLocation": [
          [
            "filePath": "",
            "layerDetails": [
              "baseImages": [
                [
                  "layerCount": 0,
                  "name": "",
                  "repository": ""
                ]
              ],
              "command": "",
              "diffId": "",
              "index": 0
            ]
          ]
        ],
        "fixAvailable": false,
        "fixedCpeUri": "",
        "fixedPackage": "",
        "fixedVersion": [],
        "packageType": ""
      ]
    ],
    "relatedUrls": [
      [
        "label": "",
        "url": ""
      ]
    ],
    "severity": "",
    "shortDescription": "",
    "type": "",
    "vexAssessment": [
      "cve": "",
      "impacts": [],
      "justification": [
        "details": "",
        "justificationType": ""
      ],
      "noteName": "",
      "relatedUris": [[]],
      "remediations": [
        [
          "details": "",
          "remediationType": "",
          "remediationUri": []
        ]
      ],
      "state": "",
      "vulnerabilityId": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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()
GET containeranalysis.projects.locations.occurrences.getNotes
{{baseUrl}}/v1/:+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}}/v1/:+name/notes");

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+name/notes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:+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/v1/:+name/notes HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+name/notes" in

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/v1/:+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/v1/:+name/notes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+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}}/v1/:+name/notes'
http GET '{{baseUrl}}/v1/:+name/notes'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+name/notes'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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.locations.occurrences.getVulnerabilitySummary
{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences:vulnerabilitySummary");

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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/v1/:+parent/occurrences:vulnerabilitySummary HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+parent/occurrences:vulnerabilitySummary" in

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1/:+parent/occurrences:vulnerabilitySummary"

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/v1/:+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/v1/:+parent/occurrences:vulnerabilitySummary') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences:vulnerabilitySummary'
http GET '{{baseUrl}}/v1/:+parent/occurrences:vulnerabilitySummary'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+parent/occurrences:vulnerabilitySummary'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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.locations.occurrences.list
{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences");

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

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

url = "{{baseUrl}}/v1/:+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}}/v1/:+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}}/v1/:+parent/occurrences");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v1/:+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/v1/:+parent/occurrences HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v1/:+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/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+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}}/v1/:+parent/occurrences" in

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/v1/:+parent/occurrences"

response = requests.get(url)

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

url <- "{{baseUrl}}/v1/:+parent/occurrences"

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

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

url = URI("{{baseUrl}}/v1/:+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/v1/:+parent/occurrences') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v1/:+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}}/v1/:+parent/occurrences'
http GET '{{baseUrl}}/v1/:+parent/occurrences'
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/v1/:+parent/occurrences'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v1/:+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()
POST containeranalysis.projects.locations.resources.exportSBOM
{{baseUrl}}/v1/:+name:exportSBOM
QUERY PARAMS

name
BODY json

{
  "cloudStorageLocation": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

(client/post "{{baseUrl}}/v1/:+name:exportSBOM" {:content-type :json
                                                                 :form-params {:cloudStorageLocation {}}})
require "http/client"

url = "{{baseUrl}}/v1/:+name:exportSBOM"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"cloudStorageLocation\": {}\n}"

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

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

func main() {

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

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

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

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

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

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

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

}
POST /baseUrl/v1/:+name:exportSBOM HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 32

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

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

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+name:exportSBOM',
  headers: {'content-type': 'application/json'},
  data: {cloudStorageLocation: {}}
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v1/:+name:exportSBOM',
  headers: {'content-type': 'application/json'},
  data: {cloudStorageLocation: {}}
};

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

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

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

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

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

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

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

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

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

curl_close($curl);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

encode <- "json"

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

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

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

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  \"cloudStorageLocation\": {}\n}"

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

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

response = conn.post('/baseUrl/v1/:+name:exportSBOM') do |req|
  req.body = "{\n  \"cloudStorageLocation\": {}\n}"
end

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

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

    let payload = json!({"cloudStorageLocation": 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}}/v1/:+name:exportSBOM' \
  --header 'content-type: application/json' \
  --data '{
  "cloudStorageLocation": {}
}'
echo '{
  "cloudStorageLocation": {}
}' |  \
  http POST '{{baseUrl}}/v1/:+name:exportSBOM' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "cloudStorageLocation": {}\n}' \
  --output-document \
  - '{{baseUrl}}/v1/:+name:exportSBOM'
import Foundation

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

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

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