record profile evidence
curl --request PUT \
--url https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence \
--header 'Content-Type: application/json' \
--data '
{
"version": 1,
"baselines": [
{
"case_identity": "<string>",
"cpu_millicores": 2,
"dataset_identity": "<string>",
"execution_nanos": 2,
"memory_bytes": 2,
"name": "<string>",
"profiling": true,
"image": "<string>",
"task_name": "<string>",
"version": "<string>"
}
],
"cache_policy": "<string>",
"case_identity": "<string>",
"checks": [
{
"name": "<string>",
"passed": true,
"actual": "<string>",
"expected": "<string>"
}
],
"dataset_identity": "<string>",
"labels": {},
"task_identities": {}
}
'import requests
url = "https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence"
payload = {
"version": 1,
"baselines": [
{
"case_identity": "<string>",
"cpu_millicores": 2,
"dataset_identity": "<string>",
"execution_nanos": 2,
"memory_bytes": 2,
"name": "<string>",
"profiling": True,
"image": "<string>",
"task_name": "<string>",
"version": "<string>"
}
],
"cache_policy": "<string>",
"case_identity": "<string>",
"checks": [
{
"name": "<string>",
"passed": True,
"actual": "<string>",
"expected": "<string>"
}
],
"dataset_identity": "<string>",
"labels": {},
"task_identities": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: 1,
baselines: [
{
case_identity: '<string>',
cpu_millicores: 2,
dataset_identity: '<string>',
execution_nanos: 2,
memory_bytes: 2,
name: '<string>',
profiling: true,
image: '<string>',
task_name: '<string>',
version: '<string>'
}
],
cache_policy: '<string>',
case_identity: '<string>',
checks: [{name: '<string>', passed: true, actual: '<string>', expected: '<string>'}],
dataset_identity: '<string>',
labels: {},
task_identities: {}
})
};
fetch('https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence', 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://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'version' => 1,
'baselines' => [
[
'case_identity' => '<string>',
'cpu_millicores' => 2,
'dataset_identity' => '<string>',
'execution_nanos' => 2,
'memory_bytes' => 2,
'name' => '<string>',
'profiling' => true,
'image' => '<string>',
'task_name' => '<string>',
'version' => '<string>'
]
],
'cache_policy' => '<string>',
'case_identity' => '<string>',
'checks' => [
[
'name' => '<string>',
'passed' => true,
'actual' => '<string>',
'expected' => '<string>'
]
],
'dataset_identity' => '<string>',
'labels' => [
],
'task_identities' => [
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence"
payload := strings.NewReader("{\n \"version\": 1,\n \"baselines\": [\n {\n \"case_identity\": \"<string>\",\n \"cpu_millicores\": 2,\n \"dataset_identity\": \"<string>\",\n \"execution_nanos\": 2,\n \"memory_bytes\": 2,\n \"name\": \"<string>\",\n \"profiling\": true,\n \"image\": \"<string>\",\n \"task_name\": \"<string>\",\n \"version\": \"<string>\"\n }\n ],\n \"cache_policy\": \"<string>\",\n \"case_identity\": \"<string>\",\n \"checks\": [\n {\n \"name\": \"<string>\",\n \"passed\": true,\n \"actual\": \"<string>\",\n \"expected\": \"<string>\"\n }\n ],\n \"dataset_identity\": \"<string>\",\n \"labels\": {},\n \"task_identities\": {}\n}")
req, _ := http.NewRequest("PUT", 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(string(body))
}HttpResponse<String> response = Unirest.put("https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence")
.header("Content-Type", "application/json")
.body("{\n \"version\": 1,\n \"baselines\": [\n {\n \"case_identity\": \"<string>\",\n \"cpu_millicores\": 2,\n \"dataset_identity\": \"<string>\",\n \"execution_nanos\": 2,\n \"memory_bytes\": 2,\n \"name\": \"<string>\",\n \"profiling\": true,\n \"image\": \"<string>\",\n \"task_name\": \"<string>\",\n \"version\": \"<string>\"\n }\n ],\n \"cache_policy\": \"<string>\",\n \"case_identity\": \"<string>\",\n \"checks\": [\n {\n \"name\": \"<string>\",\n \"passed\": true,\n \"actual\": \"<string>\",\n \"expected\": \"<string>\"\n }\n ],\n \"dataset_identity\": \"<string>\",\n \"labels\": {},\n \"task_identities\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": 1,\n \"baselines\": [\n {\n \"case_identity\": \"<string>\",\n \"cpu_millicores\": 2,\n \"dataset_identity\": \"<string>\",\n \"execution_nanos\": 2,\n \"memory_bytes\": 2,\n \"name\": \"<string>\",\n \"profiling\": true,\n \"image\": \"<string>\",\n \"task_name\": \"<string>\",\n \"version\": \"<string>\"\n }\n ],\n \"cache_policy\": \"<string>\",\n \"case_identity\": \"<string>\",\n \"checks\": [\n {\n \"name\": \"<string>\",\n \"passed\": true,\n \"actual\": \"<string>\",\n \"expected\": \"<string>\"\n }\n ],\n \"dataset_identity\": \"<string>\",\n \"labels\": {},\n \"task_identities\": {}\n}"
response = http.request(request)
puts response.read_body{
"identity_sha256": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "Check the request fields"
}
}Record profile evidence
Record profile evidence using the PUT endpoint.
record profile evidence
curl --request PUT \
--url https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence \
--header 'Content-Type: application/json' \
--data '
{
"version": 1,
"baselines": [
{
"case_identity": "<string>",
"cpu_millicores": 2,
"dataset_identity": "<string>",
"execution_nanos": 2,
"memory_bytes": 2,
"name": "<string>",
"profiling": true,
"image": "<string>",
"task_name": "<string>",
"version": "<string>"
}
],
"cache_policy": "<string>",
"case_identity": "<string>",
"checks": [
{
"name": "<string>",
"passed": true,
"actual": "<string>",
"expected": "<string>"
}
],
"dataset_identity": "<string>",
"labels": {},
"task_identities": {}
}
'import requests
url = "https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence"
payload = {
"version": 1,
"baselines": [
{
"case_identity": "<string>",
"cpu_millicores": 2,
"dataset_identity": "<string>",
"execution_nanos": 2,
"memory_bytes": 2,
"name": "<string>",
"profiling": True,
"image": "<string>",
"task_name": "<string>",
"version": "<string>"
}
],
"cache_policy": "<string>",
"case_identity": "<string>",
"checks": [
{
"name": "<string>",
"passed": True,
"actual": "<string>",
"expected": "<string>"
}
],
"dataset_identity": "<string>",
"labels": {},
"task_identities": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
version: 1,
baselines: [
{
case_identity: '<string>',
cpu_millicores: 2,
dataset_identity: '<string>',
execution_nanos: 2,
memory_bytes: 2,
name: '<string>',
profiling: true,
image: '<string>',
task_name: '<string>',
version: '<string>'
}
],
cache_policy: '<string>',
case_identity: '<string>',
checks: [{name: '<string>', passed: true, actual: '<string>', expected: '<string>'}],
dataset_identity: '<string>',
labels: {},
task_identities: {}
})
};
fetch('https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence', 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://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'version' => 1,
'baselines' => [
[
'case_identity' => '<string>',
'cpu_millicores' => 2,
'dataset_identity' => '<string>',
'execution_nanos' => 2,
'memory_bytes' => 2,
'name' => '<string>',
'profiling' => true,
'image' => '<string>',
'task_name' => '<string>',
'version' => '<string>'
]
],
'cache_policy' => '<string>',
'case_identity' => '<string>',
'checks' => [
[
'name' => '<string>',
'passed' => true,
'actual' => '<string>',
'expected' => '<string>'
]
],
'dataset_identity' => '<string>',
'labels' => [
],
'task_identities' => [
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence"
payload := strings.NewReader("{\n \"version\": 1,\n \"baselines\": [\n {\n \"case_identity\": \"<string>\",\n \"cpu_millicores\": 2,\n \"dataset_identity\": \"<string>\",\n \"execution_nanos\": 2,\n \"memory_bytes\": 2,\n \"name\": \"<string>\",\n \"profiling\": true,\n \"image\": \"<string>\",\n \"task_name\": \"<string>\",\n \"version\": \"<string>\"\n }\n ],\n \"cache_policy\": \"<string>\",\n \"case_identity\": \"<string>\",\n \"checks\": [\n {\n \"name\": \"<string>\",\n \"passed\": true,\n \"actual\": \"<string>\",\n \"expected\": \"<string>\"\n }\n ],\n \"dataset_identity\": \"<string>\",\n \"labels\": {},\n \"task_identities\": {}\n}")
req, _ := http.NewRequest("PUT", 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(string(body))
}HttpResponse<String> response = Unirest.put("https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence")
.header("Content-Type", "application/json")
.body("{\n \"version\": 1,\n \"baselines\": [\n {\n \"case_identity\": \"<string>\",\n \"cpu_millicores\": 2,\n \"dataset_identity\": \"<string>\",\n \"execution_nanos\": 2,\n \"memory_bytes\": 2,\n \"name\": \"<string>\",\n \"profiling\": true,\n \"image\": \"<string>\",\n \"task_name\": \"<string>\",\n \"version\": \"<string>\"\n }\n ],\n \"cache_policy\": \"<string>\",\n \"case_identity\": \"<string>\",\n \"checks\": [\n {\n \"name\": \"<string>\",\n \"passed\": true,\n \"actual\": \"<string>\",\n \"expected\": \"<string>\"\n }\n ],\n \"dataset_identity\": \"<string>\",\n \"labels\": {},\n \"task_identities\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://engine.example.com/api/v1/workloads/{workload_id}/runs/{run_id}/profile/evidence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": 1,\n \"baselines\": [\n {\n \"case_identity\": \"<string>\",\n \"cpu_millicores\": 2,\n \"dataset_identity\": \"<string>\",\n \"execution_nanos\": 2,\n \"memory_bytes\": 2,\n \"name\": \"<string>\",\n \"profiling\": true,\n \"image\": \"<string>\",\n \"task_name\": \"<string>\",\n \"version\": \"<string>\"\n }\n ],\n \"cache_policy\": \"<string>\",\n \"case_identity\": \"<string>\",\n \"checks\": [\n {\n \"name\": \"<string>\",\n \"passed\": true,\n \"actual\": \"<string>\",\n \"expected\": \"<string>\"\n }\n ],\n \"dataset_identity\": \"<string>\",\n \"labels\": {},\n \"task_identities\": {}\n}"
response = http.request(request)
puts response.read_body{
"identity_sha256": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "Check the request fields"
}
}Reference
Related guidance
Addresses and access · Request identity · Errors and recovery · Pagination and resultsBody
application/json
Last modified on November 23, 2026