curl --request POST \
--url https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm \
--header 'Content-Type: application/json' \
--data '
{
"version": 123,
"profile_id": "<string>",
"answers": [
"<string>"
],
"items": {}
}
'import requests
url = "https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm"
payload = {
"version": 123,
"profile_id": "<string>",
"answers": ["<string>"],
"items": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({version: 123, profile_id: '<string>', answers: ['<string>'], items: {}})
};
fetch('https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm', 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://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm",
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([
'version' => 123,
'profile_id' => '<string>',
'answers' => [
'<string>'
],
'items' => [
]
]),
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://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm"
payload := strings.NewReader("{\n \"version\": 123,\n \"profile_id\": \"<string>\",\n \"answers\": [\n \"<string>\"\n ],\n \"items\": {}\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(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm")
.header("Content-Type", "application/json")
.body("{\n \"version\": 123,\n \"profile_id\": \"<string>\",\n \"answers\": [\n \"<string>\"\n ],\n \"items\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm")
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 \"version\": 123,\n \"profile_id\": \"<string>\",\n \"answers\": [\n \"<string>\"\n ],\n \"items\": {}\n}"
response = http.request(request)
puts response.read_body{
"model_id": "<string>",
"profile_id": "<string>",
"version": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Confirm values of a target's profile
Make single answers and list items the customer’s without changing them: what auto-discovery wrote, and a switch left at off. Name each item by the text between its fence tags, a tool or user type by its name and a line by itself. Send the profile_id and version from the last read. Answers with the profile’s id and new version.
curl --request POST \
--url https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm \
--header 'Content-Type: application/json' \
--data '
{
"version": 123,
"profile_id": "<string>",
"answers": [
"<string>"
],
"items": {}
}
'import requests
url = "https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm"
payload = {
"version": 123,
"profile_id": "<string>",
"answers": ["<string>"],
"items": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({version: 123, profile_id: '<string>', answers: ['<string>'], items: {}})
};
fetch('https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm', 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://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm",
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([
'version' => 123,
'profile_id' => '<string>',
'answers' => [
'<string>'
],
'items' => [
]
]),
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://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm"
payload := strings.NewReader("{\n \"version\": 123,\n \"profile_id\": \"<string>\",\n \"answers\": [\n \"<string>\"\n ],\n \"items\": {}\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(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm")
.header("Content-Type", "application/json")
.body("{\n \"version\": 123,\n \"profile_id\": \"<string>\",\n \"answers\": [\n \"<string>\"\n ],\n \"items\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm")
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 \"version\": 123,\n \"profile_id\": \"<string>\",\n \"answers\": [\n \"<string>\"\n ],\n \"items\": {}\n}"
response = http.request(request)
puts response.read_body{
"model_id": "<string>",
"profile_id": "<string>",
"version": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Bearer token with API key
Path Parameters
Body
Make auto-discovered or unanswered values of a target's profile the customer's.
The version the confirm starts from, from the last read.
The profile_id of the last read, sent with the version.
Single answers to confirm, by field name, such as 'purpose'. A switch left at off, such as 'has_guardrails', can be confirmed as it is; an empty answer, or a flag that is unknown, cannot: set it instead.
List items to confirm: field name (such as 'tools') to the items, each named by the text between its fence tags: a tool or user type by its name, a line by itself.
Show child attributes
Show child attributes
Response
Successful Response
What a change answers: which profile, and the version it is at now.
Not the content: a key allowed to write is not always allowed to read, and the content is one read away for a key that is.