curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "create",
"rows": 10
}
'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/"
payload = {
"action": "create",
"rows": 10
}
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({action: 'create', rows: 10})
};
fetch('https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/', 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/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/",
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([
'action' => 'create',
'rows' => 10
]),
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://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/"
payload := strings.NewReader("{\n \"action\": \"create\",\n \"rows\": 10\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://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"create\",\n \"rows\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/")
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 \"action\": \"create\",\n \"rows\": 10\n}"
response = http.request(request)
puts response.read_body{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"suggestion": {
"accepted_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action_key": "<string>",
"column_type": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"credit_tenths_per_row": 123,
"description": "<string>",
"dismissed_reason": "<string>",
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"rationale": "<string>",
"status": "pending",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Accept an AI Assistant column suggestion
Turn a proposed column into a real one, optionally running it over a bounded first N rows.
There is no run-all action: an AI-authored column is the last place to offer an unbounded spend.
curl --request POST \
--url https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "create",
"rows": 10
}
'import requests
url = "https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/"
payload = {
"action": "create",
"rows": 10
}
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({action: 'create', rows: 10})
};
fetch('https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/', 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/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/",
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([
'action' => 'create',
'rows' => 10
]),
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://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/"
payload := strings.NewReader("{\n \"action\": \"create\",\n \"rows\": 10\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://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"create\",\n \"rows\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/tables/{table_id}/assistant/suggestions/{suggestion_id}/accept/")
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 \"action\": \"create\",\n \"rows\": 10\n}"
response = http.request(request)
puts response.read_body{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"suggestion": {
"accepted_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action_key": "<string>",
"column_type": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"credit_tenths_per_row": 123,
"description": "<string>",
"dismissed_reason": "<string>",
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "<string>",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"rationale": "<string>",
"status": "pending",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Accept a proposed column.
What pressing a card's button should do.
create, create_and_run Rows to run for create_and_run. Bounded deliberately: an AI-authored column is the last place to offer an unbounded spend, so there is no 'run all' here at any value.
1 <= x <= 50Response
Successful Response
What accepting produced.
One proposed column, as its card renders it.
The credit figures are per-row and for the two batch sizes the card offers, computed server-side so the card never does credit arithmetic of its own.
Show child attributes
Show child attributes
Was this page helpful?