audit
Create audit populations
Requires scopes: admin:workspace
POST
/
api
/
audit
/
populations
Create audit populations
curl --request POST \
--url https://evalgate.com/api/audit/populations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"engagementId": 123,
"environment": "dev",
"notes": "<string>",
"independentCount": 123,
"deploymentRecords": [
{
"recordId": "<string>",
"environment": "dev",
"artifactId": 123,
"occurredAt": "<string>",
"recordType": "<string>",
"artifactVersionId": 123
}
],
"sourceLedgerIdentities": [
{
"recordType": "<string>",
"recordId": "<string>"
}
]
}
'import requests
url = "https://evalgate.com/api/audit/populations"
payload = {
"engagementId": 123,
"environment": "dev",
"notes": "<string>",
"independentCount": 123,
"deploymentRecords": [
{
"recordId": "<string>",
"environment": "dev",
"artifactId": 123,
"occurredAt": "<string>",
"recordType": "<string>",
"artifactVersionId": 123
}
],
"sourceLedgerIdentities": [
{
"recordType": "<string>",
"recordId": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
engagementId: 123,
environment: 'dev',
notes: '<string>',
independentCount: 123,
deploymentRecords: [
{
recordId: '<string>',
environment: 'dev',
artifactId: 123,
occurredAt: '<string>',
recordType: '<string>',
artifactVersionId: 123
}
],
sourceLedgerIdentities: [{recordType: '<string>', recordId: '<string>'}]
})
};
fetch('https://evalgate.com/api/audit/populations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://evalgate.com/api/audit/populations",
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([
'engagementId' => 123,
'environment' => 'dev',
'notes' => '<string>',
'independentCount' => 123,
'deploymentRecords' => [
[
'recordId' => '<string>',
'environment' => 'dev',
'artifactId' => 123,
'occurredAt' => '<string>',
'recordType' => '<string>',
'artifactVersionId' => 123
]
],
'sourceLedgerIdentities' => [
[
'recordType' => '<string>',
'recordId' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://evalgate.com/api/audit/populations"
payload := strings.NewReader("{\n \"engagementId\": 123,\n \"environment\": \"dev\",\n \"notes\": \"<string>\",\n \"independentCount\": 123,\n \"deploymentRecords\": [\n {\n \"recordId\": \"<string>\",\n \"environment\": \"dev\",\n \"artifactId\": 123,\n \"occurredAt\": \"<string>\",\n \"recordType\": \"<string>\",\n \"artifactVersionId\": 123\n }\n ],\n \"sourceLedgerIdentities\": [\n {\n \"recordType\": \"<string>\",\n \"recordId\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://evalgate.com/api/audit/populations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"engagementId\": 123,\n \"environment\": \"dev\",\n \"notes\": \"<string>\",\n \"independentCount\": 123,\n \"deploymentRecords\": [\n {\n \"recordId\": \"<string>\",\n \"environment\": \"dev\",\n \"artifactId\": 123,\n \"occurredAt\": \"<string>\",\n \"recordType\": \"<string>\",\n \"artifactVersionId\": 123\n }\n ],\n \"sourceLedgerIdentities\": [\n {\n \"recordType\": \"<string>\",\n \"recordId\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/audit/populations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"engagementId\": 123,\n \"environment\": \"dev\",\n \"notes\": \"<string>\",\n \"independentCount\": 123,\n \"deploymentRecords\": [\n {\n \"recordId\": \"<string>\",\n \"environment\": \"dev\",\n \"artifactId\": 123,\n \"occurredAt\": \"<string>\",\n \"recordType\": \"<string>\",\n \"artifactVersionId\": 123\n }\n ],\n \"sourceLedgerIdentities\": [\n {\n \"recordType\": \"<string>\",\n \"recordId\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"population": {
"id": 123,
"engagementId": 123,
"origin": "<string>",
"sourceKind": "<string>",
"exportTime": "<string>",
"independentCount": 123,
"contentHash": "<string>",
"notes": "<string>",
"itemCount": 123,
"unmatchedCount": 123,
"createdAt": "<string>"
},
"items": [
{
"id": 123,
"populationId": 123,
"recordType": "<string>",
"recordId": "<string>",
"recordOccurredAt": "<string>",
"reconciliationState": "unresolved",
"reconciliationReason": "<string>",
"metadata": {},
"hasApproval": true,
"approvalStatus": "approved_at_occurrence"
}
]
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}Authorizations
Organization-scoped EvalGate API key. Discover the supported agent scopes at /.well-known/oauth-protected-resource. Per-operation grants are listed in x-evalgate-required-scopes; OpenAPI bearer security requirement arrays remain empty as required for non-OAuth schemes.
Body
application/json
⌘I
Create audit populations
curl --request POST \
--url https://evalgate.com/api/audit/populations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"engagementId": 123,
"environment": "dev",
"notes": "<string>",
"independentCount": 123,
"deploymentRecords": [
{
"recordId": "<string>",
"environment": "dev",
"artifactId": 123,
"occurredAt": "<string>",
"recordType": "<string>",
"artifactVersionId": 123
}
],
"sourceLedgerIdentities": [
{
"recordType": "<string>",
"recordId": "<string>"
}
]
}
'import requests
url = "https://evalgate.com/api/audit/populations"
payload = {
"engagementId": 123,
"environment": "dev",
"notes": "<string>",
"independentCount": 123,
"deploymentRecords": [
{
"recordId": "<string>",
"environment": "dev",
"artifactId": 123,
"occurredAt": "<string>",
"recordType": "<string>",
"artifactVersionId": 123
}
],
"sourceLedgerIdentities": [
{
"recordType": "<string>",
"recordId": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
engagementId: 123,
environment: 'dev',
notes: '<string>',
independentCount: 123,
deploymentRecords: [
{
recordId: '<string>',
environment: 'dev',
artifactId: 123,
occurredAt: '<string>',
recordType: '<string>',
artifactVersionId: 123
}
],
sourceLedgerIdentities: [{recordType: '<string>', recordId: '<string>'}]
})
};
fetch('https://evalgate.com/api/audit/populations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://evalgate.com/api/audit/populations",
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([
'engagementId' => 123,
'environment' => 'dev',
'notes' => '<string>',
'independentCount' => 123,
'deploymentRecords' => [
[
'recordId' => '<string>',
'environment' => 'dev',
'artifactId' => 123,
'occurredAt' => '<string>',
'recordType' => '<string>',
'artifactVersionId' => 123
]
],
'sourceLedgerIdentities' => [
[
'recordType' => '<string>',
'recordId' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://evalgate.com/api/audit/populations"
payload := strings.NewReader("{\n \"engagementId\": 123,\n \"environment\": \"dev\",\n \"notes\": \"<string>\",\n \"independentCount\": 123,\n \"deploymentRecords\": [\n {\n \"recordId\": \"<string>\",\n \"environment\": \"dev\",\n \"artifactId\": 123,\n \"occurredAt\": \"<string>\",\n \"recordType\": \"<string>\",\n \"artifactVersionId\": 123\n }\n ],\n \"sourceLedgerIdentities\": [\n {\n \"recordType\": \"<string>\",\n \"recordId\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://evalgate.com/api/audit/populations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"engagementId\": 123,\n \"environment\": \"dev\",\n \"notes\": \"<string>\",\n \"independentCount\": 123,\n \"deploymentRecords\": [\n {\n \"recordId\": \"<string>\",\n \"environment\": \"dev\",\n \"artifactId\": 123,\n \"occurredAt\": \"<string>\",\n \"recordType\": \"<string>\",\n \"artifactVersionId\": 123\n }\n ],\n \"sourceLedgerIdentities\": [\n {\n \"recordType\": \"<string>\",\n \"recordId\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/audit/populations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"engagementId\": 123,\n \"environment\": \"dev\",\n \"notes\": \"<string>\",\n \"independentCount\": 123,\n \"deploymentRecords\": [\n {\n \"recordId\": \"<string>\",\n \"environment\": \"dev\",\n \"artifactId\": 123,\n \"occurredAt\": \"<string>\",\n \"recordType\": \"<string>\",\n \"artifactVersionId\": 123\n }\n ],\n \"sourceLedgerIdentities\": [\n {\n \"recordType\": \"<string>\",\n \"recordId\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"population": {
"id": 123,
"engagementId": 123,
"origin": "<string>",
"sourceKind": "<string>",
"exportTime": "<string>",
"independentCount": 123,
"contentHash": "<string>",
"notes": "<string>",
"itemCount": 123,
"unmatchedCount": 123,
"createdAt": "<string>"
},
"items": [
{
"id": 123,
"populationId": 123,
"recordType": "<string>",
"recordId": "<string>",
"recordOccurredAt": "<string>",
"reconciliationState": "unresolved",
"reconciliationReason": "<string>",
"metadata": {},
"hasApproval": true,
"approvalStatus": "approved_at_occurrence"
}
]
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}