curl --request POST \
--url https://api.getoneprofile.ai/agent-learnings/thumbs-downs/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"reason": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "table_cells",
"record_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://api.getoneprofile.ai/agent-learnings/thumbs-downs/"
payload = {
"reason": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "table_cells",
"record_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: '<string>',
request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
subject: {
column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
kind: 'table_cells',
record_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
})
};
fetch('https://api.getoneprofile.ai/agent-learnings/thumbs-downs/', 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.getoneprofile.ai/agent-learnings/thumbs-downs/",
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([
'reason' => '<string>',
'request_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'subject' => [
'column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'kind' => 'table_cells',
'record_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'table_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.getoneprofile.ai/agent-learnings/thumbs-downs/"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"kind\": \"table_cells\",\n \"record_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.getoneprofile.ai/agent-learnings/thumbs-downs/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\",\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"kind\": \"table_cells\",\n \"record_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/agent-learnings/thumbs-downs/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\",\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"kind\": \"table_cells\",\n \"record_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}"
response = http.request(request)
puts response.read_body{
"action": "added",
"agent_name": "<string>",
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"learning": {
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "table_cells",
"text": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"previous_text": "<string>",
"redo": {
"detail": "<string>",
"state": "none"
},
"subject_key": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Give a thumbs down
Say what is wrong with something an agent wrote. The agent learns a one-line learning from the reason (or rewrites the one about the same thing) and, where the output can be written again, writes it again with it. Sent again with the same request_id, it answers what the first one did. Only a signed-in person can, never an API key.
curl --request POST \
--url https://api.getoneprofile.ai/agent-learnings/thumbs-downs/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"reason": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "table_cells",
"record_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://api.getoneprofile.ai/agent-learnings/thumbs-downs/"
payload = {
"reason": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "table_cells",
"record_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: '<string>',
request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
subject: {
column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
kind: 'table_cells',
record_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
})
};
fetch('https://api.getoneprofile.ai/agent-learnings/thumbs-downs/', 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.getoneprofile.ai/agent-learnings/thumbs-downs/",
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([
'reason' => '<string>',
'request_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'subject' => [
'column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'kind' => 'table_cells',
'record_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'table_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.getoneprofile.ai/agent-learnings/thumbs-downs/"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"kind\": \"table_cells\",\n \"record_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.getoneprofile.ai/agent-learnings/thumbs-downs/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\",\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"kind\": \"table_cells\",\n \"record_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/agent-learnings/thumbs-downs/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\",\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"subject\": {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"kind\": \"table_cells\",\n \"record_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}"
response = http.request(request)
puts response.read_body{
"action": "added",
"agent_name": "<string>",
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"learning": {
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "table_cells",
"text": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"previous_text": "<string>",
"redo": {
"detail": "<string>",
"state": "none"
},
"subject_key": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Body
A thumbs down: what was wrong with something an agent wrote.
What is wrong, in the person's words. Required.
1000The client's key for this thumbs down: sent again (a double click, a retry), it answers what the first one did and writes nothing.
Cells of one agent column.
- TableCellsSubjectSchema
- AgentPreviewSubjectSchema
- TaskSubjectSchema
- WritingPreviewSubjectSchema
- ReplyDraftSubjectSchema
- SentMessageSubjectSchema
Show child attributes
Show child attributes
Response
Successful Response
What a thumbs down did.
added a learning, or updated one about the same thing.
added, updated, split, carried, skipped, seeded The agent that learned it.
The thumbs down, for Undo.
The learning as written; null on a replay whose learning was deleted since.
Show child attributes
Show child attributes
What the updated learning said before; null for an added one.
How the redo a thumbs down asked for went.
Show child attributes
Show child attributes
What the thumbs down was given on, as list_thumbs_downs takes it, so a screen that gave it elsewhere (the AI Assistant's card) can follow its note.
Was this page helpful?